body {
  font-family: 'DM Sans', sans-serif !important;
}

.loginimg {
    width: 120px !important;
    margin-left: calc((100% - 120px)/ 2);
    margin-bottom: 15px;
    margin-top: 15px
}

.err,
.lgowl,
.lgowl2 {
    margin-top: 50px
}

#labellogin {
    width: 110px
}

.load {
    display: none
}

hr {
    margin: 0.2rem 0 !important;
}

.loader2 {
  display: block;
  box-sizing: border-box;
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.loader2:before,
.loader2:after {
  content: '';
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader2:after {
  box-shadow: 0 2px 0 #066fd1 inset;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  0% {  transform: rotate(0)}
  100% { transform: rotate(360deg)}
}

@keyframes scaleUp {
    0% {
        transform: translate(-50%, -50%) scale(0)
    }

    100%,
    60% {
        transform: translate(-50%, -50%) scale(1)
    }
}

@keyframes pulse {

    0%,
    100%,
    60% {
        transform: scale(1)
    }

    80% {
        transform: scale(1.2)
    }
}

#LoginError {
    display: none;
    border: 1px solid #ebccd1;
    background-color: #f2dede;
    color: #a94442;
    padding: 5px;
    font-weight: 700
}

#LoginError p {
    margin-bottom: 0
}

#logobrand {
    min-height: 61px !important
}

#usermenu {
    display: none;
    right: -12px !important
}

.lgowl {
    width: 500px;
    margin-left: calc((100% - 500px)/ 2);
    margin-bottom: 50px
}

.lgowl2 {
    width: 600px;
    margin-left: calc((100% - 600px)/ 2)
}

.card-title {
    color: #fff !important
}

.card-header#cardheader {
    background: #fff !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.card-header#cardheader .card-title {
    color: #1a1a1a !important;
}

.modal-header#cardheader {
    background-color: #fff !important;
    color: #212529 !important;
}

.modal-header#cardheader .modal-title,
.modal-header#cardheader label {
    color: #212529 !important;
}

.modal-header#cardheader .close,
.modal-header#cardheader .btn-close {
    color: #212529 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.modal-header#cardheader .btn-close {
    filter: none !important;
}

.sidebar-wrapper {
    background-color: #ffffff !important;
    border-right: 1px solid #E5E7EB;
}

#ActiveProccessTerms_info,
#ActiveProccess_info,
#NoActiveProccess2_info,
#NoActiveProccess_info,
.btn-close,
.sidebar-wrapper p {
    font-weight: 700
}

.dropdown-menu {
    min-width: 200px !important
}

.err {
    display: none
}

/* El mensaje del formulario de partes va pegado a los botones, sin los 50px generales de .err */
#errAdPart {
    margin-top: 8px
}

.icon {
    width: 35px;
    margin-left: calc((100% - 35px)/ 2)
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

@media (max-width: 1800px) {
    .table-responsive2 {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}

#ActiveProccessTerms_filter input,
#ActiveProccess_filter input,
#AllMem_filter input,
#AllTask_filter input,
#EditUsersTable_filter input,
#ClientesTable_filter input,
#FirmasTable_filter input,
#NoActiveProccess2_filter input,
#NoActiveProccess_filter input,
#spustask_filter input,
#Memoriales_filter input,
#Procesos_filter input,
#MemorialesDevueltos_filter input,
#usuariosPendientesAprobar_filter input,
#usuariosAprobados_filter input,
#memorialesPendientesVerificar_filter input,
#memorialesPendientesAprobar_filter input,
#SolicitudesSoporteMemoriales_filter input,
#TodasSolicitudesSoporteMemoriales_filter input,
#TablaPartesProceso_filter input,
#TablaHistorialProceso_filter input,
#TablaConstanciasPendientes_filter input,
#TablaConstanciasConfirmadas_filter input,
#TablaMemorialesPendientesAprobar_filter input,
#tablaListDocProc_filter input,
#tablaHistorial_filter,
#tableSpaceAnotaciones_filter input,
#customFilter input,
#TablaProcesosVencidos_filter input,
#histobs_filter input,
#CargaLaboralFuncionarioTable_filter input,
#TareasProximasVencerTable_filter input,
#ProductividadUsuarioTable_filter input,
#TrazabilidadMasivaTable_filter input,
#ActuacionesNuevasTable_filter input,
#InventarioProcesalResumenTable_filter input,
#InventarioProcesalDetalleTable_filter input,
#TiemposCicloTable_filter input,
#SupervisionProcessTable_filter input {
    display: block;
    width: auto;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 20px;
    float: right
}

.select2-container .select2-selection--single,
.select2-selection__rendered {
    min-height: 45px !important
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 39px !important
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px !important
}

.select2 select2-container select2-container--default select2-container--below select2-container--focus {
    width: 100% !important
}

.ptable {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 0 !important
}

.chktable {
    width: 20px !important;
    height: 20px !important;
    margin: 0;
    margin-left: calc((100% - 20px)/ 2)
}

.btn-close {
    padding-bottom: 15px !important;
    border: 2px solid #ccc !important
}

#select2-radicmem-container {
    width: 464px
}

