html, body {
  overflow-x: hidden;
}

.step-nav {
  display: flex;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
}

.step-item {
  flex: 1;
  padding: 1rem;
  text-align: center;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid #e5e7eb;
}

.step-item.active {
  color: #000000;
  border-bottom: 3px solid #000000;
  font-weight: bold;
}

.step-item.completed {
  color: #000000;
  font-weight: bold;
}

.step-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.step-container.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-title {
  margin: 33px 0 23px;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
}

#next-to-step-2 {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

#back-to-step-1 {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

#next-to-step-3 {
  font-weight: 800;
  margin: 0;
  float: right;
}

#generate-invoice-btn {
  font-weight: 800;
  margin: 0;
  float: right;

}

.btn-primary,
.btn-secondary,
.bg-primary\/10 {
  font-weight: 700;
  text-transform: uppercase;
}
.btn-primary:hover,
.bg-primary\/10:hover {
}

.text-sm.row-total.font-semibold.text-dark {
  display: none;
}

/* Hack Select2 */

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: #000 !important;
  color: #fff !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable .bg-gray-300 {
  background: #dc2626 !important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable .text-gray-500 {
  color: #fff !important;
}

.form-footer {
  z-index: 1;
  margin: 0 auto;
  position: fixed;
  bottom: 58px;
  left: 0;
  right: 0;
  padding: 1rem;
  background-color: #f8fafc;
  border-top: 1px solid #ddd;
}

.select2-container {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-size: 16px !important; /* évite le zoom iOS */
  line-height: 1.5;
  height: auto !important;
}

.select2-selection {
  padding: 10px !important;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  background: none !important;
}

.select2-selection__arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

input[type="search"] {
  font-size: 16px !important;
}

/* iOS-specific select2 fixes */
.select2-container {
  font-size: 16px !important; /* évite le zoom iOS */
  width: 100% !important;
}

.select2-selection {
  padding: 10px !important;
  height: auto !important;
  overflow: hidden !important;
  background-color: #fff !important;
  width: 100%;
}

.select2-dropdown {
  z-index: 22;
  background-color: #fff !important;
  position: absolute !important;
  z-index: 9999 !important;
  left: 16px !important;
  width: 87% !important;
  max-width: 470px !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
  border-radius: 0 0 10px 10px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.select2-results__option {
  white-space: normal !important;
  padding: 12px !important;
}

.select2-search {
  width: 100% !important;
}
.select2-search input[type="search"] {
  width: 100%;
  background: yellow;
  padding: 4px 8px;
  margin: 4px 0 0;
  z-index: 1111123;
  position: absolute;
}
.select2-results {
  padding: 24px 8px 4px;
}

.select2-container {
  font-size: 16px !important;
  width: 100% !important;
  position: absolute;
  margin: 0 0 0 -8px;
}
.select2-container,
.select2-container .selection,
#select2-client-name-container {
  width: 100% !important;
  display: inline-block;
}
.select2-container .select2-selection--single {
  color: #000 !important;
  display: flex;
  width: 100% !important;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 290px;
}
.select2-results {
  padding: 42px 0 4px;
}
span.select2-container.select2-container--default.select2-container--open {
}

@supports (-webkit-touch-callout: none) {
  @media screen and (max-device-width: 1024px) {
    .select2-selection__clear {
      height: 19px;
      width: 30px;
    }
    .select2-container {
      margin: -29px 0px 0 -8px !important;
    }
    .select2-container .select2-container {
      margin: 0 !important;
    }
    .select2-dropdown {
      top: 0; 
      left: 13px !important;
    }
    #select2-client-name-results {
      max-height: 290px;
      margin: 33px 0 0;
    }
  }
}
