/* bot-panel.css: the bot's page, /discordbot (functions/discordbot.html,
   public/bot-panel.js). Loaded after style.css (variables, .action-btn,
   .hidden, the spinner) and panel-ayudas.css (notices, ⓘ tips); nothing
   else loads it. public/bot-panel.css is generated: these parts of
   estilos/bot/ joined in name order by node scripts/unir-estilos.mjs, one
   part per area of the page (docs/discord.md names them). */

body.bot-page {
  min-height: 100vh;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-y: auto;
}

.bot-shell {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#bot-contenido {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#bot-contenido.hidden {
  display: none;
}

.bot-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.bot-brand {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
}

.bot-header-title {
  color: var(--text-secondary);
  font-weight: 600;
}

.bot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}

.bot-card-title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.bot-aviso {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.bot-aviso .action-btn {
  margin-left: auto;
}


/* Staging's test mode (public/bot-panel.js): the line under the status. */
.bot-modo-prueba {
  border-color: #f0b232;
  background: rgba(240, 178, 50, 0.08);
  color: var(--text-secondary);
  padding: 12px 16px;
  line-height: 1.5;
}

.bot-modo-prueba strong {
  color: #f0b232;
}
/* The bot's status card: avatar, online pill and the server's counts. */

.bot-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.bot-status-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.bot-status .action-btn {
  width: auto;
}

.bot-pill {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.bot-pill.is-online {
  background: rgba(35, 165, 90, 0.18);
  color: #4ade80;
}

.bot-pill.is-offline {
  background: rgba(242, 63, 67, 0.18);
  color: #f87171;
}

.bot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.bot-stats div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}

.bot-stats dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bot-stats dd {
  margin: 2px 0 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The send form's base: labels, fields, switches, the card's fields and the actions. */

.bot-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
}

.bot-form input[type="text"],
.bot-form input[type="url"],
.bot-form select,
.bot-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  padding: 10px 12px;
}

.bot-form textarea {
  resize: vertical;
}

.bot-form input:focus-visible,
.bot-form select:focus-visible,
.bot-form textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}

.bot-form input[type="color"] {
  width: 56px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: transparent;
}

.bot-hint {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bot-form .bot-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.bot-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
}