.select2 {
    width: 100% !important
}

.select2-results__options {
    max-height: 350px !important
}

/* styles.css */
.context-menu {
    display: none;
    /* Oculta el menú por defecto */
    position: absolute;
    /* Posición absoluta para que flote */
    background-color: #fff;
    /* Fondo blanco */
    border: 1px solid #ccc;
    /* Borde gris */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* Sombra */
    z-index: 1000;
    /* Asegura que esté por encima de otros elementos */
    min-width: 148px !important;
}

.context-menu ul {
    list-style: none;
    /* Elimina los puntos de la lista */
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    padding: 8px 12px;
    /* Espaciado interno */
    cursor: pointer;
    /* Cambia el cursor al pasar sobre las opciones */
    font-size: 14px;
}

.context-menu ul li:hover {
    background-color: #f0f0f0;
    /* Cambia el color de fondo al pasar el mouse */
}

.context-menu ul li a {
    text-decoration: none;
    /* Elimina el subrayado de los enlaces */
    color: #333;
    /* Color del texto */
    display: block;
    /* Hace que el enlace ocupe todo el espacio del li */
}

#TablaTodasAdjudicaciones_wrapper .dataTables_length,
#TodosMemoriales_wrapper .dataTables_length,
#TodosMemorialesDevueltos_wrapper .dataTables_length,
#soporteDocumentosEntrantesJuzgados_wrapper .dataTables_length,
#soporteMemorialesEntrantes_wrapper .dataTables_length,
#correspondenciaPendienteNotificar_wrapper .dataTables_length,
#TodasCorrespondencias_wrapper .dataTables_length,
#TablaSolicitudesTutelas_wrapper .dataTables_length,
#TablaTutelasPendientes_wrapper .dataTables_length,
#TablaTutelasTramitadas_wrapper .dataTables_length,
#TablaLiquidacionesPendientes_wrapper .dataTables_length,
#TablaTodasLiquidaciones_wrapper .dataTables_length,
#Procesos_wrapper .dataTables_length,
#listaTutelasSigcom_wrapper .dataTables_length,
#listaDestinatariosSigcom_wrapper .dataTables_length,
#correspondenciaPendienteSigcom_wrapper .dataTables_length,
#TablaEstadisticaEnvios_wrapper .dataTables_length,
#TablaOrdenesServicio_wrapper .dataTables_length,
#TodosProcesos_wrapper .dataTables_length,
#TablaDocumentosSalientes_wrapper .dataTables_length,
#TablaDocumentosEntrantes_wrapper .dataTables_length,
#TablaListaProcArchivados_wrapper .dataTables_length,
#TablaListaSolArchivo_wrapper .dataTables_length,
#TablaListaSolicitudesTutelas_wrapper .dataTables_length,
#TablaListaTutelas_wrapper .dataTables_length,
#TablaListaProcesos_wrapper .dataTables_length,
#TablaListaCorrespondencias_wrapper .dataTables_length,
#TablaListaAdjudicaciones_wrapper .dataTables_length,
#TablaListaProcArchivados_wrapper .dataTables_length,
#TablaListaLiquidaciones_wrapper .dataTables_length,
#TablaListaMemoriales_wrapper .dataTables_length,
#TablaListaMemorialesDevueltos_wrapper .dataTables_length,
#TablaMemorialesPendientesAprobar_wrapper .dataTables_length,
#TablaTodasConciliaciones_wrapper .dataTables_length,
#TablaConciliaciones_wrapper .dataTables_length,
#tablaModalActuaciones_wrapper .dataTables_length {
    margin-bottom: 10px;
}

