﻿@import "Colors.less";

body {

    #editModalWindow {
        overflow-x: hidden!important;
        overflow-y: auto!important;
    }

    .modalFlexContainer {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;



        .timeControlFlex {
            flex: 3;
            order: 1;
            /*background-color:forestgreen;*/
        }

        .timesControlFlex {
            flex: 3;
            order: 2;
        }

        .statusControlFlex {
            flex: 1;
            order: 3;
            /*background-color:yellow;*/
        }

        .infoTextControlFlex {
            flex: 1 1 800px;
            order: 3;
            /*background-color:deeppink;*/
        }

        .selectionControlFlex {
            display:block;
            order: 4;
            width:900px;           
        }

        .descriptionControlFlex {
            order: 5;
            flex: 1 1 800px;
            /*background-color:blueviolet;*/
        }

        .fileControlFlex {
            order: 6;
            flex: 1 1 800px;
            /*background-color:bisque;*/
        }
    }

    #editWindowAbsenceReasons {

        .col-lg-3.contingentGroup {
            display: flex;
            flex-wrap: nowrap;
            flex-direction: column;
            justify-content: space-between;
            background-color: transparent;
            margin: 10px;
            border: none;
            border-color: darkgray;
            border-style: dashed;
            border-width: 1px;
            border-radius: 0px;
            min-height: 70px;
            height: auto;
            /*padding: 12px 12px;*/
            text-align: right;
            overflow: hidden;
            padding:0;
            /*Shadow*/
            .absenceReasonsContainer {
                display: block;
                flex-wrap: wrap;
                /*justify-content: space-between;*/
                flex-direction: row;
                order: 1;
                /*Abwesenheit*/
                .absenceReason {
                   
                    /*margin-left: 10px;*/
                    border-color: black;
                    border-style: solid;
                    border-width: 1px;
                    border-radius: 5px;
     
                    margin: 5px;
                    height: 55px;
                    padding: 12px 12px;
                    text-align: center;
                    cursor: pointer;
                    overflow: hidden;

                    .absenceReasonText {
                        pointer-events: none;

                        div {
                            display: block;
                            margin: 0 auto;
                            width: 80%;
                            pointer-events: none;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                    }
                }

                .absenceReason:hover {
                    border-color: dimgray;
                    border-width: 2px;
                }

                .absenceReason.disabled {
                    color: @disableColor;
                    border-color: @disableColor;
                    border-width: 1px;
                }

                .absenceReason.selected {
                    border-color: darkseagreen;
                    border-width: 3px;
                    color: darkgreen;
                    /*.contingent {
            position: absolute;
            color: darkgreen;
            top: 30px;
            font-size:20px;
            background-color: white;
        }*/
                }
            }

            .contingent {
                order: 2;
                /*position: relative;*/
                /*align-self:flex-end;*/
                color: black;
                background-color: whitesmoke;
                font-size: 20px;
                height: 25px;
                /*font-weight:bold;*/
                padding-right: 10px;
                pointer-events: none;
                border: none;
                border-color: dimgray;
                border-top-style: dashed;
                border-top-width: 1px;
            }
            /*.contingent:after {
                content: ' Anspruch';
                font-size: 10px;
            }*/
        }

        .contingentGroup.disabled {
            pointer-events: none;
            color: @disableColor;
            border-color: @disableColor;
            border-width: 1px;

            .contingent {
                color: @disableColor;
                background-color: white;
            }
        }
    }
    /*ModalerDialog*/
    .modal-body {
        font-size: 13px;


        .statusText {
            font-size: 25px;
        }

        .timePickerContainer {

            .formLayoutElement {
                margin-top: 10px;

                .formLayoutLabel {
                    width: 50px;
                    display: inline-flex;
                    overflow: hidden;
                }
            }
        }

        .statusTextMessage {
        }

        .descriptionTextBox textarea {
            width: 100%;
            height: 100px;
        }

        .filesContainer {
            width: 100%;
            height: 300px;




            .filesBody {
                border-width: 1px;
                border-style: solid;
                height: 200px;
                overflow-y: scroll;

                .fileList {
                    list-style-type: none;
                    padding: 0px;


                    li {
                        padding-left: 10px;
                        margin-top: 5px;
                    }

                    li[data=new] {

                        .fileName {
                            color: cornflowerblue;
                        }

                        .fileName:after {
                            content: " (Neu)";
                        }
                    }

                    li:after {
                        content: "";
                        display: block;
                        height: 1px;
                        width: 100%;
                        margin-top: 2px;
                        margin-bottom: 2px;
                        background-color: lightgray;
                    }

                    .fileName {
                        width: 60%;
                        float: left;
                        height: 20px;
                        overflow: hidden;
                        font-weight: bold;
                    }

                    .fileStatus {
                        width: 20%;
                        float: left;

                        .approved {
                            color: @statusApprovedColor;
                        }

                        .declined {
                            color: @statusDeclinedColor;
                        }
                    }

                    .fileInfoButton {
                        width: 10%;
                        cursor: pointer;
                    }

                    .fileDeleteButton {
                        cursor: pointer;
                        width: 10%;
                    }

                    .fileDispatchingRemark {
                        width: 500px;
                    }
                }
            }

            .fileButtonContainer {
                position: absolute;
                right: 20px;

                .newFileButton {
                    position: relative;
                    float: left;
                    font-size: 20px;
                    cursor: pointer;

                    input {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        with: 100%;
                        height: 20px;
                        opacity: 0;
                    }
                }
            }
        }

        .absenceReasonsInfoText {
            margin-top: 10px;
            color: dodgerblue !important;
            font-weight: lighter;
        }
    }

    .onlyOnTabletAndDesktop {
        display: inline-block;
    }
}


//Hier kommt die Smartphone-Ansicht
@media only screen and (max-width:767px) {
    .newFileButton {
        position: relative !important;
        float: left !important;
        right: 0 !important;
        margin-left: 20px !important;
        font-size: 20px !important;
        cursor: pointer !important;
    }

    .onlyOnTabletAndDesktop {
        display: none !important;
    }
}
