:root {
    --s24-blue: #002f5d;
    --s24-green: #86bc24;
    --status-none: #FFFFFF;
    --status-open: #ffffff;
    --status-in-progress: #FFFF003B;
    --status-finished: #0080003B;
    --status-overdue: #FF00003B;
    --status-not-ordered: transparent;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.button, .dxbl-btn-secondary {
    background: var(--s24-blue);
    padding: 0.5em 1em !important;
    border: 1px solid #fff !important;
    color: #fff;
    margin-top: 1em !important;
    display: inline-block;
    transition: all 50ms ease-out;
}

    .dxbl-active, .button:hover, .dxbl-btn-secondary:hover {
        background: #fff !important;
        border: 1px solid var(--s24-blue) !important;
        color: var(--s24-blue) !important;
        text-decoration: none;
        opacity: 1;
    }

.fa-brands {
    color: var(--s24-blue);
}

.icon {
    color: var(--s24-blue);
}

.input-box {
    font-size: 100%;
    border: 1px solid #ccc !important;
    margin: .25em 0 1.0em 0 !important;
    margin-bottom: 1em;
    padding: .5em .5em !important;
    border-radius: 0;
    line-height: initial;
    box-sizing: border-box;
    width: 100%;
}

input[type="checkbox"]:checked::after {
    content: '\f00c';
    position: absolute;
    top: .175em;
    left: .175em;
    font-size: 120%;
    line-height: .9;
    color: var(--s24-blue);
    transition: all .2s;
    font-family: 'Font Awesome 6 Pro';
    font-weight: 500;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border-radius: 0px;
    cursor: pointer;
    position: relative;
    top: 3px;
    transition: all 50ms ease-out;
    border: 1px solid #ccc !important;
    height: 22px;
    width: 22px;
}

.pre-wrap {
    white-space: pre-wrap;
}

.no-wrap {
    white-space: nowrap;
}

.break-word-all {
    word-break: break-all;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup {
    max-width: 60% !important;
}

    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.help-popup {
        max-width: 550px !important;
    }

    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.upload-popup,
    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.edit-popup,
    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.create-folder-popup {
        max-width: 40% !important;
    }

.dxbl-modal-body > div > div {
    margin-bottom: 1rem;
}

.dxbs-sc-apt {
    cursor: pointer;
}

/*
    Überschreibt die Mindestbreite von 1260px des Schedulers
*/
.dxbl-scroll-viewer div.dxbs-sc-timecells-container, .dxsc-main-container table {
    min-width: 400px !important;
}

.bold {
    font-weight: bold;
}

.fade-out {
    transform: translateY(-150px);
}

.ccard {
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    height: 100%;
}

    .ccard div:first-of-type {
        border-radius: 4px 0px 0px 4px;
    }

    .ccard div:nth-of-type(2) {
        border-radius: 0px 4px 4px 0px;
    }

    .ccard > div > i {
        padding: .4rem !important;
    }

    .ccard > .icon-wrapper {
        text-align: center;
    }

    .ccard > div > i.fa-exclamation {
        color: red;
        font-size: 1.8rem;
    }

.multiline-text > span, .multiline-text > div {
    display: inline-block;
    vertical-align: top;
}

.login-form, .error-message {
    margin: auto;
}

.error-message {
    text-align: center;
}

    .error-message > .card {
        background-color: #ff000070;
    }

.loading-indicator {
    margin: auto;
    width: 200px;
    text-align: center;
}

.loading-indicator-center {
    width: 200px;
    top: 50%;
    left: 50%;
    text-align: center;
    position: absolute;
    z-index: 100;
}

.loading-indicator-right {
    margin: auto;
}

.blackout {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000000a0;
    opacity: .5;
    z-index: 99;
}

.mw-400 {
    min-width: 400px;
}

.dxbl-modal-body .badge {
    font-size: 90% !important;
    line-height: 1.4 !important;
}

.grid-min-auto {
    display: grid;
    grid-template-columns: min-content auto;
    grid-gap: 10px;
    margin: 10px 0px;
}

.overview-columns {
    display: grid;
    grid-template-columns: 100% auto;
    grid-gap: 1rem;
}

.overview-category {
    padding: 10px;
    margin: 10px 0px;
    background-color: #f0f0f0;
    border: 1px solid #adadad8a;
    border-radius: 4px;
    width: 100%;
}

    .overview-category > div:first-of-type {
        display: grid;
        grid-template-columns: auto 20px;
        grid-gap: 10px;
    }

    .overview-category > div:nth-of-type(2) {
        width: 95%;
        margin-left: 2.5%;
    }

.appointment.background-color-status-not-ordered {
    border: 1px dashed #535353 !important;
}

.appointment-inner-left {
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.25rem;
}

    .appointment-inner-left span {
        vertical-align: middle;
    }

.overview-category .appointment, .appointment-links .appointment {
    display: grid;
    grid-template-columns: 2rem auto;
    grid-gap: .5rem;
    border: 1px solid #adadad8a;
    border-radius: 4px;
    margin: 5px;
    padding: 10px;
    cursor: pointer;
}

.overview-category .appointment-inner-right, .appointment-links .appointment-inner-right {
    display: grid;
    grid-template-columns: auto min-content min-content;
    grid-template-rows: auto max-content;
    grid-gap: 0px 10px;
}

    .overview-category .appointment-inner-right > div:nth-of-type(2), .appointment-links .appointment-inner-right > div:nth-of-type(2) {
        white-space: nowrap;
        padding: 0px 10px;
    }

    .overview-category .appointment-inner-right > div:nth-of-type(4) {
        grid-column: 1;
        grid-row: 2;
    }

.overview-category-headline {
    font-size: 1.2rem;
    font-weight: bold;
}

.appointment-links-category-headline {
    font-weight: bold;
}

.overview-category .overview-category-headline {
    margin-left: 5px;
}

.overview-options {
    line-height: 2rem;
    height: 2rem;
    margin-top: 1rem;
}

    .overview-options > input {
        vertical-align: text-bottom;
    }

    .overview-options > span:first-of-type {
        margin-right: 20px;
    }

    .overview-options label {
        margin: 0px 20px 0px 5px;
    }

.main-headline {
    text-align: center;
    margin-top: 1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 30% auto 25%;
    grid-gap: 1rem;
    padding: 0px 1rem;
}

    .main-grid > div:first-of-type > div {
        margin-top: 1rem;
        background-color: #f0f0f0;
        border-radius: 4px;
        padding: 1rem;
    }

    .main-grid > div:nth-of-type(3) {
        margin-top: 3rem;
    }

.span-2 {
    grid-column: span 2;
}

.error-container {
    font-family: Arial, sans-serif;
    background-color: #eee;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

    .error-container i {
        font-size: 48px;
        margin-bottom: 10px;
    }

.background-color-status-finished {
    background-color: var(--status-finished) !important;
}

.background-color-status-overdue {
    background-color: var(--status-overdue) !important;
}

.background-color-status-open {
    background-color: var(--status-open) !important;
}

.background-color-status-in-progress {
    background-color: var(--status-in-progress) !important;
}

.background-color-status-none {
    background-color: var(--status-none) !important;
}

.background-color-status-not-ordered {
    background-color: var(--status-not-ordered) !important;
}

.jira-issue-cell-link {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;
}

.full-overlay {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-header-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: .25rem
}

.popup-header-icons-div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: .25rem
}

.centered-popup {
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: min-content;
}

    .centered-popup .close-button {
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        font-size: 30px;
    }

    .centered-popup > .content {
        margin-top: 45px;
    }

.filter-options {
    width: 40%;
    margin: auto;
    display: grid;
    grid-template-columns: auto max-content;
    gap: 15px;
    align-items: center;
}

.last-update {
    width: 40%;
    margin: auto;
    align-items: center;
}

.calling-api-message {
    width: fit-content;
    margin: auto;
    align-items: center;
    background-color: var(--s24-blue);
    border-radius: 3px;
    color: white;
}

.admin-archive-button {
    text-decoration: none;
    color: var(--s24-blue);
    margin: .25rem .5rem 0 0;
}

    .admin-archive-button.selected {
        color: var(--s24-green) !important;
    }

        .admin-archive-button.selected i {
            color: var(--s24-green);
        }

.dot-menu-container {
    position: relative;
    display: inline-block;
}

.action-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.button-container {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    float: right;
}

    .button-container > button {
        width: inherit;
        height: inherit;
    }

.file-actions-wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
}

.file-actions-info {
    display: flex;
}

    .file-actions-info span {
        align-self: end;
        margin-left: .5rem;
        margin-bottom: .5rem;
    }

        .file-actions-info span i {
            margin-right: .5rem;
            font-size: 1.4rem;
        }

.context-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    z-index: 1000;
    min-width: 120px;
    border-radius: 0.25rem;
}

    .context-menu button {
        background: none;
        border: none;
        padding: 0.5rem;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }

        .context-menu button:hover {
            background-color: #f0f0f0;
        }

@media (min-width: 991px) and (max-width: 1269px) {
    .main-grid {
        grid-template-columns: auto 35%;
    }

        .main-grid > div:first-of-type {
            grid-column: span 2;
        }

    .dxbl-modal > .dxbl-modal-root > .dxbl-popup {
        max-width: 75% !important;
    }
}

@media (max-width: 990px) {
    .main-grid {
        grid-template-columns: 100%;
    }

        .main-grid > div:first-of-type {
            grid-column: 1;
        }

            .main-grid > div:first-of-type > div {
                margin-top: 1rem;
                grid-column: span 2;
            }

        .main-grid > div:nth-of-type(3) {
            margin-top: 0rem;
        }

    .dxbl-modal > .dxbl-modal-root > .dxbl-popup {
        max-width: 90% !important;
    }

        .dxbl-modal > .dxbl-modal-root > .dxbl-popup.upload-popup,
        .dxbl-modal > .dxbl-modal-root > .dxbl-popup.edit-popup,
        .dxbl-modal > .dxbl-modal-root > .dxbl-popup.create-folder-popup {
            max-width: 90% !important;
        }
}

@media (min-width: 1270px) {
}
