.orders-menu-header ul {
    list-style: none;
    display: flex;
    margin-bottom: 0;
    padding: 0;
}

.orders-menu-header ul li {
    padding: 5px 7px;
    color: rgba(0, 0, 0, .55);
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.anchor-order {
    text-decoration: underline;
    color: #5769c1;
    position: relative;
    cursor: pointer;
    max-width: 115px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.anchor-awb {
    text-decoration: underline;
    color: #5769c1;
    position: relative;
    cursor: pointer;
    max-width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.anchor-error {
    color: #5769c1;
    position: relative;
    cursor: pointer;
}

.orders-menu-header .form-select {
    width: 320px;
    color: rgba(0, 0, 0, .55);
    background-color: #fff;
    border-radius: 0.2rem;
    /* font-weight: 700; */
    font-size: 14.4px;
    padding: 5px 7px;
    border-radius: 4px;
}

.orders-menu-header .form-select * {
    padding-block: 15px;
}

.down-sliding-select {
    position: relative;
    width: 12.5rem;
}

.selected-option {
    padding: 5px 7px;
    border: 1px solid #9ac2e5;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    border-radius: 0.5rem;
}

.options-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 2;
    background: var(--white);
}

.options-container.open {
    max-height: fit-content;
}

.option {
    padding: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-size: 14.4px;
}

.option:hover {
    background-color: #f0f0f0;
}

/* .option.selected {
    background-color: #1975C9;
    color: var(--white);
  } */

/* .down-sliding-select:hover .options-container {
    max-height: 100px;
  } */



.all-orders td {
    background-color: #fff;
}


.Searchbox-label {
    position: relative;
}

.Searchbox-label .search-icon {
    position: absolute;
    top: 7px;
    left: 5px;
}

.Searchbox-label input {
    padding-left: 26px;
}

.orders-section-tabs {
    position: relative;
}

.orders-section-tabs .table-container {
    height: calc(100vh - 302px);
    overflow-y: scroll; /* Allow scrolling */
}

.orders-section-tabs .sku-container  .table-container {
    height: calc(100vh - 248px);
    overflow-y: scroll; /* Allow scrolling */
}

.orders-section-tabs .table-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar in WebKit browsers (Chrome, Safari, etc.) */
}

.orders-section-tabs .support-order .table-container {
    height: calc(100vh - 325px);
    overflow-y: scroll;
}

.orders-section-tabs .support-order .table-container::-webkit-scrollbar {
    display: none;
}

.orders-section-tabs .warehouse-order .table-container {
    height: calc(100vh - 225px);
    overflow-y: scroll;
}

.orders-section-tabs .warehouse-order .table-container::-webkit-scrollbar {
    display: none;
}

/* For other browsers, ensure scrolling works but scrollbar is hidden */
.orders-section-tabs .table-container {
    -ms-overflow-style: none; /* IE 10+ */
    scrollbar-width: none; /* Firefox */
}

.orders-section-tabs .table-container.m-table-height {
    height: calc(100vh - 222px);
}

.sticky-header {
    position: sticky;
    top: 0;
    /* background-color: #ffffff; */
    z-index: 1;
}

.table-row td,
.table-row th {
    background-color: var(--white)  !important;
    padding: 0.5rem !important;
    border-bottom: none  !important;
    white-space: nowrap !important;
}

.table-row .checkbox-cell {
    min-width: 10px  !important;
}

.table-row td {
    font-size: 14.4px !important;
}

.table-row td:first-child,
.table-row th:first-child {
    border-top-left-radius: 8px  !important;
    border-bottom-left-radius: 8px  !important;
}

.table-row td:last-child,
.table-row th:last-child {
    border-top-right-radius: 8px  !important;
    border-bottom-right-radius: 8px  !important;
}

.blank-row td {
    padding: 7px  !important;
}

/* tbody tr.table-row:nth-of-type(4n-3) td{
  background-color: rgb(25 117 201 / 52%);
 } */


.filter-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.search-container {
    width: 50%;
}

.search-container label {
    position: relative;
    width: 100%;
}

.search-container label input {
    padding-right: 40px;
    padding-left: 110px;
}

.search-container input:focus-visible {
    outline: none;
}

.search-container.ot-filters label button {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, var(--sh-primary-light) 0%, var(--sh-primary-middle) 0%, var(--sh-primary) 100%);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 0 0.5rem 0.5rem 0;
}

