:root {
    --sidebar-padding: 0px;
}

@media all and (max-width: 1440px) {
    .menu {
        /*padding-left: 45px;*/
    }

    .main-header > .inner .side > .logo {
        margin-bottom: 4px;
    }

    .main-header > .inner .logo-col .side {
        width: 100%;
        border-right: 0px;
    }

    .main-header > .inner .logo-col {
        width: 100%;
    }
}

@media all and (max-width: 1270px) {
    .datesDelimiter {
        display: none;
    }

    .menu {
        padding-left: 0px;
    }

    .module-container .head {
        padding: 6px 3px;
    }

    .dontShowOnMobile {
        display: none;
    }

    .deviceMenuIconCorrectOnMobile {
        margin-right: 0px !important;
    }

    .im-panel > .panelHead > .title {
        padding: 10px 5px;
    }

    body.bgWhite {
        background: white;
    }

    .main-header > .inner .middle > .menu:not(.mobMenu) {
        display: none;
    }

    .main-header > .inner .middle > .controls > .portalNavigationMenu {
        margin-left: unset;
    }

    .main-header > .inner .middle > .mobMenu {
        display: block;
        position: absolute;
        width: 100%;
        background: white;
        text-align: left;
        z-index: 999999;
        top: 47px;
    }

    .main-header > .inner .middle > .controls {
        justify-content: center;
    }

    .main-header > .inner .middle > .controls > .mobileMenu {
        display: block !important;
    }

    .module-container > .content {
        padding: 0px 10px;
    }

    .module-container > .head {
        padding: 5px 8px;
    }

    .im-panel > .content {
        padding: 5px 5px;
    }

    /*.fixed-table-toolbar {
        text-align: center;
    }*/
    /*.fixed-table-toolbar .float-left, .fixed-table-toolbar .float-right{
        float: none !important;
    }*/
    .fixed-table-toolbar .search, .fixed-table-toolbar .search-input {
        width: 100%;
    }

    .fixed-table-pagination {
        text-align: center;
    }

    .fixed-table-pagination .pagination-detail, .fixed-table-pagination .pagination {
        float: none !important;
    }

    .pagination-info {
        padding-left: 0px !important;
    }

    .fixed-table-pagination ul.pagination {
        margin: 0 auto !important;
    }

    .module-container > .deviceContent > .content {
        padding: 0px 5px;
    }

    #deviceGeneralContent .head {
        padding: 10px 10px;
    }

    .bootstrap-table .fixed-table-pagination > .pagination-detail, .bootstrap-table .fixed-table-pagination > .pagination {
        margin-top: 5px;
        margin-bottom: 0px;
    }

    .bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info {
        line-height: 0px;
    }

    .taskDevicesPopup, .moveDevicesPopup {
        max-height: 80vh;
        height: 80vh;
    }
}

@media all and (max-width: 992px) {
    #deviceDeadlinesContent .fixed-table-toolbar > .columns {
        order: 1;
    }

    #deviceDeadlinesContent .fixed-table-toolbar > .side {
        order: 2;
    }

    #deviceDeadlinesContent .fixed-table-toolbar > #mainCategoriesList {
        order: 3;
    }

    #deviceTasksContent .fixed-table-toolbar > .side {
        order: 1;
    }

    #deviceTasksContent .fixed-table-toolbar > .columns {
        order: 2;
    }

    #deviceTasksContent .fixed-table-toolbar > #mainCategoriesList {
        order: 3;
    }

    .fixed-table-toolbar {
        justify-content: center !important;
    }

    #deviceNfcContent .fixed-table-toolbar {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px;
        margin-top: 0px;
        flex-wrap: wrap;
    }

    #deviceNfcContent .fixed-table-toolbar > .side {
        order: 1;
    }

    #deviceNfcContent .fixed-table-toolbar > .columns {
        order: 2;
    }
}

@media all and (max-width: 991px) {
    /*large from 992*/
    .main-area > .main-sidebar {
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        top: 0;
    }

    .open-devices-strip {
        min-height: calc(100vh - 94px); /* 47 * 2 */
    }

    :root {
        --sidebar-padding: 20px;
    }

    /*#devices-wrp {
        height: calc(100vh - 196px);
    }*/
}

@media all and (max-width: 900px) {
    .main-header > .inner .middle > .menu > .item > a {
        padding-left: 5px;
        padding-right: 5px;
        /*font-size: 12px;*/
    }

    .main-header > .inner .middle > .controls > .profile {
        padding: 0px 5px;
    }
}

