/* public/sales/request.css — оформление страницы заявки (public/sales/request.html). */

.receipt-page .page-lead {
  max-width: 76ch;
}

.receipt-status-actions {
  margin: -8px 0 16px;
}

.receipt-notices {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.receipt-notices:empty {
  display: none;
}

.kv-list {
  display: grid;
  gap: 6px;
}

.kv-list:empty {
  display: none;
}

.kv-list .kv {
  margin: 0;
}

/* Таблица состава заявки */

.receipt-table-wrap {
  margin: 0;
  overflow-x: auto;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.receipt-table th,
.receipt-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.receipt-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.receipt-table tbody tr:last-child td {
  border-bottom: 0;
}

.receipt-item__name {
  display: block;
  font-weight: 600;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.receipt-table__num {
  white-space: nowrap;
}

.receipt-value--unknown {
  color: var(--ink-soft);
}

.receipt-value--error {
  color: var(--error);
  font-weight: 600;
}

@media (max-width: 720px) {
  .receipt-table-wrap {
    overflow-x: visible;
  }

  .receipt-table thead {
    display: none;
  }

  .receipt-table,
  .receipt-table tbody,
  .receipt-table tr,
  .receipt-table td {
    display: block;
    width: 100%;
  }

  .receipt-table tr {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
  }

  .receipt-table tr:last-child {
    margin-bottom: 0;
  }

  .receipt-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 4px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .receipt-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
  }

  .receipt-table td.receipt-table__title {
    display: block;
  }

  .receipt-table td.receipt-table__title::before {
    display: block;
    margin-bottom: 4px;
  }
}

/* Блок «Ссылка на заявку» */

.receipt-link__text {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.receipt-link__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.receipt-link__status {
  margin: 10px 0 0;
}

.receipt-link__manual {
  margin: 10px 0 0;
}

.receipt-link__manual p {
  margin: 0 0 6px;
}

.receipt-link__field {
  width: 100%;
  min-height: 72px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
