/* static/css/xactual.css — panel X Actual (canal + evaluación ponderada) */
.xa-box { margin-top: 18px; }
.xa-objetivo { margin: 4px 0 14px; color: #444; }
.xa-titulo { font-size: 1rem; margin: 14px 0 8px; color: #222; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.xa-mesa { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin: 8px 0 6px; }
.xa-mesa-item { text-align: center; max-width: 200px; }
.xa-mesa-btn {
    width: 74px; height: 64px; font-size: 1.8rem; font-weight: 700; color: #fff; border: none; border-radius: 12px;
    background: linear-gradient(180deg, #ffd34d, #e0a800); box-shadow: 0 4px 0 #a07800; cursor: default;
}
.xa-mesa-btn.xa-serie { background: linear-gradient(180deg, #7b6cf6, #5546d6); box-shadow: 0 4px 0 #3a2fa0; }
.xa-dato { font-size: .8rem; color: #555; margin-top: 6px; }
.xa-razon { color: #777; }
.xa-nota-serie { text-align: center; font-size: .85rem; color: #5546d6; margin: 6px 0; }
.xa-tabla { width: 100%; border-collapse: collapse; font-size: .85rem; }
.xa-tabla th { background: #222; color: #fff; padding: 6px 8px; text-align: left; }
.xa-tabla td { border-bottom: 1px solid #e5e5e5; padding: 6px 8px; vertical-align: top; }
.xa-tabla tr:nth-child(-n+3) td { background: #fff8db; }
.xa-num { font-weight: 700; font-size: 1rem; }
.xa-favor { color: #1d7a46; }
.xa-contra { color: #c0392b; }
.xa-descartados { font-size: .85rem; margin: 12px 0; color: #444; }
.xa-esc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.xa-esc input { width: 90px; }
.xa-nota { font-size: .78rem; color: #777; }
@media (max-width: 700px) {
    .xa-tabla th:nth-child(5), .xa-tabla td:nth-child(5) { display: none; }
    .xa-mesa { gap: 14px; }
}

/* Convergencia (lecturas de Abisay) */
.xa-conv { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.xa-conv-item { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: #f3f0ff; font-size: .85rem; }
.xa-conv-top { background: #e4dcff; border: 2px solid #7b6cf6; }
.xa-conv-num { font-weight: 700; font-size: 1.1rem; min-width: 32px; }
.xa-conv-n { color: #5546d6; min-width: 80px; }
.xa-conv-txt { color: #444; }
/* Ciclos acertados ocupa todo el alto de su columna (4-nov) */
.col-permutaciones { display: flex; flex-direction: column; }
#contenedor-ciclos-acertados { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
#contenedor-ciclos-acertados .acert-lista { flex: 1 1 0; min-height: 0; max-height: none !important; overflow-y: auto; }

.xa-link-est { font-size: .8rem; font-weight: 400; margin-left: 12px; }

/* Rutas de Abisay (7-nov-2026) */
.xa-rutas td:first-child { color: #333; }
.xa-ruta-n { display: inline-block; margin-right: 6px; }
.xa-cruce { background: #7b6cf6; color: #fff; border-radius: 6px; padding: 0 5px; }
.xa-cruces { font-size: .85rem; margin: 8px 0; }
.xa-cruce-chip { display: inline-block; background: #e4dcff; border: 1px solid #7b6cf6; border-radius: 8px; padding: 2px 8px; margin: 2px 4px; font-weight: 700; }
.xa-cruce-chip small { color: #5546d6; font-weight: 400; }
.xa-canal { margin: 14px 0; }
.xa-canal summary { cursor: pointer; color: #555; font-size: .9rem; margin-bottom: 8px; }
@media (max-width: 700px) {
    .xa-rutas th:nth-child(4), .xa-rutas td:nth-child(4) { display: none; }
}
.xa-oculto { color: #999; font-size: .78rem; font-weight: 400; margin-left: 4px; }

/* Filtro 2 · Punto Ciego (11-nov-2026) */
.f2-intro { font-size: .9rem; color: #444; margin: 4px 0 10px; }
.f2-leyenda { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.f2-chip { font-size: .75rem; padding: 3px 10px; border-radius: 999px; }
.f2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.f2-num { border-radius: 10px; padding: 8px 4px 6px; text-align: center; cursor: default; }
.f2-n { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.f2-r { display: block; font-size: .68rem; opacity: .8; }
.f2-top3  { background: #d6336c; color: #fff; box-shadow: 0 3px 0 #9c1f4a; }
.f2-top10 { background: #f08c00; color: #fff; box-shadow: 0 3px 0 #b36800; }
.f2-top20 { background: #ffe066; color: #5c4400; box-shadow: 0 3px 0 #d4b13a; }
.f2-resto { background: #eef1f5; color: #39414d; box-shadow: 0 2px 0 #cfd5dd; }
.f2-menos { opacity: .45; text-decoration: line-through; }

/* Filtro 1 (método anterior, oculto) */
.f1-details > summary { cursor: pointer; list-style: none; padding: 4px 0; }
.f1-details > summary::-webkit-details-marker { display: none; }
.f1-details > summary::before { content: "▸ "; color: #888; }
.f1-details[open] > summary::before { content: "▾ "; }
.f1-titulo { font-size: 1.35rem; font-weight: 700; color: #222; }
.f1-sub { font-size: .8rem; color: #888; }
.f2-desc { background: #dee2e6; color: #868e96; box-shadow: none; }
.f2-num.f2-desc .f2-n { text-decoration: line-through; }
.f2-form { margin-top: 12px; }

/* Filtro 1 · lista única (18-nov-2026) */
.f1-lista td { vertical-align: top; }
.f1-n { display: inline-block; min-width: 2.2em; text-align: center; padding: 3px 6px; border-radius: 6px; font-weight: 800; background: #e9ecef; color: #212529; }
.f1-n-top3 { background: #c92a2a; color: #fff; }
.f1-n-top10 { background: #f08c00; color: #fff; }
.f1-n-top20 { background: #ffd43b; color: #212529; }
.f1-tag { display: inline-block; margin: 1px 3px 1px 0; padding: 1px 6px; border-radius: 10px; font-size: .78em; background: #e7f5ff; color: #1864ab; }
.f1-tag-fase { background: #d3f9d8; color: #2b8a3e; font-weight: 600; }
.f1-tag-ruta { background: #fff4e6; color: #d9480f; }
.f1-tag-conv { background: #f3f0ff; color: #5f3dc4; }
.f1-mas { margin-top: 10px; }
.f1-mas summary { cursor: pointer; font-weight: 600; }
.f1-chip { display: inline-block; margin: 3px; padding: 3px 8px; border-radius: 6px; background: #f1f3f5; font-size: .9em; }
.f1-chip-desc { opacity: .45; text-decoration: line-through; }

/* Dos listas (18-nov-2026) */
.dl-h2 { margin-top: 22px; }
.dl-no { background: #f1f3f5 !important; color: #495057 !important; }
.dl-desc { background: #e9ecef !important; color: #868e96 !important; text-decoration: line-through; }
.dl-rep .f2-r { color: #c92a2a; }
.dl-abajo .f2-r { color: #868e96; }
.dl-clic:hover { outline: 2px solid #212529; }
.dl-mini { cursor: pointer; padding: 0 3px; border-radius: 4px; }
.dl-mini:hover { background: #ffe066; }
.dl-reglas td { vertical-align: top; }