.bot-tarjeta {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 4px 12px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-tarjeta.hidden {
  display: none;
}

.bot-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.bot-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-grow {
  flex: 1;
  min-width: 0;
}

.bot-subtitle {
  margin: 16px 0 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bot-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.bot-actions .action-btn {
  width: auto;
  min-width: 140px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The preview: Discord's dark message look, roughly. */
.bot-preview {
  background: #313338;
  border-radius: 12px;
  padding: 14px 16px;
  color: #dbdee1;
  font-size: 0.95rem;
}

.bot-preview-empty {
  margin: 0;
  color: #949ba4;
}

.bot-preview-msg {
  display: flex;
  gap: 14px;
}

.bot-preview-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865f2;
  overflow: hidden;
}

.bot-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-preview-body {
  min-width: 0;
  flex: 1;
}

.bot-preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-preview-name {
  color: #f2f3f5;
}

.bot-preview-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: #5865f2;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
}

.bot-preview-text {
  margin-top: 2px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bot-preview-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 2px;
}

.bot-preview-embed {
  margin-top: 6px;
  max-width: 520px;
  background: #2b2d31;
  border-left: 4px solid #e11d48;
  border-radius: 4px;
  padding: 10px 14px 12px;
}

.bot-preview-embed-title {
  font-weight: 700;
  color: #f2f3f5;
  overflow-wrap: anywhere;
}

.bot-preview-embed-desc {
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.bot-preview-embed-img {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .bot-stats {
    grid-template-columns: 1fr;
  }
  .bot-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Link buttons and poll options: rows of public/bot-filas.js. */
.bot-filas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.bot-fila {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bot-fila input {
  flex: 1;
  min-width: 0;
}

.bot-fila .action-btn,
.bot-agregar {
  width: auto;
  flex: none;
}

.bot-agregar {
  align-self: flex-start;
  margin-top: 4px;
}

.bot-label-falso {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
}

.bot-form .bot-switch.is-disabled {
  opacity: 0.5;
}

/* "Editando un mensaje enviado" above the form. */
.bot-editando {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #f0b232;
  border-radius: 10px;
  background: rgba(240, 178, 50, 0.1);
  font-size: 0.9rem;
}

.bot-editando .action-btn {
  width: auto;
}

/* Preview: link buttons and poll, the way Discord draws them. */
.bot-preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bot-preview-button {
  background: #4e5058;
  color: #f2f3f5;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bot-preview-poll {
  margin-top: 6px;
  max-width: 440px;
  background: #2b2d31;
  border: 1px solid #3f4147;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-preview-poll-q {
  font-weight: 700;
  color: #f2f3f5;
  overflow-wrap: anywhere;
}

.bot-preview-poll-opt {
  background: #383a40;
  border-radius: 6px;
  padding: 9px 12px;
  overflow-wrap: anywhere;
}

.bot-preview-poll-hint {
  font-size: 0.75rem;
  color: #b5bac1;
}

/* "Enviados": the messages sent from the page (public/bot-enviados.js). */
.bot-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.bot-card-head .bot-card-title {
  margin: 0;
}

.bot-enviados {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-enviado {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.bot-enviado-texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-enviado-resumen {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-enviado-fecha {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bot-enviado-acciones {
  display: flex;
  gap: 6px;
  flex: none;
}

.bot-enviado-acciones .action-btn {
  width: auto;
  text-decoration: none;
  justify-content: center;
  text-align: center;
}

.bot-enviado-borrar.is-danger {
  border-color: #da373c;
  color: #ff8a8d;
}

@media (max-width: 520px) {
  /* One column as a grid, not a column flexbox: Chrome measures a wrapping
     row of buttons inside a column flexbox at its narrowest, one button per
     line, and left an empty line under them. */
  .bot-enviado {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .bot-enviado-acciones .action-btn {
    flex: 1;
  }
}

/* A label with its ⓘ, and a select or field with its buttons on one line. */
.bot-etiqueta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.bot-form .bot-etiqueta label {
  margin-top: 0;
}

.bot-linea {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bot-linea select,
.bot-linea input {
  flex: 1;
  min-width: 0;
}

.bot-linea .action-btn {
  width: auto;
  flex: none;
}

/* Under the text: the {variable} buttons and the character count. */
.bot-texto-pie {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bot-variables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bot-variable {
  font: inherit;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
}

.bot-variable:hover {
  color: var(--text-primary);
  border-color: var(--accent-color);
}

.bot-variable:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}

.bot-texto-pie .bot-hint {
  flex: none;
  padding-top: 6px;
}

.bot-hint-izq {
  align-self: flex-start;
}

/* The card's image: drop zone, the image chosen and its "Quitar". */
.bot-imagen-zona {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px;
  border: 1.5px dashed var(--card-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.bot-imagen-zona.is-over {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
}

.bot-imagen-zona.is-busy {
  opacity: 0.7;
}

.bot-imagen-zona .action-btn {
  width: auto;
}

.bot-imagen-elegida {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.bot-imagen-elegida.hidden {
  display: none;
}

.bot-imagen-elegida img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.bot-imagen-elegida > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.bot-imagen-nombre {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.bot-imagen-elegida .action-btn {
  width: auto;
}

/* "Guardar como plantilla": the name, typed in place. */
.bot-guardar-plantilla {
  margin-top: 12px;
  padding: 4px 12px 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.bot-guardar-plantilla.hidden {
  display: none;
}

.bot-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.bot-form input[type="datetime-local"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  padding: 10px 12px;
  color-scheme: dark;
}

/* "Enviados": a poll's results under its row (public/bot-resultados.js). */
.bot-enviado {
  flex-wrap: wrap;
}

.bot-resultados {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-resultados.hidden {
  display: none;
}

.bot-resultados-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-resultado {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.9rem;
}

.bot-resultado-barra {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(225, 29, 72, 0.22);
}

.bot-resultado.is-top .bot-resultado-barra {
  background: rgba(225, 29, 72, 0.42);
}

.bot-resultado-texto,
.bot-resultado-votos {
  position: relative;
}

.bot-resultado-texto {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bot-resultado-votos {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.bot-resultado.is-top .bot-resultado-votos {
  font-weight: 700;
}

.bot-resultados-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bot-resultados-acciones {
  display: flex;
  gap: 6px;
}

.bot-resultados-acciones .action-btn {
  width: auto;
}

.bot-resultados-cerrar.is-danger {
  border-color: #da373c;
  color: #ff8a8d;
}

/* "Programados": each one's state. */
.bot-estado {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.bot-estado-pendiente,
.bot-estado-enviando {
  background: rgba(88, 101, 242, 0.22);
  color: #c9cdfb;
}

.bot-estado-enviado {
  background: rgba(35, 165, 90, 0.18);
  color: #4ade80;
}

.bot-estado-fallo {
  background: rgba(242, 63, 67, 0.18);
  color: #f87171;
}

.bot-programado-error {
  font-size: 0.8rem;
  color: #f87171;
}

@media (max-width: 520px) {
  .bot-texto-pie {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .bot-texto-pie .bot-hint {
    align-self: flex-end;
    padding-top: 0;
  }
  .bot-actions .action-btn {
    flex: 1;
  }
  .bot-resultados-acciones .action-btn {
    flex: 1;
  }
}

.bot-imagen {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-enviado > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 520px) {
  .bot-enviado-acciones {
    flex-wrap: wrap;
  }
  .bot-enviado-acciones .action-btn {
    flex: 1 1 calc(50% - 6px);
  }
}
/* The tab bar under the status card (public/bot-pestanas.js): Mensajes,
   Servidor, Sorteos, Moderación, Estadísticas. On a phone it scrolls
   sideways instead of wrapping. */
.bot-pestanas {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px;
  padding: 8px 16px;
  background: var(--bg-color);
}

.bot-pestanas-lista {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}

.bot-pestanas-lista::-webkit-scrollbar {
  display: none;
}

.bot-pestana {
  flex: 1 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.bot-pestana:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.bot-pestana[aria-selected="true"] {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.bot-pestana:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.bot-seccion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bot-seccion[hidden] {
  display: none;
}

.bot-seccion:focus-visible {
  outline: none;
}

/* The line a tab shows when the bot on the VM does not answer. */
.bot-vm-aviso {
  margin: 0;
  border-color: rgba(250, 204, 21, 0.35);
  color: #fde68a;
}
/* Tab "Servidor": welcome and goodbye (public/bot-ajustes.js), role buttons
   (public/bot-botones-rol.js) and tickets. */
.bot-auto + .bot-auto {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
}

.bot-auto .bot-tarjeta {
  margin-top: 8px;
}

.bot-auto .bot-preview {
  margin-top: 4px;
}

.bot-fila-rol select {
  flex: 1 1 50%;
  min-width: 0;
}

.bot-fila-rol input {
  flex: 1 1 40%;
}

.bot-fila-rol select option:disabled {
  color: var(--text-muted);
}

.bot-card-head .bot-pill {
  margin-left: auto;
  align-self: center;
}

@media (max-width: 520px) {
  .bot-fila-rol {
    flex-wrap: wrap;
  }
  .bot-fila-rol select {
    flex-basis: 100%;
  }
}

/* "Canales del bot" (public/bot-pruebas.js): the test channels' checkboxes. */
.bot-pruebas {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The line between the two pickers only while both show (on staging the log
   channel is hidden). */
.bot-registro-bloque:not(.hidden) + .bot-pruebas {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.bot-pruebas-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
}

.bot-form .bot-switch.bot-prueba {
  margin-top: 0;
  font-weight: 500;
  min-height: 32px;
}

.bot-prueba-categoria {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
}

.bot-prueba input:disabled + span {
  color: var(--text-muted);
}
/* Tab "Sorteos" (public/bot-sorteos.js): the form's number field and each
   giveaway's winners. */
.bot-form input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  padding: 10px 12px;
}

.bot-sorteo-ganadores {
  font-size: 0.85rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

/* "Ganadores" and "Duración" side by side: labels on one line and the two
   fields' bottoms on another, though a number field and a select differ by a
   few pixels in height. */
#bot-sorteo-form .bot-row {
  align-items: stretch;
}

#bot-sorteo-form .bot-row > div {
  justify-content: space-between;
}
/* Tab "Moderación" (public/bot-moderacion.js): the recent warnings. */
.bot-aviso-motivo {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
/* Tab "Estadísticas" (public/bot-estadisticas.js): joins rise above the
   middle line in blue, leaves drop below it in orange (a pair checked for
   color blindness and 3:1 on the page's background), a legend, a tooltip
   per day and the numbers as a table. */
.bot-grafico {
  margin-top: 16px;
  --bot-entrada: #338ced;
  --bot-salida: #e76624;
}

.bot-leyenda {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.bot-leyenda-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bot-leyenda-marca {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.bot-leyenda-marca.is-entrada,
.bot-grafico-svg .is-entrada {
  background: var(--bot-entrada);
  fill: var(--bot-entrada);
}

.bot-leyenda-marca.is-salida,
.bot-grafico-svg .is-salida {
  background: var(--bot-salida);
  fill: var(--bot-salida);
}

.bot-grafico-marco {
  position: relative;
}

.bot-grafico-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bot-grafico-base {
  stroke: var(--card-border);
  stroke-width: 1;
}

.bot-grafico-zona {
  fill: transparent;
}

.bot-grafico-dia:hover .bot-grafico-zona,
.bot-grafico-dia:focus-visible .bot-grafico-zona {
  fill: rgba(255, 255, 255, 0.06);
}

.bot-grafico-dia:focus-visible {
  outline: none;
}

.bot-grafico-globo {
  position: absolute;
  top: -8px;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  border-radius: 8px;
  background: #1b1d24;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}

.bot-grafico-eje {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bot-grafico-tabla {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bot-grafico-tabla summary {
  cursor: pointer;
}

.bot-grafico-tabla table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bot-grafico-tabla th,
.bot-grafico-tabla td {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid var(--card-border);
}
