/* ============================================================
   smgr · css/pages/viz_simulacion_forma.css — DISEÑO de la visualización
   "Simulación con forma" (visualizacion_simulacion_forma.php). Portado 1:1 del
   clásico (smgr/visualizacion_simulacion_forma.php).

   MULTI-CAPTURA: hay varios targets (#capSim, #capPos, #capEscenarios y la vista
   compuesta #allModalsCapture), no #captureArea, así que el reset scopeado de
   viz.css no los cubre → aquí se replica ese reset bajo la clase .viz-card
   (común a todas las tarjetas). Todo el diseño de tarjeta va scopeado bajo
   .viz-card; los overlays interactivos (modal por equipo + "Todos los
   calendarios") y los helpers de maquetación fuera de las tarjetas van con su
   propia clase. El ancho es fijo por tarjeta; en móvil hay scroll horizontal.
   ============================================================ */

/* ---------- Maquetación fuera de las tarjetas (chrome Foco) ---------- */
.viz-capbar { display: flex; justify-content: flex-end; margin-top: var(--sp-4); }
.viz-scroll { margin-top: var(--sp-2); overflow-x: auto; }

.sf-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.sf-toolbar .sf-hint { font-size: 13px; color: var(--muted); }

/* ---------- Reset scopeado (equivalente al de viz.css para #captureArea) ---------- */
.viz-card, .viz-card * { margin: 0; padding: 0; box-sizing: border-box; }
.viz-card { line-height: normal; color: #1a202c; }
.viz-card img { display: inline; max-width: none; vertical-align: baseline; }

/* ---------- Tarjeta base ---------- */
.viz-card {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
}
#capSim { width: 1000px; }
#capPos { width: 1100px; }
#capEscenarios { width: 1000px; }

/* ---------- Cabecera interna ---------- */
.viz-card .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: white;
  padding: 10px 20px;
  text-align: center;
}
.viz-card .logo-section { display: flex; align-items: center; justify-content: center; gap: 15px; }
.viz-card .header h1 { font-size: 22px; font-weight: 800; }
.viz-card .header p { font-size: 11px; opacity: 0.9; margin-top: 3px; }

/* ---------- Tablas de tarjeta ---------- */
.viz-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.viz-card thead th {
  background: #2d3748; color: white; font-weight: 700; font-size: 10px;
  padding: 8px 6px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
}
.viz-card thead th:last-child { border-right: none; }
.viz-card thead th.col-team { text-align: left; padding-left: 8px; }
.viz-card thead th.col-bar { width: 220px; }
.viz-card tbody td {
  padding: 5px 6px; vertical-align: middle;
  border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; text-align: center;
}
.viz-card tbody td:last-child { border-right: none; }
.viz-card tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.viz-card tbody tr { cursor: pointer; transition: background 0.15s; }
.viz-card tbody tr:hover { background: rgba(44, 82, 130, 0.06) !important; }

