/* Base styles */
body {
    font-family: Monospace, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#burger-toggle {
    display: none;
}
.search-input input {
    width: 200px;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.burger-icon {
    display: block;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
}
.terminal-column {
    display: inline-block;
    width: 50%;
    vertical-align: top;
}

.burger-nav {
    display: block;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #f8f8f8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
}

#burger-toggle:checked ~ .burger-nav {
    max-height: 500px;
    opacity: 1;
    font-size: 12px;
}

.burger-nav li {
    padding: 10px;
    border-bottom: 1px dotted #ddd;
}

.burger-nav li:last-child {
    border-bottom: none;
}

.burger-nav a {
    text-decoration: none;
    color: #333;
}

.scroll-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    position: relative;
    bottom: 3.4em;
}


.terminal-column {
    display: inline-block;
    width: 50%;
    vertical-align: top;
}

/* Filter container */
.filter-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.filter-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 82%;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 999999;
    -ms-overflow-style: none;
}

.filter-wrapper::-webkit-scrollbar {
    display: none;
}

/* Scroll buttons */
.scroll-buttons {
    display: none;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.scroll-button {
    background-color: #fff;
    border: none;
    color: #333;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
}


/* Mobile styles (small devices like phones) */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        box-shadow: none;
    }

    .image-open_term .img-responsive {
        width: 70%;
        height: 140px;
    }
    .for-resp_reset {
        width: 100%!important;
    }
    .control-input {
        width: 100%!important;
    }
    #newLocButton {
        margin: 20px 0;
        width: 100%;
    }
    main {
        text-align: center!important;
    }
    main, #assignTask {
        text-align-last: center;
        text-align: -webkit-center;
        align-self: center;
    }

    .terminals-btns {
        display: flex;
        flex-direction: column;
    }
    #distributorDropdown, #loadData, #assignTask, #downloadExcel {
        width: 100%;
        margin: 10px 0;
    }
    .resp-hdr {
        text-align: justify;
        margin: 10px;
        font-size: 15px !important;
    }
    #downloadExcel, #loadData {
        margin: inherit!important;
        width: 205px;
        margin-top: 1em!important;
        margin-bottom: 1em!important;
    }
    th, td {
        font-size: 10px;
        padding: 5px;
    }
    .burger-menu {
        display: block;
        text-align-last: center;
        background-color: white;
        color: black!important;
    }
    .burger-nav {
        color: black;
    }
#assignTask {
    width: 54%;
}
    .must-center {
        width: 100%;
    }
    .dataTables_wrapper {
        width: 100%!important;
    }
    .multiselect-container {
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .multiselect-container > li > a > label {
        padding: 10px;
        white-space: normal;
    }
    .table-responsive {
        overflow-x: auto;
    }
    .page-header {
        font-size: 24px;
    }
    #terminalsTable {
        width: 100% !important;
    }
    .main-div {
        flex-direction: column;
        align-items: center;
    }

    .first-div, .sec-div {
        width: 100%!important;
        padding-right: 0;
        text-align-last: center;
    }

    .label {
        margin-bottom: 1.5em!important;
    }

    .pagination li {
        margin: 0;
    }

    .log-info {
        display: flex;
        align-items: center;
        width: 100%;
        place-content: center;
        padding: 10px;
    }

    .usrNameLabel {
        margin-right: 10px;
    }

    .right {
        white-space: nowrap;
        width: auto;
    }

    .user-reg_h {
        font-size: 2.5rem;
        margin-bottom: 35px!important;
    }

    table, th, td {
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #usersTable_wrapper {
        overflow-x: auto;
    }

    #usersTable {
        width: 100% !important;
    }

    #usersTable_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 10px;
    }

    #usersTable_wrapper .dataTables_info {
        float: none;
        text-align: center;
        margin-top: 10px;
    }

    .menubtn {
        display: none;
    }

}
@media (max-width: 767px) {
    /* Show scroll buttons on small screens */
    .filter-container {
        overflow-x: auto;
        z-index: 0;
        white-space: nowrap;
    }
    .registration-modal {
        margin-top: 65% !important;
    }
    #newLocButton {
        margin-right: 0 !important;
    }
    #distributorDropdown {
        height: 50px;
    }
    .sure-block {
        margin-top: 55%;
    }
    .edit-modal-content {
        width: 100%;
    }
    .edit-modal-dialog {
        margin-left: 4px;
    }
    #getCurrentLocationBtn {
        margin-left: 0;
    }
    .latitude-group, .longitude-group, .new-latitude-group, .new-longitude-group, .terminal-select-group {
        width: 100%;
        padding: 0;
    }
    .user-checkbox_add {
        display: flex!important;
        max-width: 25%;
    }
    .first-page_modal {
        width: 100%;
    }
    .modal-title {
        font-size: 14px;
        font-weight: 700;
    }
    
    .badge {
        white-space: pre-wrap;
    }
    .action-buttons {
        flex-direction: column;
    }
    #toggleTableBtn, #showRegistrationModal {
        font-size: 9px;
    }
    .top {
        display: flex;
        flex-direction: column;
    }
    .scroll-buttons {
        position: absolute;
        top: 15px;
        height: 25px;
    }
    .registration-modal {
        margin: 50% auto;
    }
    .input-reg {
        right: auto!important;
    }
    .container-for_slack {
        width: 50%;
        flex-direction: column;
    }
    .first-site_header {
        font-size: 20px;
    }
    .reset-btn {
        font-size: 11px;
    }
    .for-langt_temrs {
        width: 100%!important;
    }
    #notificationModal {
        place-content: center;
    }
    .dropdown-menu li {
        float: inline-start;
    }
    .multiselect-container > li > a > label.radio, .multiselect-container > li > a > label.checkbox {
        font-size: 12px;
        padding-left: 15px;
        float: left;
        margin: 0;
    }
    .input-group {
        position: relative;
        display: table;
        border-collapse: separate;
        right: 25px;
    }

    .panel-default > .panel-heading {
        font-size: 13px;
    }
    .list-group-item {
        font-size: 11px;
    }

    .main-container_login {
        width: 100%;
        filter: none;
        margin-top: 0!important;
    }
    .authorisation-style {
        margin: 39% auto;
    }
    .btn {
        padding: revert;
        font-size: 11px;
    }
    .control-input {
        width: 100%!important;
    }
    .for-resp_reset {
        width: 100%;
    }
    .auth-btn {
        width: 100%;
    }
    .reset-button_float {
        width: 100%;
    }
    .right-inputs {
        float: none;
    }
    .for-modal_width {
        width: 100%!important;
    }
    .modal-dialog {
        width: 100%!important;
    }
    th, td {
        font-size: 10px!important;
    }
    #newLocButton {
        margin: 20px 0;
    }
