﻿
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Serif', serif;
    font-size: 10px;
}

html {
    height: 100%;
}

body {
    height: 100%;
    width: 100%;
    background-image: url('./images/bg4.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-size: cover;
    font-family: 'Roboto Serif', serif;
    font-size: 10px;
    overflow-x:hidden;
}

/*:root {
    --white-color: #fff;
    --blue-color: #4070f4;
    --grey-color: #707070;
    --grey-color-light: #aaa;
    --background-color: #F6F6F6;
    --border-radius-sidebar: 70px;
    --box-background: #2BABB0;
    --bg-color: #2BABB0;
    --hover-menu-color: #2BABB0;
    --navbar-item: #6A6A6A;
    --border-radius-box: 17px;
    --white-color: #FBFBFB;
}*/

/*a:not(.button, #forgot-password, .breadcrumb-item a):hover {
    color: transparent;
}*/

/* breadcumbs stylesheet */
.breadcrumb-item a {
    text-decoration: none;
    color: #6A6A6A;
}

h3 {
    font-family: 'Roboto Serif', serif;
    font-size: 16px;
}

.boxDashboard {
    width: 289px;
    height: 170px;
    margin-right: 50px;
    background: var(--white-color) 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 6px #9FB1AB;
    border-radius: var(--border-radius-box);
    padding: 0;
}

.boxDashboard:last-child {
    margin-right: 0px !important;
}

.boxDashboard__content {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.boxDashboard__content h3 {
    text-align: left;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 19px;
    letter-spacing: 0px;
    color: #2BABB0;
    font-family: 'Roboto Serif', serif;
    text-transform: uppercase;
}

.boxDashboard__info {
    position: relative;
    width: fit-content;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boxDashboard__info h4 {
    font-weight: 500;
    font-size: 40px;
    line-height: 49px;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0px;
    color: #2BABB0;
    text-transform: uppercase;
    margin-right: 10px;
}

.boxDashboard__content svg {
    height: 65px;
    width: 65px;
}


.boxDashboard.bgBlue svg rect,
.boxDashboard.bgBlue svg path {
    fill: #ffffff;
}

.boxDashboard.bgBlue .boxDashboard__info h4,
.boxDashboard.bgBlue .boxDashboard__content h3 {
    color: var(--white-color);
}

.boxTabella {
    position: relative;
    overflow: hidden;
}

body.settings {
    background: transparent !important;
    box-shadow: none !important;
}

.button {
    width: fit-content;
    height: 40px;

    text-decoration: none;
    border-radius: 10px;
    padding: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: #4385A7 !important;
    border-color: #4385A7 !important;
    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;
}

.button img {
    margin-right: 0px;
}

.button span {
    text-transform: uppercase;
    letter-spacing: 0;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 19px;
    font-family: "Roboto Serif", sans-serif;
    font-size: 12px;
    padding: 9px;
    color: #ffff !important;
}

.button:hover {
    color: #ffffff !important;
}

.badge {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    display: block !important;
}

.badgeSuccess {
    background: #89B02B;
}

.badgeDanger {
    background: #C9864C;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

.entryTitleAccount {
    font: normal normal normal 20px/24px Montserrat;
    letter-spacing: 0px;
    color: #6A6A6A;
    text-transform: uppercase;
    margin-top: 50px;
}

input[type="date"]:hover:after {
    color: #bf1400;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
}

input[type="date"]::-webkit-inner-spin-button {
    z-index: 1;
}

input[type="date"]::-webkit-clear-button {
    z-index: 1;
}

.btnForInputDate {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    position: relative;
    top: -8px;
    right: 0px;
}

/* INPUT DENTRO I MODALI */
#ModalCreazioneUtente .boxInput > input[type="text"],
#ModalCreazioneUtente .boxInput > input[type="tel"],
#ModalCreazioneUtente .boxInput > input[type="email"],
#ModalDettaglioUtente .boxInput > input[type="text"],
#ModalDettaglioUtente .boxInput > input[type="tel"],
#ModalDettaglioUtente .boxInput > input[type="email"],
#ModalDettaglioPresenza .boxInput > input[type="text"],
#ModalDettaglioPresenza .boxInput > input[type="tel"],
#ModalDettaglioPresenza .boxInput > input[type="email"],
#ModalDettaglioAccessoNegato .boxInput > input[type="text"],
#ModalDettaglioAccessoNegato .boxInput > input[type="tel"],
#ModalDettaglioAccessoNegato .boxInput > input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    font-family: "Roboto Serif", sans-serif;
    color: #6A6A6A;
    background-color: transparent;
    margin-bottom: 15px;
    border: solid 1px #6A6A6A;
    border-radius: 5px;
}

#ModalDettaglioUtente .btnUpdate,
#ModalDettaglioPresenza .btnUpdate {
    position: absolute;
    right: 25px;
    bottom: 34px;
    width: 85px;
    height: 85px;
    background: #DFFCFE 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 16px #00000029;
    border-radius: 112px;
    border: none;
    outline: none;
}

#tableAnagrafica_filter,
#tableLeadsAll_filter,
#tableAccessiNegati_filter,
#tablePresenze_filter {
    display: none;
}


/** Inserisco la dropdown per la ricerca*/
.dropbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #3e8e41;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    background-color: #f6f6f6;
    min-width: 230px;
    overflow: auto;
    z-index: 1;
}

