/* Beghim Orçamentos V5 — CRM / Pipeline */
.crm-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border-radius:22px;background:linear-gradient(135deg,#5f0c1b,#8b1730);color:#fff;margin-bottom:18px}.crm-hero h2{margin:4px 0 8px;font-size:28px}.crm-hero p{margin:0;max-width:760px;color:rgba(255,255,255,.82)}.crm-hero .eyebrow{color:#ffd8df}.crm-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.btn.ghost-light{background:transparent;border:1px solid rgba(255,255,255,.35);color:#fff}.btn.ghost-light:hover{background:rgba(255,255,255,.09)}
.crm-kpis{margin-bottom:18px}.crm-toolbar{padding:14px 16px;margin-bottom:16px}.crm-toolbar .filter-row{margin:0;grid-template-columns:minmax(260px,1fr) 220px 220px}.crm-board-wrap{overflow-x:auto;padding-bottom:10px;margin-bottom:18px}.crm-board{display:grid;grid-template-columns:repeat(7,minmax(265px,1fr));gap:12px;min-width:1930px;align-items:start}.crm-column{background:#f4f5f7;border:1px solid #e5e7eb;border-radius:18px;min-height:440px;overflow:hidden}.crm-column.drag-over{outline:2px dashed #7d1328;outline-offset:2px;background:#fbf1f3}.crm-column-head{padding:14px 14px 11px;border-bottom:1px solid #e1e4e8;background:#fff}.crm-column-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.crm-column-title strong{font-size:14px}.crm-column-title span{font-size:11px;background:#eceff2;border-radius:999px;padding:4px 8px;color:#555}.crm-column-money{font-size:12px;color:#667085;margin-top:5px}.crm-column-body{padding:10px;display:flex;flex-direction:column;gap:10px;min-height:370px}
.crm-card{background:#fff;border:1px solid #e1e4e8;border-radius:14px;padding:12px;box-shadow:0 2px 8px rgba(16,24,40,.04);cursor:grab}.crm-card:active{cursor:grabbing}.crm-card.is-dragging{opacity:.45}.crm-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.crm-card h3{font-size:14px;line-height:1.35;margin:0;color:#20242b}.crm-prob{flex:0 0 auto;font-size:10px;font-weight:700;border-radius:999px;padding:4px 7px;background:#f2e7ea;color:#741127}.crm-client{font-size:12px;color:#667085;margin:6px 0}.crm-card-value{font-size:18px;font-weight:800;color:#601020;margin:5px 0 8px}.crm-card-meta{display:grid;gap:5px;font-size:11px;color:#667085}.crm-card-meta span{display:flex;justify-content:space-between;gap:8px}.crm-card-meta b{color:#343a40;font-weight:600;text-align:right}.crm-card-actions{display:flex;gap:6px;margin-top:10px;border-top:1px solid #f0f0f0;padding-top:9px}.crm-card-actions button{flex:1}.crm-overdue{color:#b42318!important;font-weight:700}.crm-today{color:#b54708!important;font-weight:700}.crm-stage-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:7px;background:#98a2b3}.crm-stage-lead .crm-stage-dot{background:#667085}.crm-stage-qualificacao .crm-stage-dot{background:#175cd3}.crm-stage-orcamento .crm-stage-dot{background:#7a5af8}.crm-stage-proposta-enviada .crm-stage-dot{background:#b54708}.crm-stage-negociacao .crm-stage-dot{background:#c11574}.crm-stage-ganho .crm-stage-dot{background:#039855}.crm-stage-perdido .crm-stage-dot{background:#d92d20}
.crm-bottom{margin-top:2px}.crm-followups{display:grid;gap:9px}.crm-followup{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid #e8eaed;border-radius:12px}.crm-followup-main{min-width:0}.crm-followup strong{display:block;font-size:13px}.crm-followup span{display:block;font-size:11px;color:#667085;margin-top:3px}.crm-followup-time{font-size:11px;font-weight:700;white-space:nowrap}.crm-live-pill{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f2e7ea;color:#741127}.crm-stage-summary{display:grid;gap:8px}.crm-summary-row{display:grid;grid-template-columns:150px 42px 1fr 1fr;align-items:center;gap:10px;font-size:12px;padding:8px 0;border-bottom:1px solid #f0f0f0}.crm-summary-row:last-child{border-bottom:0}.crm-summary-row strong{font-size:12px}.crm-summary-row span{text-align:right;color:#667085}.crm-summary-row b{text-align:right;color:#5f0c1b}
.crm-empty{padding:28px 14px;text-align:center;color:#98a2b3;font-size:12px}.crm-quote-link{font-size:10px;font-weight:700;color:#7b1730;background:#faeef1;border-radius:7px;padding:3px 6px}.crm-lost-reason{font-size:10px;color:#b42318;background:#fef3f2;border-radius:8px;padding:5px 7px;margin-top:6px}.crm-source{font-size:10px;color:#667085}.crm-quick-stage{width:100%;font-size:11px;padding:6px 7px;border:1px solid #e4e7ec;border-radius:8px;background:#fff;margin-top:8px}.crm-from-quote{border-color:#8f2940!important;color:#76162b!important}
@media(max-width:900px){.crm-hero{align-items:flex-start;flex-direction:column}.crm-toolbar .filter-row{grid-template-columns:1fr}.crm-bottom{grid-template-columns:1fr!important}.crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.crm-summary-row{grid-template-columns:120px 36px 1fr}.crm-summary-row span:last-child{display:none}}
@media(max-width:560px){.crm-kpis{grid-template-columns:1fr!important}.crm-hero{padding:20px}.crm-hero h2{font-size:23px}}
.crm-analytics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.crm-loss-reasons{display:grid;gap:8px}.crm-loss-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #f0f0f0}.crm-loss-row:last-child{border-bottom:0}.crm-loss-row strong{font-size:12px}.crm-loss-row span{font-size:11px;color:#667085}.crm-loss-bar{grid-column:1/-1;height:6px;background:#f2f4f7;border-radius:999px;overflow:hidden}.crm-loss-bar i{display:block;height:100%;background:#a12840;border-radius:999px}.crm-history{margin-top:14px;padding:14px;border:1px solid #e7e9ed;border-radius:14px;background:#fafafa}.crm-history .panel-head{margin-bottom:8px}.crm-history h3{margin:0;font-size:14px}.crm-history-item{display:grid;grid-template-columns:26px 1fr auto;gap:9px;align-items:start;padding:9px 0;border-bottom:1px solid #eceef1}.crm-history-item:last-child{border-bottom:0}.crm-history-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#f2e7ea;color:#741127;font-size:11px;font-weight:800}.crm-history-item strong{display:block;font-size:12px}.crm-history-item p{margin:3px 0 0;font-size:11px;color:#667085}.crm-history-item time{font-size:10px;color:#667085;white-space:nowrap}.crm-history-complete{opacity:.62}
@media(max-width:1200px){.crm-analytics-grid{grid-template-columns:1fr 1fr}.crm-analytics-grid>.panel:last-child{grid-column:1/-1}}@media(max-width:760px){.crm-analytics-grid{grid-template-columns:1fr}.crm-analytics-grid>.panel:last-child{grid-column:auto}}
