/*
 * Stili del rapportino di manutenzione (index.php).
 *
 * Il rosso #ED1D23 e' il colore aziendale, usato per intestazioni di sezione e
 * pulsanti. Le classi tdproduct/tdproduct2 impaginano l'elenco degli impianti
 * su due colonne, signature-container i riquadri di firma, spinner e loader
 * la rotella di attesa mostrata anche dalla pagina senza idfs.
 */

body {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
}

.trtitle td {
    font-size: 18px;
    font-weight: bold;
}

.tdtitle {
    background-color: #ED1D23;
    color: white;
}

td {
    font-size: 16px;
    padding: 6px;
    line-height: 24px;
    font-family: Arial, Helvetica, sans-serif;
}

.tdproduct {
 
    margin-bottom: 5px;
    width: 34%;
    margin-right: 5px;
}

.tdproduct2 {
    
    margin-bottom: 5px;
    width: 14%;
    margin-right: 5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

#signature-container {
    border: 0px solid #000;
    width: 100%;
    height: 120px;
    margin-top: 12px;
    position: relative;
    touch-action: none;
}

#signature {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #fff;
    cursor: crosshair;
}

        #signature-container2 {
    border: 0px solid #000;
    width: 100%;
    height: 120px;
    margin-top: 12px;
    position: relative;
    touch-action: none;
}

#signature2 {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #fff;
    cursor: crosshair;
}

#controls,
#controls2 {
    top: 5px;
    position: absolute;
    right: 10px;
}

#result {
    margin-top: 10px;
    word-break: break-all;
    max-width: 500px;
    font-size: 12px;
    background: #f7f7f7;
    padding: 8px;
    border: 1px solid #ddd;
}

.btn-primary, .swal2-confirm.swal2-styled, .swal2-cancel.swal2-styled {
    padding: 8px 16px;
    background-color: #ED1D23;
    border: 1px solid #ED1D23;
    color: white;
    font-size: 16px;
    border-radius: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    color: #ED1D23;
    background-color: white;
}

.btn-secondary {
    padding: 8px 16px;
    color: #ED1D23;
    background-color: white;
    border: 1px solid white;
    font-size: 16px;
    border-radius: 16px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #ED1D23;
    color: white;
}

.firmaimg {
    margin-top: 12px;
    display: block;
    width: 72%;
    right: 0px;
    top: -42px;
}

header {
    background-color: #ED1D23;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0px;
    padding: 8px;
    align-items: center;
}

a {
    text-decoration: none;
    color: #ED1D23;
}

.spinner {
    position: absolute;
    background-color: #ffffffde;
    top: 0px;
    left: 0px;
    display: block;
    width: 100%;
    height: 100%;
}

.loader {
    margin: 32% auto;
    width: 92px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}

.loader::before {
    border-color: #ED1D23 #0000;
    animation: inherit;
    animation-duration: .5s;
    animation-direction: reverse;
}

.loader::after {
    margin: 8px;
}

@keyframes l16 {
    100% {
        transform: rotate(1turn)
    }
}