#newLatitude, #newLongitude, #latitude, #longitude {
    width: 100%;
}
    #editImages, #newImages {
        margin: 0 auto;
        font-size: 10px;
    }
    .for-tech_flex {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .sorting-buttons {
        display: flex;
        flex-direction: column;
    }
    .sorting-buttons {
        margin-left: inherit;
    }
    #action-selected {
        margin-left: inherit!important;
        width: 190px;
        margin-top: 1em;
        margin-right: 0;
    }
    .tech-height, .form-control, .flex-btn_margin {
        margin-bottom: 1em!important;
        margin-left: 0!important;
    }
    .form-floating {
        align-items: center;
    }

    .form-control {
        width: 176px;
    }
    .terminal-column {
        width: 100%;
    }
    .multiselect-container {
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .multiselect-container > li > a > label {
        padding: 10px;
        white-space: normal;
    }
    .filter-wrapper {
        flex-wrap: nowrap;
    }

    .scroll-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }
}
@media (max-width: 1180px) {
    .for-image_style {
        background-position-x: center;
    }
    .image-open_term {
        float: none;
        width: 100%;
    }
}
@media (min-width: 1920px) {
    .main-container_login {
        width: 40%!important;
    }
}
@media (min-width: 768px) {
    /* Styles for larger screens */
    #map {
        height: 500px;
    }
    .main-container_login {
        width: 64%;
    }

    .dropdown-menu li {
        width: 80%;
        font-size: 11px;
    }
    .scroll-buttons {
        position: absolute;
        top: 15px;
        height: 25px;
    }
    .control-input {
        width: 100%;
    }
    .right-inputs {
        float: none;
    }
    .modal-dialog {
        width: 100%;
    }
    .for-modal_width {
        width: 100%!important;
    }
    .custom-map-control-button,
    .multiselect,
    #uncheckButton {
        font-size: 16px;
        padding: 0 12px;
    }
    .multiselect-container {
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .multiselect-container > li > a > label {
        padding: 10px;
        white-space: normal;
    }
    .filter-container {
        flex-direction: row;
        z-index: 0;
        justify-content: center;
    }


    .search-input {
        margin-left: 10px;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .image-open_term .img-responsive {
        width: 70% !important;
    }
}
@media screen and (min-width: 601px) and (max-width: 767px) {
    .image-open_term .img-responsive {
        width: 50% !important;
    }
}


@media (max-width: 1362px) and (min-width: 1301px) {
    .sorting-buttons {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: 120px; 
     }
}

@media (min-width: 1200px) {
    /* Styles for very large screens */
    #map {
        height: 700px;
    }

    .control-input {
        width: 400px;
    }
    .for-resp_reset {
        width: 100%;
    }
    .right-inputs {
        float: none;
    }
    
    .multiselect-container {
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .multiselect-container > li > a > label {
        padding: 10px;
        white-space: normal;
    }

    .custom-map-control-button,
    .multiselect,
    #uncheckButton {
        font-size: 18px;
        padding: 0 15px;
        text-wrap: nowrap;
        font-weight: 400;
    }
}
@media (min-width: 601px) and (max-width: 768px) {
    .must-center {
        width: 100%;
    }
    #distributorDropdown, #assignTask {
        width: 100%;
        margin: 10px 0;
    }
    th, td {
        font-size: 11px;
        padding: 6px;
    }
    .table-responsive {
        overflow-x: auto;
    }
}
@media (min-width: 769px) {
    .must-center {
        width: 50%;
    }

    th, td {
        font-size: 13px;
        padding: 8px;
    }
}

