.rfq-head { margin-bottom: 1.5rem; }
.rfq-head__actions { margin-top: 1rem; }
.rfq-head__stats { margin-top: 0.5rem; font-size: 0.875rem; }
.rfq-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1rem; margin-bottom: 1.5rem; }
.rfq-list { display: grid; gap: 1rem; }
.rfq-card__title { margin: 0 0 0.5rem; font-size: 1.125rem; }
.rfq-card__meta { margin: 0 0 0.75rem; font-size: 0.875rem; }
.rfq-card__lines { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.rfq-card__footer { font-size: 0.875rem; margin-bottom: 0.75rem; }
.rfq-status { font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 999px; background: #eef2f7; }
.rfq-status--open, .rfq-status--has_offers { background: #e8f5e9; }
.rfq-status--pending_buyer_confirm, .rfq-status--deal_reported { background: #fff8e1; }
.rfq-status--completed, .rfq-status--auto_confirmed { background: #e3f2fd; }
.rfq-status--disputed { background: #ffebee; }
.rfq-progress-line {
  background: #f4f6f8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0.75rem 0;
}
.rfq-progress-line__done { color: #1a7f37; }
.rfq-progress-line__inprog { color: #bf8700; }
.rfq-progress-line__open { color: #57606a; }
.rfq-bulk-input { margin-bottom: 1.25rem; padding: 1rem; background: #f8fafc; }
.rfq-buyer-free-note { font-size: 0.875rem; margin: 0.5rem 0 0; }
.rfq-create-form .field { margin-bottom: 1rem; }
.rfq-create-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rfq-create-line { position: relative; margin-bottom: 1rem; padding: 1rem; }
.rfq-create-line__remove { position: absolute; top: 0.5rem; right: 0.5rem; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
.rfq-line-budget-total { font-size: 0.875rem; margin: 0.25rem 0 0.5rem; }
.rfq-budget { font-size: 0.875rem; }
.rfq-offer-line-total { font-size: 0.875rem; margin: 0.35rem 0; }
.rfq-line-extra { margin-top: 0.5rem; font-size: 0.875rem; }
.rfq-line-extra summary { cursor: pointer; color: #57606a; }
.rfq-line-photo { margin-top: 0.5rem; }
.rfq-line-image-hint { font-size: 0.8125rem; margin: 0.35rem 0 0; }
.rfq-line-image-preview { display: block; max-width: 120px; max-height: 120px; margin-top: 0.5rem; border-radius: 0.375rem; object-fit: cover; border: 1px solid #e5e7eb; }
.rfq-line-image-preview[hidden] { display: none; }
.rfq-line-thumb { object-fit: cover; border-radius: 0.25rem; vertical-align: middle; margin-right: 0.35rem; border: 1px solid #e5e7eb; }
.rfq-line-thumb--list { width: 32px; height: 32px; }
.rfq-line-has-image { margin-right: 0.25rem; font-size: 0.875rem; }
.rfq-line-ref { margin: 0.35rem 0; font-size: 0.875rem; }
.rfq-line-figure { margin: 0.5rem 0 0; }
.rfq-line-image { max-width: min(100%, 320px); height: auto; border-radius: 0.375rem; border: 1px solid #e5e7eb; }
.rfq-card__lines li { display: flex; align-items: center; gap: 0.35rem; }
.rfq-more-details { margin: 0.5rem 0; font-size: 0.875rem; }
.rfq-more-details summary { cursor: pointer; }
.rfq-line-details summary { cursor: pointer; list-style: none; }
.rfq-line-details summary::-webkit-details-marker { display: none; }
.rfq-lines-list { margin: 0; padding-left: 0; list-style: none; }
.rfq-lines-list > li { margin-bottom: 0.5rem; }
.rfq-offer-line { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.rfq-offer-line__summary { cursor: pointer; }
.rfq-offer-line__fields { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.rfq-offer-line__check { display: inline-flex; gap: 0.5rem; align-items: center; }
.rfq-consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem 0; font-size: 0.875rem; }
.rfq-hint { cursor: help; color: #57606a; margin-left: 0.25rem; }
.rfq-tip { display: block; margin: 0.25rem 0 1rem; font-size: 0.8125rem; color: #57606a; }
.rfq-offer-total-commission { font-size: 0.875rem; margin: 0.5rem 0; }
.rfq-commission-line { font-size: 0.8125rem; margin-top: 0.25rem; }
.rfq-offer-card { margin-bottom: 1rem; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; }
.rfq-offer-card__summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; cursor: pointer; font-weight: 600; }
.rfq-offer-card__total { margin-left: auto; }
.rfq-offer-card__lines { margin: 0.75rem 0; padding-left: 1.25rem; }
.rfq-offer-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rfq-deal-card { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e7eb; }
.rfq-deal-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rfq-deal-card__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.rfq-deal-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.rfq-deal-table td, .rfq-deal-table th { padding: 0.35rem 0; text-align: left; }
.rfq-deal-table__amount, .rfq-deal-table__total { text-align: right; white-space: nowrap; }
.rfq-deal-table tfoot th { font-weight: normal; color: #57606a; }
.rfq-deal-table__total strong { font-size: 1.125rem; color: #111; }
.rfq-deal-commission-note { font-size: 0.8125rem; margin: 0.5rem 0; }
.rfq-deal-auto-note { font-size: 0.8125rem; }
.rfq-deal-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rfq-decline-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rfq-decline-modal[hidden], .rfq-modal[hidden] { display: none; }
.rfq-decline-modal__backdrop, .rfq-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.rfq-decline-modal__panel, .rfq-modal__panel { position: relative; width: min(100%, 32rem); z-index: 1; max-height: 90vh; overflow-y: auto; }
.rfq-decline-modal__actions, .rfq-modal__actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }
.rfq-modal__actions--stack { flex-direction: column; }
.rfq-modal__actions--stack .btn { width: 100%; }
.rfq-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rfq-engagement-card { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid var(--border-color, #e2e8f0); border-radius: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rfq-engagement-card__status { width: 100%; margin: 0 0 0.25rem; }
.rfq-deal-card--seller { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border-color, #e2e8f0); border-radius: 0.5rem; }
.rfq-alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin: 0.75rem 0; }
.rfq-alert--info { background: #e3f2fd; }
.rfq-alert--muted { background: #f3f4f6; }
.rfq-alert--success { background: #e8f5e9; }
.rfq-buyer-contacts { margin: 0.75rem 0; }
.rfq-contacts-placeholder { font-size: 0.875rem; margin: 0.5rem 0 1rem; }
.rfq-seller-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.rfq-seller-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fff;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 1.5rem;
}
.rfq-after-no-deal { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.rfq-report-row { display: block; margin-bottom: 0.75rem; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; }
.rfq-report-row__amount { display: block; margin-top: 0.5rem; }
.rfq-report-total { margin: 0.75rem 0; }
.rfq-report-commission { font-size: 0.875rem; }
.rfq-notice { background: #fff8e1; padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.rfq-cancel-reason { display: block; margin-top: 0.35rem; }
.rfq-pagination { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.rfq-cabinet-pending { margin-bottom: 1.5rem; }
.rfq-cabinet-pending-card__lines { margin: 0.5rem 0; padding-left: 1.25rem; }

@media (max-width: 768px) {
  .rfq-create-form .field-row { grid-template-columns: 1fr; }
  .rfq-card { padding-bottom: 72px; }
  .rfq-form input,
  .rfq-form select,
  .rfq-form textarea,
  .rfq-create-form input,
  .rfq-create-form select,
  .rfq-create-form textarea,
  .rfq-offer-form input,
  .rfq-offer-form select,
  .rfq-offer-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    font-size: 16px;
  }
  .rfq-deal-card__actions { flex-direction: column; }
  .rfq-deal-card__actions .btn { width: 100%; }
  .rfq-seller-actions--sticky .btn { flex: 1 1 100%; }
}

@media (max-width: 640px) {
  .rfq-create-form .field-row { grid-template-columns: 1fr; }
}
