body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
}

:root {
    --green: rgba(0, 128, 0, 0.725);
    --yellow: rgba(255, 255, 0, 0.816);
    --red: rgba(255, 0, 0, 0.771);
    --blue: rgba(0, 0, 255, 0.682);
}
.cell.green, .text.green { background-color: var(--green); }
.cell.yellow, .text.yellow { background-color: var(--yellow); }
.cell.red, .text.red { background-color: var(--red); }
.cell.blue, .text.blue { background-color: var(--blue); }

.container {
	width: 100%;
	max-width: 850px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
}
.section-title{
	background-color: gray;
	color: white;
	margin-top: 5px;
    padding-top: 2px;
	padding-left: 5px;
    padding-right: 5px;
}
h1 {
	font-size: 17px;
	margin: 5px 0;
}
h2 {
	margin: 0%;
	font-size: 19px;
}
table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
}
th, td {
	border: 1px solid #ccc;
	padding: 6px;
	text-align: left;
	font-size: 0.85em;
}
.text-zone {
	font-size: 14px;
    display: inline-block; /* Permite que el span sea tratado como un bloque inline */
    width: 100%; /* Ocupa el ancho máximo del contenedor */
    border-bottom: 1px solid #000 !important; /* Subrayado */
    min-height: 1em; /* Asegura que tenga altura incluso vacío */
}

.section {
	display: flex;
	justify-content: space-between;
}
.column {
	width: 48%;
}
.colored-row {
	background-color: #D9F1D8;
}
.warning-row {
	background-color: #FBE5D6;
}
.critical-row {
	background-color: #F9D6D5;
}
.footer {
	text-align: center;
	font-size: 0.8em;
	margin-top: 20px;
	color: #777;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-row {
    display: flex; /* Flexbox para alinear los elementos en fila */
    align-items: center; /* Alinea verticalmente los elementos */
}

.info-row strong {
    flex: 0 0 auto; /* El título ocupa solo el espacio necesario */
    margin-right: 10px; /* Espaciado entre el título y el subrayado */
	font-size: 14px !important;
	font-weight: normal;
	margin-top: 5px;
}

.info-row span {
    flex: 1; /* Ocupa todo el espacio restante */
    border-bottom: 1px solid #000; /* Línea subrayada */
    min-height: 1em; /* Asegura una altura visible aunque esté vacío */
}

.container-colors {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.row {
    display: flex;
	height: 20px;
}

.checkboxs{
	flex-grow: 1;
}

.cell {
    width: 	20px;
}
.text {
    display: flex;
    align-items: center;
    justify-content: left;
    background-color: white;
    width: auto;
    flex-grow: 1; /* El texto ocupa el espacio disponible */
	padding-left: 5px;
	font-size: 13px;
}
.info-cell{
	width: 3rem;
	border: black 1px solid;
	text-align: center;
	font-size: 13px;
}
.container-colors .row{
	font-weight: bold;
}

.dynamicTextarea {
    width: 100%;
    min-height: 20px; /* Ajusta esto al alto inicial deseado */
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    outline: none;
    overflow: hidden;
    text-decoration: underline; /* Subrayar el texto */
	max-height: 190px;
}

.img-container {
	display: flex;
	align-items: center;
	justify-content: center; /* Center horizontally */
	width: 120px !important;
}

.img-container img {
	max-width: 100px;
	height: auto;
	object-fit: contain;
}

.column-img{
	width: 115px !important;
}

.inputZone{
	border: 1px solid #ccc;
	flex-grow: 1;
}

select{
	border: none;
}

select:disabled option {
	color: black !important;
	opacity: 1 !important;
}

input[type="checkbox"]:disabled:checked {
	color: black, white !important;
	opacity: 1 !important;
}
input:disabled, textarea:disabled, select:disabled {
	color: black !important;
	opacity: 1 !important;
}

input[type="checkbox"]:disabled:checked::before {
	content: '✔';
	color: black;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
}

/* fin */

@page {
    margin: 0; /* Remove default margins */
}

@media print {
	*{
		-webkit-print-color-adjust: exact; /* Ajusta los colores para impresión en navegadores basados en WebKit */
        print-color-adjust: exact; /* Compatibilidad general */
	}
	body {
		margin: 0;
	}
	.container {
		width: 100%;
		padding: 10px;
	}
	table {
		font-size: 0.75em;
	}
    .title-section {
        background-color: gray !important; /* Asegura que el fondo se aplique */
        color: white !important;
    }
    #clear-signature, .floating-btn, .floating-btn-pdf {
        display: none !important; /* Hide the title and save button */
    }
    @page {
        margin: 0; /* Remove default margins */
    }
    .signature-pad, .dynamicTextarea {
        border: none !important;
    }
}

@media (max-width: 1024px) {
	body {
		overflow-x: auto;
	}
	.container {
		width: 100%;
		padding: 10px;
	}
}

.floating-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background-color: rgba(34, 212, 34, 0.671);
	color: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	font-size: 24px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
  }
  
  .floating-btn:hover {
	background-color: rgb(34, 212, 34);
  }
  
/* Estilo básico para el toast */
.toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #333;
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Estado visible del toast */
.toast.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Estado oculto */
.toast.hidden {
	display: none;
}
  
.firmas {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature-pad {
    border: 1px solid #000;
    border-radius: 5px;
    width: 100%;
    height: auto;
    margin-bottom: 10px; /* Add space between the signature pad and the buttons */
}

#clear-signature {
    margin-bottom: 10px; /* Add space between the button and the title */
}

.floating-btn-pdf {
	position: fixed;
	bottom: 90px; /* Adjusted to be above the save button */
	right: 20px;
	width: 60px;
	height: 60px;
	background-color: rgba(34, 34, 212, 0.671);
	color: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	font-size: 24px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

.floating-btn-pdf:hover {
	background-color: rgb(34, 34, 212);
}

input, textarea{
	background: transparent;
}

#loading-spinner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-left-color: #000;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
