.compras-kpis {
  margin-bottom: 18px;
}

.compras-table-head {
  grid-template-columns: 2.2fr 1.4fr 1.3fr 1.6fr 1.2fr;
}

.compras-pedido-card,
.compras-pedido-items-card {
  margin-bottom: 18px;
}

.compras-pedido-hint {
  font-size: 12px;
}

.compras-pedido-head,
.compras-pedido-row {
  grid-template-columns: .72fr 2fr 1.35fr 1.15fr 2fr;
}

.compras-check {
  align-items: center;
  display: flex;
  margin: 0;
}

.compras-check input {
  box-shadow: none;
  width: auto;
}

.compras-warning {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  min-height: 14px;
}

.compras-row-meta {
  min-height: 25px;
  padding-top: 5px;
}

.compras-new-item {
  padding: 18px 20px 20px;
}

.compras-new-item h4 {
  font-size: 14px;
  font-weight: 800;
}

.compras-new-item-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 2fr .85fr .9fr 1.4fr;
  margin-top: 16px;
}

.compras-new-item-note {
  grid-column: 1 / -1;
}

.compras-product-cell {
  min-width: 0;
  position: relative;
}

.compras-unit-fixed {
  align-items: center;
  background: var(--line-soft);
  color: var(--muted);
  display: flex;
  font-weight: 700;
}

.compras-product-suggestions {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(24, 24, 27, .22);
  left: 0;
  margin-top: 6px;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.compras-product-suggestions button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.compras-product-suggestions button:hover {
  background: #f97316;
  color: #111827;
}

.compras-product-suggestions strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compras-product-suggestions span {
  color: #a1a1aa;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
}

.compras-product-suggestions button:hover span {
  color: #1f2937;
}

.compras-pedido-actions {
  justify-content: flex-end;
  padding: 16px 20px;
}

@media (max-width: 900px) {
  .compras-new-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .compras-new-item-grid {
    grid-template-columns: 1fr;
  }
}
