/*** generics ***/
:root {
    --primary: rgba(38, 144, 63);
}

.col_primary{
    color: var(--primary);
}

.bg_primary{
    background-color: var(--primary);
}

.cursor-pointer{
    cursor: pointer;
}

.text-right{
    text-align: right;
}

body{
    background-color: #F4F6F9;
}

#app{
    min-height: calc(100vh - 80px);
}

#app main{
    padding-top: 70px;
    /*min-height: calc(100vh - 56px);*/
}

.recap_settimanale{
    font-weight: 600;
    color: var(--primary) !important;
}

.tooltip > .tooltip-inner {
    background-color: var(--primary);
    font-size: 11px;
    opacity: 1;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.cal_sab_dom .fc-toolbar-title{
    background: #dedede;
    padding: 0.2rem 0.4rem;
}

@media (min-width: 1800px){
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: calc(100% - 2rem);
        padding: 0;
    }
}

.btn-ico{
    padding: .375rem .25rem;
}

.btn-app {
    border-radius: 3px;
    background-color: #f8f9fa;
    border: 1px solid var(--primary);
    font-size: 14px;
    line-height: 28px;
    height: 40px;
    min-width: 80px;
    padding: 5px 12px;
    position: relative;
    text-align: center;
}

.btn-app:hover,
.btn-app.active{
    background-color: var(--primary);
    color: white;
}


.container_btn_fixed.fixed {
    display: block;
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 99;
}

.container_turni_sovrapposti.fixed{
    display: block;
    position: fixed;
    top: 80px;
    left: 15px;
    z-index: 89;
}

.scroll_fixed.fixed{
    display: block;
    position: fixed;
    top: 56px;
    right: 15px;
    z-index: 99;
    left: 15px;
    background: #F4F6F9;
}

.scroll_fixed.fixed h1{
    font-size: 2rem;
}

.scroll_fixed.fixed .row.pb-3{
    padding-bottom: 0!important;
}

.scroll_padding_fixed.pt{
    padding-top: 350px;
}

.ui-checkboxradio-label,
.ui-checkboxradio-label.ui-state-active:hover{
    padding: 0.2rem 0.4rem !important;
    font-size: 12px;
    background: transparent;
    border: 1px solid var(--primary);
    margin-bottom: 0.2rem;
    color: var(--bs-body-color);
}

.ui-checkboxradio-label:hover,
.ui-checkboxradio-label.ui-state-active{
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.accordion-button{
    border: 1px solid var(--primary);
}

.accordion-button:focus{
    z-index: 3;
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--primary);
}

.container_turni_sovrapposti .accordion-button:focus{
    z-index: 3;
    border-color: rgb(220,53,69);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(220,53,69);
}

.accordion-button:not(.collapsed) {
    color:var(--bs-body-color);
    background-color: #26903f42;
    }

.card {
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
}

.card-header{
    background: transparent;
}

.page-item.active .page-link{
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link{
    color: var(--primary);
}

select.form-control{
    -webkit-appearance: menulist;
}

/*
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
}
*/

/*** login ***/
.login-box{
    width: 360px;
}

.login-box .card {
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
}

.login-box .input-group .input-group-text{
    background-color: transparent;
    border-bottom-right-radius: .25rem;
    border-left: 0;
    border-top-right-radius: .25rem;
    color: #777;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    padding: 0.65rem 0.75rem;
}

.login-box .input-group .form-control{
    border-right: 0;
}

.login-box .form-control{
    background-color: #fff;
}

.login-box .input-group-append{
    margin-left: -5px!important;
}

/*** Calendario ***/
.fc .fc-button-primary {
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active, .fc .fc-button-primary:hover {
    color: #fff;
    background-color: #016002FF !important;
    border-color: #016002FF !important;
}

.fc-col-header-cell-cushion,
.fc-list-day-text,
.fc-list-day-side-text,
.fc .fc-timeline-slot-cushion{
    color: var(--primary) !important;
}

.fc .fc-toolbar.fc-header-toolbar{
    margin-bottom: 0;
}

.fc-header-title h2 {
   color: #666;
   font-size: 15px;
   line-height: 1.6em;
   margin-left: 10px;
}

.fc-header-right {
    padding-right: 10px;
}

.fc-header-left {
    padding-left: 10px;
}

.fc-widget-header {
    background: #fafafa;
}

.fc-grid {
    border: 0;
    width: 100%;
}

.fc-widget-header:first-of-type,
.fc-widget-content:first-of-type {
    border-left: 0;
    border-right: 0;
}

.fc-widget-header:last-of-type,
.fc-widget-content:last-of-type {
    border-right: 0;
}

.fc-toolbar {
    margin: 0;
    padding: 1rem;
}

.fc-day-number {
    font-size: 15px;
    font-weight: 300;
    padding-right: 10px;
}

.dashboard_calendar_container .fc-toolbar{
    padding: 0;
}

.dashboard_calendar_container .fc-toolbar-title{
    font-size: 1.3rem;
}

.dashboard_calendar_container .fc{
    margin-bottom: 20px;
}

.fc-media-print .fc-timegrid-slots,
.fc-media-print .fc-timegrid-axis-chunk,
.fc-media-print .fc-timeline-slots,
.fc-media-print .fc-non-business,
.fc-media-print .fc-bg-event {
    display: block !important;
}

.fc-timeline-event .fc-event-main {
    font-size: 11px;
}

.dashboard_calendario_stampa .fc-toolbar-title {
    font-size: 13px;
}

.dashboard_calendario_stampa .fc table{
    font-size: 12px;
}

.dashboard_calendario_stampa #calendario_report_stampa_2 .fc-scrollgrid-section-header,
.dashboard_calendario_stampa #calendario_report_stampa_3 .fc-scrollgrid-section-header,
.dashboard_calendario_stampa #calendario_report_stampa_4 .fc-scrollgrid-section-header,
.dashboard_calendario_stampa #calendario_report_stampa_5 .fc-scrollgrid-section-header,
.dashboard_calendario_stampa #calendario_report_stampa_6 .fc-scrollgrid-section-header,
.dashboard_calendario_stampa #calendario_report_stampa_7 .fc-scrollgrid-section-header{
    display: none !important;
}

.dashboard_calendario_stampa .fc {
    margin-bottom: 10px;
}

.nav-link:focus, .nav-link:hover, .nav-link {
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: var(--primary);
    border-color: unset;
}



/*** validazione ***/
.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(.375em + .1875rem);
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/*** responsive ***/
@media (min-width: 768px){
    .navbar-expand-md #main_menu.navbar-nav {
        flex-direction: row;
        display: inline-flex;
        width: 100%;
        justify-content: end;
    }
}
@media (max-width: 768px){
    .navbar-expand-md #main_menu.navbar-nav{
        display: none;
    }
}



/*** stampa ***/

.only_print{
    display: none;
}

@media print{

    h1, .h1, .fc-toolbar-title{
        font-size: 1.5rem;
    }

    .col-xl-9 {
        flex: 0 0 auto;
        width: 100% !important;
    }


    .print_d_none,
    .fc-button{
        display: none !important;
    }

    .only_print{
        display: block;
    }

    /*@page{margin:0;size:auto}*/

}
/*
.fc-media-print,
.fc.fc-media-print .fc-view-harness,
.fc-media .fc-resource-timeline,
.fc-media-print .fc-scrollgrid,
.fc-media-print .fc-scrollgrid-sync-table {
    width: 100% !important;
}
*/
