/* styles.css */

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 900;
    font-stretch: normal;
    font-display: swap;
    src: url(font.ttf) format('truetype');
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 300;

}
.hidden {
    display: none;
}



h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #2063a2;
}
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#spinner.hidden {
    display: none;
}

#spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 5px solid #aaa;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Form container */
.inspection-form {
    background-color: #d8f1f3;
    padding: 20px;
    border-radius: 5px;
}

/* Form group (labels & inputs) */
.form-group {
    margin-bottom: 10px;

}

/* Form labels */
/*.form-group label {*/
/*    font-weight: bold;*/
/*}*/
label {
    font-size: .8rem;
    font-weight: normal;
}
/* Form inputs & selects */
.form-control {
    background-color: #fff;
    border-color: #ddd;
}

/* Form buttons */
button {
    background-color: #fff;
    color: #16bfd2;
    border: 2px solid #16bfd2 !important;
    font-weight: bold;
    width: 100%;
    min-height: 40px;


}
.jGrowl-notification button {
    width: auto;
    min-height: auto;
    border: none !important;
}
button:hover {
    background-color: #16bfd2;
    color: #fff;
}
.list-group-item {
    background: #d8f1f3;
    border: 4px solid #fff !important;
    min-height: 40px;
    padding: 10px;
}

/* Field wrapper */
.field {
    border: 2px solid #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;

}

.container {
    padding: 10px;
}

.inspection-form {
    padding: 10px;
}


.version {
    position: fixed;
    bottom: 0;
    right: 0;
    opacity: 0.5;
}

.thumbnail {
    max-width: 360px;
    max-height: 240px;
}

#resultsContainer {
    font-size: 85%;
}

#qr-reader__header_message {
    color: #eee !important;
    background: none !important;
}
#lastUpdateTime {
    text-align: center;
}

.inspection_list li {
    list-style: none;
    margin: 6px 0;
}

.inspection_list .head {
    font-weight: 700;
}

#partialFormList, #partialFormList .li {
    list-style: none;
}
.partialitem {
    border: 2px solid #3fbfd2;
    padding: 1em;
    margin: 1em;

}

.partialitem .date {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #3fbfd2;
    font-weight: 700;
}

.inspectionbutton {
    border: 2px solid #3fbfd2;
    padding: 0.5em;
    margin: 0em;
    display: block;
    position: relative;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: #3fbfd2;
}

.inspectionbutton:hover {
    background-color: #3fbfd2;
    color: #fff;
    text-decoration: none;
}

.lote-badge {
    position: absolute;
    top: 5px;
    right: 5px;
}


#inspectionFormForm label[for^="foto"] {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: normal;
    line-height: 20px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    margin-bottom: 5px;
}
#inspectionFormForm label[for^="foto"]:hover {
    background-color: #f5f5f5;
    border-color: #aaa;
}

#inspectionFormForm input[type="number"] {
    margin-bottom: 5px;
}

#resultsContainer {
    background-color: #d8f1f3;
    padding: 20px;
    border-radius: 5px;
}
#resultsContainer .table td, #resultsContainer .table th {
    border-top-color: #fff;
}