a {
    color: inherit;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.blazor-error-boundary {
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    background: #fff1f2;
    color: #9f1239;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Er is een fout opgetreden.";
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 2rem));
    background: #1e293b;
    color: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 12px 40px -16px rgba(15, 23, 42, 0.6);
    z-index: 2000;
}

#blazor-error-ui .reload {
    color: #86efac;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Account pages: normalize old scaffold markup to portal style. */
.portal-account h1,
.portal-account h2,
.portal-account h3,
.portal-account h4 {
    margin: 0 0 1rem;
    font-weight: 600;
    color: #111827;
}

.portal-account .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.portal-account .col-md-4,
.portal-account .col-md-6,
.portal-account .col-md-offset-2 {
    width: min(28rem, 100%);
}

.portal-account .form-label,
.portal-account .control-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #1f2937;
}

.portal-account .form-control,
.portal-account input[type="email"],
.portal-account input[type="password"],
.portal-account input[type="text"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
}

.portal-account .form-control:focus,
.portal-account input:focus {
    outline: 2px solid #111827;
    outline-offset: 1px;
}

.portal-account .form-floating,
.portal-account .mb-3 {
    margin-bottom: 1rem;
}

.portal-account .btn,
.portal-account .e-btn,
.portal-account button[type="submit"] {
    border: 0;
    border-radius: 0.5rem;
    background: #111827;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.portal-account .btn:hover,
.portal-account .e-btn:hover,
.portal-account button[type="submit"]:hover {
    background: #1f2937;
}

.portal-account .btn-danger {
    background: #dc2626;
}

.portal-account .btn-danger:hover {
    background: #b91c1c;
}

.portal-account .text-danger,
.portal-account .validation-message,
.portal-account .validation-errors {
    color: #b91c1c;
    font-size: 0.875rem;
}

.portal-profile-nav-link {
    justify-content: flex-start;
}

.portal-profile-avatar {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.portal-profile-avatar-large {
    width: 4rem;
    height: 4rem;
    font-size: 1rem;
}

.portal-profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-profile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-nav-link-active .portal-profile-avatar {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.portal-profile-editor-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-profile-editor-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.portal-profile-editor-file-input {
    flex: 1 1 16rem;
}

.case-ai-document-part-indicator {
    min-width: 4ch;
    flex: 0 0 auto;
}

.portal-rich-text-editor.e-richtexteditor {
    border-radius: 0.75rem;
}

.portal-rich-text-editor .e-rte-content .e-content {
    min-height: 8rem;
    font-size: 0.875rem;
    color: #1f2937;
}

.portal-note-content {
    font-size: 0.875rem;
    color: #1f2937;
}

.portal-note-content p,
.portal-note-content ul,
.portal-note-content ol {
    margin: 0 0 0.5rem;
}

.portal-note-content p:last-child,
.portal-note-content ul:last-child,
.portal-note-content ol:last-child {
    margin-bottom: 0;
}
