/* ========== ASPETTO GENERALE ========== */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
input[readonly] {
    background-color: #ecedf0;
    cursor: not-allowed;
  }
  
::-webkit-scrollbar {
    display: none;
}

body{
    background-color: #ecedf0 !important;
}
.text-small{
    font-size: 10px;
}
.font-title{
    font-size: 16px;
}
.badge{
    font-weight: 400;
    padding-left: .75rem;
    padding-right: .75rem;
    border-radius: 50px;
}
.menu-icon{
    color:#7d7d7d;
    cursor: pointer;
}
.menu-icon:hover{
    color:#1D2127
}
label{
    color: #777;
    font-size: 13px !important;
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}
.no-label{
    width: 100%;
    margin-top: 2rem;
}
.form-switch {
    margin-top: 2.5rem;
}
.form-check-label{
    margin-top: 0.15rem;
}

.form-select-sm{
    font-size: 0.75rem;
}

h1, h2, h3, h4, h5, h6 {
    /* font-weight: 200; */
    letter-spacing: -0.025rem !important;
}

.page-header h2{
    text-transform: uppercase;
    font-size: 18px;
}

.licenza{
    color: #6c757d !important;
    font-size: 11px !important;
}

.resized-logo{
    max-height: 60px !important;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* ========== HEADER ========== */
.header{
    height: 75px;
}
.header-right {
    height: 71px;
}
@media only screen and (max-width: 767px) {
    .header .header-right {
        margin-top: 70px;
    }
}
@media only screen and (max-width: 767px) {
    .header .logo-container {
        height: 70px;
    }
}
@media only screen and (min-width: 768px) {
    html.fixed .page-header {
        top: 75px
    }
}
@media only screen and (min-width: 768px) {
    html.fixed .sidebar-left {
        top: 75px;
    }
    html.fixed .content-body {
        margin-top: 15px;
    }
}
@media only screen and (max-width: 767px) {
    .content-body {
        margin-top: 15px;
    }
}

/* ========== BTN FORM ========== */
.btn-icon-form {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.btn-icon-form:focus {
    outline: none;
}
.btn-icon-form i {
    pointer-events: none;
    color:#7d7d7d;
}
.btn-icon-form:hover i{
    color:#1D2127
}

/* ===== DROPDOWN ===== */
.dropdown-right {
    right: 0 !important;
    left: auto !important;    
}

.drop-item {
	color: #7d7d7d;
	line-height: 20.8px !important;
	line-height: 1.3rem !important;
	padding: 4px 10px !important;
	font-size: 12px !important;
	font-size: 0.75rem !important;
}

/* ========== SWITCH ========== */
label{
    color: #777;
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}
.no-label{
    width: 100%;
    margin-top: 2rem;
}
.form-switch {
    margin-top: 2.5rem;
}
.form-check-label{
    margin-top: 0.15rem;
}

.align-center-checkbox {
    display: flex;
    align-items: center;
}
.switch.switch-xs .ios-switch {
	height: 19px;
	width: 35px;
    margin-right: 10px;
}
.switch.switch-xs .ios-switch .handle {
	height: 14px;
	width: 14px;
    top: 2px;
}
.ios-switch.on .handle {
    transform: translateX(calc(35px - 13px - 5px)); /* Calcola la distanza da sinistra per la posizione ON */
}
.switch + label {
    line-height: 19px;
}

/* ========== CHECHBOX SWITCH ========== */
.form-switch .form-check-input {
    height: 20px;
    width: 40px;
    margin-left: -40px;
    margin-right: 10px;
}
.form-check-input:checked {
    background-color: #0088CC;
    border-color: #0088CC;
}

.inline-label{
    width: 100%;
    margin-top: 0.25rem;
}


/* ========== FONT ========== */
.font-weight-semibold{
    font-weight: 500 !important;
}

/* ========== TABELLE ========== */
thead th,
tfoot th {
    font-weight: 600;
    color: #222 !important;
    /* border-bottom: 2px solid transparent !important; */
}
.table.table-no-more td {
    padding-left: 5%;
    text-align: left;
    white-space: normal;
}
.table-preload{
    display: none;
}
table .strong{
    font-weight: 600 !important;
    color: #222 !important;
    /* border-bottom: 2px solid transparent !important; */
}

.disabled td {
    text-decoration: line-through !important;
    color: #dadada !important;
  }

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0 !important;
  border-bottom: 1px solid #e3e6f0 !important;
}
tr.table-accordion{
  border-bottom: 2px solid white !important;
}
:root {
    --dt-row-hover: transparent !important;
}
.table {
    --bs-table-hover-bg: transparent !important;
    --bs-table-bg: transparent !important;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    background-color: rgba(236, 237, 240, 0.4)
}

.table-condensed thead,
.table-condensed tbody,
.table-condensed tfoot,
.table-condensed tr,
.table-condensed td,
.table-condensed th  {
  border-bottom: 0px solid transparent !important;
}

/* Paginazione datatables */
table.dataTable td {
    vertical-align: middle !important;
}
.page-item .page-link,
.dt-paging-button.page-item .page-link{
    background-color: transparent !important;
    /*color: #1d2127;*/
    color: #cccccc;
    border: 0;
    font-size: 13px;
    font-weight: 500;
}
.page-item .page-link:hover,
.dt-paging-button.page-item .page-link:hover{    
    color: #1d2127;
    font-size: 15px;
    font-weight: 600;
}
.page-item.active .page-link,
.dt-paging-button.page-item.active .page-link{    
    background-color: transparent !important;
    color: #1d2127;
    font-size: 15px;
    font-weight: 600;
}
.page-item.disabled .page-link,
.dt-paging-button.page-item.disabled .page-link{
    
    background-color: transparent !important;
    color: #dedede;
    font-size: 13px;
}
.dt-font-filter{
    font-size: 0.75rem !important;
    line-height: 1.75 !important;
    height: auto;
}

.table tr{
    min-height: 35px;
}

.table.table-flat tr{
    min-height: 15px;
    border-bottom: none;
}

.table.table-flat tr > td{
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

@media (max-width: 767px) {
    .table-nowrap td {
        white-space: nowrap;
    }
}

.input-table-edit {
    width: 100%;
    border: none !important;
    background-color: transparent;
    padding: 0 !important;
    transition: all 0.2s;
}

.input-table-edit:focus {
    outline: none;
    background-color: #f6f6f6;
}

.row-highlighted td{
    font-weight: 500;
    background-color: #f5f5f5;
}

.row-alert td{
    background-color: #ffe8cd;
}

.pagination{
    margin-bottom: 0 !important;
}

/* ===== CURSORI ===== */
.cursor-pointer{
    cursor: pointer !important;
}
.cursor-move{
    cursor: move !important;
}


/* ========== CARDS ========== */
.card-header{
    background-color: #f6f6f6 !important;    
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.card-title{
    color: rgb(0, 136, 204);
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 12px;
}
.card-actions{
    top: 12px;
    margin-bottom: 0 !important;
}
.card-actions a:hover,
.card-actions a:active,
.card-actions .card-action:hover {
	background-color: transparent !important;
	color: #555555 !important;
	text-decoration: none;
}
.card-actions .nav-item .active {
    background-color: transparent !important;
    color: #555555 !important;
    text-decoration: none !important;
}
.content-body.card-margin .card{
    margin-top: 25px !important;
}

.modal-dialog .modal-content .card{
    margin-top: 0 !important;
}

.card-divider {
    width: 100%;
    border-bottom: 1px solid #eee;
    margin: 0 0 0.5rem;
}

.card-divider h6 {
    font-size: 13px;
    text-transform: uppercase;
    color: #555555;
    font-weight: 600;
}


/* ========== CAMPI INPUT ========== */
.form-control:not(.form-control-sm):not(.form-control-lg){
    line-height: 1.5 !important;
    min-height: 30px !important;
    min-height: 2rem !important;
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){
    line-height: 1 !important;
}


/* ========== MULTISELECT ========== */
.btn-group,
.multiselect-container {
    width: 100% !important;
}

/* ========== SELECT 2 ========== */
.select2-results__option .fa {
    margin-right: 10px;
}
.select2-results__group {
    font-weight: 600 !important;
    text-transform: uppercase;
    color:#6c757d !important;
}
.select2-container--bootstrap .select2-results__option .select2-results__option {
    padding: 6px 32px !important
}

.select2-container--bootstrap.select2-container--disabled .select2-selection,
.select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice{
    background-color: #e9ecef !important;
    color: #6c757d;
    /* border-color: #dee2e6 !important */
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    color: #212529 !important;;
}

.select2-container--bootstrap .select2-selection--single {
    cursor: default !important
}
  
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action:none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #ecedf0;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow,
select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

.select2-container--bootstrap .select2-search--dropdown .select2-search__field{
    line-height: 1.5rem !important;
}

.select2-container--bootstrap .select2-selection{
    min-height: 2rem !important;
    box-shadow: inset 0 0px 0px rgba(255, 255, 255, 1) !important;
}

.select2-container--bootstrap .select2-selection--single{
    height: 35px !important;
    line-height: 1.5 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
}


.select2-container--bootstrap.select2-container--open .select2-selection--single {
    border-color: #33bbff !important;
    box-shadow: 0 0.125 0 1.25rem rgba(51, 187, 255, 1) !important;
    outline: 0;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__arrow b{
    display:  none;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__arrow::after {
    font-family: "Font Awesome 6 Free"; /* o 5, a seconda della tua versione */
    font-weight: 800; /* necessario per le icone solid */
    content: "\f107"; /* unicode per fa-chevron-down */
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #212529; /* colore grigio Bootstrap */
    font-size: 0.675rem;
}

/* ========== MODAL ========== */
@media (min-width: 576px) {
    .modal-sm {
        --bs-modal-width: 350px;
    }
}


/* ========== NAVBAR ========== */
.userbox .profile-info {
    margin: -3px 55px 0 10px;
}

@media only screen and (max-width: 767px) {
    .userbox .name, .userbox .role {
        max-width: 100%;
    }
}

.userbox .dropdown-menu{
    padding: 40px 10px 0;
}

.userbox .dropdown-menu a{
    padding: 6px 10px;
}

.notifications > li{    
    margin: 0 20px 0 0;
}


/* ========== SIDEBAR ========== */
.menu-divider {
    width: 100%;
    border-bottom: 1px solid #eee;
    margin: 0 1.5rem 0.5rem;
    padding: 1rem 0 0;
}
.menu-divider h6 {
    font-size: 12px;
    text-transform: uppercase;
    color: #555555;
    font-weight: 600;
    margin: 0.25rem !important;
}
ul.nav-main > li > a {
    padding: 6px 25px;
}
ul.nav-main li .nav-children{
    padding: 7px 0;
}
ul.nav-main li .nav-children li a {
    padding: 5px 15px 5px 57px
}
ul.nav-main li.nav-parent > a:after{    
    padding: 9px 25px;
}
.menu-shortcut{
    text-align: center;
    border-radius: 10px;
    box-shadow: rgb(226, 227, 230) 1px 2px 0px 1px;
    background: rgb(246, 246, 246);
    margin: 15px 30px 0 30px;
}
.sidebar-left-collapsed .menu-shortcut{
    display: none;
}


/* ========== OPTGROUP ========== */
select optgroup {
    font-weight: 600;
    font-size: 13px;
}

select option {
    font-weight: 400;
    font-size: 13px;
}

/* ========== CALENDARIO BIT-VISUAL ========== */
.bit-monthly-header-days{
    border-bottom: 1px solid #dadada;
}
@media (max-width: 768px) {
    #header-events{
        display: none;
    }
} 

/* Colonne intestazioni giorni */
.bit-monthly-header-day {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #0088CC; */
    color: #fff;
    font-weight: 500;
    border-right: 1px solid #dadada;            
}

/* Colonne  giorni */
.bit-calendar-day {
    min-height: 110px;            
    align-items: center;            
}
.bit-day-active{            
    overflow: hidden;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #dadada;		
}
.bit-day-today{
    /* border: 2px solid #ffc107;	 */
    box-shadow: 0 0 10px rgba(255, 193, 7, 1)
}
.bit-day-inactive{
    background-color: #f5f5f5;			
       margin: 5px;
    border-radius: 5px;
    border: 1px solid #f5f5f5;
}

@media (max-width: 768px) {
    .bit-day-active{
        margin: 0 0 10px 0 !important;
    }
    .bit-day-inactive{
        display: none;
    }
}

/* Celle giorno singolo */
.bit-day-header{
    background-color: #f5f5f5;
    padding: 5px 0 3px;
    font-weight:500
}
.bit-day-number{
    padding-left: 10px;
    font-size: 15px;
    text-align: left;			
}
.bit-day-memo{
    display: flex;
    align-items: center;
    text-align: center;
}
.bit-day-name{
    display: none;		
}
@media (max-width: 768px) {
    .bit-day-name{
        padding-right: 10px;
        text-align: right;	
        display: unset;		
    }
}
.bit-day-content{
    padding: 7px;
}
.bit-planner-event{
    border-radius: 5px;
    padding: 5px 3px 5px 3px !important;
    margin: -3px 7px 10px 7px;
    font-weight: 500;			
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    flex-shrink: unset;
    cursor: pointer;
}
.bit-planner-event:hover{
    font-weight: 600;
}
.bit-orario{
    display: none;
}
@media (max-width: 768px) {
    .bit-orario{    
        font-weight:500 !important;    
        display:block;
    }
}

/* Header */
#bit-calendar{
    padding: 5px;
}
.bit-header{
    margin-bottom: 1.5rem !important;
}
.bit-btn-prev{
    text-align: left;
    cursor: pointer;
}
.bit-title{
    text-transform: capitalize;
    font-size: 20px;
    text-align: center;
}
.bit-btn-next{
    text-align: right;
    cursor: pointer;
}

/* Intestazione colonne */
.bit-header-days{
    min-height: 40px;
    display: flex;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.bit-header-day {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #0088CC; */
    color: #fff;
    font-weight: 500;
    border-right: 1px solid #dadada;   	
    flex: 1; 
    margin: 0;
    box-sizing: border-box
}

#header-time-slot, #time-slots{
    /* padding: 0; */
}
/* Colonna eventi con righe guida */

#header-events {
    position: relative;
    padding: 0;
}

#events {
    position: relative;
    height: 100%;
    border-left: 1px solid #ddd;

    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Contenitore per colonne giornaliere */
#events-container {
    display: flex;
    width: 100%;

    flex: 1;
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Colonna per singolo giorno */
.day-column {
    flex: 1;
    position: relative;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Altezza di uno slot di 30 minuti */
.time-slot, .event-slot {
    height: 30px;
    border-top: 1px solid #ddd;
    position: relative;
    font-size: 11px;
    display: flex;
    align-items: center;
}
.time-slot span{
    background-color: #fff;
    position: absolute;
    bottom: 15px;
    padding: 4px;
}

/* Aggiunge una linea guida all'interno della colonna eventi */
.event-slot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: #ddd;
    z-index: -1;
}

/* Eventi senza margini */
.bit-event {
    position: absolute;
    width: calc(100% - 6px);    
    padding: 2px 5px 2px 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 10;
    font-weight: 500;  
    margin-left: 3px; 
    font-size: 12px;	
}
.bit-event.active {
    z-index: 100;
    border: 2px solid #fff
}
.bit-event .font-weight-semibold{
    font-weight: 600 !important;
}


/* Responsive Design per mobile */
@media (max-width: 768px) {    
    .time-slot span{
        background-color: #fff;
        position: absolute;
        bottom: 15px;
        padding: 5px
    }

    .event {
        width: 100%;
        left: 0;
        font-size: 10px;
    }
}

/* Cella disabilitata */
.bit-disabled {
    pointer-events: none;
    opacity: 0.4;
}

.day-active{
    /* display: flex;
    align-items: center; */
}
.day-description{
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: -2px 0 -2px;
}
.bit-button {
	opacity: .7;
	cursor: pointer;
}
.bit-button:hover {
	opacity: 1
}
.day-inactive{
    opacity: .5;
}
.day-striped{
    background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 10px,
    #dadada 10px,
    #dadada 20px
    );
    opacity: .6;
}

/* ========== DATEPICKER ========== */

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    background-color: #fdfdfd !important;
    color: #dadada !important;
    cursor: not-allowed;
}

/* ========== SHOP ========== */

.image-frame-wrapper-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.img-square {
    width: 100%;
    height: 100%;
    object-fit: cover;
}