﻿/* show bigger checkboxes for mobile / touch devices */
.large-checkbox {
    width: 30px;
    height: 30px;
    margin-top: 3px;
}

/* small devices: toasts bottom right */
@media (max-width: 576px) {
    .toast-container {
        bottom: 0;
        right: 0;
    }

    .close-all-btn {
        bottom: 0.25rem;
        right: 0;
    }
}

/* larger devices: toasts top right */
@media (min-width: 577px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
    }

    .close-all-btn {
        top: 0.25rem;
        right: 0;
    }
}

/* change scrollbar for toasts container to left side to not collide with normal scrollbar */
#toast-container {
    direction: rtl; 
    max-height: 90vh; /* z. B. 90 % der Bildschirmhöhe */
    overflow-y: auto;
    scrollbar-gutter: stable; /* verhindert Layout-Jumping */
}

/* all other elements within toast container must use normal direction */
#toast-container > * {
    direction: ltr; 
}

#toast-container::-webkit-scrollbar {
    width: 8px;
}

#toast-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* button for closing all open toasts */
.close-all-btn {
    z-index: 3000;
    width: 100%;
    pointer-events: auto; /* necessary to activate click events */
    background-color: rgba(0, 0, 0, 0.001); /* avoids click events on underlying elements */
}


/* close all button is white with blue border - override if needed */
.btn-closeall-accent {
    border-color: rgb(13, 202, 240);
    border-width: medium;
    background-color: white;
}

/* info toast header colors - override if needed */
.seeber-toast-header-info {
    background-color: rgb(13, 202, 240);
    color: white;
}

/* warning toast colors - override if needed */
.seeber-toast-header-warning {
    background-color: darkgoldenrod;
    color: white;
}

/* danger toast colors - override if needed */
.seeber-toast-header-danger {
    background-color: darkred;
    color: white;
}

/* success toast colors - override if needed */
.seeber-toast-header-success {
    background-color: seagreen;
    color: white;
}

/* info toast body colors lighter than header - override if needed */
.seeber-toast-info {
    background-color: rgb(13, 202, 240, 0.2);
    color: black;
}

/* warning toast body colors lighter than header - override if needed */
.seeber-toast-warning {
    background-color: rgb(255, 255, 0, 0.2);
    color: black;
}

/* danger toast body colors lighter than header - override if needed */
.seeber-toast-danger {
    background-color: rgb(139, 0, 0, 0.2);
    color: black;
}

/* success toast body colors lighter than header - override if needed */
.seeber-toast-success {
    background-color: rgb(46, 139, 87, 0.2);
    color: black;
}

/* place a small icon in the header of a toast */
.toast-icon::before {
    display: inline-block;
    content: '';
    width: 1.2rem;
    height: 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
}

/* info toast icon url - allowing different images depending on background color */
.seeber-toast-header-info .toast-icon::before {
    background-image: url('/_content/SeeberUIComponents/images/seeber_toast_icon_white.png');
}

/* warning toast icon url - allowing different images depending on background color */
.seeber-toast-header-warning .toast-icon::before {
    background-image: url('/_content/SeeberUIComponents/images/seeber_toast_icon_white.png');
}

/* danger toast icon url - allowing different images depending on background color */
.seeber-toast-header-danger .toast-icon::before {
    background-image: url('/_content/SeeberUIComponents/images/seeber_toast_icon_white.png');
}

/* success toast icon url - allowing different images depending on background color */
.seeber-toast-header-success .toast-icon::before {
    background-image: url('/_content/SeeberUIComponents/images/seeber_toast_icon_white.png');
}