#view-quotations { min-width: 0; }
#view-quotations *, #view-quotations *::before, #view-quotations *::after { box-sizing: border-box; letter-spacing: 0; }
#view-quotations h3 { font-size: 20px; }
#view-quotations h4 { font-size: 16px; margin: 0; }
#view-quotations label { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
#view-quotations input, #view-quotations select, #view-quotations textarea { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
#view-quotations input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; accent-color: #17372f; }
#view-quotations .quotation-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.quotation-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.quotation-toolbar label { flex: 1; min-width: 160px !important; }
.quotation-toolbar button, .quotation-actions button { min-height: 44px; white-space: nowrap; }
.quotation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quotation-wide { grid-column: 1 / -1; }
.quotation-section { padding-block: 20px; border-bottom: 1px solid #cdd6d2; }
.quotation-section:first-of-type { border-top: 1px solid #cdd6d2; }
.quotation-item { padding: 20px 0; border-top: 1px solid #cdd6d2; }
.quotation-item-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 12px; align-items: center; margin-bottom: 16px; }
.quotation-item-head strong { display: block; overflow-wrap: anywhere; font-size: 16px; }
.quotation-item-head small { display: block; margin-top: 4px; color: #5b6962; overflow-wrap: anywhere; }
.quotation-image-slot { width: 56px; height: 56px; border: 1px solid #ccd5d0; background: #f8faf9; border-radius: 3px; }
.quotation-image-slot img { display: block; width: 100%; height: 100%; object-fit: contain; background: white; }
.quotation-image-choice { margin-bottom: 16px; max-width: 360px; }
#view-quotations .quotation-icon { width: 44px; height: 44px; min-height: 44px; display: inline-grid; place-content: center; padding: 0; font-size: 22px; border: 1px solid #ccd5d0; border-radius: 4px; background: white; color: #17372f; }
.quotation-tier-wrap { overflow-x: auto; max-width: 100%; margin-top: 16px; border: 1px solid #cdd6d2; }
.quotation-tier-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
#view-quotations .quotation-tier-table { width: 100%; min-width: 730px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
#view-quotations .quotation-tier-table.quantity-only { min-width: 570px; }
#view-quotations .quotation-tier-table.payment-only { min-width: 380px; }
#view-quotations .quotation-tier-table th { background: #eef2f0; text-align: left; padding: 10px 8px; font-size: 13px; white-space: normal; }
#view-quotations .quotation-tier-table td { padding: 8px; vertical-align: middle; border-top: 1px solid #dce2df; }
#view-quotations .quotation-tier-table th:last-child { width: 60px; }
.quotation-empty { color: #65726a; padding: 12px 0; font-size: 14px; }
.quotation-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0; }
.quotation-error { color: #a12b25; margin: 10px 0; overflow-wrap: anywhere; }
#quotation-list table { width: 100%; min-width: 800px; border-collapse: collapse; }
#quotation-list tr { display: table-row; }
#quotation-list th, #quotation-list td { display: table-cell; white-space: nowrap; padding: 8px 12px; border-bottom: 1px solid #dce2df; }
#quotation-list th { text-align: left; font-size: 13px; background: #eef2f0; }
#quotation-list td::before { display: none; }
#quotation-list td:last-child { white-space: nowrap; }
#quotation-list .table-button { min-height: 44px; margin: 0 6px 0 0; }
#quotation-editor fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#quotation-editor fieldset:disabled { opacity: .8; }
.quotation-revision { color: #5a6761; font-size: 14px; }
@media (min-width: 1100px) {
  .quotation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quotation-half { grid-column: span 2; }
}
@media (max-width: 400px) {
  #view-quotations .quotation-grid { gap: 12px; }
  #view-quotations .quotation-toolbar { gap: 8px; }
  #view-quotations .quotation-actions button { flex: 1 1 auto; }
}
