:root {
    --bs-border-color: #a7a7a7;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #006620;
}
header{
    background: #006620;
    color: #fff;
}
body {
    background-color: #fff;
}
footer {
    background: #004D18;
    color: #fff;
}

tbody, td, tfoot, th, thead, tr {
    vertical-align: middle;
}

a {
    color: #006620;
}
a:hover {
    color: #004D18;
}
.btn-primary {
    background: #006620;
    color: #fff;
    border: 1px solid #fff;
}
.btn-primary:hover {
    background: #fff;
    color: #006620;
    border: 1px solid #006620;
}
.btn-check:checked + .btn, .btn.active, .btn.show,
.btn:first-child:active, :not(.btn-check) + .btn:active {
    background:#006620;
}
.btn:focus-visible {
    color: #fff;
    background-color: #006620;
    box-shadow: 0 0 0 .25rem rgba(0,102,32,.25);
    border-color: #006620;
    outline: 0px;
}

/*** Header ***/
.navbar-brand {
    color: #fff;
}
.navbar-brand:hover {
    opacity: 0.6;
    color: #fff;
}
.headerlogo {
    max-width:50px;
}

.navbar-nav .nav-link {
    color: #fff;
    font-size: 1.2em;
    border-bottom: 1px solid transparent;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link{
    border-bottom: 1px solid #fff;
}

nav .btn {
    background: #006620;
    color:#fff;
    border: 1px solid #fff;
}
nav .btn:hover {
    background: #fff;
    color:#006620;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: #fff;
    background-color: #006620;
}

/*** Forms ***/
.form-row {
    margin-bottom: 20px
}
.form-select:focus,
.form-control:focus {
    border-color: #006620;
    box-shadow: 0 0 0 .25rem rgba(0,102,32,.25);
}
select option:checked,
select option:hover {
    box-shadow: 0 0 10px 100px #006620 inset;
}

select:focus > option:checked,
select:focus > option:hover{
    background: #006620;
    color: #fff;
}
input#registration_form_agreeTerms {
    margin-left: 5px;
}
.btn-outline-primary {
    margin: 20px 0;
    border-color:#004D18;
    color: #004D18
}
.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #004D18;
    border-color: #004D18;
}


/*** HOME **/

#registration-type-selection .card {
    height:100%;
}
.cards-container {
    margin: 20px 0;
    text-align: center;
}
.cards-container a.card {
    text-decoration: none;
    transition: 0.5s;
}
.cards-container a.card i{
    font-size: 30px;
}
.cards-container a.card:hover {
    border-color: #004D18;
    background-color: rgba(0,77,24,0.3) ;
}


/* Questionari */


/*form[name="answer"] > .form-group > div > label.required::after {*/
/*    content: " *";*/
/*}*/
form[name="answer"] > .form-group > div > label {
    font-weight: bold;
}
ul.custom-choice-list {
    list-style-type: none;
    padding-left: 0;
}
ul.custom-choice-list  li.custom-choice-item {
    padding: 5px 0
}
ul.custom-choice-list  li.custom-choice-item input.form-check-input {
    margin-top: 7px;
}
.form-check-input:checked {
    background-color: #006620;
    border-color: #006620
}
input.attribute-value-input {
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    padding: 3px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
input[type="text"].attribute-value-input {
    width: 500px;
}
ul.custom-choice-list li.custom-choice-item, div.choice-container {
    display: flex;
    align-items: baseline;
}
.custom-choice-item-attribute label {
    font-style: italic;
    padding-left: 10px;
}
.choice-container {
    padding: 5px 0;
}
input{
    margin-right: 5px;
}

datalist {
    display: flex;
    justify-content: space-between;
}

.custom-choice-item-attribute input.form-control {
    display: inline-block;
    width: inherit;
}
form[name="answer"] .choice-container label.required{
    font-weight: normal;
}

form[name="answer"] .btn {
    margin: 20px 0;
}
form[name="answer"] .btn.btn-primary:active,
form[name="answer"] .btn.btn-primary:focus,
form[name="answer"] .btn.btn-primary:link{
    background: #006620;
}


form[name="answer"] .btn.btn-light {
    border: 1px solid #006620;
}



/* Riepilogo */

.answer-item {
    border-bottom: 1px solid #ccc;
}
li.current-answer {
    color: #006620;
    font-weight: bold;
}

/* Area clienti */

.dashboard-section {
    border-color: #eee;
}

.dashboard-section.current-step {
    border-color: #006620;
    border-top: 3px solid #006620 !important;
    border-right: 3px solid #006620 !important;
    border-bottom: 3px solid #006620 !important;
    border-left: 3px solid #006620 !important;
    background: #eeee;
}


.customer-item .label,
.location-item .label {
    width: 50%;
    font-weight: bold;
}

.survey-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

table td .btn-outline-primary {
    margin:0;
}

/*** Pannello Admin (FrontEnd)***/

label[for="pscl_request_failed_document_errorMsg"]{
    font-weight:bold;
    margin-bottom: 10px;
}

@media(max-width:768px){
    input[type="text"].attribute-value-input {
        width: 250px;
    }

    .survey-item {
        flex-direction:column;
        gap:10px;
        align-items: flex-start;
    }
    .survey-item .survey-col {
        width:100%;
    }
    .survey-item .survey-col:before{
        content: attr(data-label);
        display:block;
        font-weight:bold;
    }

}