#TablaListaProcesosDevueltos_wrapper .dataTables_length,
#TablaListaCorrespondenciasDevueltas_wrapper .dataTables_length {
    margin: 10px;
}

#TodosMemoriales,
#memorialesPendientesAprobar,
#Memoriales,
#TodosMemorialesDevueltos,
#MemorialesDevueltos,
#usuariosAprobados,
#usuariosPendientesAprobar,
#memorialesPendientesVerificar,
#TodasSolicitudesSoporteMemoriales,
#soporteDocumentosEntrantesJuzgados,
#soporteMemorialesEntrantes,
#MemorialesBandejaNoDespacho,
#correspondenciaPendienteNotificar,
#TodasCorrespondencias,
#TablaSolicitudesTutelas,
#TablaTutelasPendientes,
#TablaConstanciasPendientes,
#TablaConstanciasConfirmadas,
#Procesos,
#TablaAdjudicacionesPendientes,
#TablaTodasAdjudicaciones,
#ProcesosJusticia,
#SolicitudesSoporteMemoriales,
#correspondenciaPendienteSigcom,
#TablaEstadisticaEnvios,
#TablaTiposEnvio,
#listaDestinatariosSigcom,
#TablaOrdenesServicio,
#listaTutelasSigcom,
#TablaLiquidacionesPendientes,
#TablaTutelasTramitadas,
#TablaTodasLiquidaciones,
#TodosProcesos {
    width: 100% !important;
}

.is-invalid {
    border: 2px solid red !important;
}

.invalid-feedback {
    color: red;
    font-size: 0.9em;
    display: none;
}

.sidebar-menu a {
    color: #333 !important;
}

#procesos_previous {
    color: #0B457F !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate,
html body .dataTables_wrapper .dataTables_paginate .paginate_button,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,
#customPagination,
#customInfo,
#customLength,
#customFilter {
    color: #0B457F !important;
}

.dataTables_wrapper .dataTables_length select,
#customLength select {
    color: #0B457F !important;
    border: 2px solid #ced4da !important;
}

table th {
    text-align: center !important;
    vertical-align: middle !important;
}

table td {
    text-align: justify !important;
    vertical-align: middle !important;
}

.row .col-sm-8>h4.mb-0 {
    font-size: 16px !important;
    color: rgba(0, 0, 0, 0.55);
}

.test2 {
    background-color: #dae5e6 !important;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: sans-serif;
}

.dropdown-title {
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.dropdown-options {
    font-size: 15px;
    line-height: 0.5;
    right: 1%;
    display: none;
    position: absolute;
    background: white;
    min-width: 320px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.dropdown-option {
    padding: 10px 15px;
    color: #374151;
    text-decoration: none;
    display: block;
    font-weight: 500;
    letter-spacing: 0.01em;
    background-color: transparent;
}

.dropdown-option:hover {
    background: #f3f4f6;
    color: #1e3a8a;
    text-shadow: none;
}

.swal-toast-fixed {
    margin-top: 55px !important;
    pointer-events: none !important;
}

.swal-toast-fixed .swal2-popup {
    pointer-events: auto !important;
}

#sugestclass {
    display: none;
    width: 335px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: absolute;
    z-index: 999;
    background-color: #FFF;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#sugestsubclass {
    display: none;
    width: 650px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: absolute;
    z-index: 999;
    background-color: #FFF;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#sugestContainer {
    padding: 10px;
}

#sugestContainerSub {
    padding: 10px;
    overflow-y: scroll;
    height: 200px;
}

.suggest-item:hover {
    background: #f0f0f0;
    color: #000;
    cursor: pointer;
}

