.crm-offers-panel{margin:16px 0;padding:18px;border:1px solid #d8e1e9;border-radius:12px;background:#f7f9fc;color:#172b43}.crm-offers-panel h3{margin:0 0 10px}.crm-offers-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.crm-offers-actions a{display:inline-block;padding:8px 12px;border:1px solid #cbd5df;background:white;border-radius:7px;text-decoration:none;color:#172b43}.crm-offers-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.crm-offer-card{background:#fff;padding:15px;border:1px solid #d8e1e9;border-top:3px solid #f5a400;border-radius:9px}.crm-offer-card h3{font-size:17px}.crm-offers-panel small,.crm-offer-card small{display:block;color:#536477}.crm-summary-doc{border-bottom:1px solid #d8e1e9;padding:12px 0}.crm-summary-doc p{margin:5px 0}.crm-summary-warning{color:#925000;background:#fff4df;padding:10px;border-radius:6px}.crm-summary-table{width:100%;border-collapse:collapse}.crm-summary-table th,.crm-summary-table td{text-align:left;padding:7px;vertical-align:top;border-bottom:1px solid #d8e1e9}.crm-summary-scroll{overflow:auto}.crm-summary-kpis{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0}.crm-summary-kpis b{display:block;font-size:21px}.crm-summary-filter{display:flex;gap:8px;flex-wrap:wrap}.crm-summary-filter input{min-width:180px;flex:1}.crm-summary-filter select{max-width:100%}.crm-offers-panel button,.crm-offer-card button{white-space:normal}.crm-offers-copy{margin:8px 0;width:100%;box-sizing:border-box}.crm-summary-owner{max-width:190px;white-space:normal}.crm-offers-status{min-height:1.3em}.crm-doc-linker{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.crm-doc-linker select{max-width:100%;flex:1;min-width:170px}@media(max-width:600px){.crm-offers-panel{padding:12px}.crm-offers-grid{grid-template-columns:1fr}.crm-summary-table{font-size:12px}.crm-summary-owner{max-width:140px}.crm-offers-actions>*{flex:1 1 120px}}

/* Scoped summary and CRM list layout. */
.modal-card:has(#crmSummaryHistory){width:min(1040px,calc(100vw - 32px));max-width:1040px;max-height:92vh;padding:24px;overflow-x:hidden}
.modal-card:has(#crmSummaryHistory) #modalBody{min-width:0;max-width:100%;overflow-wrap:anywhere}
.crm-summary-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-right:22px;margin-bottom:18px}
.crm-summary-heading>div{min-width:0}.crm-summary-heading span{font-size:12px;color:#667d91}.crm-summary-heading h2{font-size:23px;color:#17374e;margin:5px 0;overflow-wrap:anywhere}
.crm-summary-heading .crm-summary-stage{padding:6px 10px;background:#e7f4ee;color:#17664c;border-radius:16px;white-space:normal;font-weight:600}
.crm-summary-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.crm-summary-facts>div{padding:11px 13px;background:#f5f8fb;border:1px solid #e2e9ef;border-radius:8px;min-width:0}.crm-summary-facts small{display:block;color:#647b8c;font-size:11px;margin-bottom:4px}.crm-summary-facts strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.modal-card:has(#crmSummaryHistory) .crm-offers-actions button{border:1px solid #cbd7e1;background:#fff;border-radius:7px;padding:8px 11px;color:#17374e;cursor:pointer;white-space:normal;min-height:36px;font-size:12px}
.modal-card:has(#crmSummaryHistory) .crm-offers-actions{padding:10px 0;gap:7px;border-bottom:1px solid #e3eaf0}
.modal-card:has(#crmSummaryHistory) .crm-offers-panel{margin:12px 0;padding:15px;background:#fff;min-width:0}.modal-card:has(#crmSummaryHistory) .crm-offers-grid{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
.modal-card:has(#crmSummaryHistory) .crm-doc-linker label{flex:1 1 240px;min-width:0;display:grid;gap:5px}.modal-card:has(#crmSummaryHistory) .crm-doc-linker select{width:100%;min-width:0;max-width:100%}.modal-card:has(#crmSummaryHistory) .crm-summary-kpis>div{background:#f1f6fa;border-radius:8px;padding:10px 16px;min-width:180px}
.crm-prospects-table{table-layout:fixed;min-width:0!important;width:100%}.crm-prospects-table th,.crm-prospects-table td{padding:9px 8px;vertical-align:middle;overflow-wrap:anywhere}
.crm-prospects-table th:first-child,.crm-prospects-table td:first-child{width:3%;padding-left:8px;padding-right:3px}.crm-prospects-table th:nth-child(2),.crm-prospects-table td:nth-child(2){width:5%;padding-left:2px;padding-right:2px}
.crm-prospects-table .crm-company-column{width:29%;max-width:none;white-space:normal}.crm-prospects-table th:nth-child(4){width:13%}.crm-prospects-table th:nth-child(5){width:13%}.crm-prospects-table th:nth-child(6){width:12%}.crm-prospects-table th:last-child{width:25%}
.crm-prospects-table td.actions{min-width:0!important;white-space:normal;padding:7px 5px}.crm-prospects-table .actions button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:calc(50% - 5px);min-width:0;min-height:25px;margin:2px;padding:4px 5px;border:1px solid #e1e8ef;border-radius:5px;background:#fff;font-size:11px;line-height:1.25;white-space:normal;text-align:center}
.crm-prospects-table .crm-summary-owner{display:block;max-width:none;font-size:10px;color:#62778b;line-height:1.35;margin-top:3px}.crm-prospects-table .crm-company-column>small{font-size:10px;line-height:1.35}
@media(max-width:700px){.crm-summary-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-summary-heading{flex-wrap:wrap;gap:8px}.crm-summary-heading h2{font-size:20px}.modal-card:has(#crmSummaryHistory){width:calc(100vw - 16px);padding:16px}.crm-prospects-table{min-width:760px!important}.modal-card:has(#crmSummaryHistory) .crm-summary-kpis>div{min-width:0;flex:1}}
