.warehouse-wheel-auto-scope,
.warehouse-offer-auto-scope {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #b9d6ff;
  border-radius: 12px;
  background: #eef6ff;
}

.warehouse-wheel-auto-scope > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.warehouse-wheel-auto-scope > div span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #1559b7;
  font-weight: 750;
}

.warehouse-wheel-auto-scope p,
.warehouse-wheel-auto-scope small {
  margin: 0;
  color: var(--muted);
}

.warehouse-offer-auto-scope > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #cfe1f8;
}

@media (max-width: 600px) {
  .warehouse-offer-auto-scope > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

.warehouse-wheel-condition-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.warehouse-wheel-condition-group h4 {
  margin: 0;
}

.warehouse-wheel-condition-group h4 small {
  color: var(--muted);
  font-weight: 500;
}

.warehouse-wheel-condition-group.is-cnc {
  padding: 12px;
  border-radius: 12px;
  background: #f7f2ff;
}

.warehouse-wheel-damage-tags button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.warehouse-wheel-damage-tags button.is-active {
  color: #fff;
  background: #1769e0;
  border-color: #1769e0;
}

.warehouse-wheel-condition-group.is-cnc .warehouse-wheel-damage-tags button.is-active {
  background: #7047b7;
  border-color: #7047b7;
}

.warehouse-wheel-damage-tags button.is-clear {
  color: #126747;
  background: #e8f7ef;
  border-color: #8bd0ab;
}

.warehouse-offer-estimate-table {
  display: grid;
  container-type: inline-size;
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.warehouse-offer-estimate-table h3 {
  margin: 0;
  padding: 16px;
  background: #f4f7fb;
}

.warehouse-offer-table-head,
.warehouse-offer-table-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(52px, .55fr) minmax(76px, .85fr) minmax(84px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.warehouse-offer-table-head > *,
.warehouse-offer-table-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.warehouse-offer-table-head > :last-child,
.warehouse-offer-table-row > :last-child {
  text-align: right;
}

.warehouse-offer-table-head {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 750;
}

.warehouse-offer-table-row b {
  text-align: right;
}

.warehouse-offer-table-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 16px;
  color: #fff;
  background: #1769e0;
}

.warehouse-offer-table-total strong {
  font-size: 1.35rem;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .warehouse-offer-table-head {
    display: none;
  }

  .warehouse-offer-table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px;
  }

  .warehouse-offer-table-row strong {
    grid-column: 1 / -1;
  }

  .warehouse-offer-table-row span:nth-of-type(1)::before {
    content: "Ilość: ";
    color: var(--muted);
  }

  .warehouse-offer-table-row span:nth-of-type(2)::before {
    content: "Cena: ";
    color: var(--muted);
  }

  .warehouse-offer-table-row b {
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px dashed var(--line);
  }

  .warehouse-offer-table-row b::before {
    content: "Wartość: ";
    color: var(--muted);
    font-weight: 600;
  }

  .warehouse-offer-table-total {
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
  }
}

@container (max-width: 620px) {
  .warehouse-offer-table-head { display: none; }
  .warehouse-offer-table-row { grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px; }
  .warehouse-offer-table-row strong { grid-column:1/-1; }
  .warehouse-offer-table-row span:nth-of-type(1)::before { content:"Ilość: ";color:var(--muted); }
  .warehouse-offer-table-row span:nth-of-type(2)::before { content:"Cena: ";color:var(--muted); }
  .warehouse-offer-table-row b { grid-column:1/-1;padding-top:7px;border-top:1px dashed var(--line); }
  .warehouse-offer-table-row b::before { content:"Wartość: ";color:var(--muted);font-weight:600; }
  .warehouse-offer-table-total { justify-content:space-between;gap:10px;padding:14px; }
}

@media (max-width: 380px) {
  .warehouse-offer-table-total {
    align-items: flex-start;
    flex-direction: column;
  }
}

.warehouse-offer-message {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.warehouse-offer-message h4,
.warehouse-offer-message p,
.warehouse-offer-message small {
  margin: 0;
}

.warehouse-offer-message label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.warehouse-offer-recipient {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.warehouse-offer-recipient select,
.warehouse-offer-recipient input {
  width: 100%;
}

.warehouse-offer-message textarea {
  min-height: 260px;
  resize: vertical;
}

.warehouse-offer-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 600px) {
  .warehouse-offer-recipient {
    grid-template-columns: 1fr;
  }

  .warehouse-offer-message-actions,
  .warehouse-offer-message-actions button {
    width: 100%;
  }
}