.search-container button.btn.main-button.dropdown-toggle.dropdown-toggle-split.show {
    border-color: var(--sh-primary);
    color: var(--white);
}

.search-container.ot-filters .css-b62m3t-container {
    position: absolute;
    border: none;
    top: 1px;
    left: 1px;
    border-radius: 0.5rem;
    font-size: 14.4px;
    /* color: var(--sh-primary); */
    background: transparent;
    width: 110px;

}

.search-container.ot-filters .css-13cymwt-control {
    border: none;
    border-radius: 0.5rem;
    min-height: unset;
    background: transparent;
}

.search-container.ot-filters .css-t3ipsp-control,
.search-container.ot-filters .css-t3ipsp-control:hover {
    border: none;
    box-shadow: unset;
    background: transparent;
    min-height: unset;
}

.search-container.ot-filters .btn-group ul.dropdown-menu li {
    padding: 5px 10px;
    font-size: 14.4px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.search-container.ot-filters .btn-group ul.dropdown-menu li:hover {
    background: #DEEBFF;
}

.search-container.ot-filters .btn-group ul.dropdown-menu li.active {
    background: #2684FF;
    color: var(--white);
}

.css-t3ipsp-control:hover {
    min-height: unset;
}

.search-container p {
    margin-bottom: 0;
}

.checkbox-cell input {
    vertical-align: -1px;
}

.filter-container .button-container {
    display: flex;
}


  .side-panel {
    position: fixed;
    top: 0;
    right: -50em;
    transition: 1s;
    height: 100vh;
    width: 41em;
    background-color: #fff;
    z-index: 6;
  }

  .backdrop {
    position: fixed;
    background-color: #111111b8;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 5;
  }

.side-panel.open {
    right: 0;
}

.cell-inside-box {
    /*display: flex ;*/
    flex-direction: column ;
}

.cell-inside-box p {
    margin-bottom: 0;
    font-size: 14.4px !important;
}

.cell-inside-box .details-on-hover {
    text-decoration: underline;
    color: #1975C9;
    position: relative;
    cursor: pointer;
    width: fit-content;
    text-transform: lowercase;
}

.cell-inside-box .product-details,
.cell-inside-box .details-on-hover {
    position: relative;
}

.cell-inside-box .product-details>span,
.cell-inside-box .details-on-hover>span {
    display: none;
    padding: 2px 10px;
    text-decoration: none;
    color: #111;
    font-size: 14.4px;
    position: absolute;
    background-color: #fff;
    bottom: -31px;
    left: 14px;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px;
    filter: drop-shadow(rgba(0, 0, 0, 0.3) 0 2px 10px);
    width: auto;
    z-index: 6;
    max-height: auto;
    overflow-y: auto;
    text-transform: lowercase;
    width: 250px;
    overflow-x: hidden;
    /* white-space: break-spaces; */
}

.cell-inside-box .details-on-hover span {
    text-transform: capitalize;
}

.cell-inside-box .product-details>span:after,
.cell-inside-box .details-on-hover>span:after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: -4%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    transform: rotate(270deg);
}

.cell-inside-box .product-details:hover>span,
.cell-inside-box .details-on-hover:hover>span {
    display: block;
}


.cell-inside-box .details-on-hover.extra>span {
    padding: 13px;
    text-decoration: none;
    color: #111;
    font-size: 14.4px;
    position: absolute;
    background-color: #fff;
    bottom: -111px;
    left: 0;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px;
    filter: drop-shadow(rgba(0, 0, 0, 0.3) 0 2px 10px);
    width: auto;
    z-index: 6;
}

.cell-inside-box .product-details span hr,
.cell-inside-box .details-on-hover>span hr {
    margin-block: 4px;
}

.cell-inside-box .details-on-hover>span hr:last-of-type {
    display: none;
}

.cell-inside-box .details-on-hover.extra>span:after {
    content: '';
    position: absolute;
    bottom: 108px;
    left: 29px;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    transform: rotate(0deg);
}

