@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/***ICONS***/
@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?wbp489');
    src: url('fonts/icomoon.eot?wbp489#iefix') format('embedded-opentype'),
        url('fonts/icomoon.ttf?wbp489') format('truetype'),
        url('fonts/icomoon.woff?wbp489') format('woff'),
        url('fonts/icomoon.svg?wbp489#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

[class^="icon-"],
[class*=" icon-"] {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



.icon-file-text2:before {
    content: "\e926";
}

.icon-file-pdf:before {
    content: "\eadf";
}

.icon-file-excel:before {
    content: "\eae2";
}

.pointer {
    cursor: pointer !important
}


input[type="time"]::-webkit-calendar-picker-indicator {
    background: none;
}

/*
*{
border:1px dotted red;
}
*/

/*Variabili*/
:root {

    --main: #366e3e;
    --secondary: #FFB900;
    --warning: #FF0000;
    --success: #00B050;
    --waiting: #e39a1a;
    --info: #00B0F0;
    --bg_main: #366e3e;
    --bg_light: #f2f2f2;
    --darkBlue: #0A5585;
    --lightYellow: #FCCE55;
    --main_fonts_color: #494949;

}


html {
    font-size: 12px;
}


body {
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-family: "Lato", serif;
    color: var(--main_fonts_color);
    font-size: 1.2rem;
}

h1 {
    font-weight: 900;
}

h2 {
    font-weight: 700;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--main_fonts_color);
}

p {
    font-size: 1.05rem;
    color: var(--main_fonts_color);
}


a {
    color: inherit;
    text-decoration: none;
}

.link {
    color: blue !important;
    text-decoration: underline !important
}



.wrapper {
    width: 100%;
    min-height: 700px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
}

.container {
    background-color: var(--bg_light);
    border-radius: 3px;
    padding: 1.3rem;
    /*box-shadow: 10px -5px #cacaca;*/
}

.footer_container {
    width: 100%;
    margin-top: 5rem;
    background-color: var(--bg_light);
    border-radius: 3px;
    padding: 1.3rem 3rem;
}

.navbar-brand img {

    height: 36px !important;
    width: auto;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: transparent !important;
    border-radius: 4px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    pointer-events: none;
    /* Disabilita click sull'ultimo elemento */
}

/*** Tabelle ****/

table {
    min-width: 800px;
    font-size: 90%;
}

.th-style {
    background-color: var(--bg_light) !important;
}

.short_table {

    min-width: 300px !important
}

/*
tr td:last-child, tr th:last-child {
    max-width:140px;
    min-width:120px;
}
*/

th div {
    font-weight: 400;
}


th {
    vertical-align: top;
}


.custom_table_hover:hover {
    cursor: pointer;
    background-color: var(--bg_light) !important
}

.custom_table_hover td {
    background: transparent !important
}

#result_list {
    background: #fff
}

/*Bootstrap*/

.btn {
    margin: 0 0 1rem 0
}


.btn-primary {
    background-color: var(--main);
    border-color: var(--main);
    color: #fff !important;
}


.btn-primary:hover {
    background-color: var(--success);
    border-color: var(--success);
    color: #fff !important;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: initial !important;
}

.btn-secondary:hover {
    background-color: var(--lightYellow);
    border-color: var(--lightYellow);
    color: #000 !important;
}

.btn-success {
    background-color: var(--success);
    color: #fff !important;
    border-color: var(--success)
}

.btn-success:hover {
    background-color: var(--main);
    color: #fff !important;
    border-color: var(--main)
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info)
}


.btn-light {
    border: 1px solid #cacaca;
}

.btn-dark {
    border: none !important;
}

.bi-eye-slash {
    width: 16px;
    height: 16px;
}

.page-link {
    height: 100%;
}


.bg-main {
    background-color: var(--bg_main) !important;
}


.bg-light {
    background-color: var(--bg_light) !important;
}


.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {

    background-color: #cacaca;
    border: 1px solid #cacaca;
    color: #000 !important
}

/* FINE BOOTSTRAP */



/*GOOGLE*/

.g_id_signin {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}


/*** FINE GOOGLE ***/



.persona_giuridica {
    display: none;
}




.arrow {
    position: absolute;
    left: 5%;
    top: -0.78rem;
    width: 1.42rem;
    height: 1.42rem;
    border: 1px solid solid var(--warning);
    border-right: none;
    border-bottom: none;
    background-color: #fff;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    z-index: 1
}

