.fv-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 14px 34px;
}

.fv-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: stretch;
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.fv-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    color: #2563eb;
    font-weight: 800;
    margin-bottom: 8px;
}

.fv-hero h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.fv-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #475569;
    font-size: 15px;
}

.fv-date {
    min-width: 210px;
    border-radius: 18px;
    padding: 16px;
    background: #0f172a;
    color: rgba(255,255,255,.72);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.fv-date strong {
    color: #fff;
    font-size: 15px;
}

.fv-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.fv-kpi {
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.fv-kpi span,
.fv-card span,
.fv-filters span {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.fv-kpi strong {
    display: block;
    margin-top: 7px;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.fv-kpi-danger strong {
    color: #b91c1c;
}

.fv-filters {
    margin-top: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.fv-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.fv-filters label {
    margin: 0;
}

.fv-filters input,
.fv-filters select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    min-height: 38px;
    padding: 8px 10px;
    background: #fff;
}

.fv-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fv-button-light {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.fv-results {
    margin-top: 18px;
}

.fv-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fv-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.fv-card-top,
.fv-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.fv-card-bottom {
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.fv-supplier {
    display: inline-block;
    color: #0f172a;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
}

.fv-supplier:hover {
    text-decoration: underline;
}

.fv-muted {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.fv-status,
.fv-payment-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.fv-status-critical {
    background: #fee2e2;
    color: #991b1b !important;
}

.fv-status-attention {
    background: #fef3c7;
    color: #92400e !important;
}

.fv-status-recent {
    background: #dbeafe;
    color: #1e40af !important;
}

.fv-payment-chip {
    background: #f1f5f9;
    color: #334155 !important;
}

.fv-invoice-line,
.fv-metrics,
.fv-amounts {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.fv-invoice-line {
    grid-template-columns: 1fr 1fr;
}

.fv-metrics,
.fv-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fv-invoice-line > div,
.fv-metrics > div,
.fv-amounts > div {
    border-radius: 15px;
    padding: 11px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.fv-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 14px;
    word-break: break-word;
}

.fv-remain strong {
    color: #b91c1c;
}

.fv-empty {
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 22px;
    padding: 38px 18px;
    color: #64748b;
    background: #fff;
}

.fv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.fv-pagination span {
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .fv-filter-grid,
    .fv-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fv-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fv-page {
        padding: 10px 6px 26px;
    }

    .fv-hero {
        flex-direction: column;
        padding: 18px;
    }

    .fv-date {
        text-align: left;
        min-width: 0;
    }

    .fv-filter-grid,
    .fv-card-grid,
    .fv-kpis,
    .fv-invoice-line,
    .fv-metrics,
    .fv-amounts {
        grid-template-columns: 1fr;
    }

    .fv-card-top,
    .fv-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .fv-card-bottom .button {
        text-align: center;
    }
}
