/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }

    .m-o-search {
        padding: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* custom media */
/* ----------- iPhone 5, 5S, 5C and 5SE ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-min-device-pixel-ratio: 2) {
    .t-bar {
        display: none !important;
    }

    .t-footer {
        text-align: center;
        float: none;
    }

    .bell-popup {
        width: 312px;
        right: -64px;
    }

    .login-container {
        width: 320px !important;
    }

    .head-main-right {
        padding-top: 0px !important;
    }

    img.order-detail-img {
        width: 68px;
    }

    .m-o-search {
        padding: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .order-detail-sections {
        display: block !important;
    }

    .order-detail-sec {
        margin-right: 0px;
        margin-bottom: 20px;
    }

    .order-img {
        width: 66px;
    }

    .order-detail {
        padding: 10px;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: flex;
    }

    .work-order-sub {
        overflow-y: scroll;
    }

    .new-details-container {
        width: 100% !important;
    }

    .pagination-section {
        display: block;
        text-align: center;
    }

    .page-info {
        margin-bottom: 10px;
    }
}

/* ----------- iPhone 6, 6S, 7 and 8 ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) {
    .t-bar {
        display: none !important;
    }

    .t-footer {
        text-align: center;
        float: none;
    }

    .bell-popup {
        width: 320px;
        right: -40px;
    }

    .login-container {
        width: 350px !important;
    }

    .head-main-right {
        padding-top: 0px !important;
    }

    img.order-detail-img {
        width: 80px;
    }

    .m-o-search {
        padding: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: flex;
    }

    .work-order-sub {
        overflow-y: scroll;
    }

    .new-details-container {
        width: 100% !important;
    }

    .pagination-section {
        display: block;
        text-align: center;
    }
    .page-info {
        margin-bottom: 10px;
    }
}

/* ----------- iPhone 6+, 7+ and 8+ ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) {
    .t-bar {
        display: none !important;
    }

    .t-footer {
        text-align: center;
        float: none;
    }

    .bell-popup {
        width: 320px;
        right: -19px !important;
    }

    .login-container {
        width: 390px !important;
    }

    .head-main-right {
        padding-top: 0px !important;
    }

    img.order-detail-img {
        width: 80px;
    }

    .m-o-search {
        padding: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: flex;
    }

    .work-order-sub {
        overflow-y: scroll;
    }

    .new-details-container {
        width: 100% !important;
    }

    .pagination-section {
        display: block;
        text-align: center;
    }
    .page-info {
        margin-bottom: 10px;
    }
}

/* ----------- iPhone X ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) {
    .t-bar {
        display: none !important;
    }

    .t-footer {
        text-align: center;
        float: none;
    }

    .bell-popup {
        width: 320px;
        right: -41px;
    }

    .head-main-right {
        padding-top: 0px !important;
    }

    .m-o-search {
        padding: 12px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: flex;
    }

    .work-order-sub {
        overflow-y: scroll;
    }

    .new-details-container {
        width: 100% !important;
    }

    .pagination-section {
        display: block;
        text-align: center;
    }
    .page-info {
        margin-bottom: 10px;
    }
}

/* ----------- iPad 3, 4 and Pro 9.7" ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    .t-bar {
        display: block;
    }

    .t-footer {
        text-align: center;
        float: none;
    }

    .m-s-title {
        font-size: 10px;
    }

    .m-s-sub-title {
        font-size: 13px;
    }

    img.order-detail-img {
        width: 70px;
    }

    .order-img {
        width: 66px;
    }

    .order-detail {
        padding: 0px;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: block;
    }

    .right-sub-detail {
        height: 107px;
    }

    .new-details-container {
        width: 100% !important;
    }

}

/* ----------- iPad Pro 10.5" ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 834px) and (max-device-width: 1112px) and (-webkit-min-device-pixel-ratio: 2) {
    .t-footer {
        text-align: center;
        float: none;
    }

    .order-img {
        width: 50px;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: block;
    }

    .right-sub-detail {
        height: 107px;
    }

    .new-details-container {
        width: 100% !important;
    }
}

/* ----------- iPad Pro 12.9" ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
    .t-footer {
        text-align: center;
        float: none;
    }

    .order-img {
        width: 70px;
    }

    #main {
        margin-right: 0px !important;
        position: relative;
    }

    .sidenav {
        display: none;
    }

    .work-order-mobile {
        display: block;
    }

    .right-sub-detail {
        height: 107px;
    }

    .new-details-container {
        width: 100% !important;
    }
}

/* ----------- Non-Retina Screens ----------- */
@media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 1) {
    .work-order-mobile {
        display: none;
    }
}

/* ----------- Retina Screens ----------- */
@media screen and (min-device-width: 1200px) and (max-device-width: 1600px) and (-webkit-min-device-pixel-ratio: 2) and (min-resolution: 192dpi) {
    .work-order-mobile {
        display: none;
    }
}