.dropdown-content a {
    color: black !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    color: var(--hover-menu-color) !important;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

/** defaul stylesheet for modal */
.modal {
    opacity: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-backdrop {
    background-color: transparent;
    z-index: 0;
    height: unset !important;
    width: unset !important;
}

.modal-backdrop.show {
    opacity: 0;
}

body:not(.home).modal-open {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body:is(.home).modal-open {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    z-index: 9999;
    position: fixed;
}

body.modal-open .sidebar,
body.modal-open .navbar,
body.modal-open .sidebar ~ .home-section {
    z-index: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}


.modal-content {
    border: none !important;
    backdrop-filter: blur(8px);
    background-image: linear-gradient(to bottom right, rgba(242, 242, 242, 0.95), rgba(242, 242, 242, 0.97), rgba(242, 242, 242, 1));
    box-shadow: inset 0 0 50px 10px rgba(255, 255, 255, 0.3), inset 0 0 20px 5px rgba(255, 255, 255, 0.4), 4px 2px 16px 1px rgba(0,0,0,0.4);
    border-radius: 10px;
    font-family: "Roboto Serif", sans-serif;
    overflow: hidden;
}

.modal-content .modal-title {
    font-family: "Roboto Serif", sans-serif;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-content .modal-header,
.modal-content .modal-body,
.modal-content .modal-footer,
.modal-content label,
.modal-content input,
.modal-content select,
.modal-content textarea,
.modal-content button {
    font-family: "Roboto Serif", sans-serif;
}

.modal-content .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-content .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#modalInsertAssistenza .modal-header,
#modalAssistenzaDetail .modal-header {
    padding: 18px 24px;
}

#modalInsertAssistenza .modal-body,
#modalAssistenzaDetail .modal-body {
    padding: 20px 24px;
}

#modalInsertAssistenza .modal-footer,
#modalAssistenzaDetail .modal-footer {
    padding: 14px 24px;
}

.dataTables_empty {
    top: 10px;
    position: relative;
    font-size: 10px;
}

.form-check-input:focus {
    box-shadow: none !important;
}

/* media queries for laptop */
@media only screen and (min-width: 1370px) and (max-width: 1605px) {
    .entryTitle {
        margin-bottom: 50px !important;
        margin-top: 80px !important;
    }


    /* tabella presenza */
    .boxTablePresenze {
        padding-inline: 20px !important;
    }

    body:not(.home).modal-open {
        overflow-y: hidden !important;
    }
}

/*
Icona chiusura modale
*/
.btn-close > img {
    width: 21px;
    height: 21px;
    object-fit: cover;
}

/*
Stylesheet for ui-datepicker 
*/
.ui-datepicker .ui-datepicker-header {
    background: #2babb0;
    border: none;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    background: #2babb0 !important;
    border: 1px solid #2babb0 !important;
    color: #FBFBFB !important;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid #2babb0 !important;
    background: #2babb0 !important;
    font-weight: bold;
    color: #FBFBFB !important;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus {
    border: 1px solid #2babb0 !important;
    font-weight: bold;
    background: #2babb0 !important;
    color: #FBFBFB !important;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus {
    background: #2babb0 !important;
    color: #FBFBFB !important;
}

.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon,
.ui-button:hover .ui-icon,
.ui-button:focus .ui-icon {
    background-image: url("https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/ui-lightness/images/ui-icons_ffffff_256x240.png") !important;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    cursor: pointer !important;
}

/* Stylesheet modale cancellazione */
#cancellazioneModal {
    display: none;
    z-index: 1000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#cancellazioneModal .modal-header {
    border-bottom: none;
    border-top: none;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 0px;
    padding-bottom: 0px;
}

#cancellazioneModal .modal-footer {
    border-bottom: none;
    border-top: none;
    padding-inline: 32px;
    margin-bottom: 32px;
}

#cancellazioneModal .modal-dialog {
    max-width: 737px;
    width: 100%;
    height: fit-content;
}

#cancellazioneModal .modal-content {
    background: #FAFCFC 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 60px;
    height: fit-content;
    border: none;
}

#cancellazioneModal .modal-title {
    font: normal normal bold 35px/47px Segoe UI;
    letter-spacing: 0.35px;
    color: #2BABB0;
    text-transform: uppercase;
    margin-top: 21px;
}

#cancellazioneModal .modalCloseIcon {
    width: 17px;
    height: 17px;
    object-fit: cover;
    top: 10px;
    position: relative;
}

