/**
 * Simulador de prestamo ICREF
 *
 * Estilos minimos sobre Clay CSS del tema corporativo: solo se define lo que
 * el tema no cubre (mensajes de error por campo, enlace de despliegue del
 * cuadro y alineacion de importes).
 */

.icref-simulador-prestamo .icref-field-error {
	color: #da1414;
	display: block;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	min-height: 0;
}

.icref-simulador-prestamo .icref-field-error:empty {
	display: none;
}

.icref-simulador-prestamo .form-control.is-invalid {
	border-color: #da1414;
}

/* liferay-ui:input-date se pinta dentro de un span en linea: se iguala al
   ancho del resto de campos del formulario. */

.icref-simulador-prestamo .icref-fecha .lfr-input-date {
	display: block;
}

.icref-simulador-prestamo .icref-fecha .form-group {
	margin-bottom: 0;
}

.icref-simulador-prestamo .icref-mensajes:empty {
	display: none;
}

.icref-simulador-prestamo .icref-resultados {
	margin-top: 2rem;
}

.icref-simulador-prestamo .icref-tabla-resumen th[scope='row'] {
	width: 40%;
}

.icref-simulador-prestamo .icref-tabla-resumen td,
.icref-simulador-prestamo .icref-tabla-cuadro .text-right {
	text-align: right;
}

.icref-simulador-prestamo .icref-toggle-cuadro {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 0.5rem;
	margin: 1rem 0;
	padding: 0;
	text-decoration: underline;
}

.icref-simulador-prestamo .icref-toggle-cuadro::after {
	border-left: 0.35rem solid transparent;
	border-right: 0.35rem solid transparent;
	border-top: 0.4rem solid currentColor;
	content: '';
	display: inline-block;
	transition: transform 0.2s ease-in-out;
}

.icref-simulador-prestamo .icref-toggle-cuadro[aria-expanded='true']::after {
	transform: rotate(180deg);
}

.icref-simulador-prestamo .icref-toggle-cuadro:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.icref-simulador-prestamo .icref-linea-car {
	font-style: italic;
}

.icref-simulador-prestamo .carm-action {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

@media (max-width: 575.98px) {
	.icref-simulador-prestamo .icref-tabla-cuadro {
		font-size: 0.875rem;
	}
}
