/* Consulta de ratings — colores de hugolmos.net */
.scr-app {
  --scr-azul: #3C6382; --scr-verde: #388E75; --scr-cielo: #C7E1E7; --scr-turquesa: #5B9AA8; --scr-naranja: #E64A19;
  --scr-texto: #1d2733; --scr-gris: #5f6b7a; --scr-borde: #d9e2e8; --scr-fondo: #f5f9fb;
  font-family: inherit; color: var(--scr-texto); font-size: 15px; line-height: 1.45; max-width: 1200px; margin: 0 auto;
}
.scr-app * { box-sizing: border-box; }
.scr-app [hidden] { display: none !important; }
.scr-app .scr-cab { border-bottom: 3px solid var(--scr-cielo); margin-bottom: 14px; padding-bottom: 8px; }
.scr-app .scr-titulo { color: var(--scr-azul); margin: 0 0 4px; font-size: 1.6em; line-height: 1.2; }
.scr-app .scr-info { color: var(--scr-gris); font-size: 13px; margin: 0; }

.scr-app .scr-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.scr-app .scr-tab { background: var(--scr-fondo); color: var(--scr-azul); border: 1px solid var(--scr-borde); border-radius: 20px;
  padding: 8px 18px; cursor: pointer; font: inherit; font-weight: 600; }
