.quotation-attachment-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.quotation-attachment-count {
  min-width: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e8eff6;
  color: #1e486f;
  font-size: 11px;
  line-height: 15px;
  font-variant-numeric: tabular-nums;
}
.quotation-attachment-count[hidden] { display: none; }
.quotation-attachments, .quotation-attachment-confirm, .quotation-attachment-preview {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(540px, calc(100% - 24px));
  height: fit-content;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 42px #17233d33;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
}
.quotation-attachments::backdrop, .quotation-attachment-confirm::backdrop, .quotation-attachment-preview::backdrop { background: #10182866; }
.quotation-attachments[open] { display: flex; flex-direction: column; }
.quotation-attachments [hidden] { display: none !important; }
.quotation-attachments-heading, .quotation-attachments-body, .quotation-attachments-actions { padding: 16px 20px; }
.quotation-attachments-heading { border-bottom: 1px solid #e5e9ef; }
.quotation-attachments-heading h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.quotation-attachments-heading p { margin: 4px 0 0; color: #475467; font-variant-numeric: tabular-nums; }
.quotation-attachments-body { overflow: auto; min-height: 0; }
.quotation-attachments-body > p { margin: 0 0 12px; overflow-wrap: anywhere; color: #475467; }
.quotation-attachments form label { display: block; font-weight: 600; }
.quotation-attachments form label span { color: #475467; font-weight: 400; }
.quotation-attachments textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 6px 0 12px;
  padding: 8px 10px;
  border: 1px solid #bcc7d4;
  border-radius: 5px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}
.quotation-attachments textarea::placeholder { color: #56647a; }
.quotation-attachment-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #8a9bb2;
  border-radius: 6px;
  background: #f7f9fc;
  color: #344054;
}
.quotation-attachment-drop svg { flex: none; color: #56647a; }
.quotation-attachment-drop.is-dragging { border-color: #165dba; background: #edf5ff; }
.quotation-attachment-drop p { margin: 4px 0 0; color: #475467; font-size: 12px; }
.quotation-attachments .quotation-attachment-link {
  border: 0;
  padding: 2px;
  background: transparent;
  color: #1557a8;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.quotation-attachments .quotation-attachment-link:hover:not(:disabled) { text-decoration: underline; }
.quotation-attachments .quotation-attachment-preview-link { padding: 0; text-align: left; overflow-wrap: anywhere; }
.quotation-attachments :is(button, textarea):focus-visible { outline: 2px solid #165dba; outline-offset: 2px; }
.quotation-attachments button:disabled { opacity: .55; cursor: default; }
.quotation-attachment-list { list-style: none; margin: 8px 0 0; padding: 0; }
.quotation-attachment-list li { display: flex; align-items: start; gap: 12px; justify-content: space-between; padding: 8px 0; border-top: 1px solid #e5e9ef; }
.quotation-attachment-list li > div { min-width: 0; overflow-wrap: anywhere; }
.quotation-attachment-list strong { font-weight: 600; }
.quotation-attachment-list small { color: #475467; margin-inline-start: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quotation-attachment-list p { color: #475467; margin: 4px 0 0; white-space: pre-wrap; }
.quotation-attachment-row-actions { display: flex; flex: none; gap: 12px; }
.quotation-attachments .quotation-attachment-delete { color: #a62624; }
.quotation-attachments-body section { margin-top: 14px; }
.quotation-attachments-body section:first-child { margin-top: 0; }
.quotation-attachments-body h3 { margin: 0; font-size: 14px; }
.quotation-attachments-body h3 span, .quotation-attachments-body [data-empty] { color: #475467; font-weight: 400; }
.quotation-attachments-body [data-empty] { margin: 6px 0 0; }
.quotation-attachments-body .quotation-attachment-status { margin: 12px 0 0; }
.quotation-attachments-body .is-error { color: #a62624; }
.quotation-attachments-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid #e5e9ef; }
.quotation-attachments-actions .btn { padding: 7px 14px; font: inherit; }
.quotation-attachments-actions .btn-primary { background: #1557a8; color: #fff; }
.quotation-attachments-actions .btn-primary:hover:not(:disabled) { background: #104687; }
.quotation-attachment-confirm { width: min(390px, calc(100% - 24px)); }
.quotation-attachment-confirm .quotation-attachments-body h3 { font-size: 16px; }
.quotation-attachment-confirm .quotation-attachments-body p { margin: 8px 0 0; }
.quotation-attachments-actions .quotation-attachment-confirm-delete { background: #a62624; color: #fff; }
.quotation-attachments-actions .quotation-attachment-confirm-delete:hover { background: #861e1d; }
.quotation-attachment-preview { width: min(1080px, calc(100% - 24px)); height: min(820px, calc(100dvh - 24px)); }
.quotation-attachment-preview[open] { display: flex; flex-direction: column; }
.quotation-attachment-preview .quotation-attachments-heading p { overflow-wrap: anywhere; }
.quotation-attachment-preview-content { display: grid; place-items: center; flex: 1; min-height: 0; overflow: auto; background: #f7f9fc; }
.quotation-attachment-preview-content p { margin: 20px; color: #475467; }
.quotation-attachment-preview-content iframe { width: 100%; height: 100%; border: 0; }
.quotation-attachment-preview-content img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 440px) {
  .quotation-attachments-heading, .quotation-attachments-body, .quotation-attachments-actions { padding: 12px 14px; }
}
