﻿/*
Filter Wrapper
*/
.inputsTable {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin-bottom: 30px;
    overflow: hidden;
    vertical-align: middle;
    flex-wrap: wrap;
}

.inputsTable label {
    text-align: left;
    font-size: 10px;
    font-family: "Roboto Serif", sans-serif;
    letter-spacing: 0px;
    color: #6A6A6A;
    margin-top: 3px;
    margin-left: 3px;
}

.inputsTable p {
    margin-top: unset;
    margin-bottom: unset;
    text-align: left;
    font-size: 10px;
    font-family: "Roboto Serif", sans-serif;
    letter-spacing: 0px;
    color: #6A6A6A;
}

.inputsTable .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style per le tabelle */
.table {
    width: 100% !important;
    overflow-x: hidden !important;
}

.table > thead {
    background: var(--secondary) 0% 0% no-repeat padding-box;
    background: #DFFCFE 0% 0% no-repeat padding-box;
    border-radius: 6px;
}


.table > :not(:last-child) > :last-child > * {
    text-align: left;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 19px;
    font-family: 'Roboto Serif',sans-serif;
    letter-spacing: 0px;
    color: #2BABB0;
    border-color: transparent;
}

.table tbody > tr {
    height: 59px;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 19px;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0px;
    color: #6A6A6A;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    font-weight: 400;
}

body.home .table > :not(caption) > * > * {
    border-bottom-width: 1px !important;
}


/* icona calendario e filtri in tabella */
.calendarIcon {
    width: 44px;
    height: 44px;
}

.formControlDate {
    background: #FBFBFB;
    border: 1px solid #707070;
    border-radius: 10px;
    padding-left: 14px;
    height: 38px;
    letter-spacing: 0px;

    font-size: 1rem;
    font-weight: 400;
    color: #353535;
    font-family: 'Roboto Serif', serif;
    font-size: 10px;
}

.formControlDate:is(.hasDatepicker){
    outline:none;
}

.formControlDate:is(.disabled) {
    cursor: not-allowed !important;
}

.formControlDate::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #6A6A6A;
}

.formControlDate::-webkit-inner-spin-button,
.formControlDate::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.filterRole .form-check {
    border-right: 1px solid #ccc;
    padding-inline: 18px;
    margin-inline: 18px;
}

.filterRoleCheck {
    position: relative;
    width: 16px;
    height: 16px;
}

.filterRoleCheck:checked {
    background: #2BABB0;
    border-color: #2BABB0;
}

.filterRoleCheck:checked::before {
    content: "";
    position: absolute;
    border: 1px solid #2BABB0;
    width: 22px;
    height: 22px;
    left: -4px;
    top: -4px;
}

.iconuserTable {
    width: 79px;
    height: 79px;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
}

.badge {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    display: block !important;
}

.badgeSuccess {
    background: #89B02B;
}

.badgeDanger {
    background: #C9864C;
}

/* 
    Buttons for details in table
*/

.btnDetailsTable {
    text-decoration: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    text-align: center;
}

.btnDetailsTable > img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.btnDetailsTable > span {
    text-align: left;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 19px;
    font-family: "Montserrat",sans-serif;
    letter-spacing: 0px;
    color: #2BABB0;
    text-transform: uppercase;
    text-wrap:nowrap;
}


/* icona di riserca ed input ricerca*/
.searchIcon {
    position: relative;
    right: 0;
    top: 0;
}

input[type="search"] {
    border: 1px solid #707070;
    border-radius: 5px;
    font-style: normal;
    line-height: 15px;
    letter-spacing: 0px;
    padding: 11px 15px;
    font-weight: 400;
    color: #353535;
    font-family: 'Roboto Serif', serif;
    font-size: 10px;
    height: 25px;
    background: #f2f2f2;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none !important;
}

/* bottone dei download */
.btnDownload {
    border-radius: 50%;
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 19px;

    background-color: #0089C1;
    border-color: #4385A7;
    border: solid 1px #4385A7;
    box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.25), 1px 1px 2px 0px rgba(0,0,0,0.20), inset -2px -2px 4px 0px rgba(0,0,0,0.25), 2px 2px 4px 0px rgba(242,242,242,0.25);
    font-size: 12px;
}

.btnDownload > img {
    width: 38px;
    height: 38px;
}

.btnDownload:is(.disabled) {
    cursor: not-allowed !important;
}

