/* Report page layout and print styles */

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.report-content {
    max-width: 900px;
    margin: 0 auto;
}

.report-cover {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color, #dee2e6);
}

.report-title {
    font-size: 1.75rem;
    color: var(--primary-color, #4a90e2);
    margin-bottom: 12px;
}

.report-meta {
    margin: 6px 0;
    color: var(--secondary-color, #6c757d);
    font-size: 0.95rem;
}

.report-section {
    margin-bottom: 28px;
    page-break-inside: avoid;
}

.report-section h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-color, #333);
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.report-stat-card {
    background: var(--bg-color, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color, #6c757d);
}

.report-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.report-highlight {
    font-size: 1rem;
    padding: 10px 0;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.report-table th,
.report-table td {
    border: 1px solid var(--border-color, #dee2e6);
    padding: 10px 12px;
    text-align: left;
}

.report-table th {
    background: var(--bg-color, #f8f9fa);
    font-weight: 600;
}

.report-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.report-settlements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-settlements-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.report-settlements-list li:last-child {
    border-bottom: none;
}

/* Print styles */
@media print {
    body {
        background: #fff;
    }

    .report-header,
    .no-print,
    .btn,
    header .btn {
        display: none !important;
    }

    .report-content {
        max-width: 100%;
    }

    .container {
        max-width: 100%;
    }

    .report-section {
        page-break-inside: avoid;
    }

    .report-title {
        color: #333;
    }
}
