@import "_Mixins.scss";

.employee-multiselect .select2-selection__rendered {
    border-bottom: unset !important;
}

.employee-multiselect .select2-search__field {
    padding: unset !important;
}

.employee-picture {
    height: 100px;
    width: 100px;
    background: $accent-color;
    border-radius: 50%;
    margin-right: 30px;
    color: #fff;
    text-align: center;
    padding-top: 7px;
    font-size: 56px;
    position: relative;
}

.edit-photo-icon {
    float: right;
    font-size: 14px;
    bottom: 0;
    position: absolute;
    color: #999 !important;
}

.edit-photo {
    font-size: 14px;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    position: absolute;
    top: 0px;
    background: gray;
    opacity: 0.7;
    padding-top: 40px;
}

.employee-image-circle {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    margin-top: -8px;
    object-fit: cover;
}

.dt-image-circle {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.dt-text-avatar {
    background-color: $accent-color;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    color: #fff;
    text-align: center;
    padding-top: 5px;
}

.dt-col-no-padding {
    padding:0px;
}

.dt-employee-side-col {
    padding:4px;
    cursor:pointer;
}

.dt-worker-row {
    margin-right: 0px;
}

.dt-worker-row .emp-avatar {
    padding-left: 25px;
}

.dt-worker-row .emp-data {
    padding-left: 0;
}

.contact-data-selects .select2-selection__rendered {
    border: none !important;
}

.contact-data-selects .input-post {
    background-color: transparent;
    border-bottom: none;
}

.ca-type .select2-selection {
    background-color: transparent !important;
}

.contact-data-input {
    background-color: transparent;
    border: none;
}

.table-striped > tbody > tr:nth-of-type(odd) .contact-data-selects .select2-selection {
    background-color: $modul-background-color;
}

#residence-table td {
    padding-top: 0px;
    padding-bottom: 0px;
}

#contactaddress-table td {
    padding-top: 0px;
    padding-bottom: 0px;
}

.contact-data-table-padding-button {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 0px;
}

.contact-data-table-padding .custom-checkbox-container {
    margin-top: 5px;
}

#residence-table:hover
.select2-selection {
    background-color: transparent !important;
}

#home .dataTables_scrollBody {
    height: calc(100vh - 194px) !important;
}

#home .side-employees-table {
    width: 100% !important;
}

#home .dataTables_scrollHeadInner {
    width: 100% !important;
}

.employee-leader-dropdown .dropdown-menu {
    max-height: 390px !important;
}

#side-employee-table_wrapper .dataTables_scrollBody {
    max-height: unset !important;
}

.employees-buttons {
    background: $modul-background-color;
}

.employee-header-wrapper {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid $divider-color;
}

.employee-width-25 {
    width: 25%;
    float: left;
    padding-left: 20px;
}

.employee-width-50 {
    width: 50%;
    float: right;
    padding-right: 15px;
}

.employee-width-75 {
    width: 75%;
    padding-left: 0;
    padding-right: 15px;
    float: right;
}

.tax-prefix-width {
    width: 25%;
    padding-left: 0;
    padding-right: 15px;
    float: left;
}

.employee-photo {
    min-width: 115px;
}

.employee-contact-data {
    max-width: 80%;
}

#residence-table .select2-selection__arrow {
    right: 0px;
}

#side-employee-table_wrapper #showHideDropdown > a {
    display: none;
}

.pac-container {
    z-index: 99999 !important;
}

#employees-tab-buttons #formButtonsBtnGroupContainer {
    float: left !important;
}

.employee-datePicker {
    position: relative;
}

.employee-header-data {
    display: flex;
    justify-content: space-between;
    margin-right: 40px;
    /*padding-bottom: 20px;*/
}

.work-book-date-wrapper,
.work-book-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-book-date-wrapper {
    width: 150px;
}

.work-book-date-wrapper:last-child {
    width: 170px;
}

.work-book-date {
    width: 90px;
}

.work-book-position .work-book-date {
    border-bottom: 1px solid $divider-color;
}

#WorkBookChart {
    height: 100px;
    width: 170px;
}

#LengthOfService {
    text-align: center; 
    margin: -20px 0px 0px 0px;
    font-weight: bold;
}

.chart-wapper {
    position: relative;
    margin-top: 10px;
}

#tblForeignersHistory th {
    vertical-align: middle;
    padding-top: 3px;
    padding-bottom: 3px;
}

#tblForeignersHistory td {
    vertical-align: middle;
    padding-top: 0px;
    padding-bottom: 0px;
}

#tblForeignersHistory > .showHideDropdown {
    right: 15px;
}

#tblForeignersHistory > .showHideDropdown > a {
    background-color: unset !important;
    padding: 0px;
    top: 0px;
    right: 0px;
}

