:root {
  --onex-op-navy:#002050;
  --onex-op-crm:#0078d4;
  --onex-op-ink:#24354a;
  --onex-op-muted:#586b80;
  --onex-op-line:#dde5ef;
  --onex-op-surface:#fff;
  --onex-op-canvas:#f4f7fb;
  --onex-op-crm-tint:#e8f3fc;
  --onex-op-stage-new:#586b80;
  --onex-op-stage-contact:#0078d4;
  --onex-op-stage-qualified:#386b99;
  --onex-op-stage-documents:#7444a5;
  --onex-op-stage-analysis:#896200;
  --onex-op-stage-proposal:#002050;
  --onex-op-stage-won:#107c41;
  --onex-op-stage-neutral-tint:#e9eef5;
  --onex-op-stage-documents-tint:#f1ebf8;
  --onex-op-stage-analysis-tint:#fff5cf;
  --onex-op-stage-won-tint:#e8f5ee;
  --onex-op-target:36px;
}
.onex-deal-card,.onex-opportunity-indicators{font-family:"Segoe UI",system-ui,sans-serif}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="new"]{--onex-op-stage-color:var(--onex-op-stage-new);--onex-op-stage-tint:var(--onex-op-canvas)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="contact"]{--onex-op-stage-color:var(--onex-op-stage-contact);--onex-op-stage-tint:var(--onex-op-crm-tint)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="qualified"]{--onex-op-stage-color:var(--onex-op-stage-qualified);--onex-op-stage-tint:var(--onex-op-stage-neutral-tint)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="documents"]{--onex-op-stage-color:var(--onex-op-stage-documents);--onex-op-stage-tint:var(--onex-op-stage-documents-tint)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="analysis"]{--onex-op-stage-color:var(--onex-op-stage-analysis);--onex-op-stage-tint:var(--onex-op-stage-analysis-tint)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="proposal"]{--onex-op-stage-color:var(--onex-op-stage-proposal);--onex-op-stage-tint:var(--onex-op-stage-neutral-tint)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship)[data-onex-stage="won"]{--onex-op-stage-color:var(--onex-op-stage-won);--onex-op-stage-tint:var(--onex-op-stage-won-tint)}
.onex-op-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--onex-op-crm);flex-shrink:0;vertical-align:middle}
.onex-op-icon svg{display:block;width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.crm-funnel-pilot .board .deal-card.onex-deal-card{background:var(--onex-op-surface);color:var(--onex-op-ink);border:1px solid var(--onex-op-line);border-left:2px solid var(--onex-op-stage-color,var(--onex-op-crm));border-radius:6px;box-shadow:none;padding:8px 10px;min-width:0}
.crm-funnel-pilot .board .deal-card.onex-deal-card h3{font-size:14px;font-weight:700;line-height:1.35;margin:0 0 6px;color:var(--onex-op-navy);letter-spacing:-.1px;overflow-wrap:anywhere}
.crm-funnel-pilot .board .deal-card.onex-deal-card .deal-product{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;margin:0 0 4px;font-size:11px;line-height:1.4;color:var(--onex-op-muted)}
:is(.onex-deal-card,.onex-op-row,.onex-op-relationship) .onex-op-stage{font-size:10px;font-weight:600;line-height:1.4;color:var(--onex-op-navy);background:var(--onex-op-stage-tint,var(--onex-op-crm-tint));padding:3px 6px;border-radius:4px;max-width:100%;overflow-wrap:anywhere}
.crm-funnel-pilot .board .deal-card.onex-deal-card .deal-value-owner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 6px;margin:4px 0;line-height:1.3}
.onex-deal-card .onex-op-value{font-size:17px;line-height:1.25;font-weight:750;color:var(--onex-op-navy);font-variant-numeric:tabular-nums;letter-spacing:-.4px;max-width:100%;overflow-wrap:anywhere}
.onex-deal-card .onex-op-owner{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:10px;font-weight:400;line-height:1.4;color:var(--onex-op-muted);overflow-wrap:anywhere}
.onex-op-owner .onex-op-icon{color:var(--onex-op-muted)}
.onex-op-owner .onex-op-icon svg{width:13px;height:13px}
.crm-funnel-pilot .board .deal-card.onex-deal-card .deal-last-activity{font-size:10px;line-height:1.4;color:var(--onex-op-muted);margin:0 0 6px}
.crm-funnel-pilot .board .deal-card.onex-deal-card .deal-next-action{font-size:11px;line-height:1.45;color:var(--onex-op-muted);margin:0;padding-top:6px;border-top:1px solid var(--onex-op-line);overflow-wrap:anywhere}
.onex-deal-card .deal-next-action>.onex-op-icon{margin-right:4px}
.crm-funnel-pilot .board .deal-card.onex-deal-card .deal-next-action strong{color:var(--onex-op-ink);font-weight:600}
.crm-funnel-pilot .board .deal-card.onex-deal-card .row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:2px;margin-top:5px!important}
.crm-funnel-pilot .board .deal-card.onex-deal-card .row-actions button{height:auto;min-height:var(--onex-op-target);min-width:36px;padding:5px 7px!important;border:0;border-radius:4px;background:transparent;color:var(--onex-op-muted);font:600 11px "Segoe UI",system-ui,sans-serif;box-shadow:none}
.crm-funnel-pilot .board .deal-card.onex-deal-card .row-actions [data-action="open-lead"]{background:transparent;color:var(--onex-op-crm);font-weight:700}
.crm-funnel-pilot .board .deal-card.onex-deal-card .row-actions button:hover{background:var(--onex-op-crm-tint);color:var(--onex-op-navy);filter:none}
.onex-deal-card button:focus-visible{outline:2px solid var(--onex-op-crm);outline-offset:2px}
.opportunity-executive .opportunity-summary-grid.onex-opportunity-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;padding:0;margin-bottom:16px;border:1px solid var(--onex-op-line);border-radius:8px;background:var(--onex-op-line);overflow:visible}
.opportunity-executive .onex-opportunity-indicators>article,.opportunity-executive .onex-opportunity-indicators>button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;min-width:0;min-height:118px;padding:14px;border:0;border-radius:0;box-shadow:none;background:var(--onex-op-canvas);font-family:inherit;text-align:left}
.opportunity-executive .onex-opportunity-indicators>:first-child{border-radius:7px 0 0 7px}
.opportunity-executive .onex-opportunity-indicators>:last-child{border-radius:0 7px 7px 0}
.opportunity-executive .onex-opportunity-indicators small{display:flex;align-items:center;gap:7px;min-width:0;min-height:26px;font-size:11px;font-weight:600;line-height:1.35;color:var(--onex-op-muted)}
.onex-opportunity-indicators small .onex-op-icon{width:26px;height:26px;flex:0 0 26px;border-radius:6px;background:var(--onex-op-crm-tint);color:var(--onex-op-crm)}
.onex-opportunity-indicators small .onex-op-icon svg{width:16px;height:16px}
.opportunity-executive .onex-opportunity-indicators strong{font-size:15px;line-height:1.4;margin:0;color:var(--onex-op-navy);font-weight:700;letter-spacing:-.1px;overflow-wrap:anywhere;min-width:0}
.opportunity-executive .onex-opportunity-indicators strong b{font-size:24px;font-weight:750;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.opportunity-executive .onex-opportunity-indicators strong span{display:block;font-size:11px;font-weight:400;line-height:1.4;color:var(--onex-op-muted)}
.opportunity-executive .onex-opportunity-indicators>article>span,.opportunity-executive .onex-opportunity-indicators>button>span{font-size:11px;line-height:1.45;color:var(--onex-op-muted);overflow-wrap:anywhere}
.opportunity-executive .onex-opportunity-indicators>button{cursor:pointer}
.opportunity-executive .onex-opportunity-indicators>button:hover{background:var(--onex-op-crm-tint);filter:none}
.opportunity-executive .onex-opportunity-indicators>button:focus-visible{outline:2px solid var(--onex-op-crm);outline-offset:-3px}
@media(max-width:780px){.opportunity-executive .opportunity-summary-grid.onex-opportunity-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}.opportunity-executive .onex-opportunity-indicators>article,.opportunity-executive .onex-opportunity-indicators>button{padding:12px;min-height:130px;border-radius:0}.opportunity-executive .onex-opportunity-indicators>:first-child{border-radius:7px 0 0 0}.opportunity-executive .onex-opportunity-indicators>:nth-child(2){border-radius:0 7px 0 0}.opportunity-executive .onex-opportunity-indicators>:nth-child(3){border-radius:0 0 0 7px}.opportunity-executive .onex-opportunity-indicators>:last-child{border-radius:0 0 7px 0}}
@media(max-width:600px),(pointer:coarse){:root{--onex-op-target:44px}.crm-funnel-pilot .board .deal-card.onex-deal-card .row-actions button{min-width:44px}.opportunity-executive:has(.onex-opportunity-indicators) .modal-head button{width:44px;height:44px}.opportunity-executive:has(.onex-opportunity-indicators) .opportunity-tabs button{min-height:44px}}

