/* Estilos para ¿genericó btn| card-body? */
.btn {
  padding: 0px 5px 0px 5px;
  font-size: 12px;
}

.card-body {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  height: 100%;
}

/* Estilos para la Manual */
.manual {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100%;
}

.manual div {
  align-items: left;
}

/* Estilos para la tabla de Ultimo Despliegue  */

/* Aplica box-sizing y borde al tr dentro del thead de la tabla con la clase 'despliegueit' */
.despliegueit thead tr {
  box-sizing: border-box;
  /* Asegura que el ancho y alto incluya el borde y el padding */
  border-style: solid;
  /* Estilo del borde */
  border-width: 0px;
  /* Sin bordes */
}

/* Borde del thead dentro de la tabla con la clase 'despliegueit' */
.despliegueit thead {
  border-bottom: 2px solid #000;
  /* Cambia el color y el grosor según sea necesario */
  margin-bottom: 10px;
  /* Margen inferior opcional para el efecto visual */
  padding-bottom: 5px;
  /* Espacio interno adicional (padding) */
}

/* Aplica box-sizing y borde inferior a los td dentro del tbody de la tabla con la clase 'despliegueit' */
.despliegueit tbody td {
  box-sizing: border-box;
  /* Asegura que el ancho y alto incluya el borde y el padding */
  border-style: solid;
  /* Estilo del borde */
  /* border-width: 0 0 1px 0; Sin bordes superiores y laterales, borde inferior */
  /* background-color: #b4a8a8;Color de fondo opcional */
}

/* Estilo para las celdas de fondo gris en las filas impares */
.despliegueit tbody tr:nth-child(odd) td {
  background-color: rgb(242, 242, 242);
  /* Color gris */
}

/* Estilo para las celdas de fondo gris claro en las filas pares */
.despliegueit tbody tr:nth-child(even) td {
  background-color: white;
  /* Color gris claro */
}

/* Borde inferior de las celdas del thead dentro de la tabla con la clase 'despliegueit' */
.despliegueit thead th {
  box-sizing: border-box;
  /* Asegura que el ancho y alto incluya el borde y el padding */
  border-style: solid;
  /* Estilo del borde */
  border-width: 0 0 2px 0;
  /* Sin bordes laterales y superiores, borde inferior */
}

/* Estilos Tabla TaraskaTools*/
.table-responsive-taraska {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-taraska th,
.table-taraska td {
  white-space: nowrap;
}

/* Checbox */
input[type="checkbox"].form-check-input.select-row {
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
}


/* quita doble borde y hace que el acordeón “sea” parte de la tabla */
tr.details-row>td {
  border-top: 0;
  padding: 0;
}

.details-card {
  border: 0;
  border-radius: 0;
}

.details-card .card-body {
  background: #fff;
}

.action-icon {
  cursor: pointer;
}
/* Contenedor de detalle */
.details .card-body { padding: .75rem .75rem; }

/* Texto compacto y que nunca desborde *//* Texto compacto y que NUNCA desborda horizontalmente */
.answer-preview,
.answer-full,
.break-anywhere {
  font-size: .875rem;
  line-height: 1.25;
  overflow-wrap: anywhere;   /* rompe en cualquier punto seguro */
  word-break: break-word;    /* fallback */
  white-space: normal;       /* permite saltos */
}

/* Tabla sin desbordes: celdas envuelven texto y crece en alto */
.refs-table {
  table-layout: fixed;       /* fija ancho de columnas */
  width: 100%;
}
.refs-table th,
.refs-table td {
  white-space: normal;       /* no una sola línea */
  overflow-wrap: anywhere;   /* romper URLs/líneas largas */
  word-break: break-word;
  vertical-align: top;
  padding: .25rem .5rem;
  font-size: .8125rem;
}


/* Tabla listado scanners: sin scroll, todo debe caber */
.table-responsive { overflow-x: hidden !important; }

/* Esta tabla en concreto */
.scans-table{
  width: 100%;
  table-layout: fixed; /* reparte el ancho */
}

/* Celdas: permitir saltos de línea y compactar */
.scans-table th,
.scans-table td{
  white-space: normal !important;      /* rompe líneas */
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.1;
  padding: .2rem .25rem;
  vertical-align: middle;
}

/* Opcional: encabezado más compacto */
.scans-table thead th{
  font-size: 11px;
  padding: .15rem .25rem;
}

/* Opcional: columnas con contenido “raro” */
.scans-table td:nth-child(10){ /* Acciones */
  white-space: nowrap !important; /* iconos en una línea */
}

/* Modal que nunca desborda a lo ancho */
.modal-dialog {
  max-width: 100%;
  margin: .5rem auto;
}
.modal-content {
  width: 100%;
  max-width: 100%;
}
.modal-body {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  padding: .75rem;
}
.modal-header {
  padding: .5rem .75rem;
}


.comparativa-boxes {
    display: flex;
    flex-wrap: wrap;
}
.box-ind {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    text-align: center;
}
.box-ind .big {
    font-size: 1.4em;
    margin-top: 0.3em;
}
.comparativa-summary {
    display: flex;
    flex-wrap: wrap;
}
.left-indicators {
    flex: 0 0 auto;
    margin-right: 1rem;
}
.right-resumen {
    flex: 1 1 auto;
    overflow-wrap: break-word;
    max-width: 100%;
}
.right-resumen p {
    margin: 0;
}
