/*
Template Name: Velzon - Admin & Dashboard Template
Author: Manuel Amerio
File: Custom Css File
*/

.rotate {
    -moz-transition: all .5s linear;
    -webkit-transition: all .5s linear;
    transition: all .5s linear;
}
.rotate90 {
    -moz-transform:rotate(90deg);
    -webkit-transform:rotate(90deg);
    transform:rotate(90deg);
}
.rotate180 {
    -moz-transform:rotate(180deg);
    -webkit-transform:rotate(180deg);
    transform:rotate(180deg);
}

form .form-control.is-invalid + .select2 .select2-selection{
    border-color: #dc3545!important;
}
form .form-control.valid + .select2 .select2-selection{
    border-color: #28a745!important;
}
*:focus{
  outline:0px;
}

.bg-body{
    background-color: var(--vz-body-bg) !important;
}

.pharmacies-wid-bg::before{
    background: #165410;
    background: -webkit-gradient(linear, left bottom, left top, from(#171e32), to(#165410));
    background: linear-gradient(to top, #171e32, #165410);
}

.users-wid-bg::before{
    background: #f2b34e;
    background: -webkit-gradient(linear, left bottom, left top, from(#171e32), to(#f2b34e));
    background: linear-gradient(to top, #171e32, #f2b34e)
}



/* CALENDARIO LIST DETAILS DAY */
#offcanvasEventDetails, #offcanvasDetailsDay{
    min-width: 650px;
}

#offcanvasDetailsDay ul{
    padding: 0px;
    list-style: none;
    list-style-type: none;
}
#offcanvasDetailsDay li{
    display: flex;
    margin-bottom: 10px;
    border-radius: 5px;
}
#offcanvasDetailsDay li .box-icon{
    background-color: #ffffff;
    font-size: 20px;
    margin-left: 10px;
    width: 33px;
    display: flex;
    justify-content: center; /* Allinea orizzontalmente */
    align-items: center; /* Allinea verticalmente */
}

#offcanvasDetailsDay li .box-main{
    /* Massima largezza - i 2 box icona e delete */
    width: calc(100% - 43px - 30px);
    padding: 2px 5px;
}
#offcanvasDetailsDay li.event.bg-success-subtle .box-main{
    width: calc(100% - 43px) !important;  /* Se il la visita e completa non calcolo il box per delete  */
}
#offcanvasDetailsDay li.event .box-main b{
    vertical-align: -webkit-baseline-middle;
}
#offcanvasDetailsDay li .box-delete{
    display: flex;
    justify-content: flex-end;
    font-size: 16px;
    align-items: center;
}
#offcanvasDetailsDay li .box-action{
    width: 30px;
    display: flex;
    justify-content: center; /* Allinea orizzontalmente */
    align-items: center; /* Allinea verticalmente */
}







.fc .fc-daygrid-day.fc-day-today {
    background-color: #ffffff !important;
}

.fc .fc-daygrid-day .closedDay {
    background-color: rgba(0, 0, 0, 0.10) !important;
}

.fc-event{
    padding: 2px !important;
    font-size: 11px !important;
}


/* Custom cafrd header azzurro  */
.card-custom .card-header {
    background-color: rgba(26,112,214,.16);
    color: #000;
    border-color: transparent;
    }

/* Altezza mimina edit html */
.ck-widget.raw-html-embed .raw-html-embed__source{
    height: 500px !important;
}


/* STILE AGGIUNTIVO WIDGET NEW REQUEST */
#isfRequestDropdownBox .dropdown-menu{
    max-height: 80vh;
    overflow: scroll;
}



/* CUSTOM SELECT 2 MULIPLE SELECT WIDTH CHECKBOX */
.dropdown-checkboxes .select2-results__option {
  padding-right: 20px;
  vertical-align: middle;
}
.dropdown-checkboxes .select2-results__option:before {
  content: "";
  display: inline-block;
  position: relative;
  height: 20px;
  width: 20px;
  border: 2px solid #e9e9e9;
  border-radius: 4px;
  background-color: #fff;
  margin-right: 20px;
  vertical-align: middle;
}
.dropdown-checkboxes .select2-results__option--selected:before {
  font-family:remixicon;
  content: "\eb7b";
  color: #fff;
  background-color: #f77750;
  border: 0;
  display: inline-block;
  padding-left: 3px;
}