/* wrapper table */
#tablePresenze_wrapper,
#tableAnagrafica_wrapper,
#tableLeadsVivian_wrapper,
#tableLeadsGaia_wrapper,
#tableLeadsAll_wrapper {
    position: relative;
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

#tableAccessiNegati_wrapper {
    position: relative;
    height: 525px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* overflow stlying */
#tablePresenze_wrapper::-webkit-scrollbar-track,
#tableAnagrafica_wrapper::-webkit-scrollbar-track,
#tableLeadsVivian_wrapper::-webkit-scrollbar-track,
#tableLeadsGaia_wrapper::-webkit-scrollbar-track,
#tableLeadsAll_wrapper::-webkit-scrollbar-track,
#tableAccessiNegati_wrapper::-webkit-scrollbar-track {
    padding: calc(2/720 * 100vw) 0;
}

#tablePresenze_wrapper::-webkit-scrollbar,
#tableAnagrafica_wrapper::-webkit-scrollbar,
#tableLeadsVivian_wrapper::-webkit-scrollbar,
#tableLeadsGaia_wrapper::-webkit-scrollbar,
#tableLeadsAll_wrapper::-webkit-scrollbar,
#tableAccessiNegati_wrapper::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
}

#tablePresenze_wrapper::-webkit-scrollbar-thumb,
#tableAnagrafica_wrapper::-webkit-scrollbar-thumb,
#tableLeadsVivian_wrapper::-webkit-scrollbar-thumb,
#tableLeadsGaia_wrapper::-webkit-scrollbar-thumb,
#tableLeadsAll_wrapper::-webkit-scrollbar-thumb,
#tableAccessiNegati_wrapper::-webkit-scrollbar-thumb {
    width: 5px;
    border-radius: var(--border-radius-box);
    background-color: transparent;
}


/* media queries for laptop */
@media only screen and (min-width: 1370px) and (max-width: 1605px) {
    .boxTablePresenze {
        height: 500px !important;
    }

    #tablePresenze_wrapper,
    #tableAccessiNegati_wrapper {
        height: 300px;
    }

    .boxtableAnagrafica {
        height: 500px;
    }

    #tableAnagrafica_wrapper {
        height: 400px;
    }

    body:not(.leadPage) #tableLeadsVivian_wrapper {
        height: 250px;
    }

    body:not(.leadPage) #tableLeadsGaia_wrapper {
        height: 200px;
    }

    #tableLeadsGaia_wrapper,
    #tableLeadsAll_wrapper,
    #tableLeadsVivian_wrapper {
        height: 300px;
    }


}

/* Style per le tabelle */
.table {
    width: 100% !important;
    overflow-x: hidden !important;
}

.table > thead {
    background: var(--secondary) 0% 0% no-repeat padding-box;
    background: #DFFCFE 0% 0% no-repeat padding-box;
    border-radius: 6px;
}

.table tbody > tr {
    height: 59px;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 19px;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0px;
    color: #6A6A6A;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    font-weight: 400;
}

body.home .table > :not(caption) > * > * {
    border-bottom-width: 1px !important;
}


/* icona calendario e filtri in tabella */
.calendarIcon {
    width: 44px;
    height: 44px;
}

.formControlDate:is(.hasDatepicker){
    outline:none;
}

.formControlDate:is(.disabled) {
    cursor: not-allowed !important;
}

.formControlDate::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #6A6A6A;
}

.formControlDate::-webkit-inner-spin-button,
.formControlDate::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.filterRole .form-check {
    border-right: 1px solid #ccc;
    padding-inline: 18px;
    margin-inline: 18px;
}

.filterRole .form-check:last-child {
    border-right: none !important;
}

.filterRoleCheck {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #2BABB0;
}

.filterRoleCheck:checked {
    background: #2BABB0;
    border-color: #2BABB0;
}

.filterRoleCheck:checked::before {
    content: "";
    position: absolute;
    border: 1px solid #2BABB0;
    width: 22px;
    height: 22px;
    left: -4px;
    top: -4px;
}

.iconuserTable {
    width: 79px;
    height: 79px;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
}

.badge {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    display: block !important;
}

.badgeSuccess {
    background: #89B02B;
}

.badgeDanger {
    background: #C9864C;
}

/* 
    Buttons for details in table
*/

.btnDetailsTable {
    text-decoration: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    text-align: center;
}

