body {
    background-color: #f8f9fa;
}

.section-header {
    border-left: 4px solid #2c5aa0;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.card-hm {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
}

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

.hm-card-link {
    z-index: 1;
}

.hm-card-action {
    position: relative;
    z-index: 2;
}

.badge-godman {
    background-color: #198754;
}

.badge-forvaltare {
    background-color: #dc3545;
}

.badge-kronofogden {
    background-color: #fd7e14;
}

.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #2c5aa0;
    font-weight: 600;
    border-bottom: 2px solid #2c5aa0;
}

.tab-pane {
    padding-top: 1.5rem;
}

.btn-primary {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-primary:hover {
    background-color: #234b87;
    border-color: #234b87;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f0f4ff;
}

.search-result-item:last-child {
    border-bottom: none;
}

.file-actions .btn {
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
}

/* Listvy */
.list-view-row {
    transition: background-color 0.1s;
}
.list-view-row:hover {
    background-color: #f0f4ff;
}

.arende-utford {
    text-decoration: line-through;
    opacity: 0.6;
}

.gm-todo-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gm-todo-list-header,
.gm-todo-row {
    display: grid;
    grid-template-columns: 150px 210px minmax(260px, 1fr) 120px;
    gap: 1rem;
    align-items: start;
}

.gm-todo-list-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
}

.gm-todo-row {
    padding: 1rem;
}

.gm-todo-row + .gm-todo-row {
    border-top: 1px solid #e9ecef;
}

.gm-todo-date,
.gm-todo-owner,
.gm-todo-content,
.gm-todo-action {
    min-width: 0;
}

.gm-todo-date .badge {
    display: table;
    white-space: normal;
    text-align: left;
}

.gm-todo-complete {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
}

.gm-todo-mobile-label {
    display: none;
}

.gm-activity-contact-picker {
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.gm-activity-contact-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.gm-activity-contact-option {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    color: #212529;
    text-align: left;
    background: #fff;
    border: 0;
}

.gm-activity-contact-option + .gm-activity-contact-option {
    border-top: 1px solid #e9ecef;
}

.gm-activity-contact-option:hover,
.gm-activity-contact-option:focus {
    background: #eef4ff;
}

.gm-activity-contact-option span {
    color: #6c757d;
    font-size: 0.85rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.gm-activity-contact-add {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.gm-activity-todo-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
}

.gm-activity-todo-choice .form-check-input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.gm-activity-todo-choice span,
.gm-activity-todo-choice small {
    display: block;
}

.gm-activity-todo-choice small {
    margin-top: 0.15rem;
    color: #6c757d;
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .gm-todo-list {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .gm-todo-list-header {
        display: none;
    }

    .gm-todo-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.85rem 1rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .gm-todo-row + .gm-todo-row {
        margin-top: 0.75rem;
        border-top: 1px solid #dee2e6;
    }

    .gm-todo-date {
        grid-column: 1;
    }

    .gm-todo-action {
        grid-column: 2;
        grid-row: 1;
    }

    .gm-todo-owner,
    .gm-todo-content {
        grid-column: 1 / -1;
    }

    .gm-todo-mobile-label {
        display: block;
        margin-bottom: 0.2rem;
        color: #6c757d;
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 575.98px) {
    .gm-activity-contact-option {
        display: block;
    }

    .gm-activity-contact-option span {
        display: block;
        margin-top: 0.2rem;
        text-align: left;
    }

    .gm-todo-row {
        grid-template-columns: 1fr;
    }

    .gm-todo-date,
    .gm-todo-owner,
    .gm-todo-content,
    .gm-todo-action {
        grid-column: 1;
    }

    .gm-todo-action {
        grid-row: auto;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }
}