.scr-app .scr-tab.activo { background: var(--scr-azul); border-color: var(--scr-azul); color: #fff; }

.scr-app .scr-buscador { display: flex; gap: 8px; flex-wrap: wrap; }
.scr-app .scr-input, .scr-app .scr-area, .scr-app .scr-sel, .scr-app .scr-rating {
  font: inherit; color: inherit; border: 1px solid #b9c7d1; border-radius: 6px; padding: 9px 11px; background: #fff; margin: 0; }
.scr-app .scr-input { flex: 1 1 260px; min-width: 0; }
.scr-app .scr-anio { flex: 0 0 120px; }
.scr-app .scr-area { width: 100%; resize: vertical; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.scr-app .scr-btn { font: inherit; font-weight: 600; background: var(--scr-verde); color: #fff; border: 0; border-radius: 6px;
  padding: 9px 20px; cursor: pointer; }
.scr-app .scr-btn:hover { filter: brightness(1.06); }
.scr-app .scr-btn:disabled { opacity: .55; cursor: default; }
.scr-app .scr-btn.scr-sec { background: var(--scr-azul); }
.scr-app .scr-nota { color: var(--scr-gris); font-size: 13px; margin: 8px 0; }
.scr-app .scr-error { color: var(--scr-naranja); font-weight: 600; margin: 8px 0; }

.scr-app .scr-resultados { margin-top: 10px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.scr-app .scr-resultados > .scr-nota, .scr-app .scr-resultados > .scr-error { grid-column: 1 / -1; }
.scr-app .scr-tarjeta { border: 1px solid var(--scr-borde); border-left: 4px solid var(--scr-turquesa); border-radius: 8px; padding: 12px 14px; background: #fff; }
.scr-app .scr-t-cab { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 16px; }
.scr-app .scr-titulo-fide { background: var(--scr-naranja); color: #fff; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; }
.scr-app .scr-otit { color: var(--scr-azul); font-size: 12px; font-weight: 600; }
.scr-app .scr-otros { color: var(--scr-gris); font-size: 12px; }
.scr-app .scr-t-datos { color: var(--scr-gris); font-size: 13px; margin: 4px 0 8px; }

.scr-app table.scr-mini, .scr-app table.scr-tabla { border-collapse: collapse; width: 100%; margin: 0; font-size: 13px; }
.scr-app table.scr-mini th, .scr-app table.scr-mini td { border: 0; border-bottom: 1px solid var(--scr-borde); padding: 4px 8px; text-align: right; background: none; }
.scr-app table.scr-mini th:first-child, .scr-app table.scr-mini thead th { text-align: right; color: var(--scr-gris); font-weight: 600; }
.scr-app table.scr-mini tbody th, .scr-app table.scr-mini tbody th:first-child { text-align: left; color: var(--scr-azul); }
.scr-app table.scr-mini td { font-weight: 700; font-size: 15px; }
.scr-app .scr-vacio { color: #b0bcc6 !important; font-weight: 400 !important; }

.scr-app .scr-ritmos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.scr-app .scr-ritmos label { cursor: pointer; font-weight: 600; }
.scr-app .scr-etq { color: var(--scr-gris); font-size: 14px; }
.scr-app .scr-fila { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.scr-app .scr-file { font-size: 13px; }
.scr-app .scr-barra { height: 8px; background: var(--scr-fondo); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.scr-app .scr-barra > div { height: 100%; width: 0; background: var(--scr-verde); transition: width .3s; }

.scr-app .scr-filtros { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 8px 12px;
  border: 1px dashed var(--scr-turquesa); border-radius: 8px; background: #fff; }
.scr-app .scr-resumen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 12px 0 6px; }
.scr-app .scr-nota-tabla { color: var(--scr-gris); font-size: 12px; margin: 4px 0; }
.scr-app .scr-badge { display: inline-block; border-radius: 12px; padding: 1px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.scr-app .scr-b-ok { background: #dff2ea; color: #23624f; }
.scr-app .scr-b-rev { background: #fff3cd; color: #8a5a00; }
.scr-app .scr-b-var { background: #fde4d9; color: #b23a12; }
.scr-app .scr-b-sin { background: #eef1f4; color: #5f6b7a; }
.scr-app .scr-acciones { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; padding: 10px 12px; background: var(--scr-fondo); border-radius: 8px; }
.scr-app .scr-chk { font-size: 13px; cursor: pointer; }
.scr-app .scr-botones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.scr-app .scr-tabla-zona { overflow-x: auto; border: 1px solid var(--scr-borde); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.scr-app table.scr-tabla { min-width: 1080px; }
.scr-app table.scr-tabla td:nth-child(2) { min-width: 170px; }
.scr-app table.scr-tabla td:nth-child(3) { min-width: 250px; }
.scr-app .scr-tabla-zona:empty { border: 0; }
.scr-app table.scr-tabla th, .scr-app table.scr-tabla td { border: 0; border-bottom: 1px solid var(--scr-borde); padding: 6px 8px; vertical-align: top; text-align: left; background: none; }
.scr-app table.scr-tabla thead th { background: var(--scr-azul); color: #fff; font-weight: 600; font-size: 12px; vertical-align: bottom; }
.scr-app table.scr-tabla thead th.scr-grupo { text-align: center; border-bottom: 1px solid rgba(255,255,255,.35); }
.scr-app table.scr-tabla .scr-n { text-align: right; white-space: nowrap; }
.scr-app table.scr-tabla td small { color: var(--scr-gris); display: block; font-size: 11px; }
.scr-app table.scr-tabla tr.scr-fila-probable { background: #fffbea; }
.scr-app table.scr-tabla tr.scr-fila-varios, .scr-app table.scr-tabla tr.scr-fila-posible { background: #fff5f0; }
.scr-app .scr-sel { display: block; margin-top: 4px; padding: 4px 6px; font-size: 12px; min-width: 230px; max-width: 380px; width: 100%; }
.scr-app .scr-rating { width: 80px; padding: 4px 6px; font-weight: 700; }
.scr-app .scr-torneo small.scr-oficial { color: var(--scr-verde); font-weight: 600; }
.scr-app .scr-criterio { font: inherit; font-size: 14px; color: inherit; border: 1px solid #b9c7d1; border-radius: 6px; padding: 5px 8px; background: #fff; max-width: 100%; }
.scr-app .scr-rbtn { font: inherit; font-size: 13px; font-weight: 600; color: var(--scr-texto); background: transparent; border: 1px solid transparent;
  border-radius: 5px; padding: 1px 6px; margin: -2px 0; cursor: pointer; line-height: 1.5; }
.scr-app .scr-rbtn:hover { background: var(--scr-cielo); border-color: var(--scr-turquesa); }
.scr-app .scr-rbtn.auto { border: 1px dashed var(--scr-verde); background: #eef7f3; }
.scr-app .scr-rbtn.activo { background: var(--scr-verde); border-color: var(--scr-verde); color: #fff; }
.scr-app .scr-rbtn:focus-visible, .scr-app .scr-link:focus-visible { outline: 2px solid var(--scr-azul); outline-offset: 1px; }
.scr-app .scr-link { font: inherit; font-size: 11px; color: var(--scr-azul); background: none; border: 0; padding: 0; margin-top: 2px; cursor: pointer; text-decoration: underline; display: block; }

@media (max-width: 600px) {
  .scr-app .scr-anio { flex: 1 1 100px; }
  .scr-app .scr-btn { width: 100%; }
}
