﻿#preloader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #444;
    z-index: 1000;
}

#returnModules {
    cursor: pointer;
}

.tr-grid-container {
    padding: 2rem 0;
    display: flex;
    gap: 1rem;
}

    .tr-grid-container .tr-grid-panel {
        background: whitesmoke;
        padding: 1rem;
        position: relative;
        flex: 0 0 280px;
    }

        .tr-grid-container .tr-grid-panel .tr-grid-inputs {
            position: sticky;
            top: 0;
        }

            .tr-grid-container .tr-grid-panel .tr-grid-inputs button {
                margin-top: 2rem;
            }

            .tr-grid-container .tr-grid-panel .tr-grid-inputs .detstat.chk {
                display: flex;
            }

                .tr-grid-container .tr-grid-panel .tr-grid-inputs .detstat.chk label {
                    width: auto;
                }

.form-label {
    margin: 0 1rem 0 0;
    padding: 0;
    white-space: pre;
}

.chk .form-label {
    margin: 0 0 0 1rem;
}

#selectedUserSection .k-widget {
    width: clamp(320px, 100%, 40vw);
}

#timerequestreviewmodal .card-body > section + section {
    border-top: 1px solid #ddd;
    margin-top: 2rem;
    padding-top: 2rem;
}

#timerequestreviewmodal #user-details, 
#timerequestreviewmodal #request-balances {
    column-count: 2;
    column-rule: 1px solid #ddd;
    column-gap: 40px;
}

#timerequestreviewmodal .legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: .5rem 0;
    background: whitesmoke;
    border-radius: 6px;
    border: 1px solid #ddd;
}

#timerequestreviewmodal .legend span {
    font-size: .85rem;
}

#timeEntryModes {
    align-items: center;
}

    #timeEntryModes #regularHours {
        display: flex;
        gap: 6px;
        align-items: center;
        padding: 0 10px;
    }

#employeeStatistics {
    display: flex;
    gap: 1rem;
}

#employeeStatistics > * {
    padding: .25rem .5rem;
    border-radius: 6px;
    border: 1px solid #888;
    color: #888;
}

#timeRequestHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 2rem;
}

#subordinateFilter {
    margin: 0 0 1rem;
}

@media screen and (max-width: 980px) {
    #timeRequestHeader {
        flex-direction: column;
    }
}

@media screen and (max-width: 770px) {
    .tab-pane section {
        flex-direction: column;
    }

/*    .tr-grid-container .tr-grid-panel {
        flex: 0 0 auto;
    }

    .tr-grid-inputs .filters:not(.show) {
        display: none;
    }*/
}

@media screen and (max-width: 540px) {
    #timeRequestHeader {
        align-items: flex-start;
    }

    #employeeStatistics {
        flex-direction: column;
        gap: 0;
    }

        #employeeStatistics > * {
            padding: 0;
            border-radius: 0;
            border: 0;
        }
}

#minEntry, #hourEntry {
    width: 80px;
}

#timeContainer {
    display: flex;
    flex-direction: row;
    gap: 10px;
}