@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;
    place-items: center;
}

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

.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;
    }
}