html, body {
    height: 100%;
}

body {
    margin: 0;
    letter-spacing: var(--DS-letter-spacing-body-1);
    background-color: var(--DS-color-surface-neutral-subdued-rest);
}

.group-heading {
    font-family: var(--DS-font-family-sans-serif, inherit);
    font-size: var(--DS-font-size-subtitle-2);
    font-weight: var(--DS-font-weight-subtitle-2);
    line-height: var(--DS-line-height-subtitle-2);
    color: var(--DS-color-content-neutral-strong-rest);
    margin: 0;
}

.grid-heading {
    font-family: var(--DS-font-family-sans-serif, inherit);
    font-size: var(--DS-font-size-subtitle-2);
    font-weight: var(--DS-font-weight-subtitle-2);
    line-height: var(--DS-line-height-subtitle-2);
    color: var(--DS-color-content-neutral-strong-rest);
    margin: 0 0 0.5rem;
}

*, ::after, ::before {
    box-sizing: border-box
}

.icon {
    opacity: 0.7;
    background-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 100% 100%;
    background-color: currentColor;
}

.small-size .medium-icon {
    width: 1rem;
    height: 1rem;
}

.medium-size .medium-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.large-size .medium-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.small-size .avatar {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.5rem;
}

.medium-size .avatar {
    width: 2rem;
    height: 2rem;
    margin-left: 0.75rem;
}

.large-size .avatar {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 1rem;
}

.icon.small-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.sun-icon {
    mask-image: url("images/icons/weather-sunny.svg");
}

.moon-icon {
    mask-image: url("images/icons/weather-moon.svg");
}

.bell-icon {
    mask-image: url("images/icons/bell.svg");
}

.back-icon {
    mask-image: url("images/icons/arrow-left.svg");
}

.copy-icon {
    mask-image: url("images/icons/copy.svg");
}

.refresh-icon {
    mask-image: url("images/icons/arrow-sync.svg");
}

.person-add-icon {
    mask-image: url("images/icons/person-add.svg");
}

.sign-out-icon {
    mask-image: url("images/icons/sign-out.svg");
}

.call-icon {
    mask-image: url("images/icons/call.svg");
}

.mail-icon {
    mask-image: url("images/icons/mail.svg");
}

.more-icon {
    mask-image: url("images/icons/more-horizontal.svg");
}

.notification {
    position: relative;
}

.notification::after {
    content: attr(notification-count) / "";
    color: white;
    display: flex;
    position: absolute;
    top: 0;
    left: 5%;
    font-size: 0.8em;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background-color: red;
    align-items: center;
    justify-content: center;
}

.dropdown-no-padding {
    --dxbl-dropdown-body-padding-x: 0;
    --dxbl-dropdown-body-padding-y: 0;
}

@media (min-width: 899.98px) {
    .pw-800 {
        max-width: 800px !important;
        width: 800px !important;
    }
}

.loading-panel { 
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-popup {
    max-height: calc(80vh - 3rem);
    overflow-y: auto;
    padding-right: 1rem;
}

    .loading-panel > .loader {
        display: flex;
        align-items: center;
    }

    .loading-panel > .loader > .spinner {
        width: 2rem;
        height: 2rem;
        border: 0.25rem solid color-mix(in sRGB, var(--DS-color-surface-primary-default-rest) 30%, transparent);
        border-bottom-color: var(--DS-color-surface-primary-default-rest);
        border-radius: 50%;
        display: inline-block;
        box-sizing: border-box;
        animation: rotation 0.75s linear infinite;
    }

    .loading-panel > .loader > .label {
        color: var(--DS-color-content-neutral-default-rest);
        font-size: var(--DS-font-size-subtitle-2);
        font-weight: var(--DS-font-weight-subtitle-2);
        margin-left: 0.75rem;
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dxbl-grid-row.grid-row-submitted,
.dxbl-grid-row.grid-row-submitted > td,
.dxbl-grid-row.grid-row-submitted > .dxbl-grid-cell,
.dxbl-grid-row.grid-row-submitted .dxbl-grid-cell {
    background-color: #d1e7dd !important;
}

.dxbl-grid-row.grid-row-submitted:hover,
.dxbl-grid-row.grid-row-submitted:hover > td,
.dxbl-grid-row.grid-row-submitted:hover > .dxbl-grid-cell,
.dxbl-grid-row.grid-row-submitted:hover .dxbl-grid-cell {
    background-color: #badbcc !important;
}

.impressum-list {
    margin: 0;
}
.impressum-list dt {
    font-weight: 600;
}
.impressum-list dd {
    margin-left: 0;
    margin-bottom: 0.5rem;
}

.help-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    margin-right: 10px;
}

.help-icon-button:focus-visible {
    outline: 2px solid var(--DS-color-stroke-focus-inner, #0f6cff);
    outline-offset: 2px;
}

.help-icon-button .help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 108, 255, 0.35);
    background-color: rgba(15, 108, 255, 0.08);
    color: #0f172a;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
}

.help-caption {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-caption-text {
    flex: 1 1 auto;
}

.dxbl-popup.help-popup .dxbl-popup-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: none;
}

.dxbl-popup.help-popup .dxbl-popup-body {
    padding: 0 1.5rem 1.5rem;
    background: #ffffff;
}

.dxbl-popup.help-popup .dxbl-popup-close {
    top: 1rem;
    right: 1rem;
    background: rgba(15, 108, 255, 0.08);
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dxbl-popup.help-popup .dxbl-popup-close:hover {
    background: rgba(15, 108, 255, 0.15);
    transform: scale(1.05);
}

.field-help-popup {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1d4ed8;
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.25);
}

.field-help-popup__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #e0e7ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
}

.field-help-popup__icon img {
    width: 1.5rem;
    height: 1.5rem;
    filter: hue-rotate(190deg) saturate(125%);
}

.field-help-popup__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #334155;
}

.field-help-popup__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.field-help-popup__body {
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.validation-summary {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
    color: #7f1d1d;
    font-weight: 500;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.field-help-popup__body a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .field-help-popup {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .field-help-popup__icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.65rem;
    }
}

