/* Legactia · ajustes sobre la hoja de estilos base */
.login-logo-ct { display: flex; justify-content: center; margin-bottom: 12px; }
.login-logo-ct img { width: 220px; max-width: 80%; height: auto; }
.marca img { max-height: 40px; max-width: 160px; object-fit: contain; }
.saldos-ct { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.saldos-ct .tarjeta { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.saldos-ct strong { font-size: 1.7rem; color: var(--azul); }
.tipo-ct { text-decoration: none; color: inherit; display: block; }
.tipo-ct:hover { border-color: var(--azul); }
.logo-ct { margin-bottom: 12px; }
.logo-ct img { max-height: 70px; max-width: 240px; object-fit: contain; }
.pie-ct { text-align: center; color: var(--texto-2); font-size: .8rem; padding: 18px 16px 28px; }
.detalle-super { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.tabla-scroll { overflow-x: auto; }
.tabla-editor input, .tabla-editor select { width: 100%; min-width: 90px; }
.tabla-editor td { vertical-align: middle; }
code { background: var(--gris-claro); padding: 1px 4px; border-radius: 4px; font-size: .85em; }
.estado.listo, .estado.prueba { background: var(--ambar-claro); color: var(--ambar); }
.estado.activa { background: var(--verde-claro); color: var(--verde); }
.estado.vencida, .estado.suspendida, .estado.baja { background: var(--rojo-claro); color: var(--rojo); }
@media (max-width: 760px) {
  .detalle-super { grid-template-columns: 1fr; }
  .detalle-lateral { display: contents; }
  .detalle .tarjeta-acciones { order: -1; }
}

/* Avisos: campanita y panel */
.campana { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: .5em .65em; }
.campana-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--rojo); color: #fff; font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; }
.panel-avisos { position: absolute; right: 16px; top: 100%; margin-top: 4px; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px);
  display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); z-index: 20; }
.panel-avisos[hidden] { display: none; }
.panel-avisos-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--borde); }
.avisos-lista { list-style: none; margin: 0; padding: 4px; overflow-y: auto; flex: 1 1 auto; }
.avisos-lista li button { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px; font: inherit; color: inherit; cursor: pointer; }
.avisos-lista li button:hover, .avisos-lista li button:focus-visible { background: var(--gris-claro); }
.avisos-lista li.nuevo button { background: var(--azul-claro); }
.avisos-lista li.nuevo strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); margin-right: 6px; vertical-align: middle; }
.avisos-lista span { color: var(--texto-2); font-size: .9em; }
.avisos-lista small { color: var(--texto-2); font-size: .78em; }
.avisos-lista .vacio { padding: 16px 12px; color: var(--texto-2); font-size: .9em; }
.avisos-push { border-top: 1px solid var(--borde); padding: 10px 12px; display: grid; gap: 8px; }
.avisos-push p { margin: 0; }
.pila-h { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .panel-avisos { right: 12px; } }
.saldos-ct strong small { font-size: .95rem; font-weight: 500; color: var(--gris, #5b6478); }
.saldos-ct .uso-cerca { border-color: #e0a800; }
.saldos-ct .uso-lleno { border-color: #c0392b; background: #fdf1f0; }
.saldos-ct .uso-lleno strong { color: #c0392b; }
.uso-aviso { border-color: #c0392b; background: #fdf1f0; margin-bottom: 16px; }
