/* Extracted report-page styles. Keep report templates markup-only. */

/* reports_by_geography.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.countries-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.country-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.2s;
}

.country-card.top {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
}

.country-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.country-flag {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.country-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.2rem;
}

.country-code {
    color: #666;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.country-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.metric-value.success {
    color: #28a745;
}

.metric-value.warning {
    color: #ffc107;
}

.metric-value.danger {
    color: #dc3545;
}

.metric-percentage {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 500;
}

.country-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.country-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
}

.map-container {
    height: 500px;
    position: relative;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.map-placeholder h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.map-placeholder p {
    margin: 0 0 1.5rem 0;
    color: #666;
    text-align: center;
}

.map-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.high {
    background: #dc3545;
}

.legend-color.medium {
    background: #ffc107;
}

.legend-color.low {
    background: #28a745;
}

.trends-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trend-filters {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 150px;
}

.chart-container {
    height: 400px;
    position: relative;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.country-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag-small {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
}

.country-name {
    font-weight: 600;
    color: #333;
}

.country-code {
    color: #666;
    font-size: 0.9rem;
}

.success-rate {
    font-weight: 600;
}

.success-rate.high {
    color: #28a745;
}

.success-rate.medium {
    color: #ffc107;
}

.success-rate.low {
    color: #dc3545;
}

.growth-rate {
    font-weight: 600;
}

.growth-rate.positive {
    color: #28a745;
}

.growth-rate.negative {
    color: #dc3545;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.insight-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
}

.insight-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.insight-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.insight-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.insight-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.insight-metrics span {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.insight-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
    margin-left: auto;
}

.insight-priority.high {
    background: #dc3545;
    color: white;
}

.insight-priority.medium {
    background: #ffc107;
    color: #212529;
}

.insight-priority.low {
    background: #28a745;
    color: white;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .countries-overview {
        grid-template-columns: 1fr;
    }

    .trend-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .insight-card {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }

    .country-metrics {
        grid-template-columns: 1fr;
    }
}

/* reports_by_payment_method.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.methods-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.method-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.2s;
}

.method-card.primary {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
}

.method-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.method-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.2rem;
}

.method-type {
    color: #666;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.method-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.metric-value.success {
    color: #28a745;
}

.metric-value.warning {
    color: #ffc107;
}

.metric-value.danger {
    color: #dc3545;
}

.metric-percentage {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 500;
}

.method-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.method-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
}

.chart-container {
    height: 400px;
    position: relative;
}

.trends-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trend-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.trend-controls label {
    font-weight: 500;
    color: #333;
}

.trend-controls select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 150px;
}

.performance-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.method-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-icon-small {
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
}

.success-rate {
    font-weight: 600;
}

.success-rate.high {
    color: #28a745;
}

.success-rate.medium {
    color: #ffc107;
}

.success-rate.low {
    color: #dc3545;
}

.trend {
    font-weight: 600;
}

.trend.up {
    color: #28a745;
}

.trend.down {
    color: #dc3545;
}

.trend.flat {
    color: #666;
}


.rec-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.rec-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.rec-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.rec-metrics span {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .methods-overview {
        grid-template-columns: 1fr;
    }

    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }

    .method-metrics {
        grid-template-columns: 1fr;
    }
}

/* reports_churn.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fef8f8 0%, white 100%);
}

.metric-card.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.churn-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.churn-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafbfc;
    border-left: 4px solid #dc3545;
}

.churn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.churn-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.churn-percentage {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.churn-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.churn-count {
    font-weight: 600;
    color: #dc3545;
}

.churn-revenue {
    font-weight: 600;
    color: #333;
}

.churn-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.churn-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    border-radius: 4px;
}

.churn-trend {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
}

.churn-trend.improving {
    color: #28a745;
}

.churn-trend.worsening {
    color: #dc3545;
}

.churn-trend.stable {
    color: #666;
}

.cohorts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cohort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cohort-controls label {
    font-weight: 500;
    color: #333;
}

.cohort-controls select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 150px;
}

.cohort-heatmap {
    overflow-x: auto;
}

.cohort-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cohort-table th,
.cohort-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.cohort-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.cohort-name {
    font-weight: 600;
    color: #333;
    text-align: left;
}

.cohort-cell {
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 4px;
}

.cohort-cell.retained {
    background: #28a745;
    color: white;
}

.cohort-cell.high {
    background: #d4edda;
    color: #155724;
}

.cohort-cell.medium {
    background: #fff3cd;
    color: #856404;
}

.cohort-cell.low {
    background: #f8d7da;
    color: #721c24;
}

.chart-container {
    height: 400px;
    position: relative;
}

.lifecycle-funnel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.lifecycle-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.stage-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    min-width: 60px;
    text-align: center;
}

.stage-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.stage-percentage {
    font-weight: 600;
    color: #28a745;
    min-width: 80px;
    text-align: right;
}

.stage-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
}

.stage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
}

.risk-analysis {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.risk-summary {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
}

.risk-metric {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 120px;
}

.risk-metric h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.risk-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc3545;
}

.risk-percentage {
    font-size: 0.9rem;
    color: #666;
}

.risk-factors h4 {
    margin-bottom: 1rem;
    color: #333;
}

.risk-factors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-factors li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.risk-factors li:last-child {
    border-bottom: none;
}

.factor-name {
    color: #333;
}

.factor-impact {
    font-weight: 600;
    color: #dc3545;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.strategy-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
}

.strategy-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
}

.strategy-priority.high {
    background: #dc3545;
    color: white;
}

.strategy-priority.medium {
    background: #ffc107;
    color: #212529;
}

.strategy-priority.low {
    background: #28a745;
    color: white;
}

.strategy-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.strategy-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.strategy-impact {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

.strategy-effort {
    font-size: 0.9rem;
    color: #666;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .churn-overview {
        grid-template-columns: 1fr;
    }

    .cohort-heatmap {
        font-size: 0.9rem;
    }

    .risk-analysis {
        grid-template-columns: 1fr;
    }

    .strategy-card {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }

    .lifecycle-stage {
        flex-direction: column;
        text-align: center;
    }
}

/* reports_expected_revenue.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.confidence {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.revenue-breakdown {
    max-width: 800px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.breakdown-label {
    min-width: 150px;
    font-weight: 500;
}

.breakdown-value {
    min-width: 120px;
    text-align: right;
    font-weight: 600;
    color: #28a745;
}

.breakdown-percentage {
    min-width: 80px;
    text-align: right;
    color: #666;
}

.breakdown-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 6px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.urgent {
    color: #dc3545;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-open {
    background: #d1ecf1;
    color: #0c5460;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

.chart-container {
    height: 400px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-item {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }
}

/* reports_failed_payments.html */
.report-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.meta-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    color: #475569;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.metric-card.danger { border-top: 3px solid #dc2626; }
.metric-card.warning { border-top: 3px solid #d97706; }
.metric-card.info { border-top: 3px solid #0284c7; }

.metric-icon {
    font-size: 1.6rem;
    opacity: 0.88;
}

.metric-content h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-content p {
    margin: 0.2rem 0 0;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}

.metric-content small {
    color: #64748b;
}

.form-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.form-section h2 {
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-size: 1.2rem;
}

.form-section > p {
    color: #64748b;
    margin-bottom: 1rem;
}

.failure-reasons {
    display: grid;
    gap: 0.85rem;
}

.reason-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1rem;
    background: #f8fafc;
}

.reason-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.reason-header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.reason-count {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reason-description {
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.reason-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.reason-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.reason-percentage {
    text-align: right;
    font-weight: 600;
    color: #b91c1c;
    font-size: 0.88rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #475569;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #cbd5e1;
    font-weight: 600;
}

.category-content { display: none; }
.category-content.active { display: block; }
.category-chart { height: 280px; margin-bottom: 1rem; }
.category-table { display: grid; gap: 0.45rem; }

.category-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
}

.category-chart canvas { width: 100% !important; }
.category-label { font-weight: 600; color: #0f172a; }
.category-value { font-weight: 700; color: #b91c1c; }
.category-count { color: #64748b; font-size: 0.88rem; }

.table-responsive { overflow-x: auto; }
.failure-reason { color: #b91c1c; font-weight: 600; cursor: help; }
.report-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
}

/* reports_invoice_aging.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.metric-card.danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fef8f8 0%, white 100%);
}

.metric-card.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.aging-buckets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.aging-bucket {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafbfc;
}

.aging-bucket.overdue {
    border-color: #ffc107;
    background: #fffef8;
}

.aging-bucket.current {
    border-color: #28a745;
    background: #f8fff9;
}

.bucket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bucket-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.bucket-days {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bucket-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.bucket-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.bucket-count {
    color: #666;
    font-size: 0.9rem;
}

.bucket-percentage {
    font-weight: 600;
    color: #007bff;
}

.bucket-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.bucket-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 6px;
}

.filters-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 150px;
    min-height: 42px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.overdue-days {
    color: #dc3545;
    font-weight: 600;
}

.overdue-days.critical {
    color: #721c24;
    background: #f8d7da;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.current-days {
    color: #28a745;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-open {
    background: #d1ecf1;
    color: #0c5460;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

.chart-container {
    height: 400px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
}

.collection-actions {
    display: grid;
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
}

.action-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.action-priority.high {
    background: #dc3545;
    color: white;
}

.action-priority.medium {
    background: #ffc107;
    color: #212529;
}

.action-priority.low {
    background: #28a745;
    color: white;
}

.action-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.action-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.action-impact {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 1rem;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .aging-buckets {
        grid-template-columns: 1fr;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .action-card {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }
}

/* reports_mrr_movements.html */
    .mrr-movements-layout {
        gap: 1rem;
    }
    .mrr-movements-layout .metrics-grid {
        gap: 0.9rem;
    }
    .mrr-movements-layout .form-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

/* reports_recovery.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.metric-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.opportunities-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.opportunity-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.2s;
}

.opportunity-card.high_value {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.opportunity-card.medium_value {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.opportunity-card.low_value {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
}

.opportunity-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.opportunity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.opportunity-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.opportunity-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.2rem;
}

.opportunity-type {
    color: #666;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.opportunity-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.opportunity-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opportunity-metric {
    text-align: center;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.metric-value.success {
    color: #28a745;
}

.opportunity-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.opportunity-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.recovery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.category-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafbfc;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.category-count {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-metric {
    text-align: center;
}

.category-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
}

.timeline-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.timeline-chart {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
}

.timeline-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-period {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.timeline-period h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.period-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.25rem;
}

.period-confidence {
    font-size: 0.9rem;
    color: #666;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.strategy-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
}

.strategy-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.strategy-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.strategy-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.strategy-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.strategy-metrics span {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.strategy-actions {
    display: flex;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: auto;
}

.performance-metrics {
    margin-top: 1rem;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.performance-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.performance-card h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.performance-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.performance-trend {
    font-size: 0.9rem;
    font-weight: 500;
}

.performance-trend.positive {
    color: #28a745;
}

.performance-trend.negative {
    color: #dc3545;
}

.performance-trend.neutral {
    color: #666;
}

.automation-setup {
    display: grid;
    gap: 1.5rem;
}

.automation-rule {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
}

.automation-rule h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.automation-rule p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.rule-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.rule-controls select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 120px;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .opportunities-overview {
        grid-template-columns: 1fr;
    }

    .recovery-categories {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }

    .strategy-card {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }
}

/* reports_refunds.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.metric-card.danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fef8f8 0%, white 100%);
}

.metric-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.dispute-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dispute-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.2s;
}

.dispute-card.refund {
    border-left-color: #ffc107;
}

.dispute-card.chargeback {
    border-left-color: #dc3545;
}

.dispute-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dispute-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dispute-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.dispute-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.2rem;
}

.dispute-type {
    color: #666;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.dispute-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.dispute-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.dispute-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #dc3545);
    border-radius: 4px;
}

.chart-container {
    height: 400px;
    position: relative;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.item-cell {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    color: #333;
}

.item-sku {
    color: #666;
    font-size: 0.9rem;
}

.refund-rate {
    font-weight: 600;
}

.refund-rate.high {
    color: #dc3545;
}

.refund-rate.medium {
    color: #ffc107;
}

.refund-rate.low {
    color: #28a745;
}

.trend {
    font-weight: 600;
}

.trend.rising {
    color: #dc3545;
}

.trend.falling {
    color: #28a745;
}

.trend.stable {
    color: #666;
}

.chargeback-analysis {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.chargeback-summary {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
}

.summary-metric {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 120px;
}

.summary-metric h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-value.won {
    color: #28a745;
}

.metric-value.lost {
    color: #dc3545;
}

.metric-value.pending {
    color: #ffc107;
}

.metric-percentage {
    font-size: 0.9rem;
    color: #666;
}

.chargeback-reasons h4 {
    margin-bottom: 1rem;
    color: #333;
}

.chargeback-reasons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chargeback-reasons li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.chargeback-reasons li:last-child {
    border-bottom: none;
}

.reason-name {
    color: #333;
    flex: 1;
}

.reason-count {
    font-weight: 600;
    color: #007bff;
    margin-right: 1rem;
}

.reason-amount {
    font-weight: 600;
    color: #dc3545;
}

.risk-assessment {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.risk-level {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.risk-level.low {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.risk-level.medium {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.risk-level.high {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.risk-level h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.risk-level p {
    margin: 0 0 1rem 0;
    color: #666;
}

.risk-score {
    font-weight: 600;
    color: #007bff;
}

.risk-factors h4 {
    margin-bottom: 1rem;
    color: #333;
}

.risk-indicators {
    display: grid;
    gap: 0.5rem;
}

.risk-indicator {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.risk-indicator.low {
    background: #d4edda;
    color: #155724;
}

.risk-indicator.medium {
    background: #fff3cd;
    color: #856404;
}

.risk-indicator.high {
    background: #f8d7da;
    color: #721c24;
}

.indicator-name {
    font-weight: 500;
}

.indicator-value {
    font-weight: 600;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.strategy-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
}

.strategy-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.strategy-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.strategy-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.strategy-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.strategy-metrics span {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .dispute-overview {
        grid-template-columns: 1fr;
    }

    .chargeback-analysis {
        grid-template-columns: 1fr;
    }

    .risk-assessment {
        grid-template-columns: 1fr;
    }

    .strategy-card {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        justify-content: center;
    }
}

/* reports_revenue_exposure.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.risk {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, white 100%);
}

.metric-card.confidence {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.risk-percentage {
    color: #dc3545;
    font-weight: 600;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.risk-factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.risk-factor-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafbfc;
}

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.factor-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.factor-category {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.factor-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.factor-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.factor-weight {
    color: #666;
    font-size: 0.9rem;
}

.factor-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.factor-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    border-radius: 4px;
}

.risk-distribution {
    max-width: 800px;
}

.distribution-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.distribution-label {
    min-width: 200px;
    font-weight: 500;
}

.distribution-value {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    color: #dc3545;
}

.distribution-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.distribution-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 6px;
}

.confidence-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.confidence-level {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.confidence-level.high {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.confidence-level.medium {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.confidence-level.low {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.confidence-level h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.confidence-level p {
    margin: 0 0 1rem 0;
    color: #666;
}

.confidence-score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: currentColor;
    border-radius: 4px;
}

.score-text {
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.confidence-factors h4 {
    margin-bottom: 1rem;
    color: #333;
}

.confidence-factors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confidence-factors li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.confidence-factors li:last-child {
    border-bottom: none;
}

.factor-name {
    color: #333;
}

.factor-value {
    font-weight: 600;
    color: #007bff;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.trend-placeholder {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.placeholder-content h4 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

.placeholder-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.icon-chart-line {
    font-size: 3rem;
    color: #dee2e6;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .risk-factors-grid {
        grid-template-columns: 1fr;
    }

    .confidence-details {
        grid-template-columns: 1fr;
    }

    .report-actions {
        justify-content: center;
    }

    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }
}

/* reports_trends.html */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.primary {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, white 100%);
}

.metric-card.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8 0%, white 100%);
}

.metric-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, white 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.trend-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.control-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.control-group select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-height: 42px;
}

.chart-container {
    height: 400px;
    position: relative;
}

.chart-container canvas,
.chart-section canvas,
.seasonal-chart canvas,
.forecast-chart canvas {
    width: 100% !important;
}

.dual-chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.chart-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    text-align: center;
}

