/* ---------------------------------------- Inicio Ajustes para tablas - Diseño fianl definido por gerencia ------------------------------------------- */

/* Forzar separación entre cabecera y cuerpo */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 8px !important; /* separación vertical de 3px */
}

/* Cabecera de la tabla */
table.dataTable thead th {
    background-color: #BEC9D3; /* color de fondo similar a la imagen */
    border: none;
    padding: 10px;
    font-weight: 600;
    color: #091A4E;
}

/* Fila completa de cabecera */
table.dataTable thead tr {
    border-radius: 5px;
    overflow: hidden; /* para que el redondeo afecte a las celdas */
    display: table-row; /* asegurar que se mantenga el formato de fila */
}

/* Redondear solo las esquinas exteriores */
table.dataTable thead tr th:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
table.dataTable thead tr th:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}


/* Filas del body */
table.dataTable tbody tr {
    background-color: #F7F7F7; /* blanco como tarjeta */
    border-radius: 5px;
    overflow: hidden; /* que el redondeo no deje esquinas cuadradas */
}
/* panding interior en vertical */
table.dataTable tbody tr td {
    padding: 5px 0;
}
/* Redondear esquinas superiores */
table.dataTable tbody tr td:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
table.dataTable tbody tr td:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Efecto hover */
table.dataTable tbody tr:hover {
    background-color: #e8f1ff !important; /* azul claro como en tu imagen */
}

/* Ocultar buscador por defecto de DataTables */
.dataTables_filter {
    display: none !important;
}

/* Contenedor general buscador + botón filtrar */
 .top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

/* Contenedor de buscador con icono */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 4px 8px;
}

/* Input buscador */
.search-box input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
}

/* Icono buscador */
.search-box i {
    color: #6b7280;
    font-size: 14px;
    margin-left: 5px;
}

/* Botón filtrar */
.btn-filtrar {
    border-radius: 5px;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-weight: 500;
}

/* Dropdown flotante */
.dropdownFiltros {
  position: absolute;
  top: 44px;        /* ajusta según tu barra */
  right: 0;
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  z-index: 999;
}
.dropdownFiltros select {
  width: 220px;
  margin: 6px 0 10px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px; 
}