.suggestsub-item:hover {
    background: #f0f0f0;
    color: #000;
    cursor: pointer;
}

.sidebar-menu a {
    color: #333 !important;
}

div.dataTables_scrollBody table {
    margin: 0 !important;
}

table#ActiveProccess .filtro-panel,
table#AccionesConstitucionales .filtro-panel,
table#IncidentProccess .filtro-panel,
table#ArchiveProccess .filtro-panel,
table#TramPostProccess .filtro-panel,
table#ActiveProccessFam .filtro-panel,
table#AccionesConstitucionalesFam .filtro-panel,
table#TramPostProccessFam .filtro-panel,
table#IncidentProccessFam .filtro-panel,
table#InterdictionProccessFam .filtro-panel,
table#ArchiveProccessFam .filtro-panel {
    position: fixed;
    top: 56px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 10px 0 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filtro-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filtro-panel .panel-search {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.filtro-panel .panel-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
    padding-right: 5px;
    padding-bottom: 10px;
}

.filtro-panel .panel-actions {
    padding: 10px 0;
    border-top: 1px solid #eee;
    background: white;
    position: sticky;
    bottom: -10px;
    margin-top: auto;
    z-index: 2;
}

.filtro-opcion {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
}

.filtro-opcion:hover {
    background-color: #f5f5f5;
}

.filtro-opcion input {
    margin-right: 8px;
}

.filtro-panel h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#cerrarFiltro {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    height: 0.8em !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#cerrarFiltro:hover {
    opacity: 1;
}

#buscadorFiltro {
    flex: 1;
    min-width: 0;
}

td.columna-observaciones {
    position: relative;
    padding: 0 !important;
    min-height: 30px;
}

td.columna-observaciones .observaciones-wrapper {
    position: relative;
    display: block;
    width: 100%;
    min-height: 30px;
}

td.columna-observaciones .observaciones-content {
    display: block;
    width: calc(100% - 30px);
    min-height: 20px;
    padding: 6px 30px 6px 8px;
    outline: none;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

td.columna-observaciones .observaciones-content:focus {
    border-color: #007bff;
    background-color: #fff8e1;
}

td.columna-observaciones .historial-icon {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 20;
    color: #6c757d;
    font-size: 14px;
    transition: color 0.2s ease;
    padding: 2px;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
}

.swal-title-sm {
    font-size: 18px !important;
}

.th-filtro {
    cursor: pointer;
    color: black;
    padding-right: 36px;
    white-space: nowrap;
}

.th-filtro .th-label {
    display: inline-block;
    vertical-align: middle;
}

.th-filtro i.bi {
    position: absolute;
    right: 2px;
    top: 20%;
    transform: translateY(-50%);
    color: black;
    font-size: 10px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.9;
    display: none;
}

.profile-photo-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.profile-photo-wrapper img,
#fotoActual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorta sin deformar */
    object-position: center;
    /* centra la parte mostrada */
    display: block;
    border-radius: 0;
    /* el radio lo controla el wrapper */
}


/* ========================================================
   ESTILOS PARA SELECCIÓN MÚLTIPLE INVENTARIOS DE DESPACHO
   ======================================================== */

/* Overlay de selección rectangular */
.overlay-seleccion-excel {
    position: fixed;
    background-color: rgba(0, 120, 215, 0.08);
    border: 2px dashed #0078d7;
    pointer-events: none;
    z-index: 9999;
    display: none;
    transition: none;
    box-shadow: 0 2px 10px rgba(0, 120, 215, 0.2);
}

/* Celda individual seleccionada */
.td-seleccionada {
    background-color: rgba(0, 120, 215, 0.1) !important;
    border: 1px solid #0078d7 !important;
    position: relative;
    z-index: 1;
}

/* Rango de celdas seleccionadas */
.rango-seleccionado {
    background-color: rgba(0, 120, 215, 0.15) !important;
    border: 1px dotted #0078d7 !important;
}

/* Celda activa (donde empezó la selección) */
.celda-activa-excel {
    background-color: rgba(0, 120, 215, 0.25) !important;
    border: 2px solid #0078d7 !important;
}