.cell-inside-box .verified-hover {
    max-width: unset;
    min-width: unset;
    max-height: unset;
    min-height: unset;
    height: auto;
    width: auto;
    font-weight: 700;
}

.order-Status-box {
    background-color: #5769c1;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 14.4px !important;
    width: fit-content;
    border-radius: 10px;
    text-transform: capitalize;
    margin-bottom: 0;
    font-weight: 700;
    white-space: nowrap;
}

.status-box .order-Status-box {
    width: 100%;
    text-align: center;
}

.icon-rotate {
    transform: rotate(180deg);
}

.width-eclipse {
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.action-options {
    position: relative;
}

.action-options .threedots-img {
    justify-content: center;
    display: flex;
    background-color: #c3adf1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.action-options .threedots-img img {
    transform: rotate(90deg);
    transition: 0.3s;
}

.action-options .action-list {
    transition: 0.3s;
    max-height: 0;
    position: absolute;
    right: 22px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px;
    filter: drop-shadow(rgba(0, 0, 0, 0.3) 0 2px 10px);
    padding: 0px;
}

.action-options .action-list.middle {
    top: calc(-50% - 15px);
}

.action-options .action-list.above {
    bottom: calc(100% - 10px);
}

.action-options .action-list.below {
    top: calc(100% - 30px);
}

.action-options .action-list ul li.action-hr {
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(221, 221, 221, 1) 40%, rgba(221, 221, 221, 1) 50%, rgba(221, 221, 221, 1) 60%, rgba(255, 255, 255, 1) 100%);
    height: 1px;
    padding-block: 0;
    margin-block: 8px;
}

.action-options .action-list ul li:hover {
    background-color: #5769c1;
    color: var(--white);
}

.action-options .action-list ul li.action-hr:hover {
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(221, 221, 221, 1) 40%, rgba(221, 221, 221, 1) 50%, rgba(221, 221, 221, 1) 60%, rgba(255, 255, 255, 1) 100%);
    cursor: default;
}

.action-options.bulk-actions {
    z-index: 2;
}

.action-list ul {
    list-style: none;
    padding-left: 0px;
}

.action-list ul li {
    padding-block: 4px;
    cursor: pointer;
    padding-left: 10px;
}

.action-list ul li hr {
    margin-block: 0;
    margin-left: -8px;
    width: 127px;
}

.action-options:hover img {
    transform: rotate(0deg);
}

.action-options:hover .action-list {
    max-height: 361px;
    background-color: #fff;
    width: 167px;
    border-radius: 10px;
    z-index: 1;

}

.info-missing-content {
    color: #F31429;
}

.ba-popup-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 5;
}


.add-tag-container {
    position: fixed;
    background-color: #fff;
    width: 40%;
    height: 40%;
    z-index: 6;
    top: 20%;
    left: 30%;
}

ul.order-label-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    white-space: pre;
}

ul.order-label-list li {
    padding: 2px 5px;
    border: 1px solid var(--sh-primary-middle);
    border-radius: 0.5rem;
    white-space: nowrap;
}

