
.reports-page {
    position: relative;
    padding-bottom: 48px;
}

/* ---------- Header ---------- */

.reports-header {
    align-items: flex-start;
    gap: 16px;
}

.reports-title {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--rr-text-strong);
    margin-bottom: 2px;
}

.reports-subtitle {
    color: var(--rr-text-secondary);
    margin-bottom: 0;
}

.reports-action-btn,
.reports-send-btn,
.report-secondary-btn {
    border-radius: 12px;
    text-transform: none;
    font-weight: 600;
    box-shadow: none;
    min-height: 40px;
}

.reports-action-btn {
    margin-left: auto;
    white-space: nowrap;
}

/* ---------- KPI Cards ---------- */

.reports-kpi-grid {
    margin-top: 0 !important;
    margin-bottom: 4px;
}

.reports-kpi-card {
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: var(--rr-surface);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

    .reports-kpi-card:hover {
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
        transform: translateY(-3px);
    }

.reports-kpi-value {
    font-weight: 800;
    color: var(--rr-text-strong);
    line-height: 1.2;
}

/* ---------- Filter ---------- */

.reports-filter-card {
    border-radius: var(--rr-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.78));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.reports-search .mud-input-root,
.reports-state-select .mud-input-root,
.reports-comment-input .mud-input-root {
    border-radius: var(--rr-radius-md);
}

.reports-state-select {
    min-width: 220px;
}

/* ---------- Tabs ---------- */

.reports-tabs {
    border-radius: var(--rr-radius-lg);
}

    .reports-tabs .mud-tabs-toolbar {
        border-radius: var(--rr-radius-lg);
    }

    .reports-tabs .mud-tab {
        font-weight: 700;
        letter-spacing: 0.3px;
        color: var(--rr-text-secondary);
    }

        .reports-tabs .mud-tab:hover {
            color: var(--rr-text-strong);
        }

        .reports-tabs .mud-tab.mud-tab-active {
            font-weight: 800;
            color: var(--rr-text-strong);
        }

/* ---------- Layout ---------- */

.reports-layout-grid {
    margin-top: 0 !important;
}

.reports-panel {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: var(--rr-radius-lg);
    background: var(--rr-surface);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    padding: 14px;
    min-height: 220px;
    overflow: hidden;
}

.reports-list-panel {
    max-height: 720px;
    overflow-y: auto;
}

.reports-detail-panel {
    padding: 20px;
}

.reports-empty-detail {
    min-height: 180px;
    justify-content: center;
}

/* ---------- Report List Rows ---------- */

.report-row-simple {
    position: relative;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

    .report-row-simple:hover {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
        transform: translateY(-2px);
        border-color: rgba(0, 0, 0, 0.16);
    }

    .report-row-simple.selected {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.86));
        border-color: rgba(0, 0, 0, 0.34);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    }

        .report-row-simple.selected::before {
            content: "";
            position: absolute;
            left: 0;
            top: 12px;
            bottom: 12px;
            width: 5px;
            border-radius: 999px;
            background: linear-gradient(180deg, var(--rr-primary), #555555);
        }

.report-row-title {
    font-weight: 800;
    color: var(--rr-text-strong);
    line-height: 1.25;
}

.report-row-property {
    line-height: 1.35;
}

/* ---------- Details ---------- */

.report-detail-header {
    gap: 14px;
}

.report-detail-title {
    font-weight: 900;
    color: var(--rr-text-strong);
    line-height: 1.2;
}

.report-detail-actions {
    flex-shrink: 0;
}

.report-detail-desc {
    color: var(--rr-text-secondary);
    line-height: 1.55;
}

.report-meta {
    line-height: 1.4;
}

.report-section-title {
    font-weight: 800;
    color: var(--rr-text-strong);
}

.report-comment-card {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.report-comment-form {
    padding: 16px;
    border-radius: var(--rr-radius-lg);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.75));
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- Chips ---------- */

.report-chip {
    border-radius: var(--rr-radius-pill);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.report-file-chip {
    border-radius: var(--rr-radius-sm);
    font-weight: 600;
}

/* ---------- Existing status helper classes ---------- */

.state-new {
    border: 1px solid var(--rr-success-border);
    background: var(--rr-success-bg);
    color: #555555;
}

.state-progress {
    border: 1px solid var(--rr-warning-border);
    background: var(--rr-warning-bg);
    color: #555555;
}

.state-done {
    border: 1px solid var(--rr-info-border);
    background: var(--rr-info-bg);
    color: #111111;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .reports-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-action-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .reports-filter-stack {
        align-items: stretch !important;
    }

    .reports-search,
    .reports-state-select {
        width: 100%;
        min-width: 100%;
    }

    .reports-list-panel {
        max-height: none;
    }

    .report-detail-header,
    .report-detail-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .report-secondary-btn,
    .reports-send-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .reports-page {
        padding-bottom: 32px;
    }

    .reports-panel {
        padding: 12px;
    }

    .reports-detail-panel {
        padding: 14px;
    }

    .report-row-simple {
        padding: 12px;
    }

    .report-comment-form {
        padding: 12px;
    }
}