/* Indicador de esquina para extender selección */
.controlador-redimension {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #0078d7;
    cursor: crosshair;
    z-index: 10;
    border-radius: 1px;
}

/* Efecto hover para celdas seleccionables */
#ActiveProccess td[data-editable="true"]:hover {
    background-color: rgba(0, 120, 215, 0.05);
}

/* La primera columna (Radicado) es fija/sticky: debe permanecer SIEMPRE opaca para
   no transparentar el contenido que se desplaza detrás — en hover y en los estados
   de selección/celda activa del modo cuadrícula. Se usan los equivalentes OPACOS de
   los azules de selección ya existentes (mismo color, sin transparencia). */
#ActiveProccess th:first-child:hover,
#ActiveProccess td:first-child:hover {
    background-color: #fff !important;
}
#ActiveProccess td:first-child.td-seleccionada {
    background-color: #e6f2fb !important;
}
#ActiveProccess td:first-child.rango-seleccionado {
    background-color: #d9ebf9 !important;
}
#ActiveProccess td:first-child.celda-activa-excel {
    background-color: #bfddf5 !important;
}

/* Para celdas que están siendo editadas y seleccionadas */
.td-seleccionada[contenteditable="true"]:focus {
    background-color: #fffde7 !important;
    border: 2px solid #0078d7 !important;
    outline: none;
}

/* Asegurar que los selects dentro de celdas seleccionadas sean visibles */
.td-seleccionada select,
.rango-seleccionado select {
    background-color: white !important;
    border: 1px solid #0078d7 !important;
}

/* Para mantener visibilidad durante scroll rápido */
.td-seleccionada,
.rango-seleccionado {
    transition: background-color 0.15s ease, border 0.15s ease;
}

/* Deshabilitar selección de texto durante arrastre */
body.seleccionando-celdas {
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair !important;
}

/* Feedback visual para copiar/pegar */
.efecto-copiado {
    animation: parpadeoVerde 0.5s ease 2;
}

.efecto-pegado {
    animation: parpadeoAzul 0.5s ease 2;
}

@keyframes parpadeoVerde {
    0%, 100% { background-color: rgba(40, 167, 69, 0.1); }
    50% { background-color: rgba(40, 167, 69, 0.3); }
}

@keyframes parpadeoAzul {
    0%, 100% { background-color: rgba(0, 120, 215, 0.1); }
    50% { background-color: rgba(0, 120, 215, 0.3); }
}

/* Efecto visual para celdas siendo borradas */
.ms-borrando {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid #dc3545 !important;
    animation: ms-borrar-pulse 0.6s ease infinite;
}

@keyframes ms-borrar-pulse {
    0%, 100% { background-color: rgba(220, 53, 69, 0.1); }
    50% { background-color: rgba(220, 53, 69, 0.2); }
}

/* Para mantener consistencia con delete */
body.grid-edit-mode td[data-editable="true"]:focus {
    outline: 2px solid #dc3545 !important;
    outline-offset: -2px;
}

/* ============================= */
/*            SEARCH             */
/* ============================= */

.sigcod-search{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);  
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 36px;
  padding: 0 1rem;
  margin-top: 2px;
  min-width: 320px;
  max-width: 460px;
  width: 35%;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  transition: all .18s ease;
}

#sigcodSearchDrop{
  position: fixed !important;
  display: none;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.16) !important;
  overflow: hidden !important;
  z-index: 999999 !important;
  padding: 0 !important;
}

/* Input */
.sigcod-search__input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2px;
  color: #1f2d3d;
}

.sigcod-search__input::placeholder{
  color: rgba(0,0,0,.45);
  font-weight: 400;
}

/* Lupa derecha */
.sigcod-search__icon{
  font-size: 15px;
  opacity: .65;
  transition: opacity .15s ease;
}

/* Botón limpiar */
.sigcod-search__clear{
  border: 0;
  background: transparent;
  display: none;
  opacity: .55;
  cursor: pointer;
  padding: 0;
  transition: opacity .15s ease;
}

.sigcod-search__clear:hover{
  opacity: 1;
}