.cell-inside-box .Labels-pool {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cell-inside-box.shipping-details {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    align-items: center;
}

.cell-inside-box.shipping-details img {
    height: 35px;
    width: 35px;
}

.awb-tracking-slider {
    position: fixed;
    width: 40em;
    height: 100vh;
    top: 0;
    right: -50em;
    background: var(--white);
    transition: 1s;
    z-index: 6;
}

.awb-tracking-slider.open {
    right: 0;
}

.mps-flag {
    font-size: 11px;
    /* border: 1px solid var(--sh-primary); */
    font-weight: 700;
    border-radius: 0.5rem;
    background: var(--sh-primary-light);
    padding: 1px 12px;
    color: var(--white);
    color: var(--sh-primary);
    margin-left: 10px;
}


.qc-check-modal .modal-dialog {
    margin-top: 5%;
}

.qc-check-modal .modal-header {
    font-weight: 500;
    padding: 15px;
    background: var(--sh-primary-light);
    border-radius: 0.5rem 0.5rem 0 0;
    color: var(--bs-heading-color);
    border-bottom: none;
}

.qc-check-modal .modal-header .modal-title {
    font-size: 1.25rem;
}

.qc-check-modal .modal-footer {
    border-top: none;
    justify-content: end;
}

.qc-check-modal .modal-body {
    margin-block: 15px 3px;
    padding: 15px;
}

.qc-check-modal .modal-dialog {
    max-width: 668px;
}

.store-name-info {
    left: 60%;
    width: fit-content;
    white-space: nowrap;
    height: 33px;
    min-height: unset;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 200px;
}

.missing-info-text {
    color: #FC3B3B;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}

.missing-info-tooltip {
    width: fit-content;
    white-space: nowrap;
    padding-block: 6px;
    min-height: unset;
    left: calc(100% + 1px);
    font-weight: 700;
}

.cell-inside-box .details-on-hover.missing-address .missing-details {
    color: #F31429;
    text-transform: capitalize;
    font-weight: 400;
}

.missing-address svg>g>path {
    fill: #F31429;
}

.search-container .popular-search {
    font-size: 10px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.search-container .popular-search span {
    cursor: pointer;
    white-space: nowrap;
    padding-inline: 10px;
    color: var(--sh-primary);
    border-radius: 0.5rem;
    border: 1px solid var(--sh-primary-light);
    padding-block: 2px;
}

.search-container .popular-search span.active {
    background: var(--sh-primary-light);
    border: none;
}

.search-container .popular-search .popular-search-tooltip {
    width: fit-content;
    white-space: nowrap;
    min-height: unset;
    top: 107%;
    left: 0%;
    bottom: unset;
    font-size: 12px;
    padding: 2px 10px;
    /* overflow: visible; */
}


.search-container .popular-search .popular-search-tooltip::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: rotate(180deg);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.order-related-dates {
    left: 100%;
}

.order-related-dates>span {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: fit-content;
}

.order-related-dates>span>span {
    display: inline-flex;
    white-space: nowrap;
    justify-content: space-between;
    width: 100%;
    gap: 5px;
    align-items: center;
}

@media screen and (max-width:1366px) {
    .cell-inside-box p {
        font-size: 12px;
    }

    .orders-section-tabs .table-container {
        height: calc(100vh - 293px);
    }
    .orders-section-tabs-bill .table-container {
        height: calc(100vh - 400px);
    }

    .courier-section-tabs .table-container {
        height: calc(100vh - 163px);
    }

}


.pagination-container {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    background-color: #fff;
    border-radius: 0.5rem;
}

.pagination-container .pagination {
    display: flex;
    gap: 20px;
    align-items: center;
}

.pagination-container .pagination p {
    cursor: pointer;
    margin-bottom: 0;
}

.pagination-container .items-per-page-dropdown select,
.pagination-container .go-to-page input {
    border: 1px solid var(--bs-dark);
    border-radius: 0.5rem;
    margin-inline: 4px;
    width: 80px;
    padding: 10px 10px;
    margin: 0 2px;
}

.pagination-container .go-to-page button {
    padding-block: 0;
    width: 50px;
    height: 25px;
    display: inline-flex;
    background: linear-gradient(180deg, var(--sh-primary-light) 0%, var(--sh-primary-middle) 0%, var(--sh-primary) 100%);
    color: var(--white);
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    background: #5769c1;
}

@media screen and (max-width: 1366px) {
    .pagination-container {
        font-size: 12px;
    }
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    background-color: #fff;
    color: #111;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 28px;
    opacity: 1;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px;
    filter: drop-shadow(rgba(0, 0, 0, 0.3) 0 2px 10px);
    width: auto;
    /* min-width: 382px; */
    max-width: 500px;
    z-index: 6;
    min-height: 39px;
    max-height: 65px;
    overflow-y: auto;
    font-size: 14.4px;
    /* display: flex; */
    /* align-items: center; */
}

.tooltip-container {
    display: flex;
    align-items: center;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px;
    padding: 5px;
    font-size: 12px;
    color: #333;
    z-index: 10;
}

.tooltip-container:hover .tooltip {
    display: block;
}

.text-truncate-row {
    position: relative;
    cursor: pointer;
    max-width: 115px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.copy-text {
    cursor: pointer;
    margin: -10px 0 0 -40px;
}
.copy-text-awb {
    cursor: pointer;
    position: relative;
    top: -28px;
}
.text-ndr-reason-row {
    display: block;
    max-width: 130px;
    white-space: break-spaces;
    font-size: 11px;
    font-weight: 600;
    line-height: initial;
}

/* ==========================================
   ORDER PAGE MOBILE RESPONSIVE STYLES
   ========================================== */
@media screen and (max-width: 991px) {
    /* Mobile tabs wrapper - horizontal scroll */
    .mobile-tabs-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }

    .mobile-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .mobile-tabs-wrapper .custom-nav-tabs-2 {
        flex-wrap: nowrap !important;
        white-space: nowrap;
        min-width: max-content;
        padding-right: 20px;
    }

    .mobile-tabs-wrapper .nav-item {
        flex-shrink: 0;
    }

    /* Tab navigation styling */
    .custom-nav-tabs-2 .nav-link {
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        background: #f3f4f6;
        color: #6b7280;
        border: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    .custom-nav-tabs-2 .nav-link.active {
        background: linear-gradient(135deg, var(--primary-600, #6366f1) 0%, #8b5cf6 100%);
        color: #fff;
        box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
    }

    .custom-nav-tabs-2 .nav-link:hover:not(.active) {
        background: #e5e7eb;
    }

    .custom-nav-tabs-2 .nav-link span {
        margin-bottom: 0 !important;
    }

    /* Orders menu header mobile */
    .orders-menu-header ul {
        flex-wrap: wrap;
        gap: 8px;
    }

    .orders-menu-header .form-select {
        width: 100%;
        max-width: 280px;
    }

    /* Down sliding select */
    .down-sliding-select {
        width: 100%;
        max-width: 200px;
    }

    /* Action dropdown mobile - FIX Z-INDEX */
    .action-options {
        position: relative;
    }

    .action-options .action-list {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: 100% !important;
        min-width: 180px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        z-index: 9999 !important;
        background: #fff;
        border: 1px solid #e5e7eb;
    }

    .action-options .action-list ul {
        padding: 8px;
        margin: 0;
        list-style: none;
    }

    .action-options .action-list ul li {
        padding: 10px 14px;
        border-radius: 8px;
        margin-bottom: 2px;
        font-size: 13px;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .action-options .action-list ul li:hover {
        background: #f3f4f6;
    }

    .action-options .action-list ul li a {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #374151;
        text-decoration: none;
    }

    /* Dropdown menu z-index fix */
    .dropdown-menu {
        z-index: 9999 !important;
    }

    .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Mobile actions dropdown button */
    #mobileActionsDropdown {
        background: linear-gradient(135deg, var(--primary-600, #6366f1) 0%, #8b5cf6 100%);
        border: none;
        padding: 10px 20px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }

    #mobileActionsDropdown:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

    /* Table container horizontal scroll */
    .table-container,
    #order-content-div {
        overflow-x: auto !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        max-height: calc(100vh - 320px);
    }

    .table-container table,
    #order-content-div table {
        min-width: 900px;
        width: max-content;
    }

    /* Search input group mobile */
    .input-group {
        border-radius: 12px;
        overflow: visible;
    }

    .input-group .form-control {
        border: 1px solid #e5e7eb;
        padding: 12px 16px;
        font-size: 15px;
    }

    .input-group .form-control:focus {
        border-color: var(--primary-600, #6366f1);
        box-shadow: none;
    }

    .input-group .btn {
        padding: 12px 16px;
    }

    /* Search criteria dropdown - keep visible when open */
    #searchCriteriaDropdown {
        background: var(--primary-600, #6366f1);
        border: none;
        font-size: 13px;
        font-weight: 600;
        padding: 12px 14px;
        position: relative;
        z-index: 10;
    }

    #searchCriteriaDropdown + .dropdown-menu {
        z-index: 9999 !important;
    }

    /* 3 dots action button */
    #mobileDropdown {
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        color: #374151;
    }

    #mobileDropdown:hover {
        background: #e5e7eb;
    }

    /* Ensure dropdowns don't get clipped */
    .card {
        overflow: visible !important;
    }

    .card-body {
        overflow: visible !important;
    }
}

@media screen and (max-width: 767px) {
    /* Order table mobile - SCROLLABLE with MAX HEIGHT */
    .orders-section-tabs .table-container,
    #order-content-div {
        max-height: calc(100vh - 350px) !important;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure table has min-width for scroll */
    .orders-section-tabs table,
    #order-content-div table {
        min-width: 800px;
        width: max-content;
    }

    /* Table styling */
    .orders-section-tabs table {
        font-size: 12px;
    }

    /* Table header sticky */
    .table-row th {
        font-size: 11px;
        padding: 10px 8px;
        white-space: nowrap;
        background: #f9fafb;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* Table body cells */
    .table-row td {
        font-size: 12px;
        padding: 12px 8px;
        vertical-align: middle;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Zebra striping */
    tbody .table-row:nth-child(even) td {
        background: #fafbfc;
    }

    /* Order ID and AWB compact */
    .anchor-order,
    .anchor-awb {
        max-width: 95px;
        font-size: 12px;
        font-weight: 600;
        color: var(--primary-600, #6366f1);
    }

    /* Customer detail compact */
    .cell-inside-box p {
        font-size: 11px;
        line-height: 1.4;
        color: #4b5563;
        margin-bottom: 2px;
    }

    .cell-inside-box p:first-child {
        font-weight: 600;
        color: #111827;
    }

    /* Package details compact */
    .text-truncate-row {
        max-width: 80px;
        font-size: 11px;
    }

    /* Action button improved */
    .action-options .threedots-img {
        padding: 8px;
        border-radius: 8px;
        background: #f3f4f6;
        transition: all 0.2s ease;
    }

    .action-options .threedots-img:hover {
        background: #e5e7eb;
    }

    .action-options .action-list ul li {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Status badges compact but visible */
    .status-badge,
    .badge {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 600;
    }

    /* Bulk selection card */
    #print-label-card .card {
        border-radius: 12px;
        background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
        border: 1px solid #d1deff;
    }

    #print-label-card .input-group-text {
        background: var(--primary-600, #6366f1);
        color: #fff;
        font-weight: 600;
        border: none;
    }

    #print-label-card .btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Checkbox styling */
    .checkbox-cell input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary-600, #6366f1);
    }

    /* Actions card layout */
    #order-id-card .card-body {
        flex-direction: column;
        gap: 12px;
    }

    #order-id-card .input-group {
        max-width: 100% !important;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    /* Table height adjustment for bottom nav */
    .orders-section-tabs .table-container,
    #order-content-div {
        max-height: calc(100vh - 380px) !important;
    }

    /* Tabs wrapper padding */
    .mobile-tabs-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }

    /* Even more compact tabs */
    .custom-nav-tabs-2 .nav-link {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }

    /* Further compact table */
    .table-row th,
    .table-row td {
        padding: 8px 6px;
        font-size: 11px;
    }

    /* Cards padding adjustment */
    #order-id-card .card,
    #print-label-card .card {
        padding: 12px !important;
    }

    /* Input group tighter */
    .input-group .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .input-group .btn {
        padding: 10px 12px;
    }

    #searchCriteriaDropdown {
        padding: 10px 10px;
        font-size: 11px;
    }

    /* Tooltip adjustment */
    .tooltip {
        left: auto;
        right: 0;
        max-width: 220px;
    }

    /* Copy icon adjustment */
    .copy-text-awb {
        top: -22px;
    }

    /* Bulk action buttons - horizontal scroll */
    #print-label-card .input-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #print-label-card .btn {
        font-size: 11px;
        padding: 6px 10px;
        flex-shrink: 0;
    }

    #print-label-card .input-group-text {
        font-size: 12px;
        padding: 6px 10px;
        flex-shrink: 0;
    }

    /* Offcanvas filter mobile */
    .offcanvas {
        width: 100% !important;
        max-width: 100% !important;
    }

    .offcanvas-header {
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
    }

    .offcanvas-body {
        padding: 16px;
    }

    /* Dashboard main body padding for mobile */
    .dashboard-main-body {
        padding: 12px;
        padding-bottom: 80px;
    }

    /* Action dropdown position fix for bottom nav */
    .action-options .action-list {
        top: auto !important;
        bottom: 100% !important;
        margin-bottom: 5px;
    }
}
