﻿.assignment-header-content {
    position: relative;
    flex: 1;
}

.assignment-header-action {
    position: absolute;
    top: 0;
    right: 0;
}

#assignment-description {
    padding-right: 90px;
}

.assignment-contact {
    display: inline-block;
    float: left;
}

.assignment-location {
    max-width: 280px;
}

.task-btn-container {
    position: absolute;
    right: 16px;
    z-index: 4;
}

@media screen and (max-width: 1550px) {
    .assignment-details {
        width: 100%;
        flex-wrap: wrap;
    }

    .assignment-executor,
    .assignment-employees,
    .assignment-date,
    .assignment-location {
        width: 25%;
        margin-left: 0px !important;
    }

    .assignment-contacts {
        width: 100%;
        margin-left: 0px !important;
    }

        .assignment-contacts .p-l-4 {
            padding-left: 0px;
        }
}

@media screen and (max-width:1024px) {
    #assignment-title {
        display: inline-block;
        padding-right: 150px;
    }
}

@media screen and (max-width: 768px) {
    .assignment-details {
        width: 100%;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    /*.assignment-date {
        width:50%;
    }*/

    .assignment-executor {
        width: calc(100% / 3);
        margin-left: 0px;
    }

    .assignment-employees {
        width: 200px;
        margin-left: 0px !important;
        /*margin-top: 16px;*/
    }

    .assignment-contacts {
        width: 50%;
        margin-left: 48px !important;
        margin-top: 24px;
    }

    .assignment-date {
        width: calc(100% / 3);
        margin-left: 0px !important;
    }

    .assignment-location {
        width: 50%;
        margin-top: 24px;
    }

    .assignment-contacts .p-l-4 {
        padding-left: 0px;
    }
}

@media screen and (max-width: 767px) {

    #assignment-title {
        display: inline-block;
        padding-right: 48px;
    }


    .assignment-header-content {
        padding-left: 0px !important;
    }

    .assignment-contact {
        margin-left: 0px !important;
        margin-top: 4px;
    }

    #assignment-description {
        padding-right: 0px;
        line-height: 16px;
    }

    .assignment-executor,
    .assignment-employees {
        width: 50%;
    }

    .assignment-date {
        margin-top: 0px;
    }

    .card-table-row.big.replacing .card-table .card-table-header .search-container.business-assignment-search {
        top: 12px;
    }

        .card-table-row.big.replacing .card-table .card-table-header .search-container.business-assignment-search.focused {
            top: 0px;
        }

    .assigment-header {
        padding-bottom: 16px !important;
    }
}


.business-employee-assignment {
    display: flex;
    max-width: unset !important;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.business-employee-assignment-mobile {
    display: none;
    padding-top: 0px !important;
}

    .business-employee-assignment-mobile div:nth-of-type(2) {
        padding-top: 0px !important;
    }

@media screen and (max-width:767px) {
    .business-employee-assignment {
        display: none;
    }

    .business-employee-assignment-mobile {
        display: block;
    }

    .business-employee-assigment-executor {
        margin-top: 24px !important;
    }

    .business-employee-assignment-note-trigger {
        width: unset !important;
        width: 24px !important;
    }

    .business-employee-assignment-mobile .af-dropdown {
        width: unset !important;
    }
}



/*Executor stuff*/
@media screen and (max-width:767px) {
    .sub-executor-actions {
        width: unset !important;
        display: inline-flex;
    }

    .executor-sub-executor-to-accept-card {
        display: flex !important;
    }
}


/*NEW FOR EXEUCTOR*/
.new-sub-employee-in-training-card {
}

    .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header {
        max-width: unset !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.new-sub-employee-executor-button {
    padding: 0px 16px;
    line-height: 32px;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--grey);
    transition: 250ms;
    font-weight: 500;
}

    .new-sub-employee-executor-button:hover,
    .new-sub-employee-executor-button.in {
        background: #F5F9FE;
        transition: 250ms;
    }

        .new-sub-employee-executor-button.in:hover {
            background: #ced7e1;
        }

    .new-sub-employee-executor-button:focus {
        outline: none;
    }

.new-sub-employee-in-training-card-pc-body {
}

.new-sub-employee-in-training-card-mobile-body {
    display: none;
}

@media screen and (max-width:767px) {
    .new-sub-employee-in-training-card {
        padding: 0px !important;
        padding-top: 12px !important;
    }
        /*Header stuff*/
        .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header {
            flex-wrap: wrap;
        }

            .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header .new-sub-employee-executor-button-wrapper {
                order: 3;
                width: 100%;
                max-width: unset !important;
                margin-top: 12px;
            }

                .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header .new-sub-employee-executor-button-wrapper .new-sub-employee-executor-button {
                    background: #F5F9FE;
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    text-align: left;
                    align-items: center;
                    line-height: 40px;
                    border-top-left-radius: 0px;
                    border-top-right-radius: 0px;
                    border-bottom-left-radius: 8px;
                    border-bottom-right-radius: 8px;
                }

                    .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header .new-sub-employee-executor-button-wrapper .new-sub-employee-executor-button.in {
                        border-radius: 0px;
                    }

            .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header .neitc-dropdown {
                order: 2;
                margin-right: 16px;
            }

            .new-sub-employee-in-training-card .new-sub-employee-in-training-card-header .neitc-name {
                margin-left: 16px;
                max-width: 230px !important;
            }

    /*Body stuff*/
    .new-sub-employee-in-training-card-pc-body {
        display: none;
    }

    .new-sub-employee-in-training-card-mobile-body {
        display: block;
        background: white;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .new-sub-employee-in-training-card.autofoxid-assigned .neitc-name {
        max-width: 130px !important;
        white-space: nowrap;
        
    }

        .new-sub-employee-in-training-card.autofoxid-assigned div:nth-of-type(1) span {
            text-overflow:ellipsis;
            overflow:hidden;
        }

    .new-sub-employee-in-training-card.autofoxid-assigned div:nth-of-type(2) {
        order: 3;
        max-width: unset !important;
        width: 100% !important;
        padding: 16px;
    }

    .new-sub-employee-in-training-card.autofoxid-assigned div:nth-of-type(3) {
        order: 2;
        width: unset !important;
    }
}


.business-assignment-students-table .card-table-row.replacing.big .card-table .card-table-header .search-container {
    right: 108px;
}
.business-assignment-students-table .card-table-row.replacing .show-all-btn{
    position:absolute;
    right:16px;
}

@media screen and (max-width:1366px) {
    .business-assignment-students-table .card-table-row.replacing.big .card-table .card-table-header .search-container {
        right: 48px;
    }
    .business-assignment-students-table .show-all-btn {
        width: 32px;
        padding: 0px;
        text-align: center;
    }

        .business-assignment-students-table .show-all-btn i {
            margin-right: 0px;
        }

        .business-assignment-students-table .show-all-btn span {
            display: none;
        }
}
@media screen and (max-width:1024px) {
    .business-assignment-students-table .card-table-row.replacing.big .card-table .card-table-header .search-container {
        right: 64px;
    }
}

    @media screen and (max-width:767px) {
        .business-assignment-students-table .filter-btn-container {
            width: 32px;
            text-align: center;
            padding: 0px;
        }

        .business-assignment-students-table .show-all-btn {
            order: 3;
        }

        .business-assignment-students-table .card-table-row.replacing .filter-btn-container {
            margin-right: 50px;
        }

        .business-assignment-students-table .card-table-row.replacing .show-all-btn {
            position: absolute;
            right: 16px;
        }
    }