/* stile per avere un select con un pulsante attaccato */
.select-button-left .select2.select2-container{
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}
.select-button-left .select2.select2-container .select2-selection{
    padding: 6px 0px 6px 0px;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    display: flex !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-item-align: stretch;
    align-self: stretch;
}
.select-button-left .select2.select2-container .select2-selection .select2-search.select2-search--inline{
    margin-top: 0px !important;
    flex: 1;
}
.select-button-left .select2.select2-container .select2-selection .select2-search.select2-search--inline textarea{
    margin: 3px !important;
}
.select-button-left .select2.select2-container .select2-selection .select2-selection__rendered{
    max-height: 22px !important;
    display: scroll;
    margin: 0px !important;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.select-button-left .select2.select2-container .select2-selection .select2-selection__rendered .select2-selection__choice{
    margin-top: 0px !important;
    margin-bottom: 5px !important;
}

.select-button-left .select2.select2-container .select2-selection .select2-selection__rendered::-webkit-scrollbar {
  display: none;          /* Chrome, Safari, Edge */
}

.select-button-left .select2.select2-container .select2-selection .select2-selection__clear{
    margin-top: 2px !important;
}

.select-button-left .elementCounter{
    float: right;
    margin-top: 0px !important;
    margin-right: 28px;
    min-width: 85px;
}


/* Imposta sfondo e padding per la riga child */
table.dataTable tbody tr.dt-hasChild + tr {
    background-color: rgb(251, 251, 251) !important;
}
table.dataTable td.dt-control{
    padding: 4px;
    background-color: #0275d8;
}
table.dataTable tr.dt-hasChild td.dt-control{
    background-color: #e60338;
}
table.dataTable td.dt-control:before {
    display: inline-block;
    box-sizing: border-box;
    content: "";
    border-top: 4px solid transparent;
    border-left: 5px solid rgba(255, 255, 255, 1);
    border-bottom: 4px solid transparent;
    border-right: 0px solid transparent;
  }
table.dataTable tr.dt-hasChild td.dt-control:before {
    border-top: 5px solid rgba(255, 255, 255, 1);
    border-left: 4px solid transparent;
    border-bottom: 0px solid transparent;
    border-right: 4px solid transparent;
}
table.dataTable tr.dt-hasChild + tr td{
    padding: 0px;
}
table.dataTable tr.dt-hasChild + tr td div.dtr-details{
    position: relative;
    padding: 10px 50px !important;
}
table.dataTable tr.dt-hasChild + tr td div.dtr-details::before{
    display: inline-block;
    box-sizing: border-box;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1.25rem;
    background: #e60338;
}
/* Colore per le righe selezionate nella tabella expenses */
table.table.dataTable>tbody>tr.selected>*{
    box-shadow: none !important;
}
table.dataTable tbody tr.selected {
    background-color: #93c4f5 !important;
}

.btn_prc_custom{
    background-color:  rgba(var(--vz-dark-rgb), 0.1);
    position: relative;
    height: 43px;
    color: #777;
    border: none;
    padding: 10px 5px;
    min-width: 30px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.btn_prc_custom.active{
    background-color:  rgba(var(--vz-success-rgb), 0.4);
    color: #000;
}


.btn_prc_custom .perc{
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color:  rgba(var(--vz-dark-rgb), 0.15);
    width: 100%;
}

.btn_prc_custom.active .perc{
    background-color:  rgba(var(--vz-success-rgb), 0.5);
}

.btn_prc_custom .text{
    position: relative;
    left: 0px;
    width: 100%;
}

.btn_prc_custom .text .name{
    line-height: 1;
    font-size: 16px;
}
.btn_prc_custom .text .value{
    font-size: 10px;
}

#profile-tab .card .table tbody tr:last-child td{
    border-bottom: none;
}


.user-status-indicator {
    min-width: 120px;
}


.status-traffic-light {
    min-height: 48px;
}

.status-traffic-light__text {
    margin-right: 0.5rem;
}

.traffic-light__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.traffic-light__dot + .traffic-light__dot {
    margin-top: 4px;
}

.traffic-light__dot--green {
    border-color: #28a745;
}

.traffic-light__dot--yellow {
    border-color: #ffc107;
}

.traffic-light__dot--red {
    border-color: #dc3545;
}

.traffic-light__dot.is-active {
    background-color: currentColor;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    width: 22px;
    height: 22px;
}

.widget-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.widget-collection .crm-widget {
    flex: 1 1 240px;
    min-width: 200px;
}

@media (min-width: 992px) {
    .widget-collection {
        flex-direction: column;
        gap: 0;
    }

    .widget-collection .crm-widget {
        flex: none;
    }
}

.traffic-light__dot--green.is-active {
    color: #28a745;
}

.traffic-light__dot--yellow.is-active {
    color: #ffc107;
}

.traffic-light__dot--red.is-active {
    color: #dc3545;
}

.status-traffic-light__text .status-updated {
    line-height: 1.2;
}



/* Validazione select2 custom */
select.is-invalid + .select2-container--default .select2-selection--single{
    border-color: var(--vz-form-invalid-border-color);
    padding-left: calc(1.5em + 1rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f06548'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f06548' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left calc(0.375em + 0.25rem) center;
    background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
  }






  /* Stili per la drop zone */
  .dropzone-custom:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa !important;
}
.dropzone-custom .dz-message{
    font-size: 14px;
    width: 100%;
    margin: 1em 0;
}
.dropzone-custom.border-primary {
    border-color: #0d6efd !important;
    background-color: #e7f1ff !important;
}


  /* File Manager (Utente) */
  
   /* Stile di default: tutto nero */
   .file_manager_menu .folder-arrow,
   .file_manager_menu .folder-icon,
   .file_manager_menu .folder-name {
       color: #000000;
   }
   
   .file_manager_menu .folder-arrow {
       font-size: 0.875rem;
       transition: transform 0.2s ease, color 0.2s ease;
   }
   
   .file_manager_menu .folder-icon {
       font-size: 1rem;
       transition: all 0.2s ease, color 0.2s ease;
   }
   
   /* Stile per l'icona cliccabile */
   .file_manager_menu a.folder-toggle-icon {
       cursor: pointer;
       text-decoration: none;
       display: inline-flex;
       align-items: center;
   }
   
   .file_manager_menu a.folder-toggle-icon:hover {
       opacity: 0.7;
   }
   
   /* Stile per il nome della cartella cliccabile */
   .file_manager_menu .folder-name {
       cursor: pointer;
       user-select: none;
       transition: color 0.2s ease;
   }
   
   
   /* Stile per il breadcrumb cliccabile */
   #breadcrumb .breadcrumb-link {
       color: #6c757d;
       text-decoration: none;
       cursor: pointer;
       transition: color 0.2s ease;
   }
   
   #breadcrumb .breadcrumb-link:hover {
       color: #5a6268;
       text-decoration: underline;
   }
   
   #breadcrumb .text-muted {
       margin: 0 0.5rem;
   }
   
   /* Container principale: usa flexbox per allineare le altezze */
   #documents-tab .row {
       display: flex;
       align-items: stretch;
   }
   
   .sidebar-container {
       width: 260px;
       max-width: 100%;
       display: flex;
       flex-direction: column;
   }
   
   .content-container {
       width: calc(100% - 260px);
       display: flex;
       flex-direction: column;
   }
   
   /* Assicura che i card si estendano per tutta l'altezza disponibile */
   .sidebar-container .card,
   .content-container .card {
       display: flex;
       flex-direction: column;
       flex: 1;
       height: 100%;
   }
   
   /* Assicura che il card-body si estenda per occupare lo spazio rimanente */
   .sidebar-container .card-body,
   .content-container .card-body {
       flex: 1;
       display: flex;
       flex-direction: column;
       overflow: hidden;
   }

   @media (max-width: 1200.98px) {
       #documents-tab .row {
           flex-direction: column;
       }
       
       .sidebar-container,
       .content-container {
           width: 100% !important;
           max-width: 100%;
       }
       
       .sidebar-container .card,
       .content-container .card {
           height: auto;
       }
   }
   
   /* Animazione spin per il loader */
   @keyframes spin {
       0% { transform: rotate(0deg); }
       100% { transform: rotate(360deg); }
   }
   
   .spin {
       animation: spin 1s linear infinite;
   }

   /* STILI PER TIMELINE NOTE SPESE */
   .timeline-visual { 
    --tl-gap: 1.5rem;
    --tl-node-size: 38px;
    --tl-line-color: #d6ddeb;
    display: flex; 
    flex-direction: column; 
    gap: var(--tl-gap); 
    margin: 0; 
    padding: 0; 
    position: relative; 
}