#cancellazioneModal .modal-body label {
    text-align: left;
    font: normal normal 600 20px/27px Segoe UI;
    letter-spacing: 0.2px;
    color: #0077AD;
}

#cancellazioneModal .modal-footer {
    display: flex;
    justify-content: center;
}

#cancellazioneModal .button {
    outline: none;
    border: none;
    background: transparent;
    border-radius: 19px;
    width: fit-content;
    height: 37px;
    text-align: center;
    font: normal normal 600 13px/17px Segoe UI;
    letter-spacing: 0.13px;
    color: #2BABB0;
    border: 1px solid #2BABB0;
    text-transform: uppercase;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#cancellazioneModal .button:not(.btnRetry) > span {
    color: #2BABB0 !important;
}

#cancellazioneModal .btnRetry > span {
    color: #AE1313 !important;
}

#cancellazioneModal .button:hover {
    border: 2px solid #2BABB0;
}

#cancellazioneModal .button:focus, #cancellazioneModal .button:active {
    border: 2px solid #2BABB0;
    color: #FAFCFC;
    background-color: #2BABB0;
}

#cancellazioneModal .button:focus span,
#cancellazioneModal .button:active span {
    color: #ffff !important;
}

#cancellazioneModal .button.btnRetry {
    outline: none;
    border: none;
    background: transparent;
    border-radius: 19px;
    width: 100px;
    height: 37px;
    text-align: center;
    font: normal normal 600 13px/17px Segoe UI;
    letter-spacing: 0.13px;
    color: #0077AD;
    border: 1px solid #AE1313;
    text-transform: uppercase;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#cancellazioneModal .button.btnRetry:focus,
#cancellazioneModal .button.btnRetry:active {
    border: 2px solid #AE1313;
    background-color: #AE1313;
}

#cancellazioneModal .button.btnRetry:hover {
    border: 2px solid #AE1313;
}

#cancellazioneModal .button.btnRetry:focus span {
    color: #FAFCFC !important;
}

/* ===== PULSANTI UNIFICATI =====
   Scoped a .btn per non toccare classi custom (es. .button.btn-primary nella chat)
*/
.btn {
    font-size: 13px !important;
    font-family: 'Roboto Serif', serif;
    font-weight: 400;
}

.btn.btn-sm {
    font-size: 12px !important;
}

/* Primary — blu app */
.btn.btn-primary {
    color: #fff !important;
    background-color: #4385A7 !important;
    border-color: #4385A7 !important;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
    color: #fff !important;
    background-color: #336a85 !important;
    border-color: #336a85 !important;
}

/* Secondary — grigio neutro per Annulla/chiudi */
.btn.btn-secondary {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
}
.btn.btn-secondary:hover, .btn.btn-secondary:focus {
    color: #fff !important;
    background-color: #545b62 !important;
    border-color: #545b62 !important;
}

/* Warning — arancione con testo bianco */
.btn.btn-warning {
    color: #fff !important;
    background-color: #d07a00 !important;
    border-color: #d07a00 !important;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
}
.btn.btn-warning:hover, .btn.btn-warning:focus {
    color: #fff !important;
    background-color: #a86200 !important;
    border-color: #a86200 !important;
}

/* Danger — rosso */
.btn.btn-danger {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
}
.btn.btn-danger:hover, .btn.btn-danger:focus {
    color: #fff !important;
    background-color: #b02a37 !important;
    border-color: #b02a37 !important;
}

/* Info — teal app */
.btn.btn-info {
    color: #fff !important;
    background-color: #2BABB0 !important;
    border-color: #2BABB0 !important;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
}
.btn.btn-info:hover, .btn.btn-info:focus {
    color: #fff !important;
    background-color: #228a8f !important;
    border-color: #228a8f !important;
}

/* ===== DIMENSIONI TIPOGRAFICHE BASE =====
   Ripristina le dimensioni semantiche che * { font-size: 10px } azzera.
   Scoped a .window-content per non toccare le altre aree già stilizzate.
*/
.window-content h1 { font-size: 26px !important; font-weight: 600; }
.window-content h2 { font-size: 22px !important; font-weight: 600; }
.window-content h3 { font-size: 18px !important; font-weight: 500; }
.window-content h4 { font-size: 16px !important; font-weight: 500; }
.window-content h5 { font-size: 14px !important; font-weight: 500; }
.window-content h6 { font-size: 13px !important; font-weight: 500; }

.window-content p,
.window-content span,
.window-content td,
.window-content th { font-size: 13px !important; }

.window-content .form-label  { font-size: 13px !important; }
.window-content .form-control { font-size: 13px !important; }
.window-content .form-select  { font-size: 13px !important; }
.window-content .form-check-label { font-size: 13px !important; }

/* Modal Bootstrap dentro window-content */
.window-content .modal-title { font-size: 15px !important; font-weight: 600; }
.window-content .modal-body label { font-size: 13px !important; }
.window-content .modal-body input,
.window-content .modal-body select,
.window-content .modal-body textarea { font-size: 13px !important; }