@media all and (max-width: 767px) {
    .main-header > .inner .middle > .controls > .profile .name {
        font-size: 12px;
    }

    .select2-container--im-select2 .select2-selection--multiple .select2-selection__choice__display {
        height: auto !important;
    }

    .select2-container--im-select2 .select2-selection--multiple .select2-selection__choice {
        display: flex !important;
        margin: 2px 7px 2px 7px !important;
        white-space: normal !important;
    }

    .module-container > .nav > li > a > span {
        display: none;
    }
}

@media all and (max-width: 480px) {
    .module-container > .nav > li > span {
        padding: 0px 10px !important;
    }

    .module-container .head {
        justify-content: flex-end;
    }

    .module-container .head .side, #worksFactorySelect {
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .module-container > .nav > li > a > i, .module-container > .nav > li > a > i.fa-industry {
        margin-right: 0px;
    }

    .diagnosticsRow {
        padding-left: 35px !important;
    }

    #worksInfoIcon {
        display: none;
    }

    .main-header>.inner .middle>.controls>.profile .name{
        max-width: 40px;
        width: 40px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media all and (max-width: 400px) {
    .bootstrap-table .fixed-table-pagination > .pagination ul.pagination a {
        padding: 5px 8px !important;
    }

    .module-container > .head > .title {
        font-size: 21px;
    }

}

@media all and (max-width: 320px) {
    .main-header > .inner .middle > .controls > .profile .name {
        max-width: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* different techniques for iPad screening */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    .task-done-popup .taskPopup {
        width: 98vw !important;
    }

    .task-done-popup .taskPopup .panelHead .title {
        font-size: 25px;
    }

    .task-done-popup .taskPopup .row .name {
        font-size: 25px;
        line-height: 25px;
        width: 200px;
    }

    .task-done-popup .taskPopup .row input {
        font-size: 22px;
        height: 55px;
        line-height: 53px;
    }

    .task-done-popup .taskPopup .row select {
        font-size: 22px;
        height: 55px;
        line-height: 53px;
    }

    .task-done-popup .taskPopup .row textarea {
        font-size: 22px;
    }

    .task-done-popup .taskPopup .row .numberInputMinus {
        font-size: 30px;
        padding: 20px;
    }

    .task-done-popup .taskPopup .row .numberInputPlus {
        font-size: 30px;
        padding: 20px;
    }

    .task-done-popup .taskPopup .actions .im-button {
        height: 40px;
        line-height: 38px;
        font-size: 22px;
    }

    .task-done-popup .taskPopup .arrayFieldAdd, .arrayFieldRemove {
        font-size: 28px;
        padding: 15px;
    }

    span[data-action="taskIsDoneFast"] {
        margin-right: 20px !important;
    }

    span[data-action="taskIsDone"], span[data-action="taskIsDoneFast"] {
        height: 40px !important;
        width: 40px !important;
        line-height: 40px !important;
    }

    span[data-action="taskIsDone"] i, span[data-action="taskIsDoneFast"] i {
        font-size: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    .task-done-popup .taskPopup {
        width: 98vw !important;
    }

    .task-done-popup .taskPopup .panelHead .title {
        font-size: 25px;
    }

    .task-done-popup .taskPopup .row .name {
        font-size: 25px;
        line-height: 25px;
        width: 200px;
    }

    .task-done-popup .taskPopup .row input {
        font-size: 22px;
        height: 55px;
        line-height: 53px;
    }

    .task-done-popup .taskPopup .row select {
        font-size: 22px;
        height: 55px;
        line-height: 53px;
    }

    .task-done-popup .taskPopup .row textarea {
        font-size: 22px;
    }

    .task-done-popup .taskPopup .row .numberInputMinus {
        font-size: 30px;
        padding: 20px;
    }

    .task-done-popup .taskPopup .row .numberInputPlus {
        font-size: 30px;
        padding: 20px;
    }

    .task-done-popup .taskPopup .actions .im-button {
        height: 40px;
        line-height: 38px;
        font-size: 22px;
    }

    .task-done-popup .taskPopup .arrayFieldAdd, .arrayFieldRemove {
        font-size: 28px;
        padding: 15px;
    }

    span[data-action="taskIsDoneFast"] {
        margin-right: 20px !important;
    }

    span[data-action="taskIsDone"], span[data-action="taskIsDoneFast"] {
        height: 40px !important;
        width: 40px !important;
        line-height: 40px !important;
    }

    span[data-action="taskIsDone"] i, span[data-action="taskIsDoneFast"] i {
        font-size: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
    }
}