.chart-section canvas {
    height: 300px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.insight-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
}

.insight-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.insight-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.insight-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.insight-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.insight-metrics span {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.insight-trend {
    font-size: 1.5rem;
    align-self: center;
}

.insight-trend.positive {
    color: #28a745;
}

.insight-trend.negative {
    color: #dc3545;
}

.insight-trend.neutral {
    color: #666;
}

.seasonal-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.seasonal-chart {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.seasonal-chart h4 {
    margin: 0 0 1rem 0;
    color: #333;
    text-align: center;
}

.seasonal-chart canvas {
    height: 250px;
}

.comparison-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}

.neutral {
    color: #666;
}

.forecast-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.forecast-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forecast-metric {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.forecast-metric h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.forecast-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.forecast-confidence {
    font-size: 0.9rem;
    color: #666;
}

.forecast-chart {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
}

.alerts-setup {
    display: grid;
    gap: 1.5rem;
}

.alert-option {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9ff;
}

.alert-option h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.alert-option p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.alert-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.alert-controls input {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 80px;
    min-height: 42px;
}

.alert-controls select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-height: 42px;
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .dual-chart-container {
        grid-template-columns: 1fr;
    }

    .seasonal-analysis {
        grid-template-columns: 1fr;
    }

    .forecast-container {
        grid-template-columns: 1fr;
    }

    .trend-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .alert-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .report-actions {
        justify-content: center;
    }
}