/* Hover general */
.sigcod-search:hover{
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

/* Focus state */
.sigcod-search:focus-within{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.sigcod-search:focus-within .sigcod-search__icon{
  opacity: 1;
}

/* =========================================================
   TEMA CLARO DEL SIDEBAR (migración dark -> light)
   El logo queda pendiente (en construcción): la franja del
   brand conserva su fondo actual para no ocultar el logo.
   ========================================================= */

/* Ítems del sidebar: texto e íconos en gris oscuro */
.app-sidebar .sidebar-menu .nav-link {
    color: #333 !important;
}

.app-sidebar .sidebar-menu .nav-link .nav-icon,
.app-sidebar .sidebar-menu .nav-link p {
    color: #333 !important;
}

/* Hover */
.app-sidebar .sidebar-menu .nav-link:hover {
    background-color: #F0F0F0 !important;
    color: #1a1a1a !important;
}

/* Ítem activo: fondo azul de acento con texto blanco */
.app-sidebar .sidebar-menu .nav-link.active {
    background-color: #1E4D6B !important;
    color: #ffffff !important;
}

.app-sidebar .sidebar-menu .nav-link.active .nav-icon,
.app-sidebar .sidebar-menu .nav-link.active p {
    color: #ffffff !important;
}

/* Dropdowns desplegados dentro del sidebar: fondo blanco, texto oscuro */
.app-sidebar .sidebar-menu .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #E5E7EB;
}

.app-sidebar .sidebar-menu .dropdown-menu .dropdown-item {
    color: #333 !important;
}

.app-sidebar .sidebar-menu .dropdown-menu .dropdown-item:hover {
    background-color: #F0F0F0 !important;
    color: #1a1a1a !important;
}

/* =========================================================
   REFINAMIENTO VISUAL — fuente, densidad, sidebar
   NOTA: el prompt usaba selectores de AdminLTE 3
   (.main-sidebar, .content-wrapper, .nav-sidebar, .brand-text...)
   que NO existen aquí. Se adaptaron a AdminLTE 4.
   ========================================================= */

/* --- Cambio 1: Fuente DM Sans global --- */
* {
    font-family: 'DM Sans', sans-serif !important;
}

/* Guarda: los íconos conservan su tipografía de íconos */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

/* Tamaños de fuente — un escalón menos */
body,
.app-content,
.app-main,
.app-sidebar {
    font-size: 13px !important;
}

.table td,
.table th {
    font-size: 12.5px !important;
}

small, .small, .text-muted {
    font-size: 11.5px !important;
}

h4, .h4 { font-size: 16px !important; }
h5, .h5 { font-size: 14px !important; }
h6, .h6 { font-size: 13px !important; }

.sidebar-menu .nav-link {
    font-size: 12.5px !important;
}

.sidebar-menu .nav-header {
    font-size: 10.5px !important;
    letter-spacing: 0.06em;
}

/* --- Cambio 2: Sidebar más angosto (250px -> 200px) ---
   AdminLTE 4 controla ancho del sidebar Y offset del contenido
   con --lte-sidebar-width; basta redefinirla (cubre el colapso). */
:root,
[data-bs-theme=light] {
    --lte-sidebar-width: 200px;
}

/* --- Cambio 3: Marca del sidebar: logo negro sobre fondo blanco --- */
.sidebar-brand {
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 57px;
    padding: 6px 10px;
}

.sidebar-brand img {
    display: block !important;
    width: auto !important;
    max-width: 90%;
    max-height: 36px;
    height: auto;
}

.sidebar-brand::after {
    /* Línea azul degradada (efecto espacial) bajo el logo */
    content: "";
    display: block;
    width: 90%;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, rgba(10, 42, 78, 0) 0%, #0A2A4E 50%, rgba(10, 42, 78, 0) 100%) 1;
}

/* --- Cambio 4: Tablas compactas (inventarios) --- */
.table-sm td,
.table-sm th,
.dataTable td,
.dataTable th {
    padding: 6px 10px !important;
    line-height: 1.4 !important;
}

.dataTable thead th {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 8px 10px !important;
    background-color: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.dataTable tbody tr {
    border-bottom: 1px solid #F3F4F6 !important;
}

.dataTable tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* PROTECCIÓN edición tipo cuadrícula (SharePoint) — NO romper:
   1) la celda de observaciones mantiene padding 0 (ícono historial absoluto)
   2) los headers con filtro conservan el espacio para su ícono */
