[data-bs-theme="light"] {
  .card-header {
    background-color: #fbfaff;
  }
}

[data-bs-theme="dark"] {
  .card-header {
    background-color: #292c2b;
  }
}

/*  on dark theme  */

.auth_form_wrapper {
  max-width: 400px;
  width: 100%;
  align-self: center;
}

.admin_form_container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.admin_profile_tab {
  gap: 0.5rem !important;
}

.admin_profile_tab li:hover a {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}

#product_list .product_item:last-of-type hr {
  display: none;
}

#tab_home_wrapper .row>* {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --- Stili per il Tema Chiaro --- */
.form_select_2 .select2-container .select2-selection {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

.form_select_2 .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--bs-body-color);
}

.form_select_2 .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--bs-body-color);
  /* Colore placeholder */
}

.form_select_2 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--bs-border-color) transparent transparent transparent;
}

/* Stile per l'elemento di placeholder */
.sortable-placeholder {
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  height: 50px;
  margin-bottom: 10px;
}

.btn_fixed_center_bottom {
  position: fixed !important;
  bottom: 1rem;
  left: 50%;
  z-index: 999;
}

.elcos_motore_col_200 {
  flex-basis: 200px !important;
  flex-grow: 1 !important;
  flex-shrink: 0 !important;
  gap: 1rem !important;
}

.elcos_motore_col_300 {
  flex-basis: 300px !important;
  flex-grow: 1 !important;
  flex-shrink: 0 !important;
  gap: 1rem !important;
}

.elcos_motore_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
}

.lw_field_zoom_150 {
  zoom: 1.5 !important;
}

.lw_admin_form_btn {
  width: 100% !important;
}

@media (min-width: 768px) {
  #prodotti_codice {
    zoom: 1.5 !important;
  }

  .lw_admin_form_btn {
    width: 140px !important;
  }
}

.lw_timeline_line::after {
  left: 8.33333333% !important;
  margin-left: -10px !important;
}

.active>.page-link,
.page-link.active {
  background-color: #4ba6ef;
  border-color: #4ba6ef;
}

.form-check-input:checked {
  background-color: #4ba6ef;
  border-color: #4ba6ef;
}


.tab-content-border {
  border-left: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}


div.resource-item[data-type="0"],
div.dropped-item[data-type="0"] {
  background: #73879c;
  display: inline-block;
}

div.resource-item[data-type="1"],
div.dropped-item[data-type="1"] {
  background: #b9b9b9;
  display: inline-block;
}


div.resource-item[data-type="0"]::before,
div.dropped-item[data-type="0"]::before {
  /* Uso di attributo selettore per maggiore specificità e ::after per standard moderno */
  font-family: 'boxicons' !important;
  /* Assicurati che il nome della famiglia di font sia corretto e tra virgolette se non è standard */
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  display: inline-block;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\ec63";
  /* Assicurati che il valore unicode sia corretto per il tuo font */
}

div.resource-item[data-type="1"]::before,
div.dropped-item[data-type="1"]::before {
  /* Uso di attributo selettore per maggiore specificità e ::after per standard moderno */
  font-family: 'boxicons' !important;
  /* Assicurati che il nome della famiglia di font sia corretto e tra virgolette se non è standard */
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  display: inline-block;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\ec8c";
  /* Assicurati che il valore unicode sia corretto per il tuo font */
}

.calendar-header {
  min-width: 150px;
}

div.dropped-item .color,
div.resource-item .color {
  display: block;
  width: 100%;
  height: 3px;
}

.lw_dashboard_calendar .dropped-item {
  cursor: default;
}



@media (min-width: 768px) {
  .lw_timeline .timeline-continue:after {
    left: 16%;
  }
}

.lw_timeline .timeline-box {
  width: -webkit-fill-available;
}


.box_type_2, .box_type_3, .box_type_4, .box_type_5,  .box_type_11, .box_type_14, .box_type_16
{
    background-color: rgb(244 67 54 / 10%);
}
 
.box_type_8
{
      background-color: rgb(0 85 167 / 13%);
}
 
.box_type_7, .box_type_15{
    background-color: rgba(244, 200, 54, 0.1);
}
 
.box_type_6{
    background-color: rgba(152, 244, 54, 0.1);
}
 
.box_type_12, .box_type_13{
    background-color: rgba(54, 216, 244, 0.1);
}

[data-bs-theme="dark"] {
.date-navigator .date-range {
    color: #e2e2e2;
}
}

@media (max-width: 768px) {
    .dropped-item {
        font-size: 0.7em !important;
        padding: 4px 5px 4px 5px !important;
        width: 70px !important;
    }
    .table.table-bordered td, .calendar-header {
        width: 105px !important;
    }
}

.minilabel {
  font-size: 10px;
  margin: 0;
}

.prezzototale {
  padding: 30px 0 14px 5px;
  font-weight: 500;
}