.tooltip {
    position: absolute;
    margin-top: 0.25rem;
    padding: 0.8rem;
    background: #fff;
    max-width: 95%;
    font-weight: normal !important;
    border: 1px solid var(--warning);
    border-radius: 4px;
    box-shadow: -4px 4px 5px -3px #000;
    z-index: 10;
    opacity: 1;
    letter-spacing: 0.17em
}

.tooltip .arrow {
    width: 15px;
    height: 15px;
    top: -8.2px;
    border-left: 1px solid var(--warning);
    border-top: 1px solid var(--warning);
}

.tooltip .close_button {
    top: -0.85rem;
    left: -0.85rem;
    right: auto;
    padding: 0.5rem;
    font-size: 0.85rem;
    display: none
}

.clear {
    width: 100%;
    clear: both;
}


.warning {
    border: 1px solid red;
}

.success {
    border: 1px solid green;
}



.btn-link {
    color: var(--main) !important;
    /*text-decoration: underline !important*/
}

.header_nav .nav-link {
    /*color:#fff !important*/
}


.myresponsive {
    position: relative;
    float: left;
    width: 100%;
}

.padded {
    padding-left: 8rem;
    padding-right: 8rem;
}

/*** TABLES ***/
.td_header {
    background-color: var(--bg_light) !important;
    width: 15%;
    min-width: 190px;
    font-weight: bold
}

.two_columns {
    min-width: 0px !important
}



/*Ui Dialog*/
.ui-dialog {
    position: fixed !important;
    min-width: 42.85rem !important;
    font-family: inherit !important;
    z-index: 1000 !important
}

.ui-widget {
    font-family: inherit !important
}

.ui-dialog :focus {
    outline: -webkit-focus-ring-color auto 0px !important;
}


.ui-widget {
    font-family: inherit !important;
    font-size: inherit !important
}

.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: inherit !important;
    font-size: var(--bs-btn-font-size) !important;
}

.ui-dialog :focus {
    outline: -webkit-focus-ring-color auto 0px !important;
}

.ui-dialog .ui-dialog-titlebar-close {
    background-color: var(--main)
}


/*FINE JQUERY*/


.chat_boxR {
    border-radius: 10px;
    border: 1px dotted #cacaca;
    background-color: var(--main);
    color: #fff
}

.chat_boxL {
    border-radius: 10px;
    border: 1px dotted #cacaca;
    background-color: #fff;
    color: #000
}

.chat_boxR,
.chat_boxL {
    padding: 1rem
}

.chat_input_text {
    width: 100%;
}

.chat_message_body {
    max-height: 300px;
    overflow-x: auto
}


.chat_person_icon {
    font-size: 2.8rem;
}

.chat_person_icon h6 {
    font-size: 1.1rem
}




/*OVERLAY*/
#blocca_schermo {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(1, 1, 1, 0.7);
    display: none;
    z-index: 110;
}

#loading {
    position: fixed;
    width: 7rem;
    height: 7rem;
    left: 50%;
    top: 50%;
    margin-left: -3.5rem;
    margin-top: -3.5rem;
    border-radius: 10px;
    z-index: 111;
    color: #fff;
    background: url('/images/icons/loading1.svg') no-repeat;
    background-size: cover;
    display: none
}

#blocca_schermo h6 {
    position: relative;
    width: 300px;
    height: 300px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: 60px;
    color: #fff !important;
    text-align: center;
    font-size: 1.05rem !important
}



.client_search_box {
    position: absolute;
    background-color: #fff !important;
    border-radius: 0px 0px 5px 5px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: 2px 2px 6px -3px #000;
    z-index: 100;
}

.client_search_box li {
    padding: 0 !important;
    margin: 0.25rem 0.5rem !important
}

.client_search_box li:hover {
    background-color: var(--bg_light);
}


.optometric_table {
    min-width: 200px !important;
}

.card-header {
    max-height: 36px !important;
}

.my_littile_button {
    vertical-align: bottom;
    cursor: pointer;
}

.my_littile_button .bi {
    font-size: 16px;
    vertical-align: top;
}


.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.no-spin {
    -moz-appearance: textfield !important;
}



@media screen and (max-width:1800px) {

    .container {
        width: 100%;
        max-width: 100%;
        margin-left: 0px;
        margin-right: 0px;
    }
}



@media screen and (max-width:992px) {

    .navbar-expand-lg .navbar-collapse {

        /*flex-direction:row !important;*/
    }
}