td.columna-observaciones {
    padding: 0 !important;
}

th.th-filtro {
    padding-right: 36px !important;
}

/* --- Cambio 5: Cabeceras de sección en blanco --- */
.card-header,
.box-header {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    color: #1a1a1a !important;
}

.card-header .card-title,
.card-header h3,
.card-header h4 {
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* --- Texto de los menús más pequeño ---
   Navbar superior (header.php) y barra secundaria (flow_nav.php) usan
   .app-header .nav-link; los desplegables usan .dropdown-item. */
.app-header .nav-link {
    font-size: 12.5px !important;
}

.dropdown-menu .dropdown-item {
    font-size: 12.5px !important;
}

/* Ítems del sidebar un punto más compactos */
.app-sidebar .sidebar-menu .nav-link {
    font-size: 12px !important;
}

/* --- Dashboards: igualar tamaño con el resto de la app ---
   El dashboard admin usa rem (root 16px) y se veía más grande que
   el body (13px). Se bajan los textos clave para uniformar. */
.admin-dashboard .welcome-title,
.admin-dashboard .dashboard-heading,
.admin-dashboard .metric-title,
.admin-dashboard .metric-number {
    font-size: 0.9rem !important;
}

.admin-dashboard .subheader {
    font-size: 0.68rem !important;
}

/* Títulos de cabecera de página (h3) más contenidos y uniformes */
h3, .h3 {
    font-size: 18px !important;
}

/* =========================================================
   DROPDOWN DE USUARIO (topbar) — moderno, limpio, blanco
   Adaptado a Bootstrap 5 + Bootstrap Icons.
   ========================================================= */

/* ── Avatar con iniciales ── */
.user-avatar-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0A2A4E;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.user-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

/* Foto de perfil (cuando hay foto registrada, reemplaza a las iniciales) */
.user-avatar-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.user-avatar-photo.user-avatar-lg {
    width: 44px;
    height: 44px;
}

/* ── Trigger en topbar ── */
.user-topbar-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.user-topbar-role {
    font-size: 11px;
    color: #6B7280;
    line-height: 1.2;
}

.user-chevron {
    font-size: 10px;
    color: #9CA3AF;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.user-dropdown.show .user-chevron,
.user-dropdown .dropdown-toggle[aria-expanded="true"] .user-chevron {
    transform: rotate(180deg);
}

/* Ocultar el caret default SOLO en este dropdown */
.user-dropdown .dropdown-toggle::after {
    display: none;
}

/* ── Panel dropdown ── */
.user-dropdown-menu {
    min-width: 240px !important;
    padding: 0;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10),
                0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 8px;
}

/* ── Header del dropdown ── */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FAFAFA;
    border-bottom: 1px solid #F3F4F6;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-firma {
    font-size: 12px;
    color: #3B82F6;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 11.5px;
    color: #9CA3AF;
}

/* ── Ítems del menú ── */
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px !important;
    color: #374151;
    transition: background 0.15s ease;
}

.user-dropdown-item:hover {
    background: #F9FAFB;
    color: #111827;
}

.user-dropdown-item i {
    width: 16px;
    font-size: 13px;
    color: #6B7280;
    flex-shrink: 0;
}

/* ── Cerrar sesión en rojo ── */
.user-dropdown-logout {
    color: #EF4444 !important;
}

.user-dropdown-logout:hover {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
}

.user-dropdown-logout i {
    color: #EF4444 !important;
}

/* ── Divider ── */
.user-dropdown-menu .dropdown-divider {
    margin: 0;
    border-color: #F3F4F6;
}

/* =========================================================
   TICKETS DE SOPORTE — badges elegantes (tonos suaves)
   ========================================================= */