.btnDetailsTable > img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.btnDetailsTable > span {
    text-align: left;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 19px;
    font-family: "Roboto Serif",sans-serif;
    letter-spacing: 0px;
    color: #2BABB0;
    text-transform: uppercase;
    text-wrap:nowrap;
}


/* icona di riserca ed input ricerca*/
.searchIcon {
    position: relative;
    right: 0;
    top: 0;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none !important;
}

.btnDownload:is(.disabled) {
    cursor: not-allowed !important;
}

/* wrapper table */
#tablePresenze_wrapper,
#tableAnagrafica_wrapper,
#tableLeadsVivian_wrapper,
#tableLeadsGaia_wrapper,
#tableLeadsAll_wrapper {
    position: relative;
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

#tableAccessiNegati_wrapper {
    position: relative;
    height: 525px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* overflow stlying */
#tablePresenze_wrapper::-webkit-scrollbar-track,
#tableAnagrafica_wrapper::-webkit-scrollbar-track,
#tableLeadsVivian_wrapper::-webkit-scrollbar-track,
#tableLeadsGaia_wrapper::-webkit-scrollbar-track,
#tableLeadsAll_wrapper::-webkit-scrollbar-track,
#tableAccessiNegati_wrapper::-webkit-scrollbar-track {
    padding: calc(2/720 * 100vw) 0;
}

#tablePresenze_wrapper::-webkit-scrollbar,
#tableAnagrafica_wrapper::-webkit-scrollbar,
#tableLeadsVivian_wrapper::-webkit-scrollbar,
#tableLeadsGaia_wrapper::-webkit-scrollbar,
#tableLeadsAll_wrapper::-webkit-scrollbar,
#tableAccessiNegati_wrapper::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
}

#tablePresenze_wrapper::-webkit-scrollbar-thumb,
#tableAnagrafica_wrapper::-webkit-scrollbar-thumb,
#tableLeadsVivian_wrapper::-webkit-scrollbar-thumb,
#tableLeadsGaia_wrapper::-webkit-scrollbar-thumb,
#tableLeadsAll_wrapper::-webkit-scrollbar-thumb,
#tableAccessiNegati_wrapper::-webkit-scrollbar-thumb {
    width: 5px;
    border-radius: var(--border-radius-box);
    background-color: transparent;
}


/* media queries for laptop */
@media only screen and (min-width: 1370px) and (max-width: 1605px) {
    .boxTablePresenze {
        height: 500px !important;
    }

    #tablePresenze_wrapper,
    #tableAccessiNegati_wrapper {
        height: 300px;
    }

    .boxtableAnagrafica {
        height: 500px;
    }

    #tableAnagrafica_wrapper {
        height: 400px;
    }

    body:not(.leadPage) #tableLeadsVivian_wrapper {
        height: 250px;
    }

    body:not(.leadPage) #tableLeadsGaia_wrapper {
        height: 200px;
    }

    #tableLeadsGaia_wrapper,
    #tableLeadsAll_wrapper,
    #tableLeadsVivian_wrapper {
        height: 300px;
    }


}

/* ===== DATATABLES — STILI UNIFICATI ===== */

.dataTables_length label,
.dataTables_filter label {
    font-size: 13px !important;
    color: #6A6A6A;
    font-family: 'Roboto Serif', serif;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dataTables_length select,
.dataTables_filter input {
    font-size: 13px !important;
    font-family: 'Roboto Serif', serif;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 30px;
}

.dataTables_info {
    font-size: 12px !important;
    color: #6A6A6A;
    font-family: 'Roboto Serif', serif;
    padding-top: 8px !important;
}

.dataTables_paginate {
    padding-top: 8px !important;
}

.dataTables_paginate .paginate_button {
    display: inline-block !important;
    padding: 5px 12px !important;
    margin: 0 2px !important;
    border-radius: 4px !important;
    border: 1px solid #4385A7 !important;
    color: #4385A7 !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-family: 'Roboto Serif', serif !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    transition: background-color 0.15s, color 0.15s !important;
    box-shadow: none !important;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #4385A7 !important;
    color: #fff !important;
    border-color: #4385A7 !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background-color: #4385A7 !important;
    color: #fff !important;
    border-color: #4385A7 !important;
    font-weight: 600 !important;
}

.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.45 !important;
    cursor: default !important;
    background: transparent !important;
    color: #aaa !important;
    border-color: #ccc !important;
}
