/* Reduce global scale on desktops */
@media (min-width: 1024px) {
  html {
    font-size: 1rem; /* Pico default is usually 16px or 100% */
  }
}

/* Table header styles */
.table-header {
  width: 40%;
}

.table-header--quantity {
  width: 15%;
}

.table-header--price {
  width: 20%;
}

.table-header--action {
  width: 5%;
}

/* Grid layout styles */
.grid--right-aligned {
  text-align: right;
}

.grid--actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.grid--summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  text-align: right;
}

.grid--filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  margin: 1rem 0;
}

.grid--header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

/* Form control styles */
.filter-actions {
  display: flex;
  gap: var(--pico-spacing);
}

.filter-actions button {
  margin-bottom: var(--pico-spacing);
}

[role="button"] {
  margin-bottom: var(--pico-spacing);
}

.form-control--narrow {
  width: 15;
}

/* Text alignment */
.text--right {
  text-align: right;
}

/* Remove item button */
.remove-item-btn {
  /* Add any specific styles for the remove button if needed */
}

/* Error message */
.error {
  color: #d32f2f;
}


/* Dropdown */
.autocomplete-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  width: 100%;
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-item--result {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item--fallback {
  font-style: italic;
  color: #0d6efd;
}

.dropdown-item.is-active {
  background-color: #0d6efd;
  color: white;
}

.new-sale-form {
  margin-top: 1.5rem;
}
