/* IncidentFlow - Professionell design för hemtjänst/omsorg */

/* === FÄRGSCHEMA === */
/**
 * IncidentFlow - Stilmall
 * 
 * All kommersiell användning, användning i verksamhet eller inom organisation 
 * kräver skriftligt avtal med rättighetsinnehavaren.
 * © 2026 Daniel Steirud
 */

:root {
    --primary-color: #2c5f7d;
    --primary-dark: #1e4259;
    --primary-light: #4a8db0;
    --secondary-color: #5a7a8c;
    --success-color: #4a9d5f;
    --warning-color: #e8a03d;
    --danger-color: #c94f4f;
    --background: #f5f7fa;
    --surface: #ffffff;
    --border: #d1d9e0;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
}

/* === LADDNINGSINDIKATOR === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

/* === INLOGGNINGSSIDA === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.login-container {
    background: linear-gradient(145deg, #2d4a3e 0%, #1a3a2a 50%, #1e4d35 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 10px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header .subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.login-container label {
    color: #e0e8e4;
}

.login-form .form-group {
    margin-bottom: 20px;
}

/* === HUVUDAPPLIKATION === */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: linear-gradient(145deg, #2d4a3e 0%, #1a3a2a 50%, #1e4d35 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 38px;
    width: auto;
}

.app-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-header .user-name {
    font-weight: 600;
    color: white;
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* === HUVUDINNEHÅLL === */
.app-main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
}

.view {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-header h2 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 600;
}

.filter-group {
    display: flex;
    gap: 10px;
}

/* === FORMULÄR === */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 125, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 95, 125, 0.05);
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
    margin: 0;
}

.radio-label input[type="radio"]:checked+span {
    font-weight: 600;
    color: var(--primary-color);
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-type-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

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

.report-type-card .btn-block {
    width: 100%;
    margin-bottom: 12px;
}

.report-type-card .info-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* === KNAPPAR === */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #4a6575;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
}

.login-manual-btn {
    display: block;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
}

/* === KORT === */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card h3,
.card h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* === RAPPORTLISTA === */
.reports-list,
.assignments-list {
    display: grid;
    gap: 15px;
}

.report-card,
.assignment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-card:hover,
.assignment-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.report-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.report-card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.report-card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 10px;
}

/* === STATUSBADGE === */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-investigating {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-resolved {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-closed {
    background-color: #f5f5f5;
    color: #616161;
}

.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.priority-1 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.priority-2 {
    background-color: #fff3e0;
    color: #f57c00;
}

.priority-3 {
    background-color: #ffebee;
    color: #c62828;
}

.incident-number-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.incident-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}

.copy-incident-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.copy-incident-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.copy-incident-btn:active {
    transform: scale(0.95);
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background-color: var(--background);
    color: var(--text-primary);
}

.modal-body {
    padding: 30px;
}

.section {
    margin-top: 30px;
}

.section:first-child {
    margin-top: 0;
}

.section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* === DETALJER === */
.report-details {
    background: var(--background);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-row .label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

/* === TILLDELNINGAR === */
.assignment-item {
    background: var(--background);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.assignment-item.answered {
    border-left-color: var(--success-color);
}

.assignment-item.required {
    border-left-color: var(--warning-color);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.assignment-role {
    font-weight: 600;
    color: var(--primary-color);
}

.assignment-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--warning-color);
    color: white;
}

.question-text {
    background: var(--background);
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-style: italic;
    color: var(--text-primary);
}

.response-text {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    color: var(--text-primary);
}

.response-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* === ÅTGÄRDER === */
.status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* === MEDDELANDEN === */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #c62828;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.warning-message {
    background-color: #fff3e0;
    color: #f57c00;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #f57c00;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #2e7d32;
}

/* === INCIDENT FORM === */
.incident-form {
    max-width: 800px;
    margin: 0 auto 20px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.help-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: -4px 0 8px 0;
    font-style: italic;
}

.required-mark {
    color: var(--danger-color);
    font-weight: bold;
}

.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
}

.info-box p:first-child {
    margin-bottom: 8px;
}

.info-box strong {
    color: #1565c0;
}

/* === FLIKAR === */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(44, 95, 125, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

/* === ANVÄNDARLISTA === */
.users-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.user-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.user-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-card.inactive {
    opacity: 0.6;
    background-color: var(--background);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.user-details {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.user-email {
    font-family: 'Courier New', monospace;
}

.user-role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--primary-light);
    color: white;
}

.user-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-status-badge.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.user-status-badge.inactive {
    background-color: #ffebee;
    color: #c62828;
}

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

/* === JOURNAL-BADGES === */
.journal-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.journal-badge.confirmed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.journal-badge.pending {
    background-color: #fff3e0;
    color: #f57c00;
}

.email-warning {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: #ffebee;
    color: #c62828;
}

/* === TOM LISTA === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* === RESPONSIV === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .view-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    .status-actions {
        flex-direction: column;
    }

    .status-actions .btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .modal-content {
        max-height: 95vh;
    }
}

/* === TILLDELNINGSHISTORIK === */
.assignment-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.assignment-item.current-assignment {
    border-color: var(--primary-color);
    border-width: 2px;
    background: #f0f7fb;
}

.assignment-question {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.assignment-question strong {
    color: var(--primary-color);
}

.assignment-response {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.assignment-response strong {
    color: var(--success-color);
}

.assignment-response p {
    margin: 8px 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    white-space: pre-wrap;
}

.assignment-response small {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.assignment-no-response {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
    color: var(--warning-color);
    font-style: italic;
}

/* === KOMMENTARER === */
.comment-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.comment-header strong {
    color: var(--primary-color);
    font-size: 0.95em;
}

.comment-header small {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.comment-text {
    margin: 0;
    color: var(--text-primary);
    white-space: pre-wrap;
    line-height: 1.5;
}

/* === JOURNALBADGE === */
.journal-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    border: none;
    cursor: default;
}

.journal-badge.confirmed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.journal-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.journal-badge.pending.confirm-journal-btn {
    cursor: pointer;
    transition: all 0.2s;
}

.journal-badge.pending.confirm-journal-btn:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === KOMMENTAR REDIGERING === */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--hover-color);
}

.edit-comment-btn {
    opacity: 0.6;
}

.edit-comment-btn:hover {
    opacity: 1;
}

/* === PRIORITETSVÄLJARE === */
.priority-select {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.priority-select:hover {
    border-color: var(--primary-color);
}

.priority-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 125, 0.1);
}

/* === VARNINGSKNAPP === */
.btn-warning {
    background: #ff9800;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #f57c00;
}

/* === BADGES FÖR JOURNAL OCH E-POST === */
.journal-badge,
.email-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
    line-height: normal;
    height: 24px;
}

.journal-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    cursor: default;
}

.journal-badge.confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-badge.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    cursor: help;
}

.email-badge.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    cursor: help;
}

button.journal-badge {
    cursor: pointer;
    transition: all 0.2s;
}

button.journal-badge:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* === RAPPORTFORMATERING === */
.formatted-description {
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.report-section-header {
    margin-top: 30px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d47a1;
    /* Primary darker blue */
    letter-spacing: 0.8px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 4px;
    display: block;
}

.report-section-header:first-child {
    margin-top: 0;
}

.report-section-divider {
    display: none;
    /* Vi använder border-bottom på headern istället */
}