@media screen and (max-width:500px) {


    .chat_person_icon {
        font-size: 2rem;
    }

    .chat_person_icon h6 {
        font-size: 1rem
    }




}


/* ==========================================================
   Disponibilità attrezzature — Classi condivise
   (usate nel modal intervento e nella pagina attrezzature)
   ========================================================== */

.disp-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.disp-toolbar-buttons {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.disp-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.disp-legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.disp-legenda-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.disp-dot-verde {
    background-color: #198754;
}

.disp-dot-rosso {
    background-color: #dc3545;
}

.disp-dot-azzurro {
    background-color: #0dcaf0;
}

.disp-giornaliera-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg_light) !important;
}

.disp-giornaliera-nav {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.disp-giornaliera-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.disp-giornaliera-table-wrap table {
    min-width: 400px !important;
}


/* Disponibilità attrezzature — Layout calendario */
.disp-layout {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 16px;
    align-items: start;
}

.disp-day-title {
    font-size: 1rem;
    font-weight: 800;
}

.disp-attrezzatura-list {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.disp-attrezzatura-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    padding: 10px 12px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.disp-attrezzatura-row:last-child {
    border-bottom: 0;
}

.disp-attrezzatura-row:hover {
    background: #f8f9fa;
}

.disp-attrezzatura-name {
    font-weight: 700;
}

.disp-attrezzatura-status {
    font-size: .82rem;
    white-space: nowrap;
}

.disp-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 9px;
}

.disp-mini-calendar {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.disp-mini-head,
.disp-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.disp-mini-head div {
    padding: 8px 4px;
    text-align: center;
    font-weight: 700;
    font-size: .78rem;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.disp-mini-day {
    min-height: 74px;
    padding: 6px;
    border-right: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
    cursor: pointer;
    background: #fff;
}

.disp-mini-day:nth-child(7n) {
    border-right: 0;
}

.disp-mini-day:hover {
    background: #f8f9fa;
}

.disp-mini-day.is-muted {
    opacity: .45;
}

.disp-mini-day.is-selected {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
    background: #eef5ff;
}

.disp-mini-day-number {
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.disp-mini-equip {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 0 2px 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    line-height: 1.1;
    text-align: left;
}

.disp-mini-equip span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modale dettaglio giorno */
.disp-detail-row {
    border-bottom: 1px solid #eef0f2;
    padding: 10px 0;
}

.disp-detail-row:last-child {
    border-bottom: 0;
}

/* Slot timeline (usato nel modal e nella pagina) */
.disp-slot {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
    margin: 1px;
}

.disp-slot-free {
    background: #d1e7dd;
    color: #0f5132;
}

.disp-slot-busy {
    background: #f8d7da;
    color: #842029;
}

.disp-slot-current {
    background: #cff4fc;
    color: #055160;
}

@media (max-width: 992px) {
    .disp-layout {
        grid-template-columns: 1fr;
    }
}


/* === Modal Disponibilità Attrezzature — Override responsive === */
#modal_verifica_attrezzature .modal-body {
    padding: 1rem;
}

/* Override min-width globale delle tabelle nel modal */
#modal_verifica_attrezzature table {
    min-width: 0 !important;
}

/* Card header senza altezza fissa nel modal */
#modal_verifica_attrezzature .card-header {
    max-height: none !important;
}

@media screen and (max-width: 767.98px) {
    #modal_verifica_attrezzature .modal-body {
        padding: 0.75rem;
    }

    #modal_verifica_attrezzature .disp-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Celle del calendario nel modal su mobile */
    #modal_verifica_attrezzature #attrezzature_calendario_container td {
        height: auto !important;
        padding: 0.25rem 0.15rem !important;
        font-size: 0.85rem;
    }

    #modal_verifica_attrezzature #attrezzature_calendario_container td .small {
        font-size: 0.65rem !important;
    }

    /* Header giornaliera su mobile */
    #modal_verifica_attrezzature .disp-giornaliera-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Tabella giornaliera su mobile */
    #modal_verifica_attrezzature .disp-giornaliera-table-wrap table {
        min-width: 320px !important;
    }

    #modal_verifica_attrezzature .disp-giornaliera-table-wrap th,
    #modal_verifica_attrezzature .disp-giornaliera-table-wrap td {
        font-size: 0.8rem;
        padding: 0.3rem 0.25rem !important;
    }
}