﻿
.report-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.report-link .status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
}

.report-link.completed .status-indicator {
    background: #0acf97;
}

.report-link.processing .status-indicator {
    background: #727cf5;
}

.report-link.pending .status-indicator {
    background: #6c757d;
}

.co-occurrence-table {
    background-color: rgba(255, 255, 255, 0.00) !important; /* Light gray background */
    color: #212529 !important; /* Dark text */
    border-color: #dee2e6 !important; /* Light border */
}

    .co-occurrence-table.table-striped tbody tr:nth-of-type(odd) {
        background-color: rgb(241.5, 238.4, 255) !important; /* Slightly darker gray for stripes */
    }

    .co-occurrence-table.table-hover tbody tr:hover {
        background-color: rgb(241.5, 238.4, 255, 0.25) !important; /* Darker gray on hover */
    }

    .co-occurrence-table.table-bordered {
        border: 1px solid !important;
        border-color: rgba(223, 232, 255, 0.18) !important;
    }

    .co-occurrence-table thead th {
        /*background-color: rgb(241.5, 238.4, 255) !important;*/
        color: rgb(48, 35.6, 102) !important;
        border-bottom: 2px solid !important;
        border-color: rgb(241.5, 238.4, 255) !important;
    }

/* ========== Priorities ========== */
.priority-counts {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.priority {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    flex: 1;
    margin: 5px;
}

    .priority.high {
        background-color: #ffe6e6;
        border: 1px solid #ffcccc;
    }

    .priority.medium {
        background-color: #fff3e6;
        border: 1px solid #ffe0cc;
    }

    .priority.low {
        background-color: #e6ffe6;
        border: 1px solid #ccffcc;
    }

.count {
    font-size: 1.75rem;
    font-weight: bold;
    display: block;
}

.label {
    font-size: 0.9em;
    color: #666;
}

/* ========== Priority Summary ========== */
.priority-counts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

    .priority-counts .priority {
        text-align: center;
        padding: 1rem;
        border-radius: 0.5rem;
        min-width: 150px;
        flex-grow: 1;
    }

        .priority-counts .priority.high {
            background-color: #f8d7da;
            border: 1px solid #dc3545;
        }

        .priority-counts .priority.medium {
            background-color: #fff3cd;
            border: 1px solid #ffc107;
        }

        .priority-counts .priority.low {
            background-color: #d4edda;
            border: 1px solid #28a745;
        }

    .priority-counts .count {
        font-size: 1.75rem;
        font-weight: bold;
        display: block;
        margin-bottom: 0.5rem;
    }

    .priority-counts .label {
        font-size: 0.875rem;
        color: #495057;
    }


@media (max-width: 768px) {
    .priority-counts {
        flex-direction: column;
    }

    .priority {
        margin: 5px 0;
    }

    .timeline-impact {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .no-print {
        display: none;
    }

    body {
        margin: 1in;
    }

    #reportContent, .content-page, .container-fluid, .content {
        margin: 0;
        padding: 0;
    }
}

/* ========== Metric Blocks ========== */
.metric {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

    .metric:last-child {
        border-bottom: none;
    }

    /* Unified metric label styling */
    .metric label,
    .metric:not(.metrics-counts .metric) label,
    .about-entity-section label {
        font-size: 0.9em;
        color: #666;
        font-weight: 600;
        margin-right: 0.5rem;
        min-width: 120px;
    }



/* ========== Citation Metrics ========== */
.metrics-counts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

    .metrics-counts .metric {
        text-align: center;
        padding: 1rem;
        border-radius: 0.5rem;
        background-color: #f8f9fa;
        min-width: 150px;
        flex-grow: 1;
        border: 1px solid #dee2e6;
    }

        .metrics-counts .metric.valid {
            border-color: #28a745;
            background-color: #d4edda;
        }

        .metrics-counts .metric.invalid {
            border-color: #dc3545;
            background-color: #f8d7da;
        }

    .metrics-counts .count {
        font-size: 1.75rem;
        font-weight: bold;
        display: block;
        margin-bottom: 0.5rem;
    }


/* Highlighted metric variants */
.metrics-counts {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

    .metrics-counts .metric {
        text-align: center;
        padding: 10px;
        border-radius: 5px;
        flex: 1;
        margin: 5px;
        display: block;
    }

    .metrics-counts .count,
    .count {
        font-size: 1.75rem;
        font-weight: bold;
        display: block;
    }

    .metrics-counts .label,
    .priority-counts .label {
        font-size: 0.9em;
        color: #666;
        margin-top: 5px;
    }

/*    .metrics-counts .label {
        font-size: 0.875rem;
        color: #6c757d;
    }*/

    /* Metric status types */
    .metrics-counts .metric.completion {
        background-color: #fff3e6;
        border: 1px solid #ffe0cc;
    }

    .metrics-counts .metric.quality {
        background-color: #e6f3ff;
        border: 1px solid #cce5ff;
    }

    .metrics-counts .metric.status.valid {
        background-color: #e6ffe6;
        border: 1px solid #ccffcc;
    }

    .metrics-counts .metric.status.invalid {
        background-color: #ffe6e6;
        border: 1px solid #ffcccc;
    }

    /* ========== Enhanced Metric Styles ========== */
    .metrics-counts .metric.alignment.optimal {
        background-color: #e6ffe6;
        border: 1px solid #ccffcc;
        color: #28a745;
    }

    .metrics-counts .metric.alignment.warning {
        background-color: #fff3e6;
        border: 1px solid #ffe0cc;
        color: #fd7e14;
    }

    .metrics-counts .metric.alignment.problematic {
        background-color: #ffe6e6;
        border: 1px solid #ffcccc;
        color: #dc3545;
    }

.priority.problematic {
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    color: #dc3545;
}

.priority.warning {
    background-color: #fff3e6;
    border: 1px solid #ffe0cc;
    color: #fd7e14;
}

.priority.optimal {
    background-color: #e6ffe6;
    border: 1px solid #ccffcc;
    color: #28a745;
}

/* ========== Status Indicators (Unified) ========== */
.status-indicator,
.score-indicator,
.count-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease-in-out;
}

.status-indicator {
    min-width: 100px;
    justify-content: center;
}

.score-indicator, .count-indicator {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.count-indicator {
    min-width: 60px;
    justify-content: center;
}

.status-success,
.count-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-danger,
.count-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.count-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Hover effect */
.status-indicator:hover,
.score-indicator:hover,
.count-indicator:hover {
    filter: brightness(95%);
    transition: filter 0.2s ease-in-out;
}

.status-indicator i,
.score-indicator i,
.count-indicator i {
    font-size: 14px;
}

/* ========== Status Items ========== */
.status-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
}

.status-item-complete, .completion-status-complete {
    background-color: #e6ffe6;
    color: #28a745;
}

.status-item-incomplete, .completion-status-incomplete {
    background-color: #ffe6e6;
    color: #dc3545;
}

.status-grid, .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

/* ========== Detailed Metrics Sections ========== */
.detailed-metrics,
.prioritized-action-metrics,
.improvement-suggestions {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.metrics-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease-in-out;
}

    .metrics-section:hover {
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .metrics-section h5 {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e9ecef;
        color: #495057;
    }

    .metrics-section .value {
        font-weight: 600;
    }

        .metrics-section .value:not(.numeric) {
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }

        .metrics-section .value[data-score^="0."] {
            background-color: #f8d7da;
            color: #721c24;
        }

        .metrics-section .value[data-score^="1."],
        .metrics-section .value[data-score^="0.9"],
        .metrics-section .value[data-score^="0.8"] {
            background-color: #d4edda;
            color: #155724;
        }

        .metrics-section .value[data-score^="0.7"],
        .metrics-section .value[data-score^="0.6"] {
            background-color: #fff3cd;
            color: #856404;
        }