.crm-funnel-pilot .workspace.funnel-board-mode .board .column-list{padding:5px;scrollbar-gutter:auto;scrollbar-width:thin}
.crm-funnel-pilot .onex-op-list{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start;border:0;background:transparent;min-width:0}
.crm-funnel-pilot .onex-op-list>.table-wrap{min-width:0;max-height:calc(100dvh - 200px);overflow:auto;background:var(--onex-op-surface);border:1px solid var(--onex-op-line);border-radius:6px}
.crm-funnel-pilot .onex-op-list table{width:100%;min-width:1000px;font-size:12px;line-height:1.45}
.crm-funnel-pilot .onex-op-list th{background:var(--onex-op-canvas);color:var(--onex-op-muted);font-size:10px;letter-spacing:0;text-transform:none;padding:10px 12px;border-bottom:1px solid var(--onex-op-line)}
.crm-funnel-pilot .onex-op-list td{padding:10px 12px;border:0;border-bottom:1px solid var(--onex-op-line);vertical-align:top;color:var(--onex-op-ink);white-space:normal}
.crm-funnel-pilot .onex-op-list tbody tr:last-child td{border-bottom:0}
.crm-funnel-pilot .onex-op-list tbody tr:hover,.crm-funnel-pilot .onex-op-list tbody tr.selected{background:var(--onex-op-crm-tint)}
.crm-funnel-pilot .onex-op-list td:first-child{min-width:160px;max-width:220px}
.crm-funnel-pilot .onex-op-list td small{display:block;color:var(--onex-op-muted);font-size:10px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.crm-funnel-pilot .onex-op-list .onex-op-select{display:block;border:0;background:transparent;box-shadow:none;color:var(--onex-op-navy);padding:0;min-height:36px;font:600 13px/1.4 "Segoe UI",system-ui,sans-serif;text-align:left;overflow-wrap:anywhere;max-width:100%}
.crm-funnel-pilot .onex-op-list .onex-op-select[aria-pressed="true"]{color:var(--onex-op-crm)}
.crm-funnel-pilot .onex-op-list .onex-op-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--onex-op-navy);min-width:100px}
.crm-funnel-pilot .onex-op-list td.onex-op-money strong{font-size:14px;font-weight:700}
.crm-funnel-pilot .onex-op-list .onex-op-stage{display:inline-flex;border-left:2px solid var(--onex-op-stage-color);line-height:1.5;white-space:normal;min-width:100px;box-sizing:border-box;overflow-wrap:normal;word-break:normal}
.crm-funnel-pilot .onex-op-list .onex-op-next{min-width:155px;max-width:230px;overflow-wrap:anywhere}
.crm-funnel-pilot .onex-op-list .onex-op-next strong{font-weight:600;font-size:12px;color:var(--onex-op-navy)}
.crm-funnel-pilot .onex-op-list .onex-op-priority{font-size:10px;color:var(--onex-op-muted)}
.crm-funnel-pilot .onex-op-list .row-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:2px;min-width:146px}
.crm-funnel-pilot .onex-op-list .row-actions button{min-width:36px;min-height:36px;height:auto;border:1px solid transparent;background:transparent;box-shadow:none;border-radius:4px;padding:6px!important;font:11px/1.3 "Segoe UI",system-ui,sans-serif;color:var(--onex-op-muted);white-space:nowrap}
.crm-funnel-pilot .onex-op-list .row-actions [data-action="open-lead"]{color:var(--onex-op-crm);font-weight:600}
.crm-funnel-pilot .onex-op-list .row-actions button:hover{background:var(--onex-op-crm-tint);color:var(--onex-op-crm)}
.crm-funnel-pilot .onex-op-list :is(button,.table-wrap):focus-visible{outline:2px solid var(--onex-op-crm);outline-offset:2px}
.crm-funnel-pilot .onex-op-relationship{display:block;box-sizing:border-box;min-width:0;max-height:calc(100dvh - 200px);overflow:auto;background:var(--onex-op-surface);color:var(--onex-op-ink);border:1px solid var(--onex-op-line);border-radius:6px;padding:14px}
.crm-funnel-pilot .onex-op-relationship h2{font-size:17px;line-height:1.35;letter-spacing:-.2px;margin:5px 0;color:var(--onex-op-navy);overflow-wrap:anywhere}
.crm-funnel-pilot .onex-op-relationship>.side-muted:first-child{display:block;font-size:9px;letter-spacing:.6px;margin:0;color:var(--onex-op-muted)}
.crm-funnel-pilot .onex-op-relationship .side-muted{padding:0;text-align:left;font-size:11px;line-height:1.5;margin:5px 0 10px;overflow-wrap:anywhere;color:var(--onex-op-muted)}
.crm-funnel-pilot .onex-op-relationship .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:var(--onex-op-canvas);padding:12px;border-radius:5px;margin:12px 0}
.crm-funnel-pilot .onex-op-relationship .detail-box{border:0;border-radius:0;background:transparent;padding:0;min-width:0;font-size:12px;line-height:1.45;overflow-wrap:anywhere;color:var(--onex-op-navy);font-weight:600;font-variant-numeric:tabular-nums}
.crm-funnel-pilot .onex-op-relationship .detail-box small{font-size:10px;text-transform:none;letter-spacing:0;margin-bottom:4px;font-weight:400;color:var(--onex-op-muted)}
.crm-funnel-pilot .onex-op-relationship .detail-box:nth-child(n+5){grid-column:1/-1}
.crm-funnel-pilot .onex-op-relationship .detail-box .onex-op-stage{display:inline-block;border-left:2px solid var(--onex-op-stage-color)}
.crm-funnel-pilot .onex-op-relationship .detail-grid+div{gap:4px!important;margin-top:8px!important}
.crm-funnel-pilot .onex-op-relationship button{font-size:11px;line-height:1.4;min-height:36px;padding:7px 9px;border:1px solid var(--onex-op-line);background:var(--onex-op-surface);color:var(--onex-op-ink);box-shadow:none}
.crm-funnel-pilot .onex-op-relationship button.primary{background:var(--onex-op-crm-tint);border-color:transparent;color:var(--onex-op-crm)}
.crm-funnel-pilot .onex-op-relationship h3{font-size:12px;color:var(--onex-op-navy);margin:16px 0 8px!important;padding-top:12px;border-top:1px solid var(--onex-op-line)}
.crm-funnel-pilot .onex-op-relationship .timeline-entry{border:0;border-left:2px solid var(--onex-op-line);padding:0 0 0 10px;margin:12px 0;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.crm-funnel-pilot .onex-op-relationship .timeline-entry>div{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.crm-funnel-pilot .onex-op-relationship .timeline-entry p{font-size:11px;margin:5px 0;color:var(--onex-op-ink)}
.crm-funnel-pilot .onex-op-relationship .timeline-entry small{display:block;color:var(--onex-op-muted);font-size:10px}
.opportunity-executive.onex-op-create{width:min(900px,calc(100vw - 32px));color:var(--onex-op-ink)}
.opportunity-executive.onex-op-create .modal-head{padding:12px 20px;min-height:68px}
.opportunity-executive.onex-op-create .modal-head small{font-size:9px;letter-spacing:.6px;color:var(--onex-op-muted)}
.opportunity-executive.onex-op-create .modal-head h2{font-size:20px;font-weight:650;margin:4px 0 0;color:var(--onex-op-navy)}
.opportunity-executive.onex-op-create .modal-head button{min-width:36px;min-height:36px}
.opportunity-executive.onex-op-create .modal-body{padding:16px 20px;overflow-x:hidden;overscroll-behavior:contain}
.onex-op-create .onex-op-client-context{background:var(--onex-op-canvas);border-radius:5px;padding:10px 12px;display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
.onex-op-client-context>span{display:inline-flex;align-items:center;gap:7px;color:var(--onex-op-navy);font-size:12px}
.onex-op-client-context>small{font-size:10px;color:var(--onex-op-muted);margin-left:auto}
.onex-op-client-context>p{flex-basis:100%;margin:0;font-size:11px;line-height:1.5;color:var(--onex-op-muted)}
.opportunity-executive.onex-op-create .onex-op-form-section{border:0;border-top:1px solid var(--onex-op-line);padding:12px 0 0;margin:16px 0 0;min-width:0}
.opportunity-executive.onex-op-create legend{font-size:12px;font-weight:600;color:var(--onex-op-navy);padding:0 10px 0 0}
.opportunity-executive.onex-op-create .form-grid{gap:12px 16px}
.opportunity-executive.onex-op-create .field{grid-column:span 4}
.opportunity-executive.onex-op-create .field[data-op-field="name"]{grid-column:span 6}
.opportunity-executive.onex-op-create :is(.field[data-op-field="origin"],.field[data-op-field="stage"]){grid-column:span 6}
.opportunity-executive.onex-op-create :is(.field[data-op-field="doc"],.field[data-op-field="phone"]){grid-column:span 3}
.opportunity-executive.onex-op-create .field[data-op-field="nextAction"],.opportunity-executive.onex-op-create .field.full{grid-column:1/-1}
.opportunity-executive.onex-op-create .field label{color:var(--onex-op-muted);font-weight:500}
.opportunity-executive.onex-op-create :is(input,select,textarea){font-family:"Segoe UI",system-ui,sans-serif;font-size:12px;border-color:var(--onex-op-line);color:var(--onex-op-navy)}
.opportunity-executive.onex-op-create textarea{min-height:64px;resize:vertical}
.opportunity-executive.onex-op-create .modal-foot{padding:12px 20px;background:var(--onex-op-canvas);border-color:var(--onex-op-line)}
.opportunity-executive.onex-op-create .modal-foot .primary{background:var(--onex-op-crm);border-color:var(--onex-op-crm)}
@media(max-width:1100px){.crm-funnel-pilot .onex-op-list{grid-template-columns:minmax(0,1fr)}.crm-funnel-pilot .onex-op-list>.table-wrap{max-height:48dvh}.crm-funnel-pilot .onex-op-relationship{max-height:none}}
@media(max-width:700px){
 .crm-funnel-pilot .onex-op-list table{display:block;min-width:0;width:100%}
 .crm-funnel-pilot .onex-op-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .crm-funnel-pilot .onex-op-list tbody{display:block}
 .crm-funnel-pilot .onex-op-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:12px;border-bottom:1px solid var(--onex-op-line);cursor:default}
 .crm-funnel-pilot .onex-op-list td{display:block;border:0;padding:0;min-width:0!important;max-width:none!important;overflow-wrap:anywhere}
 .crm-funnel-pilot .onex-op-list td[data-label]::before{content:attr(data-label);display:block;font-size:10px;font-weight:400;color:var(--onex-op-muted);margin-bottom:3px}
 .crm-funnel-pilot .onex-op-list td:first-child{grid-column:1/-1}
 .crm-funnel-pilot .onex-op-list td:first-child::before{display:none}
 .crm-funnel-pilot .onex-op-list td[data-label="Próxima ação"],.crm-funnel-pilot .onex-op-list td[data-label="Ações"]{grid-column:1/-1}
 .crm-funnel-pilot .onex-op-list .onex-op-money{text-align:left;white-space:normal}
 .crm-funnel-pilot .onex-op-list .row-actions{flex-wrap:wrap;gap:6px}
 .crm-funnel-pilot .onex-op-list .row-actions button,.crm-funnel-pilot .onex-op-list .onex-op-select,.crm-funnel-pilot .onex-op-relationship button{min-height:44px;min-width:44px}
 .crm-funnel-pilot .onex-op-list>.table-wrap{max-height:48dvh}
 .crm-funnel-pilot .onex-op-relationship{padding:12px}
}
@media(max-width:780px){
 .opportunity-executive.onex-op-create{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 .opportunity-executive.onex-op-create .field,.opportunity-executive.onex-op-create .field[data-op-field="name"],.opportunity-executive.onex-op-create :is(.field[data-op-field="doc"],.field[data-op-field="phone"]){grid-column:span 6}
 .opportunity-executive.onex-op-create .field[data-op-field="name"],.opportunity-executive.onex-op-create .field[data-op-field="nextAction"],.opportunity-executive.onex-op-create .field.full{grid-column:1/-1}
}
@media(max-width:500px){
 .opportunity-executive.onex-op-create{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .opportunity-executive.onex-op-create .modal-head{padding:12px 14px}
 .opportunity-executive.onex-op-create .modal-head h2{font-size:19px}
 .opportunity-executive.onex-op-create .modal-head button{min-width:44px;min-height:44px}
 .opportunity-executive.onex-op-create .modal-body{padding:14px}
 .opportunity-executive.onex-op-create .field,.opportunity-executive.onex-op-create .field[data-op-field="name"],.opportunity-executive.onex-op-create :is(.field[data-op-field="doc"],.field[data-op-field="phone"],.field[data-op-field="origin"],.field[data-op-field="stage"]){grid-column:1/-1}
 .opportunity-executive.onex-op-create :is(input,select){height:40px;font-size:13px}
 .opportunity-executive.onex-op-create .modal-foot{padding:10px 14px;gap:8px;flex-wrap:wrap}
 .opportunity-executive.onex-op-create .modal-foot button{min-height:44px;min-width:64px}
 .opportunity-executive.onex-op-create .opportunity-save-status{flex-basis:100%;max-width:none}
}
