/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 18-ott-2019, 13.26.52
    Author     : Saverio
*/

#login,#signup{
    width: 100%;
    padding: 0px 15px 15px 15px;
    line-height: 16px;
    color: #333333;
    font-size: 14px;
    background: #ffffff;
}
#login{
    float:left;
}
#signup{
    float:right;
}
h3{
    color:#365D98
}
form label{
    font-weight: bold;
}
form label, form input{
    display: block;
    margin-bottom: 5px;
    width: 100%
}
form input{
    border: solid 1px #666666;
    padding: 10px;
    border: solid 1px #BDC7D8;
    margin-bottom: 20px
}
.button {
    cursor: pointer;
}
.errorMsg{
    color: #cc0000;
    margin-bottom: 10px
}
.jumbotron{
    background-color: #003366;
    color: #ffffff;
    padding:20px;
    border-radius: 20px;
}
.btn-home{
    height: 200px;
    align-content: center;
}

@media screen and (max-device-width:640px), screen and (max-width:640px) {
    .menu-mobile {
        background-color: whitesmoke!important;
    }
}
.toggles label {
    margin-bottom: -8px;
}
.table td, .table th {
    border-bottom: 0px;
}

.form-control {
    border: 1px solid #5c6f82;
}

@media (min-width: 768px) {
    .modal .modal-dialog {
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (max-width: 600px) {
    .modal .modal-dialog {
        margin-left: auto;
        margin-right: auto;
        margin: 0px;
    }
}

.modal-content1 {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    -webkit-box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    outline: 0;
}

.modal-content2 {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    -webkit-box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    outline: 0;
}

.table{
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
}

a.disabled {
    pointer-events: none;
    color: #ccc;
}

/* Card istruttori compatte e responsive */
.istr-card {
    margin-bottom: 0.5rem !important;
}
.istr-card .card-body {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* Responsive search input spacing */
#searchIstr {
    margin-bottom: 1rem;
}

/* Badge spacing */
.istr-card .badge {
    margin-left: 0.5rem;
}

/* Flex utility for istruttori card actions */
.istr-card .d-flex.gap-2 {
    gap: 0.5rem;
}

@media (max-width: 600px) {
  .istr-card .card-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem !important;
  }
}

/* --- Stili personalizzati per la pagina ACSI --- */
.acsi-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-top: 2rem;
    background: #fff;
}
.acsi-icon {
    font-size: 2.5rem;
    color: #198754;
    margin-right: 0.5rem;
}
.acsi-info {
    font-size: 1rem;
    color: #555;
}
/* --- Fine stili personalizzati ACSI --- */

/* Card index styles for patenti section */
.card-index { 
    min-height: 320px; 
    margin-bottom: 2rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); 
}
.card-index .card-title { 
    font-size: 1.2rem; 
    font-weight: 600; 
}
.card-index .btn { 
    min-width: 120px; 
}
.card-index .fa, 
.card-index .fas { 
    font-size: 1.5em; 
    margin-right: 0.5em; 
}
.badge-sede { 
    font-size: 1em; 
    background: #0073e6; 
    color: #fff; 
}

/* Font Awesome font path fix */
@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
    src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
         url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
         url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
         url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for icon spacing in buttons */
.btn .fa,
.btn .fas {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Custom Select Box Styles */
.custom-select-container {
    position: relative;
    margin-bottom: 1rem;
}

.custom-select-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #17324D;
    font-weight: 600;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #17324D;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317324D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    border: 2px solid #E6E9F2;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-select:focus {
    border-color: #0073E6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 230, 0.25);
}

.custom-select:hover {
    border-color: #0073E6;
}

.custom-select option {
    padding: 0.75rem;
}

.custom-select option:first-child {
    color: #5C6F82;
    font-style: italic;
}

/* Card per visite mediche (new/edit/view) */
.card-visita {
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* --- Stili personalizzati estrazione_report.php --- */
.card-custom {
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 2rem;
}
.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.form-label {
    font-weight: 500;
}
/* --- Fine stili estrazione_report.php --- */

/* Fix: ensure floating labels don't overlap inputs in forms */

/* Scoped fix for patenti/date/edit.php to ensure floating labels don't overlap inputs */
.patenti-date-edit .form-group.label-floating label {
    display: block !important;
    position: static !important;
    margin-bottom: 0.5rem !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Small spacing tweak for inputs/selects inside label-floating groups on the specific page */
.patenti-date-edit .form-group.label-floating .form-control,
.patenti-date-edit .form-group.label-floating textarea,
.patenti-date-edit .form-group.label-floating .custom-select {
    margin-top: 0 !important;
}

