#layout-wrapper .main-content .page-content .system-alerts {
    margin-left: -24px;
    margin-right: -24px;
    margin-top: -24px;
}

.system-alerts {
    position: relative;
}

.system-alerts__icon-sprite {
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.system-alerts__icon {
    display: block;
    fill: none;
    flex: 0 0 auto;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 1.25rem;
}

.system-alerts__icon--success {
    color: var(--bs-success-text-emphasis);
}

.system-alerts__icon--info {
    color: var(--bs-info-text-emphasis);
}

.system-alerts__icon--warning {
    color: var(--bs-warning-text-emphasis);
}

.system-alerts__icon--danger {
    color: var(--bs-danger-text-emphasis);
}

.system-alerts__item {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: center;
    max-height: 90px;
    overflow: hidden;
    padding: 0.9rem 1rem !important;
}

.system-alerts__item > .d-flex {
    flex: 0 0 auto;
    margin-bottom: 0.25rem !important;
    min-width: 0;
}

.system-alerts__item .alert-heading {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-alerts--multiple .system-alerts__item {
    padding-right: 8.5rem !important;
}

.system-alerts__navigation {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    height: 100%;
    max-height: 90px;
    position: absolute;
    right: 1rem;
    top: 0;
}

.system-alerts__navigation-button {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #212529;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
}

.system-alerts__navigation-button:disabled {
    background: transparent;
    color: #212529;
    cursor: default;
    opacity: 0.45;
}

.system-alerts__position {
    color: #212529;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: center;
}

.system-alerts__preview-container {
    align-items: end;
    display: grid;
    column-gap: 0.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    overflow: hidden;
}

.system-alerts__preview {
    display: block;
    flex: 1 1 auto;
    line-height: 1.5;
    max-height: 1.5em;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.system-alerts__preview > :first-child {
    margin-top: 0 !important;
}

.system-alerts__preview > :last-child {
    margin-bottom: 0 !important;
}

.system-alerts__more {
    align-self: end;
    flex: 0 0 auto;
    padding: 0;
    white-space: nowrap;
}

.system-alerts__more.invisible {
    display: none;
}

.system-alerts__more::before {
    color: #212529;
    content: "...";
    margin-right: 0.2rem;
}

.system-alerts__preview img,
.system-alerts__modal-content img {
    height: auto;
    max-width: 100%;
}

.system-alerts__preview table,
.system-alerts__modal-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.system-alerts__modal-content {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.system-alert-dropdown .k-input-value-text::before {
    display: none;
}
/* The image endpoint returns originals; constrain them inside picker tiles. */
.k-imagebrowser .k-listview-content {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.k-imagebrowser .k-listview-item {
    box-sizing: border-box;
    flex: 0 0 120px;
    width: 120px;
    height: auto;
    min-height: 144px;
    padding: 0.5rem;
}

.k-imagebrowser .k-file-preview {
    align-items: center;
    height: 80px;
    overflow: hidden;
}

.k-imagebrowser .k-file-preview img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-system-alerts .system-alerts__item {
    height: auto;
    justify-content: flex-start;
    max-height: 140px;
    padding: 1rem !important;
}

.login-system-alerts .system-alerts--multiple .system-alerts__item {
    padding-bottom: 2.5rem !important;
    padding-right: 1rem !important;
}

.login-system-alerts .system-alerts__preview {
    max-height: 4.5em;
}

.login-system-alerts .system-alerts__navigation {
    bottom: 0.25rem;
    height: auto;
    max-height: none;
    right: 1rem;
    top: auto;
}

@media (max-width: 575.98px) {
    .system-alerts--multiple .system-alerts__item {
        padding-left: 0.75rem !important;
        padding-right: 7rem !important;
    }

    .system-alerts__navigation {
        right: 0.5rem;
    }

    .system-alerts__navigation-button {
        padding: 0.125rem;
    }
}
