/* Panel de administración (usa los colores y componentes de app.css) */
.barra .marca { color: #fff; text-decoration: none; }
.barra a.chip-plan { text-decoration: none; padding: 0 14px; }

.pestanas {
  display: flex; gap: 4px; overflow-x: auto; padding: 10px 16px 0; background: var(--fondo);
  position: sticky; top: 0; z-index: 2; scrollbar-width: none;
}
.pestanas::-webkit-scrollbar { display: none; }
.pestanas button {
  flex: none; border: 0; background: none; font: inherit; font-weight: 650; font-size: .92rem; color: var(--tenue);
  padding: 10px 14px; border-bottom: 3px solid transparent; cursor: pointer;
}
.pestanas button.activa { color: var(--verde); border-bottom-color: var(--verde); }
.pestanas i:not(:empty) { font-style: normal; font-size: .72rem; background: var(--rojo); color: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
@media (min-width: 640px) { .pestanas { justify-content: center; } }

.admin { max-width: 720px; }
.resumen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.resumen div { background: var(--tarjeta); border-radius: 14px; padding: 10px 6px; text-align: center; box-shadow: var(--sombra); }
.resumen b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.resumen span { font-size: .7rem; color: var(--tenue); }
@media (max-width: 420px) { .resumen { grid-template-columns: repeat(2, 1fr); } }

.filtros { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.filtros button {
  border: 1.5px solid var(--borde); background: var(--tarjeta); color: var(--texto); border-radius: 99px;
  padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.filtros button.activa { background: var(--verde); border-color: var(--verde); color: #fff; }

.item { margin-bottom: 12px; }
.item.resaltado { outline: 3px solid var(--verde); }
.item-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.item-cab > div { min-width: 0; display: flex; flex-direction: column; }
.item-cab .tenue { font-size: .84rem; overflow-wrap: anywhere; }
.item p { margin: 0 0 6px; }
.monto { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.nota-cliente { font-style: italic; font-size: .9rem; }
.mensaje { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--fondo); border-radius: 12px; padding: 10px 12px; }
.comprobante {
  display: block; width: 100%; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--fondo);
  padding: 0; margin: 8px 0 12px; cursor: zoom-in; overflow: hidden; color: var(--verde); font: inherit; font-weight: 650;
}
.comprobante img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #fff; }
.comprobante span { display: block; padding: 18px; }
.botones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.botones .btn { flex: 1 1 auto; min-height: 46px; padding: 0 14px; }
.btn.rojo { color: var(--rojo); border-color: var(--rojo-claro); }
.mas { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borde); }
.mas .btn { margin-top: 8px; }
.campo select {
  width: 100%; height: 50px; padding: 0 12px; border-radius: 12px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--borde); background: var(--fondo); color: var(--texto);
}
.vacio { text-align: center; color: var(--tenue); padding: 30px 10px; }

.plan-admin { display: grid; gap: 4px; }
.qr-mini { display: grid; place-items: center; background: var(--fondo); border-radius: 12px; min-height: 90px; margin-bottom: 12px; color: var(--tenue); }
.qr-mini img { max-width: 200px; width: 100%; border-radius: 10px; background: #fff; }
.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.rejilla .campo:first-child { grid-column: span 2; }
.check { grid-column: span 2; display: flex; gap: 8px; align-items: center; font-size: .92rem; margin-bottom: 8px; }
.check input { width: 20px; height: 20px; accent-color: var(--verde); }
.subir-qr { cursor: pointer; }

dialog { border: 0; border-radius: 18px; padding: 12px; width: min(560px, 94vw); background: var(--tarjeta); color: var(--texto); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog img { display: block; width: 100%; max-height: 75vh; object-fit: contain; }
dialog iframe { width: 100%; height: 70vh; border: 0; }