.timeline-visual::before{
    content:"";
    position:absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tl-line-color);
    z-index: 0;
    pointer-events: none;
}

.timeline-visual-event { 
    display: flex; 
    align-items: flex-start; 
    gap: 1.25rem; 
}

.timeline-visual-track { 
    width: 56px; 
    position: relative; 
    display: flex; 
    justify-content: center; 
}

.timeline-visual-node { 
    width: var(--tl-node-size); 
    height: var(--tl-node-size); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    background: var(--timeline-node-color, #0ea5e9); 
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); 
    position: relative;
    z-index: 1;
}
.timeline-visual-node i { font-size: 1.1rem; line-height: 1; }

.timeline-visual-event--creation { --timeline-node-color: #0ea5e9; }
.timeline-visual-event--sent { --timeline-node-color: #3b82f6; }
.timeline-visual-event--review { --timeline-node-color: #f59e0b; }
.timeline-visual-event--approved { --timeline-node-color: #16a34a; }
.timeline-visual-event--payed { --timeline-node-color: #10b981; }
.timeline-visual-event--rejected { --timeline-node-color: #dc2626; }
.timeline-visual-event--default { --timeline-node-color: #0ea5e9; }

.timeline-visual-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 0.6rem; 
}
.timeline-visual-date { 
    font-size: 0.70rem;
}
.timeline-visual-card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-left: 4px solid var(--timeline-node-color, #0ea5e9); 
    border-radius: 12px; 
    padding: 1rem 1.25rem; 
}
.timeline-visual-title { 
    font-weight: 600; 
    color: #0f172a; 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    font-size: 0.85rem;
}
.timeline-visual-subtitle { 
    font-size: 0.85rem; 
    margin-bottom: 0.4rem; 
    color: #64748b; 
}
.timeline-visual-note { 
    font-size: 0.85rem; 
    line-height: 1.5; 
    color: #475569; 
}
.timeline-visual-note:last-child { margin-bottom: 0; }
.timeline-visual-badge { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 0.02em; 
}

.expense-timeline-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}
.expense-timeline-scroll::-webkit-scrollbar {
    width: 6px;
}
.expense-timeline-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.expense-timeline-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.expense-timeline-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
