.quotation-shell{align-items:start}
.quotation-shell>*{min-width:0;max-width:100%}
.quotation-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:16px}
.quotation-filters button{min-height:44px}
.quotation-context{margin:14px 0 0;padding:12px;border:1px solid #9fc7ea;background:#edf6ff;color:var(--ink)}
.quotation-context strong{color:var(--amfri-blue)}
.quotation-table{width:100%;min-width:0;table-layout:fixed}
.quotation-table th,.quotation-table td{padding:10px 8px;vertical-align:middle}
.quotation-table th:nth-child(1),.quotation-table td:nth-child(1){width:54px}
.quotation-table th:nth-child(3),.quotation-table td:nth-child(3){width:58px;text-align:center}
.quotation-table th:nth-child(4),.quotation-table td:nth-child(4){width:128px;text-align:center}
.quotation-table th:nth-child(5),.quotation-table td:nth-child(5){width:106px;text-align:center}
.quotation-table td{overflow-wrap:normal}
.quotation-code{font-family:var(--mono);font-weight:700;color:var(--amfri-blue)}
.quotation-description{font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.quotation-table [data-quotation-open]{width:100%;min-height:40px;padding:8px 6px;font-size:10px;letter-spacing:0;white-space:nowrap}
.quotation-date{display:inline-flex;min-width:92px;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;border:1px solid currentColor;background:#fff;font-family:var(--mono);font-size:11px;font-weight:700;line-height:1.15}
.quotation-date.is-current{background:#e5f6f1;color:#087665}
.quotation-date.is-warning{background:#fff4cf;color:#946100}
.quotation-date.is-stale{background:#fff0f0;color:#b9323a}
.quotation-date small{font-size:9px;font-weight:700;letter-spacing:0;text-transform:uppercase}
.quotation-modal-card{width:1120px;max-width:calc(100vw - 40px);min-width:0;overflow-x:hidden;padding:20px}
.quotation-modal-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}
.quotation-modal-head h2{margin:4px 0 0;color:var(--amfri-blue);font-family:var(--head);font-size:26px;line-height:1.1}
.quote-component-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 12px;background:#e6f1fa;border:1px solid #bfd5ea;color:var(--amfri-blue)}
.quote-component-head span{font-family:var(--mono);font-size:11px;text-transform:uppercase}
.quote-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.quote-source-card{min-width:0;border:1px solid #bfd5ea;background:#fff;display:grid;grid-template-rows:150px 1fr}
.quote-source-card.is-lowest{border-color:#168a78;box-shadow:inset 0 3px 0 #168a78}
.quote-source-card>img{width:100%;height:150px;object-fit:contain;padding:10px;background:#f4f8fb}
.quote-source-placeholder{display:flex;height:150px;align-items:center;justify-content:center;padding:10px;background:#f4f8fb;color:#718399;font-family:var(--mono);font-size:10px;text-align:center;text-transform:uppercase}
.quote-source-content{display:flex;min-width:0;flex-direction:column;padding:13px}
.quote-source-content p{min-height:44px;margin:8px 0;color:var(--ink);font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.quote-source-content small{display:block;margin-top:6px;color:#5c7086;line-height:1.4}
.quote-source-supplier{display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--amfri-blue)}
.quote-source-supplier span{padding:3px 6px;background:#e4f7f3;color:#087665;font-family:var(--mono);font-size:9px;text-transform:uppercase}
.quote-source-price{color:#087665;font-family:var(--head);font-size:25px;line-height:1}
.quote-source-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:14px}
.quote-source-actions .btn,.quote-source-actions button{display:flex;justify-content:center;align-items:center;min-height:40px;padding:8px;text-align:center}
.quote-report-form{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #bfd5ea}
.quote-report-form textarea{min-height:76px}
.quote-report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quote-honeypot{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
.quotation-relations{margin-top:20px;padding-top:18px;border-top:1px solid #bfd5ea}
.quotation-relations h3{margin:4px 0 10px;color:var(--ink);font-family:var(--head);font-size:20px}
.quotation-relation-list{display:flex;flex-wrap:wrap;gap:8px}
.quotation-relation-list .btn{width:auto;min-height:38px;padding:8px 12px}
body.quotation-modal-open{overflow:hidden}

@media (max-width:800px){
  .quotation-filters{grid-template-columns:1fr}
  .quotation-filters button{width:100%}
  .quotation-modal-head{display:grid}
  .quote-source-grid,.quote-source-actions,.quote-report-actions{grid-template-columns:1fr}
}
@media (max-width:620px){
  .quotation-table{min-width:560px}
}
