/* ==========================================================================
   views/fiscal.css — Estilos exclusivos de Facturas (CFDI) (fiscal.html)
   Prefijo de clases: fc-
   ========================================================================== */

/* Tarjeta "Mis datos fiscales" (estilo credencial) */
.fc-id {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 22px;
    color: var(--white);
    background: linear-gradient(140deg, #60A5FA 0%, #1D4ED8 55%, #172554 100%);
    box-shadow: 0 24px 48px -20px rgba(23, 37, 84, .6);
}
.fc-id::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px);
    pointer-events: none;
}
.fc-id::after {
    content: "SAT";
    position: absolute;
    right: -6px;
    bottom: -22px;
    font-size: 86px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .07);
    pointer-events: none;
}
.fc-id > * { position: relative; z-index: 1; }
.fc-id-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fc-id-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.fc-id-name { font-size: 18px; font-weight: 700; color: var(--white); margin-top: 2px; }

.fc-rfc {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
}
.fc-rfc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.fc-rfc strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.page-mod button.fc-copy {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: #1D4ED8;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
}
.page-mod button.fc-copy:active { transform: scale(.95); }
.page-mod button.fc-copy.is-done { background: #DCFCE7; color: var(--c-green); }

.fc-id-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-top: 14px;
}
.fc-id-grid p { font-size: 13.5px; font-weight: 600; color: var(--white); line-height: 1.35; margin-top: 2px; }
.fc-id-grid > div:last-child { text-align: right; }

/* Filtro segmentado a todo lo ancho */
.fc-segment { display: flex; width: 100%; }
.page-mod .fc-segment button { flex: 1; width: auto; padding: 8px 6px; line-height: 1.2; }

/* Lista de CFDI */
#fc-list .mod-item { align-items: flex-start; }
#fc-list .mod-item-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-uuid { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px !important; color: var(--greyscale-400) !important; }

/* Recordatorio "Solicita factura" */
.fc-request {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #FFF7ED 0%, var(--white) 60%);
    border: 1px solid #FED7AA;
}
.fc-request-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fc-request-head p { font-size: 15px; font-weight: 700; color: var(--primary-base); }
.fc-request-head span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--greyscale-600); }
.fc-request .mod-item { border-color: #FFEDD5; }
