.abc-admin-hotspot {
  width: 30px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  cursor: pointer;
}

.abc-admin-hotspot:focus-visible {
  opacity: 1;
  outline: 3px solid var(--focus, #087e8b);
  outline-offset: 2px;
}

.admin-panel {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 20px;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 1.4rem;
  border: 1px solid var(--line, #d4e0da);
  border-radius: 18px;
  background: var(--sheet, #fffefa);
  box-shadow: 0 18px 55px rgba(19, 51, 48, 0.24);
  color: var(--forest, #12332f);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-panel-head p {
  margin: 0 0 0.15rem;
  color: var(--green, #2f7d32);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-panel h2 {
  margin: 0;
  font: 700 1.55rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.admin-panel h3 {
  margin: 1.1rem 0 0.55rem;
  color: var(--forest, #12332f);
  font-size: 0.82rem;
}

.admin-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #5d746e);
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-close:hover {
  background: #eef4f0;
  color: var(--forest, #12332f);
}

.admin-close:focus-visible,
.abc-admin-hotspot:focus-visible {
  outline: 3px solid var(--focus, #087e8b);
  outline-offset: 3px;
}

.admin-status {
  margin: 0.8rem 0;
  color: var(--muted, #5d746e);
  font-size: 0.8rem;
}

.admin-status[data-error="true"] {
  color: #8a342b;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0;
  border-block: 1px solid var(--line, #d4e0da);
}

.admin-stats article {
  padding: 0.9rem 0.75rem;
  border-left: 1px solid var(--line, #d4e0da);
}

.admin-stats article:first-child {
  border-left: 0;
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  color: var(--forest, #12332f);
  font: 700 1.55rem/1 Georgia, "Times New Roman", serif;
}

.admin-stats span {
  margin-top: 0.3rem;
  color: var(--muted, #5d746e);
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-content {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.admin-countries {
  display: grid;
  gap: 0.35rem;
}

.admin-country {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line, #d4e0da);
  color: var(--text, #29463f);
  font-size: 0.76rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  white-space: nowrap;
}

.admin-panel th,
.admin-panel td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line, #d4e0da);
  text-align: left;
}

.admin-panel th {
  color: var(--muted, #5d746e);
  font-weight: 800;
}

.admin-empty {
  margin: 0;
  color: var(--muted, #5d746e);
  font-size: 0.76rem;
}

@media (max-width: 640px) {
  .admin-panel {
    inset: 12px;
    width: auto;
    max-height: none;
    border-radius: 14px;
  }

  .admin-content {
    grid-template-columns: 1fr;
  }
}

@media print {
  .abc-admin-hotspot,
  .admin-panel {
    display: none !important;
  }
}

/* El mismo control en todas las páginas, en el mismo sitio: la esquina de abajo
   a la izquierda. Invisible, pero siempre ahí (Frank, 01-09-2026). */
.abc-admin-hotspot.abc-admin-esquina {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 46px;
  z-index: 70;
}

@media print {
  .abc-admin-hotspot.abc-admin-esquina { display: none; }
}
