.card {
    background: var(--surface);
    border: 1px solid rgba(217, 225, 231, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 22px;
}

.card-title {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.card-subtitle {
    margin-bottom: 0;
    color: var(--text-soft);
}

.card-title-primary {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

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

.metric-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-label {
    font-size: 0.92rem;
    color: var(--text-soft);
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--heading);
}

.metric-meta {
    font-size: 0.9rem;
    color: var(--text-soft);
}

pre {
    margin: 0;
    padding: 14px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-metric-card,
.dashboard-attention-card {
    height: 100%;
}

.dashboard-metric-body,
.dashboard-attention-body {
    height: 100%;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-metric-card {
    min-height: 150px;
}

.dashboard-attention-card {
    min-height: 340px;
}

.dashboard-metric-top,
.dashboard-attention-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.dashboard-metric-label {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.dashboard-metric-value {
    font-size: 2.35rem;
    line-height: 1;
}

.dashboard-metric-meta {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.dashboard-card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-subtle-button {
    min-height: 38px;
    font-size: 0.9rem;
    padding: 0 14px;
}

.dashboard-invite-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 4px;
}

.dashboard-invite-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-invite-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}

.dashboard-invite-stat-label {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.dashboard-page-header {
    margin-bottom: 18px;
}

.dashboard-section-divider {
    height: 1px;
    margin: 26px 0 18px;
    background: linear-gradient(
        90deg,
        rgba(217, 225, 231, 0),
        rgba(217, 225, 231, 0.95) 18%,
        rgba(217, 225, 231, 0.95) 82%,
        rgba(217, 225, 231, 0)
    );
}

.dashboard-section-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.dashboard-toggle-button {
    align-self: flex-start;
}

.dashboard-collapsible {
    padding-top: 4px;
}

.abonnement-module-group {
    display: block;
    grid-column: 1 / -1;
}

.form-grid-3 .abonnement-module-group {
    display: block;
    grid-template-columns: none;
    gap: 0;
    align-items: stretch;
}

.abonnement-module-group > div {
    display: block;
}

.abonnement-module-header {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-soft);
}

.abonnement-module-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abonnement-module-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
}

.abonnement-module-content-wrapper {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: start;
}

.abonnement-module-left,
.abonnement-module-right {
    min-width: 0;
}

.abonnement-module-left {
    display: flex;
    flex-direction: column;
}

.abonnement-module-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abonnement-module-head,
.abonnement-submodule-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.abonnement-module-content,
.abonnement-submodule-content {
    min-width: 0;
}

.abonnement-module-title,
.abonnement-submodule-title {
    display: block;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.3;
}

.abonnement-module-meta,
.abonnement-submodule-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.35;
}

.abonnement-submodule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.abonnement-submodule-item.is-included {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.abonnement-submodule-indicator {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--success-text);
    margin-top: 2px;
}

.abonnement-module-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.abonnement-module-extra-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: center;
}

.abonnement-module-extra-label {
    font-weight: 600;
    color: var(--heading);
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-module-card {
    height: 100%;
}

.dashboard-module-card-body {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-module-card-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-module-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--heading);
}

.dashboard-module-submodules {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.dashboard-module-submodules-empty {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.personeel-dashboard-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.personeel-dashboard-highlight-body {
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.personeel-dashboard-highlight-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.personeel-dashboard-highlight-value {
    font-size: 2.35rem;
    line-height: 1.05;
    color: var(--heading);
    font-weight: 700;
}

.personeel-dashboard-highlight-meta {
    margin: 0;
    color: var(--text-soft);
    max-width: 60ch;
}

.personeel-dashboard-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.personeel-dashboard-link-card {
    height: 100%;
}

.personeel-dashboard-link-body {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.personeel-dashboard-link-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 900px) {
    .dashboard-module-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-module-card-body {
        min-height: 220px;
    }

    .personeel-dashboard-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .abonnement-module-header,
    .abonnement-module-content-wrapper,
    .abonnement-module-extra-row {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
    }

    .personeel-dashboard-highlight-body {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
    }
}

.dashboard-notification-card {
    width: 100%;
    overflow: hidden;
}

.dashboard-notification-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-height: 170px;
}

.dashboard-notification-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dashboard-notification-value {
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 700;
    color: var(--heading);
}

.dashboard-notification-card.is-empty {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-notification-card.has-unread {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.12);
}

.dashboard-notification-card.has-unread .dashboard-notification-value,
.dashboard-notification-card.has-unread .dashboard-metric-label,
.dashboard-notification-card.has-unread .card-subtitle,
.dashboard-notification-card.has-unread .dashboard-metric-meta {
    color: #166534;
}

.dashboard-notification-button {
    min-height: 42px;
    padding: 0 16px;
}

.notification-preview-list,
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-preview-item,
.notification-list-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.notification-preview-item:hover,
.notification-list-card:hover {
    border-color: #cbdcf7;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.notification-preview-item {
    padding: 16px 18px;
}

.notification-list-card {
    overflow: hidden;
}

.notification-list-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-preview-top,
.notification-list-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notification-preview-title-wrap,
.notification-list-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.notification-preview-title,
.notification-list-title {
    margin: 0;
    color: var(--heading);
}

.notification-preview-title {
    font-weight: 600;
}

.notification-preview-meta,
.notification-list-meta,
.notification-list-type,
.notification-list-excerpt,
.notification-preview-excerpt {
    color: var(--text-soft);
}

.notification-preview-meta,
.notification-list-meta {
    white-space: nowrap;
    font-size: 0.88rem;
}

.notification-preview-excerpt,
.notification-list-excerpt {
    margin: 0;
    line-height: 1.45;
}

.notification-preview-indicator {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: #2563eb;
}

.notification-list-card.is-unread {
    border-color: #cbdcf7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notification-detail-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notification-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    color: var(--text-soft);
}

.notification-detail-message {
    line-height: 1.6;
    color: var(--heading);
}

@media (max-width: 768px) {
    .dashboard-notification-body {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .notification-preview-top,
    .notification-list-top {
        flex-direction: column;
        gap: 8px;
    }

    .notification-preview-meta,
    .notification-list-meta {
        white-space: normal;
    }

    .notification-detail-meta {
        grid-template-columns: 1fr;
    }
}
