/* Reports Module - Public & Admin Dynamic Styles */

.reports-section {
    padding: 70px 0 100px;
    background: #f8fafc;
    min-height: calc(100vh - 450px);
}

.reports-container {
    width: min(calc(100% - 48px), 1160px);
    margin-inline: auto;
}

.reports-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.reports-heading > span {
    color: #1687a7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: capitalize;
}

.reports-heading h1 {
    margin: 9px 0 12px;
    color: #0d4f80;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
}

.reports-heading p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.65;
}

.reports-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.reports-controls input[type="search"] {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reports-controls input[type="search"]:focus {
    border-color: #0c6597;
    box-shadow: 0 0 0 3px rgba(12, 101, 151, 0.12);
}

.reports-controls select {
    width: 180px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.reports-controls select:focus {
    border-color: #0c6597;
    box-shadow: 0 0 0 3px rgba(12, 101, 151, 0.12);
}

.reports-list {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.report-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #eef2f6;
    transition: background-color 0.2s ease;
}

.report-row:last-child {
    border-bottom: none;
}

.report-row:hover {
    background-color: #f8fafc;
}

.report-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e6f3fa;
    color: #0c6597;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.report-icon.manual {
    background: #f3f0ff;
    color: #7c3aed;
}

.report-information {
    min-width: 0;
}

.report-information span.report-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    border-radius: 4px;
    margin-bottom: 8px;
}

.report-information span.report-tag.automatic {
    background: #e0f2fe;
    color: #0369a1;
}

.report-information span.report-tag.manual {
    background: #f3e8ff;
    color: #6b21a8;
}

.report-information h2 {
    margin: 0 0 6px 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.45;
}

.report-information p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.report-downloads {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-report-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-report-dl.pdf {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.btn-report-dl.pdf:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-report-dl.docx {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.btn-report-dl.docx:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.reports-empty {
    padding: 60px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.reports-empty i {
    font-size: 2.6rem;
    color: #94a3b8;
    margin-bottom: 14px;
    display: block;
}

.reports-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Admin Specific */
.reports-admin-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #1e40af;
}

.reports-admin-info i {
    font-size: 1.5rem;
    color: #2563eb;
    flex-shrink: 0;
}

.reports-admin-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 860px) {
    .report-row {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }

    .report-downloads {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 10px;
        border-top: 1px dashed #e2e8f0;
    }
}

@media (max-width: 600px) {
    .reports-heading {
        margin-bottom: 24px;
    }

    .reports-controls {
        flex-direction: column;
    }

    .reports-controls select {
        width: 100%;
    }

    .report-row {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    .report-icon {
        display: none;
    }

    .btn-report-dl {
        flex: 1;
        justify-content: center;
    }
}
