/* ⚠ COPIA REPARTIDA desde comun/trackbet/avisos-cfg-panel.css — NO EDITAR AQUÍ: edita el original y corre  node comun/repartir.js  (MANUAL 53) */
/* ─── 🔔 QUÉ AVISA Y CÓMO SUENA: el panel de CONFIG (MANUAL 70) — ver avisos-cfg-panel.js. Copia IGUAL en trackbet/,
   trackbet-web/ y trackbet-viewer/. Piezas del tema B: colores --tb-…, Lexend, el interruptor redondo (como .cfg-switch
   de TRACKBET pero con nombre propio .avc-sw para que se vea igual en la web y el Viewer) y los botones .tb-btn.
   Rejilla por fila: [avisa] [ícono + nombre + qué] [suena] [tono] [📂 ▶ ↺]. En angosto (teléfono / Viewer) el tono y los
   botones bajan a un segundo renglón. ────────────────────────────────────────────────────────────────────────────── */
/* los grupos se acomodan en columnas de ~560 px (en una sección ancha caben dos lado a lado; en el teléfono, una) */
.avc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr)); gap: 12px; align-items: start; }
.avc-grupo { border: 1px solid var(--tb-borde, #2a2a2a); border-radius: 12px; overflow: hidden; background: var(--tb-hueco, #111); }
.avc-cab, .avc-fila { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px minmax(90px, 160px) auto; align-items: center; gap: 10px; padding: 7px 12px; }
.avc:not(.avc-con-tonos) .avc-cab, .avc:not(.avc-con-tonos) .avc-fila { grid-template-columns: 44px minmax(0, 1fr) 44px auto; }
.avc-cab { font: 600 10.5px var(--tb-letra, 'Lexend', sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--tb-texto3, #777); border-bottom: 1px solid var(--tb-borde, #2a2a2a); padding: 7px 12px; }
.avc-cab-nom { font: 700 12px var(--tb-letra, 'Lexend', sans-serif); letter-spacing: 0; text-transform: none; color: var(--gc, var(--tb-texto, #e6e6e6)); display: inline-flex; align-items: center; gap: 7px; }
.avc-pto { width: 8px; height: 8px; border-radius: 50%; background: var(--gc, #888); display: inline-block; }
.avc-cab-avisa, .avc-cab-son { text-align: center; }
.avc-fila + .avc-fila { border-top: 1px solid color-mix(in srgb, var(--tb-borde, #2a2a2a) 60%, transparent); }
.avc-que { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.avc-que .avc-emo { display: none; }   /* el emoji se vuelve dibujo (tema-b-comun.js) solo en los títulos; en la fila sobra */
.avc-nom { font: 600 12.5px var(--tb-letra, 'Lexend', sans-serif); color: var(--tb-texto, #e6e6e6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avc-desc { font: 400 10.5px var(--tb-letra, 'Lexend', sans-serif); color: var(--tb-texto3, #777); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avc-fila.apagada .avc-nom { color: var(--tb-texto3, #777); }
.avc-fila.apagada .avc-sw-son, .avc-fila.apagada .avc-tono, .avc-fila.apagada .avc-btns { opacity: .45; }
.avc-fila.muda .avc-tono { opacity: .55; }
/* el interruptor (igual al .cfg-switch del tema B de TRACKBET) */
.avc-sw { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; min-width: 0; }
.avc-sw input { display: none; }
.avc-sw-ui { width: 40px; height: 22px; border-radius: 999px; background: var(--tb-borde3, #333); position: relative; transition: background .15s; flex: none; }
.avc-sw-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--tb-texto2, #999); transition: left .15s, background .15s; }
.avc-sw input:checked + .avc-sw-ui { background: var(--tb-verde, #28cc95); }
.avc-sw input:checked + .avc-sw-ui::after { left: 21px; background: #06140f; }
.avc-sw-son input:checked + .avc-sw-ui { background: var(--tb-ambar, #ffd740); }
/* el tono puesto: pastilla; dorada si es un archivo de Carlos */
.avc-tono { font: 500 11.5px var(--tb-letra, 'Lexend', sans-serif); color: var(--tb-texto3, #777); background: color-mix(in srgb, var(--tb-hueco, #111) 70%, #000); border: 1px solid var(--tb-borde, #2a2a2a); border-radius: 999px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.avc-tono.propio { color: var(--tb-ambar, #ffd740); border-color: color-mix(in srgb, var(--tb-ambar, #ffd740) 45%, transparent); background: color-mix(in srgb, var(--tb-ambar, #ffd740) 10%, transparent); }
.avc-btns { display: inline-flex; gap: 6px; justify-content: flex-end; }
.avc-btn { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.avc-btn:disabled { opacity: .35; }
/* angosto (teléfono, Viewer, TRACKBET con varias columnas): tono y botones en un segundo renglón */
@container (max-width: 520px) {
  .avc-cab { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .avc-cab-tono, .avc-cab > span:last-child { display: none; }
  .avc-fila { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .avc-tono { grid-column: 2; }
  .avc-btns { grid-column: 2 / -1; justify-content: flex-start; }
}
.avc-ancho { container-type: inline-size; }
