/* Ajustes propios sobre SB Admin 2 */

/* DataTables compactas (formato almacén) */
table.dataTable tbody td {
  padding: 4px 8px;
  vertical-align: middle;
}

/* El buscador se ajusta al ancho de su columna en lugar de desbordarse */
div.dataTables_wrapper div.dataTables_filter label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

div.dataTables_wrapper div.dataTables_filter input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 220px;
}

.tabla-seleccionable tbody tr[data-id] {
  cursor: pointer;
}

table.dataTable tbody tr.selected,
table.dataTable.table-hover tbody tr.selected:hover {
  background-color: rgba(78, 115, 223, 0.15);
}

/* Ficha del panel derecho: campos de solo lectura */
.ficha input[readonly] {
  background-color: #fff;
}

.ficha.editable input[readonly] {
  cursor: pointer;
}

.ficha-vacia {
  min-height: 220px;
}

.resumen-numero {
  font-size: 1.5rem;
  font-weight: 700;
}

.selector-propietario {
  max-width: 260px;
}

.lista-permisos {
  max-height: 340px;
  overflow-y: auto;
}

.password-temporal {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

/* Movimientos y descuentos anulados: siguen en el historial, tachados */
tr.anulado td {
  color: #b7b9cc;
  text-decoration: line-through;
}

tr.anulado td:last-child {
  text-decoration: none;
}

.login-icono {
  font-size: 3rem;
}

/* Gastos anulados: siguen en la lista, tachados */
tr.gasto-anulado td {
  color: #b7b9cc;
  text-decoration: line-through;
}

/* Filas que abren su modal al hacer clic (gastos fijos) */
.fila-clic {
  cursor: pointer;
}

/* Reporte: los resultados (utilidad, lo que queda) con raya arriba */
tr.resultado td {
  border-top: 2px solid #d1d3e2;
}

/* Inicio: tarjetas que llevan a su vista */
a.tarjeta-liga {
  color: inherit;
  text-decoration: none;
}
a.tarjeta-liga:hover .card,
a.tarjeta-liga:focus .card {
  background-color: #f8f9fc;
}