#tblForeignersHistory tr td:first-child {
    width: 15%;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.foreigner-row-align {
    justify-content: start !important;
}

@media only screen and (max-width: $min-screen-sm) {
    #residence-table, #contactaddress-table {
        border: unset;
    }

    #btn-col .btn-success {
        width: -webkit-fill-available;
    }

    #btn-col-contact-addr .btn-success {
        width: -webkit-fill-available;
    }

    .contact-data-selects {
        width: -webkit-fill-available;
    }

    .contact-data-selects .select2-selection {
        background-color: transparent;
    }

    .contact-data-delete-icon {
        padding-top: 0px;
    }
}

//tablet
@media only screen and (min-device-width: $min-screen-sm) and (max-device-width: $max-screen-sm) {
    .employee-main .divided-content-toggle {
        position: fixed !important;
        top: 145px !important;
        margin-top: 54px;
    }
}

// mobile
@media only screen and (max-width: $max-screen-xs) {
    .employee-header-data {
        display: unset;
        margin-right: 0;
    }

    .work-book-date-wrapper {
        margin-left: 25px;
    }

    .chart-wapper {
        margin-left: 25px;
    }
}

// tablet & mobile
@media only screen and (max-width: $max-screen-sm) {
    .employee-datePicker > .dropdown-menu {
        left: auto !important;
    }

    .employee-modal .modal-footer {
        display: flex;
        padding: 0px;
    }

    .employee-modal .modal-footer > button, .employee-modal .modal-footer > a {
        width: 50%;
        height: 50px;
    }

    .employee-modal .modal-footer > a {
        padding-top: 13px;
    }

    .mobile-margin {
        margin-bottom: 15px !important;
    }

    .employee-width-25 {
        width: 100%;
        float: none;
        padding-left: 20px;
        font-weight: unset;
    }

    .employee-width-50 {
        width: 100%;
        float: none;
        padding-left: 20px;
    }

    .employee-width-75 {
        width: 100%;
        padding-left: 20px;
        padding-right: 15px;
        float: none;
        font-weight: bold;
    }

    .tax-prefix-width {
        width: 100%;
        padding-left: 20px;
        padding-right: 15px;
        float: none;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .employee-input {
        padding-left: 0px !important;
        font-weight: bold;
    }

    .employee-width-75 .filter-option {
        padding-left: 0px;
        font-weight: bold
    }

    .employee-width-75 .select2-selection--single .select2-selection__rendered,
    .tax-prefix-width .select2-selection--single .select2-selection__rendered {
        padding-left: 0px;
    }

    .employee-residence-span {
        display: block;
    }
}

@media only screen and (min-width: 1200px) {
    .employee-modal {
        width: 1100px !important;
    }
}


.paw-ui-trans {
    &.paw-ui-color-primary-bg {
        background-color: $paw-color-page-bg;
    }

    &.paw-ui-color-secondary-bg {
        background-color: $paw-color-content-alternative-bg;
    }

    &.wrapper-content {
    }

    &.employee-photo {
        min-width: 0;
    }

    &.employee-picture {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-right: 0;
        overflow: hidden;
        text-align: center;
        padding-top: 0px;
        line-height: 30px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin-top: 0;
        }

        &.has-photo {
            background: none;
            padding-top: 0;
        }
    }

    &.edit-photo {
        width: 100%;
        height: 100%;
        padding-top: 0;
    }

    &.employee-name {
        font-size: 12px;
        line-height: 18.5829px;
    }

    &.divided-content-main {
        padding: 0;
    }

    &.tabs-container {
        overflow: hidden;

        > .tab-content {
            overflow: hidden;
        }
    }

    &#page-wrapper {
        padding: 0;
        background-color: $paw-color-page-bg;
    }

    &.employee-header-wrapper {
        padding-top: 0;
        padding-left: 0;
        padding-top: 7px;
        padding-bottom: 0px;
    }

    &.employee-contact-data {
        padding-left: 4px;
    }

    &.employee-dep-list {
        padding-left: 12px;
        font-size: 12px;
    }

    &.employee-act-status {
        padding-left: 12px;

        .employee-act-status-tag {
            padding: 4px 12px;
            margin-left: 2px;
            margin-right: 2px;
            border-radius: 24px;

            &.employee-act-status-tag-active {
                background-color: $paw-color-status-success-bg;
                color: $paw-color-status-success;
                border-color: $paw-color-status-success-bg;
            }

            &.employee-act-status-tag-inactive {
            }
        }
    }

    &.disability-wrapper table {
        background: $paw-color-content-bg;
    }

    &.paw-ui-icon {
        margin-right: 8px;
    }

    &.buttons-tabbed {
        background: none;
        padding-right: 16px;
        padding-top: 4px;

        .btn {
            padding: 0 18px;
            border-radius: 4px;
            border: 1px solid transparent;
            margin-right: 2px;
            margin-left: 2px;
            height: 37px;
            line-height: 37px;

            > span {
                display: none !important;
            }

            &.btn-primary {
                border: 1px solid $paw-color-primary;

                &:hover {
                    background: $paw-color-primary-hover;
                }
            }

            &.btn-outline {
                border: 1px solid $divider-color;

                &.btn-success {
                    color: $main-text-color;

                    > i {
                        color: $main-text-color;
                    }
                }

                &:hover {
                    background: $paw-color-control-highlight;
                }
            }
        }
    }

    &.top-menu-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        border-bottom: none;
    }

    &.personal-map-drp {
        margin: 12px;
        margin-bottom: 0;
        margin-top: 4px;
        display: flex;

        .paw-border-top {
            border-top: 1px solid $divider-color;
        }

        .personal-map-drp-container {
            margin-right: 0;
            padding-top: 6px;
            padding-left: 2px;
            padding-right: 2px;

            &:not(.personal-map-active-drp-container) {
                align-self: flex-end;
            }

            .personal-map-drp-menu {
                width: auto !important;
                min-width: 150px;
                box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
                border: none;
                border-radius: 4px;
                z-index: 2002;
            }

            .personal-map-drp-item {
                padding: 0;

                > a {
                    padding-left: 8px;
                    padding-right: 8px;
                    display: flex;
                    align-items: center;
                    min-height: 32px;

                    > .paw-ui-trans-li-icon {
                        min-width: 17px;
                        max-width: 17px;
                        width: 17px;
                        text-align: center;
                        margin-right: 4px;
                    }

                    .paw-ui-trans-li-label {
                        flex-grow: 2;
                        color: $main-text-color;
                    }
                }

                &:hover {
                    background: rgba(0, 0, 0, 0.04);
                }
            }

            .personal-map-drp-btn {
                padding: 8px;
                padding-top: 0;
                padding-bottom: 0;
                bottom: 0;
                border-radius: 4px;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                border-bottom: none;
                height: 32px;
                line-height: 32px;
            }

            .personal-map-drp-btn:not(.personal-map-active-drp) {
                height: 33px;
                line-height: 33px;
                background: $paw-color-page-bg;
            }

            .personal-map-drp-btn.personal-map-active-drp {
                height: 36px;
                line-height: 36px;
                background: $paw-color-content-bg;
                font-weight: 600;
                color: $main-text-color;
            }
        }

        .personal-map-drp-ddc {
            margin-left: 12px;
            color: #999;
        }

        .personal-map-tabi {
            margin-right: 4px;

            &.personal-map-active-tabi {
                color: $paw-color-primary;
            }
        }
    }

    &.evaluation-main {
        .evaluation-filter-trans {
            padding-left: 16px;
            padding-right: 16px;
            background: $paw-color-content-bg;
        }

        .evaluation-sum-points-trans {
            justify-content: start;
            display: flex;
            align-items: center;
            padding-bottom: 10px;
            padding-left: 16px;
            padding-right: 16px;
        }

        .paw-scrollable-y {
            overflow-y: auto;
        }
    }

    &.evaluation-buttons {
        padding-right: 32px;
    }
}

