.gearlist_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.gear-table-wrapper .show_products_link {
  margin-right: 2rem;
}

.gearlist_add_form {
  background-color: #f1f1f1;
  padding: 1rem;
  display: none;
  margin-bottom: 2rem;
}

.gearlist_add_form .col {
  width: 25%;
  margin-bottom: 1rem;
}

.gearlist_add_form h3 {
  margin-bottom: 1rem;
}


.gear-table-wrapper {
  margin-bottom: 4rem;
}

#customer_gear_search_results .selected_params {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.gear-table-wrapper .btn {
  background-color: #f1f1f1 !important;
  color: #333 !important;
  box-shadow: none;
  font-size: 1rem !important;
  padding: 0.5rem !important;
}

.gearlist_description {
  padding: 1rem 0 0;
  border-top: 1px solid #f1f1f1;
  margin-bottom: 4rem;
}

/* Inline editable fields */
.editable-cell {
  position: relative;
  min-width: 120px;
}

.editable-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.editable-input {
  width: 100%;
  padding: 0.4rem 1.8rem 0.4rem 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.editable-input:hover {
  border-color: #ddd;
  background: #fff;
}

.editable-input:focus {
  border-color: #007bff;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.editable-input.saving {
  opacity: 0.6;
  pointer-events: none;
}

.editable-input.saved {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.editable-input.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.clear-field {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  background: #dc3545;
  z-index: 2;
}

/* Only show clear button on hover when field has value */
.editable-wrapper:hover .clear-field.has-value,
.editable-input:focus ~ .clear-field.has-value {
  opacity: 1;
  visibility: visible;
}

.clear-field:hover {
  background: #a71d2a;
}

/* Datepicker input */
.datepicker-input {
  min-width: 130px;
}

.datepicker-input::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}

.datepicker-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}