.viz-card .zone-top4 { color: #065f46; font-weight: 700; }
.viz-card .zone-playoff { color: #1e40af; font-weight: 700; }
.viz-card .zone-mid { color: #4a5568; font-weight: 600; }
.viz-card .zone-releg { color: #991b1b; font-weight: 700; }

.viz-card .rank { font-weight: 700; font-size: 12px; color: #718096; width: 30px; }
.viz-card .team-cell { text-align: left !important; padding-left: 6px !important; }
.viz-card .team-info { display: flex; align-items: center; gap: 5px; }
.viz-card .team-shield { width: 18px; height: 22px; object-fit: contain; border-radius: 2px; }
.viz-card .team-abbr { font-weight: 700; font-size: 12px; color: #2d3748; }
.viz-card .team-record { font-size: 10px; color: #718096; font-weight: 500; margin-left: auto; padding-right: 4px; }

/* Inline form column */
.viz-card .form-cell { width: 75px; text-align: center !important; }
.viz-card .form-inline { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.viz-card .form-inline-value { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.viz-card .form-inline-value.positive { color: #059669; }
.viz-card .form-inline-value.negative { color: #dc2626; }
.viz-card .form-inline-value.neutral { color: #6b7280; }
.viz-card .form-inline-dots { display: flex; gap: 2px; }
.viz-card .form-inline-dot { width: 6px; height: 6px; border-radius: 50%; }
.viz-card .form-inline-dot.win { background: #059669; }
.viz-card .form-inline-dot.loss { background: #dc2626; }

/* Distribution stacked bar */
.viz-card .stacked-bar {
  display: flex; height: 18px; border-radius: 3px; overflow: hidden;
  background: #f7fafc; border: 1px solid #e2e8f0;
}
.viz-card .bar-segment {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: white; min-width: 0; overflow: hidden; white-space: nowrap;
}
.viz-card .bar-top4 { background: #059669; }
.viz-card .bar-playoff { background: #3b82f6; }
.viz-card .bar-mid { background: #9ca3af; }
.viz-card .bar-releg { background: #ef4444; }

.viz-card .prob-cell { font-variant-numeric: tabular-nums; font-size: 12px; width: 85px; }
.viz-card .prob-cell.highlight { font-size: 13px; }
.viz-card .avg-pos { font-weight: 800; font-size: 13px; color: #2d3748; font-variant-numeric: tabular-nums; width: 55px; }
.viz-card .proj-record { font-weight: 600; font-size: 11px; color: #4a5568; font-variant-numeric: tabular-nums; width: 65px; }

/* Position probability table */
.viz-card .pos-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.viz-card .pos-table thead th {
  background: #2d3748; color: white; font-weight: 700; font-size: 10px;
  padding: 7px 3px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
}
.viz-card .pos-table thead th:last-child { border-right: none; }
.viz-card .pos-table thead th.col-team { text-align: left; padding-left: 6px; }
.viz-card .pos-table tbody td {
  padding: 4px 3px; text-align: center; font-variant-numeric: tabular-nums;
  font-size: 10px; font-weight: 500; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; color: #2d3748;
}
.viz-card .pos-table tbody td:last-child { border-right: none; }
.viz-card .pos-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.viz-card .pos-cell { min-width: 46px; }
.viz-card .pos-cell.dash { color: #cbd5e0; }
.viz-card .pos-cell.zone-border,
.viz-card .pos-table thead th.zone-border { border-right: 2px dotted #2c5282 !important; }

/* Separator rows */
.viz-card tr.zone-separator td { border-bottom: 2.5px solid #2c5282; padding-bottom: 6px; }
.viz-card tr.zone-separator + tr td { padding-top: 6px; }
.viz-card tr.releg-separator td { border-bottom: 2.5px solid #e53e3e; padding-bottom: 6px; }
.viz-card tr.releg-separator + tr td { padding-top: 6px; }

/* Legend */
.viz-card .legend {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 8px 20px; font-size: 10px; color: #4a5568; background: #f7fafc; border-top: 1px solid #e2e8f0;
}
.viz-card .legend-item { display: flex; align-items: center; gap: 5px; }
.viz-card .legend-color { width: 14px; height: 10px; border-radius: 2px; }

/* Methodology (inside the escenarios card) */
.viz-card .methodology {
  padding: 10px 20px; font-size: 9px; color: #718096; line-height: 1.5; background: #f7fafc; border-top: 1px solid #e2e8f0;
}
.viz-card .methodology strong { color: #4a5568; }

/* Footer */
.viz-card .footer {
  background: #2d3748; color: rgba(255,255,255,0.7);
  padding: 8px 20px; display: flex; justify-content: space-between; font-size: 10px;
}
.viz-card .footer span { display: inline-block; }

/* ---------- Metodología independiente (fuera de las tarjetas, no se captura) ---------- */
.methodology-standalone {
  max-width: 1100px; margin: 12px auto 24px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line, #e2e8f0); box-shadow: 0 1px 3px rgba(0,0,0,0.04); background: #f7fafc;
}
.methodology-standalone .methodology {
  padding: 12px 20px; font-size: 11px; color: #4a5568; line-height: 1.55; font-family: 'Inter', sans-serif;
}
.methodology-standalone .methodology strong { color: #2d3748; }

/* ============================================================
   Final Round Scenarios card
   ============================================================ */
.viz-card .final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 6px 10px; }
.viz-card .final-card { border: 1px solid #cbd5e0; border-radius: 4px; overflow: hidden; }
.viz-card .final-card-header {
  display: flex; align-items: center; gap: 5px; padding: 4px 7px;
  background: #2d3748; color: white; font-size: 10px; font-weight: 700; line-height: 1.2;
}
.viz-card .final-card-header .fc-shield { width: 13px; height: 16px; object-fit: contain; flex-shrink: 0; }
.viz-card .final-card-header .fc-record { font-weight: 500; font-size: 9px; opacity: 0.7; }
.viz-card .final-card-header .fc-games { margin-left: auto; font-size: 8px; font-weight: 500; opacity: 0.6; }
.viz-card .final-group { padding: 3px 7px 4px; border-bottom: 1px solid #e2e8f0; }
.viz-card .final-group:last-child { border-bottom: none; }
.viz-card .final-group:nth-child(odd) { background: #f7fafc; }
.viz-card .final-group-label { font-size: 9px; font-weight: 700; color: #2d3748; margin-bottom: 2px; }
.viz-card .final-group-label.win-label { color: #059669; }
.viz-card .final-group-label.lose-label { color: #dc2626; }
.viz-card .final-group-label.mixed-label { color: #d97706; }
.viz-card .final-pos-line { display: flex; align-items: center; gap: 5px; padding: 1px 0; font-size: 9px; color: #4a5568; line-height: 1.3; }
.viz-card .final-pos-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 3px; font-size: 9px; font-weight: 800; color: white; flex-shrink: 0;
}
.viz-card .final-pos-badge.zone-top4 { background: #059669; }
.viz-card .final-pos-badge.zone-po   { background: #3b82f6; }
.viz-card .final-pos-badge.zone-mid  { background: #9ca3af; }
.viz-card .final-pos-badge.zone-out  { background: #ef4444; }
.viz-card .final-cond { font-size: 8px; color: #718096; }
.viz-card .final-cond.guaranteed { color: #059669; font-weight: 600; }
.viz-card .final-card-body { display: flex; }
.viz-card .final-card-scenarios { flex: 1; min-width: 0; }
.viz-card .final-card-h2h {
  width: 155px; flex-shrink: 0; border-left: 1px solid #e2e8f0; padding: 4px 6px; background: #fafbfc; font-size: 9px;
}
.viz-card .final-card-h2h-title { font-size: 8px; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.viz-card .h2h-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; border-bottom: 1px solid #f0f0f0; line-height: 1.3; }
.viz-card .h2h-row:last-child { border-bottom: none; }
.viz-card .h2h-row .h2h-shield { width: 12px; height: 14px; object-fit: contain; }
.viz-card .h2h-row .h2h-code { font-weight: 600; color: #2d3748; font-size: 8px; width: 28px; }
.viz-card .h2h-row .h2h-score { font-variant-numeric: tabular-nums; color: #4a5568; font-size: 9px; }
.viz-card .h2h-row .h2h-pd { font-variant-numeric: tabular-nums; font-size: 8px; }
.viz-card .h2h-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-left: auto; }
.viz-card .h2h-dot.adv { background: #059669; }
.viz-card .h2h-dot.disadv { background: #e53e3e; }
.viz-card .h2h-dot.neutral { background: #cbd5e0; }
.viz-card .h2h-pending { font-size: 8px; color: #d97706; font-weight: 600; margin-left: auto; }

/* ============================================================
   "Todos los calendarios" — vista compuesta (overlay + tarjeta capturable)
   ============================================================ */
#allModalsOverlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 3000; overflow-y: auto; padding: 12px;
}
#allModalsOverlay.active { display: flex; justify-content: center; }
.sf-allmodals-wrap { margin: auto; }
.sf-allmodals-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0;
}

.all-modals-container { width: 700px; border-radius: 16px; margin: auto; }
.all-modals-container .header { padding: 8px 16px; }
.all-modals-container .header h1 { font-size: 15px; }
.all-modals-container .header p { font-size: 9px; }
.all-modals-container .footer { padding: 4px 16px; font-size: 8px; }

.all-modals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px; padding: 5px 6px; }
.viz-card .mini-modal { border: 1px solid #cbd5e0; border-radius: 4px; overflow: hidden; }
.viz-card .mini-header {
  display: flex; align-items: center; gap: 5px; padding: 3px 6px;
  background: #2d3748; color: white; font-size: 10px; font-weight: 700; line-height: 1.2;
}
.viz-card .mini-header .mini-shield { width: 12px; height: 15px; object-fit: contain; }
.viz-card .mini-header .mini-record { font-weight: 500; font-size: 9px; opacity: 0.7; }
.viz-card .mini-header .mini-proj { font-size: 9px; font-weight: 500; opacity: 0.6; }
.viz-card .mini-header .mini-form { margin-left: auto; font-size: 9px; font-weight: 700; }
.viz-card .mini-header .mini-form.pos { color: #68d391; }
.viz-card .mini-header .mini-form.neg { color: #fc8181; }
.viz-card .mini-header .mini-form.neu { color: #a0aec0; }
.viz-card .mini-row { display: flex; align-items: center; padding: 2px 6px; font-size: 9px; border-bottom: 1px solid #f0f4f8; gap: 4px; }
.viz-card .mini-row:last-child { border-bottom: none; }
.viz-card .mini-row:nth-child(even) { background: rgba(0,0,0,0.015); }
.viz-card .mini-round { width: 16px; color: #718096; font-weight: 700; font-size: 9px; text-align: center; flex-shrink: 0; }
.viz-card .mini-opp { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; }
.viz-card .mini-opp img { width: 11px; height: 13px; object-fit: contain; flex-shrink: 0; }
.viz-card .mini-opp span { font-weight: 700; font-size: 9px; color: #2d3748; }
.viz-card .mini-ha { font-size: 8px; font-weight: 700; width: 14px; text-align: center; flex-shrink: 0; }
.viz-card .mini-ha.home { color: #2b6cb0; }
.viz-card .mini-ha.away { color: #c05621; }
.viz-card .mini-prob-wrap { display: flex; align-items: center; gap: 3px; flex-shrink: 0; width: 75px; justify-content: flex-end; }
.viz-card .mini-bar-bg { width: 35px; height: 7px; background: #edf2f7; border-radius: 1px; overflow: hidden; flex-shrink: 0; }
.viz-card .mini-bar-fill { height: 100%; border-radius: 1px; }
.viz-card .mini-prob { font-weight: 700; font-size: 9px; font-variant-numeric: tabular-nums; width: 28px; text-align: right; }
.viz-card .mini-h2h { padding: 3px 6px 4px; background: #f7fafc; border-top: 1px solid #e2e8f0; }
.viz-card .mini-h2h-title { font-size: 8px; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.viz-card .mini-h2h-grid { display: flex; flex-wrap: wrap; gap: 1px 8px; }
.viz-card .mini-h2h-pair { display: flex; align-items: center; gap: 3px; font-size: 8px; line-height: 1.4; }
.viz-card .mini-h2h-shield { width: 10px; height: 12px; object-fit: contain; }
.viz-card .mini-h2h-code { font-weight: 600; color: #2d3748; width: 24px; font-size: 8px; }
.viz-card .mini-h2h-score { font-variant-numeric: tabular-nums; color: #4a5568; font-size: 8px; }
.viz-card .mini-h2h-pd { font-variant-numeric: tabular-nums; font-size: 7px; }
.viz-card .mini-h2h-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.viz-card .mini-h2h-dot.adv { background: #059669; }
.viz-card .mini-h2h-dot.disadv { background: #e53e3e; }
.viz-card .mini-h2h-dot.neutral { background: #cbd5e0; }
.viz-card .mini-h2h-pending { font-size: 7px; color: #d97706; font-weight: 600; }

/* ============================================================
   Modal por equipo (interacción; no se captura)
   ============================================================ */
.sf-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; align-items: center; justify-content: center; font-family: 'Inter', sans-serif;
}
.sf-modal-overlay.active { display: flex; }
.sf-modal-overlay, .sf-modal-overlay * { box-sizing: border-box; }
.sf-modal-overlay img { display: inline; max-width: none; vertical-align: baseline; }
.sf-modal-box {
  background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 560px; width: 95%; max-height: 90vh; overflow-y: auto; color: #1a202c; line-height: normal;
}
.sf-modal-header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: white; padding: 12px 20px; border-radius: 12px 12px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.sf-modal-header-left { display: flex; align-items: center; gap: 10px; }
.sf-modal-header .team-shield { width: 24px; height: 30px; object-fit: contain; }
.sf-modal-header h2 { font-size: 16px; font-weight: 700; margin: 0; }
.sf-modal-header .sf-modal-record { font-size: 12px; opacity: 0.8; }
.sf-modal-close { background: none; border: none; color: white; font-size: 22px; cursor: pointer; padding: 0 4px; opacity: 0.8; line-height: 1; }
.sf-modal-close:hover { opacity: 1; }
.sf-modal-body { padding: 0; }

.modal-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.modal-table thead th {
  background: #2d3748; color: white; font-weight: 700; font-size: 10px;
  padding: 7px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
}
.modal-table thead th:last-child { border-right: none; }
.modal-table tbody td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; text-align: center; vertical-align: middle; }
.modal-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.modal-table .opp-cell { text-align: left; }
.modal-table .opp-info { display: flex; align-items: center; gap: 5px; }
.modal-table .opp-shield { width: 14px; height: 17px; object-fit: contain; border-radius: 2px; }
.modal-table .opp-name { font-weight: 700; font-size: 12px; color: #2d3748; }
.modal-table .opp-record { font-size: 10px; color: #718096; }
.modal-table .ha-badge { display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.ha-badge.home { background: #ebf4ff; color: #2b6cb0; }
.ha-badge.away { background: #fef3e2; color: #c05621; }
.prob-bar-cell { width: 140px; }
.prob-bar-wrap { display: flex; align-items: center; gap: 6px; }
.prob-bar-bg { flex: 1; height: 14px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.prob-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.prob-bar-label { font-weight: 700; font-size: 11px; font-variant-numeric: tabular-nums; width: 38px; text-align: right; }
.form-adj-cell { width: 55px; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.form-adj-cell.positive { color: #059669; }
.form-adj-cell.negative { color: #dc2626; }
.form-adj-cell.neutral { color: #9ca3af; }

.modal-h2h-section { padding: 8px 16px 10px; border-top: 1px solid #e2e8f0; background: #fafbfc; }
.modal-h2h-title { font-size: 10px; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.modal-h2h-grid { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.modal-h2h-pair { display: flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1.4; }
.modal-h2h-pair .mh-shield { width: 14px; height: 17px; object-fit: contain; }
.modal-h2h-pair .mh-code { font-weight: 600; color: #2d3748; width: 28px; }
.modal-h2h-pair .mh-score { font-variant-numeric: tabular-nums; color: #4a5568; }
.modal-h2h-pair .mh-pd { font-variant-numeric: tabular-nums; font-size: 10px; }
.modal-h2h-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.modal-h2h-dot.adv { background: #059669; }
.modal-h2h-dot.disadv { background: #e53e3e; }
.modal-h2h-dot.neutral { background: #cbd5e0; }
.modal-h2h-pending { font-size: 10px; color: #d97706; font-weight: 600; }

.modal-summary {
  padding: 10px 16px; background: #f7fafc; border-top: 1px solid #e2e8f0;
  display: flex; justify-content: space-around; font-size: 11px; color: #4a5568; border-radius: 0 0 12px 12px;
}
.modal-summary strong { color: #2d3748; }

/* Wins distribution histogram */
.modal-wins-dist { padding: 12px 18px 14px; border-top: 1px solid #e2e8f0; background: #f9fafb; }
.modal-wins-dist-title { font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.modal-wins-bars { display: flex; flex-direction: column; gap: 3px; }
.modal-wins-bar { display: grid; grid-template-columns: 28px 46px 1fr repeat(4, 38px); align-items: center; gap: 6px; font-size: 11px; }
.modal-wins-bar.wins-header {
  font-size: 9px; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: 0.4px;
  border-bottom: 1px solid #e2e8f0; padding-bottom: 4px; margin-bottom: 2px;
}
.modal-wins-bar.wins-header .wb-label,
.modal-wins-bar.wins-header .wb-pct,
.modal-wins-bar.wins-header .wb-zone { text-align: center; font-variant-numeric: normal; }
.modal-wins-bar.wins-header .wb-label,
.modal-wins-bar.wins-header .wb-pct { text-align: right; }
.modal-wins-bar.wins-header .wb-zone.top4    { color: #059669; }
.modal-wins-bar.wins-header .wb-zone.playoff { color: #2c5282; }
.modal-wins-bar.wins-header .wb-zone.mid     { color: #4a5568; }
.modal-wins-bar.wins-header .wb-zone.releg   { color: #b91c1c; }
.modal-wins-bar .wb-label { font-weight: 700; color: #4a5568; font-variant-numeric: tabular-nums; text-align: right; }
.modal-wins-bar .wb-pct { font-variant-numeric: tabular-nums; color: #2d3748; font-weight: 600; text-align: right; }
.modal-wins-bar .wb-track { background: #edf2f7; border-radius: 3px; height: 10px; position: relative; overflow: hidden; }
.modal-wins-bar .wb-fill { background: #90cdf4; height: 100%; border-radius: 3px; }
.modal-wins-bar.mode .wb-fill { background: #2c5282; }
.modal-wins-bar.mode .wb-label,
.modal-wins-bar.mode .wb-pct { color: #2c5282; font-weight: 700; }
.modal-wins-bar .wb-zone { text-align: right; font-variant-numeric: tabular-nums; font-size: 10.5px; }
.modal-wins-bar .wb-zone.zero { opacity: 0.25; }
.modal-wins-bar .wb-zone.top4    { color: #059669; font-weight: 600; }
.modal-wins-bar .wb-zone.playoff { color: #2c5282; font-weight: 600; }
.modal-wins-bar .wb-zone.mid     { color: #4a5568; }
.modal-wins-bar .wb-zone.releg   { color: #b91c1c; font-weight: 600; }
.modal-wins-thresholds {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e2e8f0;
  display: flex; justify-content: space-around; font-size: 11px; color: #4a5568;
}
.modal-wins-thresholds strong { color: #2c5282; font-size: 12px; }

/* ---------- Responsive: overlays a pantalla completa en móvil ---------- */
@media (max-width: 720px) {
  .all-modals-container { width: 96vw; }
  .sf-toolbar .sf-hint { width: 100%; }
}
