.offers-head .primary {
  min-width: 150px;
}

.offers-table td:nth-child(2) {
  min-width: 250px;
}

.offer-price,
.offer-line-total strong,
.offer-form-footer strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.offer-price small {
  display: block;
  margin-top: 4px;
  color: var(--forest);
  font-size: 11px;
  white-space: normal;
}

.offer-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.offer-converted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.offer-archive-card .offer-archive-totals span:nth-child(2) {
  color: var(--forest);
}

.offer-form > label {
  margin-top: 24px;
}

.offer-items-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 10px;
}

.offer-items-heading h3 {
  margin: 0;
  font-size: 17px;
}

.offer-items {
  border-top: 2px solid var(--forest);
}

.offer-item-row {
  display: grid;
  grid-template-columns: 32px minmax(210px, 1fr) 105px 82px 82px 112px 112px 34px;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.offer-item-row label {
  margin: 0;
}

.offer-item-row textarea {
  min-height: 68px;
  resize: vertical;
}

.offer-source-wrap {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.offer-source-wrap > span {
  font-weight: 700;
}

.offer-item-row input[readonly] {
  color: var(--text);
  background: #f1f4f1;
  cursor: default;
}

.offer-item-row.is-revenue {
  background: rgba(94, 126, 69, 0.055);
}

.offer-revenue-note {
  grid-column: 2 / -2;
  grid-row: 2;
  margin: 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.offer-position {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.offer-line-total {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.offer-line-total span,
.offer-form-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.offer-remove {
  grid-column: 8;
  grid-row: 1;
  align-self: center;
  min-width: 34px;
  min-height: 42px;
  font-size: 20px;
}

.offer-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--forest);
}

.offer-form-footer > div:first-child {
  display: grid;
  gap: 5px;
}

.offer-form-footer strong {
  font-size: 22px;
}

.offer-form-footer .actions {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .offer-item-row {
    grid-template-columns: 32px minmax(190px, 1fr) 100px 78px 78px 105px 108px 34px;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .offer-item-row {
    grid-template-columns: 32px minmax(180px, 1fr) 100px 90px 120px 34px;
  }

  .offer-description {
    grid-column: 2 / -1;
  }

  .offer-category {
    grid-column: 2;
    grid-row: 2;
  }

  .offer-quantity {
    grid-column: 3;
    grid-row: 2;
  }

  .offer-unit {
    grid-column: 4;
    grid-row: 2;
  }

  .offer-unit-price {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .offer-line-total {
    grid-column: 4 / 6;
    grid-row: 3;
  }

  .offer-remove {
    grid-column: 6;
    grid-row: 3;
  }

  .offer-revenue-note {
    grid-column: 2 / 6;
    grid-row: 4;
  }
}

@media (max-width: 600px) {
  .offers-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .offers-head .primary {
    width: 100%;
    min-height: 46px;
  }

  .offer-item-row {
    grid-template-columns: 28px 1fr 1fr;
  }

  .offer-description {
    grid-column: 2 / -1;
  }

  .offer-category {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .offer-quantity {
    grid-column: 2;
    grid-row: 3;
  }

  .offer-unit {
    grid-column: 3;
    grid-row: 3;
  }

  .offer-unit-price {
    grid-column: 2;
    grid-row: 4;
  }

  .offer-line-total {
    grid-column: 3;
    grid-row: 4;
  }

  .offer-remove {
    grid-column: 3;
    grid-row: 5;
    justify-self: end;
  }

  .offer-revenue-note {
    grid-column: 2;
    grid-row: 5;
    align-self: center;
  }

  .offer-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .offer-form-footer .actions,
  .offer-form-footer .actions button {
    width: 100%;
  }
}