/* Tablet and Desktop styles */
@media (min-width: 601px) and (max-width: 1300px) {
    .container {
        padding: 20px;
    }

    .thumbnail a>img, .thumbnail>img {
        margin: auto!important;
        
    }
    .burger-menu {
        display: block;
        color: black;
    }
    #burger-toggle:checked ~ .burger-nav {
        max-height: 500px;
        opacity: 1;
        background-color: white;
    }
    .user-checkbox_add {
        display: flex!important;
        max-width: 20%;
    }
    .sorting-buttons {
        margin-left: inherit;
    }
    .btn {
        padding: revert;
        font-size: 11px;
    }
    .for-resp_reset {
        width: 100%!important;
    }
    .control-input {
        width: 100%!important;
    }
    .for-resp_reset {
        width: 100%;
    }
    .auth-btn, .reset-button_float {
        width: 100%;
    }
    .for-modal_width {
        width: 100%!important;
    }

    .for-tech_flex {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .sorting-buttons {
        display: flex;
        flex-direction: column;
    }
    #action-selected {
        margin-left: inherit!important;
        margin-right: 0;
        margin-top: 1em;
        width: 190px;
    }
    .tech-height, .form-control, .flex-btn_margin {
        margin-bottom: 1em!important;
        margin-left: 0!important;
    }
    .form-floating {
        align-items: center;
    }
    .form-control {
        width: 100%!important;
    }

    .reset-btn {
        font-size: small;
    }
    .main-container_login {
        width: 80%;
    }
    .search-input input::placeholder {
        font-size: 11px;
    }

    .filter-container {
        display: flex;
        flex-direction: column;
        z-index: 0;
    }
    .multiselect-container {
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .multiselect-container > li > a > label {
        padding: 10px;
        white-space: normal;
    }
    .scroll-buttons {
        display: flex;
    }
    .custom-checkbox,
    .multiselect,
    .search-input,
    #uncheckButton {
        font-size: 11px !important;
        display: flex;
        align-items: center;
        margin: 2px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        height: 40px;
        border-radius: 10px !important;
    }
    .log-info {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .right {
        width: auto;
    }

    .main-div {
        flex-direction: row;
    }

    .first-div, .sec-div {
        width: 50%;
    }

    table, th, td {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    #usersTable_wrapper .dataTables_paginate {
        float: right;
        text-align: right;
    }

    #usersTable_wrapper .dataTables_info {
        float: left;
    }

    .menubtn {
        display: none;
    }
    
    .navbar {
        text-align-last: center;
    }

}

/* Large Desktop styles */
@media (min-width: 1301px) {
    .container {
        padding: 30px;
        max-width: 1250px;
    }
    .img-responsive {
        height: 140px!important;
    }

    .for-modal_width {
        width: 60%!important;
    }
    .multiselect-container {
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .multiselect-container > li > a > label {
        padding: 10px;
        white-space: normal;
    }
    table, th, td {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .menubtn {
        display: block;
    }

}

@media (max-width: 1500px) {
    .filter-container {
        width: 100%;
        z-index: 0;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

}

@media (max-width: 15500px) {
    /* Hide the buttons */
    .gmnoprint.gm-style-mtc-bbw {
        display: none;
    }
    .img-responsive {
        height: 140px;
    }
    #floatingRole {
        width: 100%;
    }
    .gm-control-active.gm-fullscreen-control {
        left: 1px;
        bottom: 25px!important;
        top: auto!important;
    }
}

/* Extra large devices (very large desktops and 8k monitors) */
@media (min-width: 2560px) {
    .container {
        padding: 50px;
    }

    .img-responsive {
        height: 140px;
    }

    table, th, td {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}