/* ════════════════════════════════════════════════════════════════════════════════════════
   G27 · #!/NotificacionesPago y los avisos de pago de Home / Mi Plan.
   Se monta sobre `fg-listado` (tabla, chips, KPIs, paginado) y `fg-aviso` (facilu-home.css):
   aquí sólo va lo propio.
   ════════════════════════════════════════════════════════════════════════════════════════ */

.fg-notif .fg-notif-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--fg-muted); }
.fg-notif .fg-notif-kpis { margin-bottom: 8px; }
.fg-notif .fg-notif-kpi-btn { cursor: pointer; }
.fg-notif .fg-notif-kpi-btn:hover { border-color: var(--fg-p); }

.fg-notif .fg-notif-salud {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 14px; font-size: 12.5px;
}
.fg-notif .fg-notif-salud .fa-circle { font-size: 8px; }

.fg-notif .fg-notif-tabs { margin-bottom: 12px; }
.fg-notif .fg-notif-barra { margin-bottom: 10px; }
.fg-notif .fg-notif-filtro-empresa { margin-top: 8px; }
.fg-notif .fg-notif-x { margin-left: 6px; font-weight: 700; color: inherit; text-decoration: none; }
.fg-notif .fg-f-select { width: auto; max-width: 190px; }
.fg-notif .fg-f-fecha { width: 140px; }

.fg-notif .fg-notif-fila { cursor: pointer; }
.fg-notif .fg-notif-cuando { white-space: nowrap; }
.fg-notif .fg-notif-cuando .fg-sello { margin-left: 4px; }
.fg-notif .fg-notif-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fg-notif .fg-notif-ids { display: block; margin-top: 3px; font-size: 11.5px; }
.fg-notif .fg-notif-efecto { margin-top: 3px; font-size: 12px; }
.fg-notif .fg-notif-msg { max-width: 420px; font-size: 12.5px; }
.fg-notif .fg-notif-intro { margin-bottom: 10px; }

/* El detalle */
.fg-notif-modal .fg-notif-pane { padding-top: 12px; }
.fg-notif-modal .fg-notif-dl dt { width: 130px; font-weight: 600; color: var(--fg-muted, #64748b); }
.fg-notif-modal .fg-notif-dl dd { margin-left: 145px; margin-bottom: 6px; }
.fg-notif-modal .fg-notif-json-tit { display: block; margin-top: 8px; font-size: 12px; color: #64748b; }
.fg-notif-modal .fg-notif-json {
    max-height: 320px; overflow: auto;
    font-size: 12px; line-height: 1.45;
    background: #0f172a; color: #e2e8f0; border: 0; border-radius: 6px;
    white-space: pre-wrap; word-break: break-word;
}
.fg-notif-modal .fg-notif-res { white-space: normal; word-break: break-word; }
.fg-notif-modal .fg-notif-repro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.fg-notif-modal .fg-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.fg-notif-modal .fg-chip-ok { background-color: #D1FAE5; color: #065F46; }
.fg-notif-modal .fg-chip-off { background-color: #FEE2E2; color: #991B1B; }
.fg-notif-modal .fg-chip-warn { background-color: #FEF3C7; color: #92400E; }
.fg-notif-modal .fg-chip-info { background-color: #DBEAFE; color: #1E40AF; }
.fg-notif-modal .fg-chip-gris { background-color: #F1F5F9; color: #64748b; }
.fg-notif-modal .fg-chip-neutro { background-color: #EEF0F6; color: #4C1D95; }

/* La historia: una línea de tiempo vertical */
.fg-notif-modal .fg-notif-linea { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #E2E8F0; }
.fg-notif-modal .fg-notif-linea li {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 6px 0 6px 6px; font-size: 12.5px;
}
.fg-notif-modal .fg-notif-linea li::before {
    content: ''; position: absolute; left: -23px; top: 12px;
    width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; border: 2px solid #fff;
}
.fg-notif-modal .fg-notif-linea li.es-este::before { background: #6C3AED; }
.fg-notif-modal .fg-notif-linea li.es-este { font-weight: 600; }
.fg-notif-modal .fg-notif-linea-cuando { min-width: 78px; color: #64748b; }
.fg-notif-modal .fg-notif-linea-efecto { color: #334155; }

/* Los avisos al cliente en Home y Mi Plan (sobre `fg-aviso` de facilu-home.css). Una variante
   roja para lo que pone en riesgo el plan (cobro rechazado, pausa): `--atencion` es ámbar y se
   queda para lo que sólo informa (cancelación programada, paso a Free). */
.fg-aviso--mal { border-left-color: #DC2626; }
.fg-aviso--mal .fg-aviso-icono { background: #FEE2E2; color: #B91C1C; }
.fg-avisos-pago { margin-bottom: 14px; }
/* La «×» en la esquina, no en el flujo: en el móvil `fg-aviso` hace `flex-wrap` y la cruz caía
   sola en una línea debajo del botón (medido a 390 px). */
.fg-avisos-pago .fg-aviso { position: relative; padding-right: 36px; }
.fg-avisos-pago .fg-aviso-pago-cerrar {
    position: absolute; top: 6px; right: 8px;
    width: 26px; height: 26px; padding: 0;
    background: none; border: 0; border-radius: 6px;
    font-size: 18px; line-height: 26px; color: #94A3B8; cursor: pointer;
}
.fg-avisos-pago .fg-aviso-pago-cerrar:hover { color: #475569; background: #F1F5F9; }

/* ── La lista del administrador en el móvil: TARJETAS, no tabla ───────────────────────────
   A 390 px la tabla dejaba «Qué hicimos» --la columna que contesta la pregunta-- fuera de la
   vista, detrás de un scroll lateral. Cada fila pasa a ser un bloque con su etiqueta. */
@media (max-width: 767px) {
    .fg-notif .fg-notif-tabla thead { display: none; }
    .fg-notif .fg-notif-tabla,
    .fg-notif .fg-notif-tabla tbody,
    .fg-notif .fg-notif-tabla tr,
    .fg-notif .fg-notif-tabla td { display: block; width: 100%; }
    .fg-notif .fg-notif-tabla tr.fg-notif-fila {
        margin-bottom: 10px; padding: 8px 10px;
        border: 1px solid #E2E8F0; border-radius: 8px; background: #fff;
    }
    .fg-notif .fg-notif-tabla td { border: 0 !important; padding: 3px 0 !important; text-align: left !important; }
    .fg-notif .fg-notif-tabla td[data-et]::before {
        content: attr(data-et); display: block;
        font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #94A3B8;
    }
    .fg-notif .fg-notif-tabla td.fg-col-acc { display: none; }   /* la fila entera abre el detalle */
    .fg-notif .fg-notif-cuando br { display: none; }
    .fg-notif .fg-notif-cuando small { margin-left: 6px; }
    .fg-notif .table-responsive { border: 0; }
}

@media (max-width: 767px) {
    .fg-notif .fg-f-select, .fg-notif .fg-f-fecha { max-width: none; flex: 1 1 140px; }
    .fg-notif-modal .fg-notif-dl dt { width: auto; text-align: left; }
    .fg-notif-modal .fg-notif-dl dd { margin-left: 0; }
}
