.crm-quotes { border-top: 1px solid var(--border, #e6dfd6); padding-block: 18px; }
.crm-quotes-heading, .crm-quote-head, .crm-quote-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.crm-quotes-heading h4 { margin: 0; }
.crm-quotes-create { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.crm-quote-info { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-block: 5px 7px; }
.crm-quote-total { font-size: 13px; font-weight: 700; margin: 0; white-space: nowrap; }
.crm-quotes .crm-timeline-add { white-space: nowrap; }
.crm-quotes-empty, .crm-quote-meta, .crm-quotes-hint { color: #77736e; font-size: 12px; }
.crm-quote { margin-top: 8px; padding: 10px 12px; border: 1px solid #ede8e2; border-radius: 9px; background: #fff; min-width: 0; }
.crm-quote-head { gap: 6px; align-items: flex-start; flex-wrap: nowrap; }
.crm-quote-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.8; }
.crm-quote-title strong, .crm-quote p { overflow-wrap: anywhere; }
.crm-quote-pdf { padding: 2px 4px; border-radius: 4px; background: #fff3ee; color: #b94a27; font-size: 8px; flex: none; }
.crm-quote-state { font-size: 9px; border-radius: 12px; padding: 3px 7px; background: #f3f1ed; color: #635c54; flex-shrink: 0; }
.crm-quote-state.is-accepted { background: #e5f4ee; color: #176f54; }
.crm-quote-state.is-rejected { background: #fff0f0; color: #b63040; }
.crm-quote-actions { justify-content: flex-start; gap: 6px; font-size: 10px; }
.crm-quote-actions a, .crm-quote-actions button { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; min-height: 28px; box-sizing: border-box; border: 1px solid #e8e0d9; border-radius: 6px; text-decoration: none; line-height: 1.5; }
.crm-quote-actions button, .crm-quote-dialog .today-action-link { border: 0; background: none; font: inherit; color: #ae3815; cursor: pointer; }
.crm-quote-actions button { border: 1px solid #e8e0d9; color: #655d55; }
.crm-quote-actions a { background: #fff2eb; border-color: #ffe0d1; color: #9c3416; }
.crm-quote-actions a:hover, .crm-quote-actions button:hover { background: #f7f4f0; border-color: #cfc3b7; }
.crm-quote .crm-quote-meta { font-size: 10px; }
.crm-quote-more { margin-top: 6px; font-size: 10px; }
.crm-quote-more > summary { display: inline-block; padding: 3px 0; }
.crm-quote-more[open] > summary { margin-bottom: 5px; }
.crm-quote-details { margin-top: 9px; font-size: 12px; }
.crm-quote-details summary { cursor: pointer; color: #77736e; }
.crm-quote-details p { white-space: pre-wrap; }
.crm-quote-dialog { box-sizing: border-box; border: 0; border-radius: 18px; width: min(490px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; color: #252522; }
.crm-quote-dialog::backdrop { background: #0007; }
.crm-quote-dialog h2 { font-size: 21px; margin: 0; }
.crm-quote-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.crm-quote-form { display: grid; gap: 17px; margin-top: 20px; }
.crm-quote-form input, .crm-quote-form select, .crm-quote-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #e6dfd6; border-radius: 10px; padding: 11px; font: inherit; background: #fff; color: inherit; }
.crm-quote-form input[type=file] { font-size: 12px; padding: 16px 9px; background: #faf9f7; }
.crm-quote-form textarea { min-height: 70px; resize: vertical; }
.crm-quote-form details label { margin-top: 12px; }
.crm-quote-error { color: #ab263c; font-size: 13px; margin: 0; }
.crm-quote-dialog button:focus-visible, .crm-quotes button:focus-visible, .crm-quotes a:focus-visible { outline: 2px solid #f54a1c; outline-offset: 3px; }
@media (max-width: 420px) { .crm-quote-dialog { padding: 18px; } .crm-quote { padding: 9px; } .crm-quote-title { font-size: 11px; } .crm-quote-actions { gap: 5px; } .crm-quote-actions a, .crm-quote-actions button { padding-inline: 6px; } }
