.grid-headers,
.grid-attributes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grid-headers {
  margin-bottom: 8px;
}

.grid-attributes {
  margin-bottom: 12px;
}

/* Column-specific header styles */
.grid-header.labels {
  text-align: left;
}

/* Label column styles */
.grid-label {
  display: flex;
  align-items: center;
  /* font-size: 14px; */
}

.eyeleft select,
.eyeright select {
  width: 100%;
}

/* Hide right eye column by default */
.eyeright,
.grid-headers {
  display: none;
}

/* Form controls styling */
.prescription-grid select:not(.single-option-select),
.prescription-grid input:not(.single-option-select) {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 8px 16px;
  /* font-size: 14px; */
  appearance: none;
  -webkit-appearance: none;
  line-height: unset;
}

/* Eye toggle radio styles */
.eye-toggle {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
}

.eye-toggle label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.eye-toggle input[type="radio"] {
  margin-right: 4px;
}

/* Hide dropdown arrow for single-option selects */
.single-option-select {
  /* Remove the default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;

  /* Make it look more like static text than a dropdown */
  cursor: default;
  pointer-events: none;
  background-color: transparent;
  padding-right: 0;
  border-style: none;
  padding: 0;
}

/* For browsers that add their own arrow */
.single-option-select::-ms-expand {
  display: none;
}

@media (max-width: 576px) {
  .grid-attributes,
  .grid-headers {
    grid-template-columns: 90px 1fr 1fr;
    gap: 8px;
  }

  .grid-label,
  .grid-field,
  .grid-header {
    padding: 0;
  }

  .eye-toggle {
    display: flex;
    margin-bottom: 16px;
  }

  .eye-toggle label {
    padding: 0;
    line-height: 1.1;
  }
}
