
.broker-section{display:grid;gap:16px}.broker-status{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-left:5px solid #64748b}.broker-status>div:first-child{display:grid;gap:5px}.broker-status span,.broker-kpis span,.broker-card>span{font-size:.72rem;font-weight:850;letter-spacing:.08em}.broker-status strong{font-size:1.3rem}.broker-status-right{display:grid;text-align:right}.broker-status-right b{font-size:2rem}.broker-status[data-state="good"]{border-left-color:#22c55e}.broker-status[data-state="watch"]{border-left-color:#f59e0b}.broker-status[data-state="bad"]{border-left-color:#ef4444}.broker-kpis{display:grid;gap:12px}.broker-kpis-top{grid-template-columns:repeat(5,minmax(0,1fr))}.broker-kpis-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}.broker-kpis article{padding:17px;display:grid;gap:7px;min-width:0}.broker-kpis strong{font-size:1.5rem}.broker-kpis small{opacity:.7}.mini-track,.open-track{height:8px;border-radius:99px;background:rgba(100,116,139,.24);overflow:hidden}.mini-track i,.open-track i{display:block;height:100%;width:0;border-radius:inherit;transition:width .45s ease}.broker-kpis-top article:nth-child(1) .mini-track i{background:#38bdf8}.broker-kpis-top article:nth-child(2) .mini-track i{background:#60a5fa}.broker-kpis-top article:nth-child(3) .mini-track i{background:#fb7185}.broker-kpis-top article:nth-child(4) .mini-track i{background:#4ade80}
.broker-open-overview{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(420px,1.45fr) minmax(190px,.7fr);gap:14px}.broker-card{padding:24px;display:flex;flex-direction:column;justify-content:center;min-height:280px}.broker-card h3{margin:7px 0 18px;font-size:1.05rem}.broker-card strong{font-size:4rem;line-height:1}.broker-card small{margin-top:15px;font-weight:700}.broker-card-d{border:1px solid rgba(56,189,248,.65)!important;box-shadow:inset 0 0 40px rgba(14,165,233,.06)}.broker-card-a{border:1px solid rgba(244,63,94,.65)!important;box-shadow:inset 0 0 40px rgba(244,63,94,.06)}.venn-card{padding:18px 22px}.compact-title{margin-bottom:4px}.venn{position:relative;height:230px;max-width:520px;margin:0 auto;width:100%}.venn-circle{position:absolute;top:18px;width:215px;height:215px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.venn-circle b{font-size:2.1rem}.venn-circle span{text-align:center;font-weight:800;font-size:.86rem}.venn-d{left:calc(50% - 190px);border:2px solid #38bdf8;background:rgba(14,165,233,.14);padding-right:70px}.venn-a{right:calc(50% - 190px);border:2px solid #fb7185;background:rgba(244,63,94,.13);padding-left:70px}.venn-overlap{position:absolute;z-index:3;left:50%;top:70px;transform:translateX(-50%);width:105px;height:105px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(34,197,94,.2);border:2px solid #4ade80;box-shadow:0 0 24px rgba(34,197,94,.12)}.venn-overlap b{font-size:2rem}.venn-overlap span{font-size:.75rem;font-weight:850}.venn-caption{display:flex;justify-content:center;gap:25px;font-size:.78rem;opacity:.8}.open-bars-card{padding:20px}.open-bars{display:grid;gap:12px;max-width:920px}.open-bar-row{display:grid;grid-template-columns:180px 1fr 38px;align-items:center;gap:12px;font-size:.88rem}.open-bar-row b{text-align:right}.open-track{height:14px}.bar-d{background:#38bdf8}.bar-a{background:#fb7185}.bar-both{background:#4ade80}.bar-d-soft{background:#7dd3fc}.bar-a-soft{background:#fda4af}.open-lists-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.broker-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}.panel-title{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:12px}.panel-title span{font-size:.68rem;letter-spacing:.08em;font-weight:850;opacity:.7}.panel-title h3{margin:4px 0 0}.broker-table{width:100%;border-collapse:collapse;font-size:.88rem}.broker-table th,.broker-table td{padding:10px 12px;text-align:left;border-bottom:1px solid rgba(128,128,128,.18);white-space:nowrap}.broker-table th{font-size:.72rem;letter-spacing:.04em}.broker-live{display:grid;gap:9px}.broker-live-item{display:grid;grid-template-columns:1fr auto;gap:5px;padding:12px;border:1px solid rgba(128,128,128,.2);border-radius:10px}.broker-live-item.common{border-color:rgba(34,197,94,.35)}.broker-live-item small{grid-column:1/-1;opacity:.72}.broker-pill{font-weight:850}.broker-pill.long{color:#16a34a}.broker-pill.short{color:#dc2626}.empty-ok{opacity:.65}.execution-summary dl{margin:0}.execution-summary dl div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid rgba(128,128,128,.16)}.execution-summary dt{opacity:.75}.execution-summary dd{margin:0;font-weight:850}.broker-note{font-size:.86rem;opacity:.72;margin:0 4px 20px}
html[data-theme="dark"] .broker-pill.long{color:#86efac}html[data-theme="dark"] .broker-pill.short{color:#fca5a5}
@media(max-width:1200px){.broker-kpis-top{grid-template-columns:repeat(3,minmax(0,1fr))}.broker-open-overview{grid-template-columns:1fr 1.6fr}.broker-card-a{grid-column:1/-1;min-height:150px}.broker-card strong{font-size:3rem}.open-lists-grid{grid-template-columns:1fr 1fr}.open-lists-grid article:nth-child(3){grid-column:1/-1}}
@media(max-width:900px){.broker-open-overview,.broker-grid{grid-template-columns:1fr}.broker-card-a{grid-column:auto}.broker-card{min-height:140px}.broker-kpis-top,.broker-kpis-secondary,.open-lists-grid{grid-template-columns:1fr 1fr}.open-lists-grid article:nth-child(3){grid-column:auto}}
@media(max-width:650px){.broker-kpis-top,.broker-kpis-secondary,.open-lists-grid{grid-template-columns:1fr}.broker-status{align-items:flex-start;gap:12px}.broker-status-right b{font-size:1.4rem}.broker-table{font-size:.8rem}.venn{transform:scale(.82);transform-origin:center;height:205px}.open-bar-row{grid-template-columns:120px 1fr 28px;font-size:.76rem}.venn-caption{gap:10px}.broker-card strong{font-size:2.7rem}}

/* V61: única visualización de abiertas */
.broker-open-overview-single{display:block!important;}
.broker-open-overview-single .venn-card{width:100%;max-width:none;margin:0 auto;}

/* V63: abiertas + pendientes, dos diagramas equivalentes */
.broker-dual-venn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.broker-dual-venn .venn-card{min-width:0}
.pending-venn .venn-circle{border-style:dashed}
.pending-venn .venn-overlap{border-style:dashed}
@media(max-width:1000px){.broker-dual-venn{grid-template-columns:1fr}}

/* V176 - histórico Darwinex vs Axi unificado */
.broker-history-unified{margin-top:18px}
.broker-history-table th,.broker-history-table td{vertical-align:top;white-space:nowrap}
.broker-history-table td:nth-child(5),.broker-history-table td:nth-child(6){min-width:210px}
.broker-history-table .history-unmatched{background:rgba(190,40,40,.055)}
.broker-history-table .history-matched{background:rgba(20,145,90,.035)}
.history-missing{font-weight:900;opacity:.58;letter-spacing:.04em}