.tkt-badge {
    display: inline-block;
    padding: 0.3em 0.7em;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Prioridad */
.tkt-prioridad-baja    { background: rgba(34, 197, 94, 0.16);  color: #15803d; }
.tkt-prioridad-media   { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.tkt-prioridad-alta    { background: rgba(239, 68, 68, 0.14);  color: #b91c1c; }
.tkt-prioridad-critica { background: rgba(127, 29, 29, 0.92);  color: #fff; }

/* Estado */
.tkt-estado-abierto     { background: rgba(37, 99, 196, 0.14);  color: #1d4ed8; }
.tkt-estado-en_revision { background: rgba(234, 88, 12, 0.14);  color: #c2410e; }
.tkt-estado-resuelto    { background: rgba(34, 197, 94, 0.16);  color: #15803d; }
.tkt-estado-cerrado     { background: rgba(107, 114, 128, 0.15); color: #4b5563; }

/* Puntos de prioridad en el formulario (reemplazan emojis) */
.tkt-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}
.tkt-dot-baja    { background: #16a34a; }
.tkt-dot-media   { background: #d97706; }
.tkt-dot-alta    { background: #dc2626; }
.tkt-dot-critica { background: #7f1d1d; }

/* ============================================================
   Centro de Ayuda / FAQs
   ============================================================ */
.ayuda-hero {
    max-width: 900px;
    margin: 8px auto 24px;
    text-align: center;
}
.ayuda-hero-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}
.ayuda-hero-sub {
    color: #6b7280;
    margin-bottom: 20px;
}
.ayuda-search-wrap {
    position: relative;
    max-width: 620px;
    margin: 0 auto 18px;
}
.ayuda-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}
/* Especificidad reforzada: bootstrap.min.css se carga DESPUÉS de este archivo
   y su .form-control pisaría el padding-left, solapando la lupa con el texto. */
.ayuda-search-wrap input.ayuda-search {
    padding: 12px 18px 12px 44px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 15px;
}
.ayuda-search-wrap input.ayuda-search:focus {
    border-color: #1E4D6B;
    box-shadow: 0 0 0 3px rgba(30, 77, 107, 0.12);
}

/* Chips de categorías */
.ayuda-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.ayuda-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ayuda-chip:hover {
    border-color: #1E4D6B;
    color: #1E4D6B;
}
.ayuda-chip.active {
    background: #1E4D6B;
    border-color: #1E4D6B;
    color: #fff;
}

/* Grid de tarjetas */
.ayuda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.ayuda-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}
.ayuda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    border-color: #dbe3ea;
}
.ayuda-card:focus-visible {
    outline: 2px solid #1E4D6B;
    outline-offset: 2px;
}
.ayuda-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ayuda-card-icon {
    font-size: 26px;
}
.ayuda-card-icon.disponible { color: #1E4D6B; }
.ayuda-card-icon.proximo    { color: #b0863c; }
.ayuda-card-titulo {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 6px;
}
.ayuda-card-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ayuda-card-footer {
    margin-top: 14px;
}

/* Badges de estado y categoría */
.ayuda-estado {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 0.28em 0.7em;
    border-radius: 999px;
}
.ayuda-estado-disponible { background: rgba(30, 77, 107, 0.12); color: #1E4D6B; }
.ayuda-estado-proximo    { background: rgba(217, 119, 6, 0.13);  color: #b0863c; }
.ayuda-badge-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 0.28em 0.7em;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}

/* Estado vacío */
.ayuda-vacio {
    text-align: center;
    color: #9ca3af;
    padding: 48px 16px;
}
.ayuda-vacio i {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Modal: video y estado "en producción" */
.ayuda-video-wrap {
    margin-bottom: 14px;
}
.ayuda-video {
    width: 100%;
    max-height: 420px;
    border-radius: 10px;
    background: #000;
    display: block;
}
.ayuda-en-produccion {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fbf6ec 0%, #f6f8fa 100%);
    border: 1px dashed #e0c99a;
    border-radius: 12px;
    padding: 28px 24px;
}
.ayuda-en-produccion i {
    font-size: 40px;
    color: #b0863c;
    flex-shrink: 0;
}
.ayuda-en-produccion-txt {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ayuda-en-produccion-txt strong { color: #1f2937; font-size: 15px; }
.ayuda-en-produccion-txt span   { color: #6b7280; font-size: 13px; }
.ayuda-modal-desc {
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
}