.paw-ui-trans-p {
    padding-left: 12px;
    padding-right: 12px;
}

.paw-view-switch {
    background: $paw-color-page-bg;
    color: $main-text-color;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 36px;
    margin-top: 8px;
    width: 300px;

    .view-switch-title {
        text-align: center;
        color: $main-text-color;
        padding: 8px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px;
    }

    button.view-switch-btn {
        cursor: pointer;
        background: none;
        border: none;
        color: $menu-icon-color;
        height: 100%;
        outline: none;
        padding-left: 16px;
        padding-right: 16px;

        &.view-switch-list-btn {
            margin-left: 8px;
            padding-left: 8px;
            padding-right: 8px;
        }

        &:hover {
            color: $paw-color-primary;
        }
    }
}
.paw-ui-trans-view-switch-mobile {
    .paw-view-switch{
        width: 100%;
        margin-top: 0;
        margin-bottom: 8px;
    }
}

.paw-ui-trans-image-circle {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.paw-ui-trans-avatar-circle {
    background: $paw-color-primary;
    border-color: $paw-color-primary;
    color: $paw-color-content-bg;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    text-align: center;
    line-height: 30px;
}

.paw-ui-trans-status-success {
    color: $paw-color-status-success;
}

.paw-ui-trans-status-error {
    color: $paw-color-status-danger;
}
.paw-ui-trans-li-icon {
    color: $menu-icon-color;
    margin-right: 16px;
}