.reports-filters,
.reports-table-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    align-items: end;
}

.reports-filters label {
    display: block;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 700;
}

.reports-filters input,
.reports-filters select,
.reports-table-filters input,
.reports-table-filters select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.reports-filter-actions {
    display: flex;
    gap: 10px;
}

.reports-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.reports-table-filters .optimo-btn,
.reports-table-filters .small-link,
.reports-filters .optimo-btn,
.reports-filters .small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 95px;
    height: 44px;
    min-height: 44px;
    padding: 10px 18px !important;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.reports-table-filters .small-link,
.reports-table-filters .optimo-btn.secondary,
.reports-filters .small-link,
.reports-filters .optimo-btn.secondary {
    background: #e2e8f0;
    color: #0f172a !important;
}

.report-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.report-badge.success {
    background: #dcfce7;
    color: #166534;
}

.report-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.supplier-details-box {
    margin-top: 24px;
    padding: 20px;
    background: #f8fbff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.optimo-table tfoot th {
    background: #f8fafc;
    padding: 14px;
    text-align: left;
}

.reports-pagination {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.reports-pagination a {
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.reports-pagination a.active {
    background: var(--optimo-primary, #00609f);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .reports-filters,
    .reports-table-filters,
    .reports-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .reports-filters,
    .reports-table-filters,
    .reports-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reports-filters input,
    .reports-filters select,
    .reports-table-filters input,
    .reports-table-filters select {
        width: 100%;
        min-width: 0;
        height: 52px;
        min-height: 52px;
        padding: 13px 14px;
        font-size: 15px;
        color: #0f172a !important;
        background: #ffffff !important;
        line-height: 1.2;
        box-sizing: border-box;
        -webkit-text-fill-color: #0f172a;
        appearance: auto;
        -webkit-appearance: auto;
    }

    .reports-filters input[type="date"],
    .reports-table-filters input[type="date"] {
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
        font-size: 15px !important;
        line-height: normal;
    }

    .reports-filters input[type="date"]::-webkit-date-and-time-value,
    .reports-table-filters input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
        color: #0f172a;
    }

    .reports-filter-actions {
        flex-direction: column;
        gap: 10px;
    }

    .reports-table-filters .optimo-btn,
    .reports-table-filters .small-link,
    .reports-filters .optimo-btn,
    .reports-filters .small-link {
        width: 100% !important;
        min-height: 52px;
        height: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 18px !important;
        margin: 0 !important;
        box-sizing: border-box;
        text-align: center;
        line-height: 1.2;
    }

    .supplier-details-box {
        padding: 15px;
        border-radius: 14px;
    }

    .reports-pagination a {
        padding: 7px 10px;
        font-size: 12px;
    }
}