/* ============================================================
   HUSBAROMETERN - REPORT
   ============================================================ */

.report-card {
    border: 1px solid #dbe6d7;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    margin-bottom: 14px;
}

.report-overall {
    background: linear-gradient(180deg, #f6fbf3 0%, #eef7ea 100%);
}

.report-overall-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.report-overall-score {
    min-width: 120px;
    text-align: right;
}

.report-score-number {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #20462d;
}

.report-score-sub {
    font-size: 0.82rem;
    color: #496256;
}

.report-track {
    width: 100%;
    margin-top: 10px;
    height: 12px;
}

.report-bar {
    background: linear-gradient(90deg, #d32f2f 0%, #fbc02d 50%, #2e7d32 100%);
}

.report-section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.report-health-row {
    margin-top: 10px;
}

.report-health-label {
    font-weight: 700;
    color: #2a3f34;
    margin-bottom: 6px;
}

.report-group-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.report-group-card {
    border: 1px solid #dbe7d6;
    border-radius: 12px;
    background: #fcfffb;
    padding: 10px;
}

.report-group-title {
    font-weight: 800;
    color: #28432f;
    margin-bottom: 8px;
}

.report-action-list {
    margin: 0;
    padding-left: 18px;
}

.report-action-title {
    font-weight: 700;
    color: #2b3b33;
}

.report-action-text {
    color: #43544a;
    margin-bottom: 6px;
}

.report-total {
    border: 2px solid #ccdcca;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table-wrap .table {
    margin-bottom: 0;
}

.admin-table-wrap thead th {
    background: #f4f7fc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 1100px) {
    .admin-two-column {
        grid-template-columns: 1fr;
    }
}

/* ─── Report completion page (/rapport/{token}) ─── */
.rc-page {
    max-width: 960px;
    margin: calc(76px + 24px) auto 64px;
    padding: 0 20px 48px;
}

.rc-card {
    background: #fff;
    border: 1px solid #e8ede8;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rc-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #6b7280;
}

.rc-hero__meta strong {
    color: #1a237e;
    font-size: 1.05rem;
}

.rc-hero__grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center;
}

.rc-compass img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
}

.rc-compass-fallback {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #75af61, #2e7d32);
}

.rc-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #75af61;
    margin-bottom: 4px;
}

.rc-hero__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a237e;
    margin: 0 0 4px;
    line-height: 1.2;
}

.rc-hero__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3949ab;
    margin: 0 0 10px;
}

.rc-hero__score {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.rc-hero__score span {
    font-size: 0.45em;
    font-weight: 600;
    color: #9ca3af;
}

.rc-hero__lead {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 8px;
}

.rc-hero__note {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0;
}

.rc-cta {
    background: linear-gradient(135deg, #f6fbf3 0%, #eef7ea 100%);
    border: 1px solid #dbe6d7;
}

.rc-cta__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a237e;
    margin: 0 0 8px;
}

.rc-cta__text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 16px;
}

.rc-coverage {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #e8ede8;
}

.rc-coverage__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #4b5563;
}

.rc-coverage__bar {
    height: 22px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.rc-coverage__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.3s ease;
}

.rc-coverage__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
}

.rc-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: #75af61;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.rc-cta__btn:hover:not(:disabled) {
    background: #669e54;
}

.rc-cta__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.rc-chapters__title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a237e;
    margin: 0 0 8px;
}

.rc-chapters__intro {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0 0 14px;
}

.rc-chapters-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.rc-chapters-table th,
.rc-chapters-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eef2ee;
}

.rc-chapters-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    background: #f8faf8;
}

.rc-chapters-table td:last-child,
.rc-chapters-table th:last-child {
    text-align: right;
}

.rc-chapter-health {
    font-weight: 800;
}

.rc-section-stats {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

.rc-section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e65100;
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 999px;
}

.rc-section-body {
    background: #fafafa;
    padding: 12px 0 4px;
}

.rc-section-body .qa-panel-info-card {
    margin: 0 16px 14px;
}

.rc-section-body .qa-tier {
    margin: 0 16px 10px;
}

.rc-section > .qa-tier-header {
    background: #eef7ea;
}

.rc-section > .qa-tier-header:hover {
    background: #e3f0de;
}

.rc-grunddata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.rc-grunddata-item {
    background: #fff;
    border: 1px solid #eef2ee;
    border-radius: 12px;
    padding: 12px 14px;
}

.rc-grunddata-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3d464c;
    margin-bottom: 8px;
}

.rc-evidence {
    margin: 8px 0;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.4;
}

.rc-status {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.rc-status--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.rc-status--warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffe082;
}

.rc-status--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

@media (max-width: 720px) {
    .rc-page {
        margin-top: calc(76px + 12px);
        padding: 0 12px 32px;
    }

    .rc-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rc-compass {
        display: flex;
        justify-content: center;
    }

    .rc-card {
        padding: 18px 16px;
    }
}

/* ─── ProcessingIndicator ─── */
