/* Compact only the Wheel Items creation controls. */
.inventory-card {
  padding: 12px;
}

.inventory-card .section-header {
  margin-bottom: 8px;
}

#addItemForm {
  margin-bottom: 7px;
  padding: 9px;
}

#addItemForm h3 {
  margin-bottom: 7px;
  font-size: 10px;
}

#addItemForm .form-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 8px;
}

#addItemForm .field {
  min-width: 0;
  gap: 3px;
}

#addItemForm .field > span {
  font-size: 8px;
  line-height: 1.2;
}

#addItemForm .field:has(#newItemName) {
  flex: 1 1 100%;
}

#addItemForm .wheel-category-field {
  width: 100%;
  flex: 1 1 100%;
}

#addItemForm .field:has(#newItemQuantity) {
  flex: 0 0 72px;
}

#addItemForm .field:has(#newItemColor) {
  flex: 1 1 150px;
}

#addItemForm .field input[type="text"],
#addItemForm .field input[type="number"] {
  height: 30px;
  padding: 4px 7px;
  font-size: 11px;
}

#addItemForm .color-control {
  height: 30px;
}

#addItemForm .color-control input[type="color"] {
  width: 30px;
  height: 30px;
}

#addItemForm .hex-input {
  font-size: 10px;
}

#addItemForm .add-item-button {
  flex: 0 0 92px;
  width: 92px;
  height: 30px;
  padding: 0 8px;
  font-size: 10px;
}

.inventory-card .quick-add {
  margin-bottom: 7px;
}

.inventory-card .quick-add select {
  height: 30px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 10px;
}

.inventory-card .quick-add button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 9px;
}

.inventory-card .item-list {
  min-height: 120px;
}

@media (max-width: 650px) {
  #addItemForm .field input[type="text"],
  #addItemForm .field input[type="number"] {
    height: 36px;
    font-size: 16px;
  }

  #addItemForm .color-control,
  #addItemForm .color-control input[type="color"],
  #addItemForm .add-item-button {
    height: 36px;
  }

  #addItemForm .color-control input[type="color"] {
    width: 36px;
  }

  .inventory-card .quick-add select {
    height: 36px;
    font-size: 16px;
  }

  .inventory-card .quick-add button {
    min-height: 36px;
  }
}
