@media screen and (max-width:1600px) {
    .chat-container {
        height: calc(100vh - 385px);
    }

    .edit-order-body span.unit.pd-lbh {
        right: 12px;
    }

    .form-box-h {
        height: calc(100vh - 275px);
    }

    .bulk-import-input {
        min-height: 200px;
    }

    .support-page .table-container {
        height: calc(100vh - 270px);
    }

    .billing-page-container .table-container {
        height: calc(100vh - 269px);
    }

    .downloads-mis .table-container {
        height: calc(100vh - 269px);
    }

    .reports-mis .table-container {
        height: calc(100vh - 290px);
    }

    .additional-features {
        min-height: 20rem;
    }

    .settings-page-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .confirmation-modal.add-user-pop .modal-dialog {
        margin-top: 1%;
    }
}

@media screen and (max-width:1366px) {
    .manage-warehouse .box-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .add-warehouse-section .inputs-container {
        width: 90%
    }

    .action-options .action-list.processing {
        right: 59px;
        position: fixed;
        top: 48% !important;
        bottom: unset !important;
    }

}

@media screen and (max-width:1305px) {
    .create-rules-section .created-rules {
        width: fit-content;
        min-width: 100%;
    }

    .table-row th {
        white-space: nowrap;
    }
}

@media screen and (max-width:1266px) {
    .page-settings-container .tracking-form-container {
        width: 100%;
    }

    .page-settings-container .page-settings-main {
        flex-direction: column;
    }

    .page-settings-container .save-button-container {
        display: flex;
        justify-content: end;
    }

    .page-settings-container .live-preview {
        overflow-x: auto;
        width: 100%;
    }

    .page-settings-container .tracking-page-preview {
        min-width: 660px;
    }
}

@media screen and (max-width:1240px) {
    .ship-container-row {
        flex-wrap: wrap;
    }

    .new-scheduler-slider {
        width: 92%;
    }

    .settings-page-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width:1187px) {

    .orders-section-tabs .table-container::-webkit-scrollbar {
        height: 2px;
    }

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

    .cell-inside-box p {
        white-space: nowrap;
    }

    #navTabs .alignContent {
        gap: 8px;
    }

}

@media screen and (max-width:1142px) {

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

@media screen and (max-width:1140px) {

    .status-container-item .status-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .status-container-item .status-item .status-counter {
        margin-inline: 20px;
    }

    .support-right-section .search-container {
        width: auto;
    }
}

@media screen and (max-width:1095px) {}

@media screen and (max-width:993px) {}


@media screen and (max-width:991px) {

    /* #shipEaseNavTabs {
        display: none;
    } */

    #shipEaseNavbarNav {
        width: calc(100vw - 20px) !important;
    }

    .SideNav {
        left: -50px;
    }

    .SideNav.expanded {
        z-index: 6;
        left: 0;
    }

    .sidenav-toggle-icon {
        display: flex;
        gap: 3px;
        align-items: center;
    }

    .sidenav-toggle-icon img {
        width: 30px;
        height: 30px;
    }

    .sidenav-toggle-icon button {
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .rightContainer {
        margin-inline: 10px;
        width: calc(100vw - 20px) !important;
    }

    .cardsSpace {
        margin-bottom: 20px;
        padding-inline: 0;
    }

    .cardsSpace:first-of-type {
        order: 2;
        padding-right: 10px;
    }

    .cardsSpace:last-of-type {
        order: 3;
        padding-left: 10px;
    }

    #shipEaseNavTabs .nav-item {
        border: 1px solid var(--sh-primary-middle);
        padding: 0px 10px;
        border-radius: 0.5rem;
        width: 164px;
    }

    #shipEaseNavTabs .wr-nav-item {
        width: 185px;
    }

    .support-page #shipEaseNavTabs .nav-item {
        padding-block: 0px;
        width: 113px;
    }

    #shipEaseNavTabs .nav-item .dropdown-toggle {
        position: relative;
        padding-block: 3px;
    }

    #shipEaseNavTabs .nav-item .dropdown-toggle::after {
        position: absolute;
        right: 0;
        top: 10px;
    }

    #shipEaseNavTabs .dropdown-menu {
        top: 36px;
        left: 7px;
    }

    .m-inline-1 {
        margin-inline: 1px;
    }

    .last-thirty-table {
        overflow-x: auto;
    }

    .last-thirty-table::-webkit-scrollbar {
        height: 3px;
    }

    .search-container,
    .search-container label {
        width: fit-content;
    }

    .pagination-container {
        flex-direction: column;
    }

    .pagination-container .pagination {
        gap: 5px;
    }

    .pagination-container .pagination p {
        white-space: nowrap;
    }

    .pagination-container .items-per-page-dropdown select,
    .pagination-container .go-to-page input {
        width: 62px;
    }

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

    .ship-container-row .img-container {
        box-shadow: none;
    }

    .bulk-action-container {
        box-shadow: 0 0 18px 10px rgba(0, 0, 0, 0.1) !important;
        width: 100%;
    }

    .ba-inner-container {
        flex-direction: column;
    }

    .ba-actions {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
        gap: unset;
        padding-inline: 0px;
        margin-block: 10px;
        row-gap: 10px;
        justify-content: space-around;
    }

    .ba-actions.All {
        grid-template-columns: repeat(4, 1fr);
    }

    .ba-actions.Returns {
        grid-template-columns: repeat(2, 1fr);
    }

    .ba-rows-selected {
        padding-block: 3px;
        width: 100%;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .ba-actions li::after {
        display: none;
    }

    .ba-popup-container .ba-pop-show.open {
        max-width: 320px;
    }

    .ba-pop-show.weight-update.open {
        width: 80%;
        max-width: unset;
    }

    .ba-actions li {
        flex: 1 1;
    }

    .stepper-form-container .stepper-line {
        width: 98%;
    }

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

    .support-page .table-container {
        height: calc(100vh - 300px);
    }

    .billing-page-container .table-container {
        height: calc(100vh - 299px);
    }

    .selected-option {
        padding-block: 3px;
    }

    .rate-calc-page section.rate-des label {
        max-width: unset;
    }

    .ServiceabilityPage .pair-hr {
        margin-block: 15px 6px;
        width: 65%;
    }

    .search-container label input {
        height: 29px;
        padding-block: 0px;
    }

    .search-container.ot-filters label button {
        height: 29px;
    }

    .search-container.ot-filters label .css-15lsz6c-indicatorContainer,
    .search-container.ot-filters label .css-1xc3v61-indicatorContainer {
        padding-block: 0px;
    }

    .search-container.ot-filters label .css-1fdsijx-ValueContainer,
    .search-container.ot-filters label .css-hlgwow {
        height: 29px;
        padding-block: 0px;
    }

    .search-container.ot-filters label .css-qbdosj-Input,
    .search-container.ot-filters label .css-19bb58m {
        margin-block: 0px;
        padding-block: 0px;
    }

    .support-right-section .search-container,
    .support-right-section .search-container label,
    .support-right-section .search-container input,
    .support-right-section .search-container button {
        height: 29px;
    }

    .courier-dashboard .accordion-row hr {
        margin-block: 3px 14px !important;
    }

    .courier-dashboard .accordion-header {
        display: grid;
        grid-template-columns: auto auto;
        padding-bottom: 20px;
    }

    .courier-dashboard .accordion-header span {
        bottom: 0;
        position: absolute;
        right: 0;
    }

    .downloads-mis .table-container {
        height: calc(100vh - 298px);
    }

    .reports-mis .search-container>label,
    .reports-mis .search-container .option-labels>label,
    .reports-mis .search-container>div {
        flex: unset;
        width: 100%;
    }

    .reports-mis .search-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        row-gap: 10px;
        column-gap: 10px;
    }

    .reports-mis .search-container> :nth-child(1) {
        grid-column: 1 / span 3;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .reports-mis .search-container .date-picker-container {
        max-width: unset;
    }

    .reports-mis .table-container {
        height: calc(100vh - 389px);
    }

    .downloads-mis .search-container label button {
        height: 29px;
    }

    .downloads-mis .search-container .main-button-outline,
    .manage-warehouse .search-container .main-button-outline {
        padding-block: 3px;
    }

    .manage-warehouse .search-container label input {
        max-width: 207px;
    }

    .manage-warehouse .search-container label button {
        height: 29px;
    }

    .manage-warehouse .filter-container .nav-actions-container:hover .nav-actions-list {
        width: 182px;
        height: 160px;
    }

    .manage-warehouse .box-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .reports-mis .search-container .type-label {
        gap: 0;
        flex-direction: column;
        align-items: start;
    }

    .reports-mis .search-container .type-label .css-b62m3t-container {
        min-width: 100%;
    }

    .settings-page-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-container {
        height: calc(100vh - 106px);
    }

    #sidenav button.nav-link {
        cursor: pointer;
        padding-inline: 6px;
        white-space: nowrap;
        padding-block: 7px;
        border-radius: 0.5rem;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
    }
}



@media screen and (max-width:767px) {

    .signup-section .signup,
    .login-section .login {
        overflow-y: auto;
    }

    .signup-section .right-side,
    .login-section .right-side {
        background: url('./assets/image/bg_login.png');
        background-size: cover;
        background-position: center;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-block: 20px 200px;
    }

    .signup-section .left-side,
    .login-section .left-side {
        display: none;
    }

    .signup-section .signup .content,
    .login-section .signin .content {
        margin-inline: 0;
        max-width: 95%;
        min-width: 95%;
    }

    .signup-section .signup .signup-logo-container::before,
    .signup-section .signup .signup-logo-container img,
    .login-section .signin .login-logo-container::before,
    .login-section .signin .login-logo-container img {
        display: none;
    }

    .signup-section .signup .content img,
    .login-section .signin .content img {
        display: block;
    }

    .signup-section .signup .content {
        padding-inline: 20px;
        margin-bottom: 20px;
    }

    .signup-section .signup .signup-with-social {
        flex-direction: column;
    }

    .ba-pop-show.weight-update.open {
        width: 95%;
    }

    .weight-update .pop-content .lbh-labels .unit {
        width: 29px;
    }

    .volumetric-weight {
        font-size: 1rem;
    }

    .edit-order-section {
        width: 92%;
    }

    .stepper-form-container .inputs-container {
        width: 100%;
        max-width: 263px;
    }

    .stepper-form-container .inputs-container .row:nth-of-type(5) {
        flex-direction: column;
    }

    .stepper-form-container .steps-header {
        padding-top: 0;
    }

    .steps-header {
        height: 50px;
        position: relative;
        /* overflow: hidden; */
    }

    .steps-header>div:first-of-type {
        width: 288px;
        overflow: hidden;
        position: relative;
        height: 40px;
        margin-inline: auto;
    }

    .stepper-form-container .stepper-line {
        white-space: nowrap;
        transition: 1s;
        position: absolute;
        top: 12px;
    }

    .stepper-form-container .stepper-line .step-marker {
        margin-right: 21px;
        transition: 1s;
    }

    .stepper-form-container .stepper-line .step-marker {
        width: 100%;
    }

    .stepper-form-container .stepper-line .step-marker.completed {
        width: 0;
        overflow: hidden;
        margin-right: 0;
        transition: 1s;
    }

    .not-active-message {
        width: 90%;
        left: 5%;
    }

    .bulk-import-input {
        width: 95%;
    }

    .bo-or-text::after,
    .bo-or-text::before {
        width: 104px;
    }

    .support-page .help-button {
        top: -3px;
    }

    .zone-mapping-container {
        width: 90%;
        left: 5%;
    }

    .new-scheduler-slider .grid-container {
        display: flex;
        row-gap: 10px;
        flex-direction: column;
    }

    .new-scheduler-slider .grid-container .grid-item.component-2 {
        order: 2;
    }

    .courier-preference .courier-preference-list {
        flex-wrap: wrap;
    }

    .default-sorting-section {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 15px;
    }

    .default-sorting-section label {
        flex-direction: column;
    }

    .cardsSpace:last-of-type,
    .cardsSpace:first-of-type {
        padding-inline: 0px;
    }

    .cardsSpace {
        min-width: 100%;
    }

    .courier-dashboard .counters-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }

    .int-body {
        flex-direction: column;
    }

    .int-body>section {
        width: 100%;
    }

    .warehouse-edit.open {
        width: 92%;
    }

    .search-container .popular-search {
        flex-wrap: wrap;
    }
}

@media screen and (max-width:633px) {
    .edit-order-header h2 {
        font-size: 20px;
    }

    .settings-page-container {
        grid-template-columns: repeat(1, 1fr);
    }
}


@media screen and (max-width:628px) {
    .support-page .table-container {
        height: calc(100vh - 317px);
    }

    .awb-tracking-slider {
        width: 92%;
    }

    .morefilters-panel {
        width: 92%;
    }

    .filter-row {
        flex-direction: column;
    }

    .morefilters-panel label.filter-date-by select {
        width: 100%;
    }

    .manage-warehouse .box-grid {
        grid-template-columns: repeat(1, minmax(150px, 1fr));
    }

    .logo-file-upload .upload-logo-input span {
        font-size: 1rem;
    }

    .logo-file-upload .upload-logo-input span .upload-icon {
        font-size: 1.1rem;
    }
}

@media screen and (max-width:567px) {
    .edit-order-body .details-side .details-component .warehouse-options .sm-warehouse-item {
        width: 100%;
    }


    .courier-dashboard .counters-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}


@media screen and (max-width:543px) {

    .single-ship-container {
        top: 4%;
        height: 92vh;
        width: 90vw;
    }

    .single-ship-container.open {
        right: 4%;
    }

    .ship-container-row .ship-ratings {
        flex-direction: column-reverse;
        width: 100%;
        flex-wrap: wrap;
    }

    .rating label {
        font-size: 20px;
    }

    .ship-container-row {
        gap: 10px;
        padding-top: 21px;
        /* justify-content: end; */
        margin-inline: 12px;
        margin-top: 0px;
    }

    .ship-container-row p {
        font-size: 12px;
    }

    .ss-shipment-charges p {
        text-align: end;
    }

    .weight-update .pop-content .lbh-labels {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 0;
    }

    .weight-update .pop-content label {
        max-width: 130px;
    }

    .ba-actions {
        display: grid;
    }

    .edit-order-body .navigation-side ul li {
        font-size: 12px;
        padding-inline: 10px;
    }



    .edit-order-section.open-edit #sidepanel-closer {
        bottom: 36%;
        top: unset;
    }

    .mps-inputs label:nth-of-type(2) {
        width: auto;
    }

    .mps-inputs label:nth-of-type(2) input {
        min-width: unset;
        width: 100%;
    }

    .customer-details-form .details-form-row {
        padding-inline: 0px;
    }

    .reports-mis .search-container {
        display: flex;
        flex-wrap: wrap;
        row-gap: 4px;
        justify-content: flex-end;
    }

    .reports-mis .table-container {
        height: calc(100vh - 481px);
    }
}

@media screen and (max-width:511px) {
    .ServiceabilityPage .fm-lm-hr {
        width: 100%;
        height: 1px;
        min-height: unset;
        margin-block: 40px;
        background: linear-gradient(272deg, rgba(255, 255, 255, 1) 0%, rgba(25, 117, 201, 1) 25%, rgba(25, 117, 201, 1) 75%, rgba(255, 255, 255, 1) 100%);
    }

    .seller-profile-section {
        width: 23em;
    }
}

@media screen and (max-width:472px) {
    .orders-section-tabs .table-container {
        height: calc(100vh - 348px);
    }

    .pagination-container .go-to-page input {
        width: 30px;
        padding-left: 5px;
    }

    .pagination-container .go-to-page button {
        width: 30px;
    }

    .search-container label input {
        max-width: 320px;
    }

    .inputs-container label .select-field {
        min-width: unset;
        width: 100%;
    }

    .edit-order-body .details-side .details-component .inputs-container .row:nth-of-type(5)>label {
        width: 100%;
    }

    .edit-order-body .details-side .details-component .inputs-container .row:nth-of-type(5) {
        flex-direction: column;
    }

    .wallet-container.show {
        right: unset;
        left: unset;
    }

    .wallet-box {
        width: 95%;
    }

    .support-right-section .search-container,
    .support-right-section .search-container label,
    .support-right-section .search-container input {
        width: 171px;
    }

    .support-right-section {
        gap: 5px;
    }


    .ticket-slider {
        width: 90%;
    }

    .ticket-view-field {
        flex-direction: column;
    }

    .chat-container {
        height: calc(100vh - 411px);
    }

    .tracking-header {
        flex-direction: column;
        align-items: start;
        height: 100px;
        padding-block: 0;
        justify-content: center;
        gap: 5px;
    }

    .agreement-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .ndr-funnel .nav-item button {
        width: 81px;
    }

    .courier-dashboard .accordion-header {
        grid-template-columns: auto;
    }

    .card-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .notification-panel {
        width: 90%;
    }

    .iconContainer {
        width: 27px;
    }
}

@media screen and (max-width:400px) {

    .int-header-left {
        white-space: nowrap;
    }

    .int-header-left h2 {
        font-size: 18px;
    }

    .int-header-right {
        white-space: nowrap;
    }

    .int-header-right:after {
        left: 30px;
    }
}

@media screen and (max-width:375px) {
    .orders-section-tabs .table-container {
        height: calc(100vh - 348px);
    }

    .search-container label input {
        max-width: 277px;
    }

    .ba-pop-show .pop-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-block: 10px;
    }

    .edit-order-body label,
    .edit-order-body .input-field {
        width: 181px;
        min-width: unset;
    }

    .mps-inputs label {
        width: 47px
    }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    min-width: 70px;
    position: relative;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-600, #6366f1);
    background: rgba(99, 102, 241, 0.1);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-600, #6366f1);
    border-radius: 0 0 4px 4px;
}

.mobile-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.mobile-nav-item:active .mobile-nav-icon {
    transform: scale(0.9);
}

.mobile-nav-item span {
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Mobile More Menu Overlay */
.mobile-more-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1051;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-more-overlay.open {
    display: block;
    opacity: 1;
}

/* Mobile More Menu Panel */
.mobile-more-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 1052;
    max-height: 85vh;
    overflow-y: auto;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.mobile-more-menu.open {
    bottom: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.mobile-menu-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-header button {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.2s ease;
}

.mobile-menu-header button:hover {
    background: #eee;
    color: #333;
}

/* Mobile Wallet Section */
.mobile-wallet-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 0 16px 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.mobile-wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-wallet-info > iconify-icon {
    font-size: 32px;
    color: var(--primary-600, #6366f1);
}

.mobile-wallet-info > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-wallet-info .wallet-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.mobile-wallet-info .wallet-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.mobile-recharge-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-600, #6366f1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-recharge-btn:hover {
    background: var(--primary-700, #4f46e5);
    transform: translateY(-1px);
}

.mobile-recharge-btn iconify-icon {
    font-size: 16px;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #374151;
    background: #f9fafb;
    transition: all 0.2s ease;
    gap: 8px;
    border: 1px solid transparent;
}

.mobile-menu-item:hover {
    background: #eef2ff;
    color: var(--primary-600, #6366f1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-item iconify-icon {
    font-size: 26px;
}

.mobile-menu-item span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.mobile-menu-item.logout-item {
    background: #fef2f2;
    color: #dc2626;
}

.mobile-menu-item.logout-item:hover {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.2);
}

.mobile-menu-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 0 16px;
    background: linear-gradient(135deg, var(--primary-600, #6c63ff) 0%, #8b5cf6 100%);
    border-radius: 12px;
    color: #fff;
}

.mobile-menu-contact iconify-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.mobile-menu-contact div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu-contact span {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================
   HEADER RESPONSIVE STYLES
   ========================================== */
.header-search-box {
    position: relative;
}

.awb-search-input {
    width: 220px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    padding: 8px 40px 8px 16px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.awb-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.wallet-btn {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #d1deff;
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 48px;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-btn:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #dce6fc 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Mobile wallet compact button */
.mobile-wallet-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #d1deff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-wallet-compact iconify-icon {
    font-size: 18px;
}

.mobile-wallet-compact:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #dce6fc 100%);
}

/* Profile button */
.profile-btn {
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    border-color: var(--primary-600, #6366f1);
}

.profile-btn img {
    transition: transform 0.2s ease;
}

.profile-btn:hover img {
    transform: scale(1.05);
}

/* ==========================================
   MOBILE SPECIFIC RESPONSIVE STYLES
   ========================================== */
@media screen and (max-width: 991px) {
    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }

    /* HIDE SIDEBAR COMPLETELY ON MOBILE */
    .sidebar {
        display: none !important;
        visibility: hidden !important;
    }

    /* Make dashboard main take full width */
    .dashboard-main {
        margin-inline-start: 0 !important;
        width: 100% !important;
    }

    /* Add padding to bottom of main content to account for bottom nav */
    .dashboard-main-body {
        padding-bottom: 90px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        min-height: auto !important;
    }

    /* Body overlay when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Hide sidebar toggle buttons on mobile */
    .sidebar-mobile-toggle,
    .sidebar-toggle {
        display: none !important;
    }

    /* ================================================
       MOBILE HEADER FIXES
       ================================================ */
    .navbar-header {
        padding: 10px 12px !important;
    }

    .navbar-header > .row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .navbar-header .col-auto:first-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .navbar-header .col-auto:first-child h5 {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .navbar-header .col-auto:last-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .navbar-header .col-auto:last-child > div {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    /* Search box mobile */
    .navbar-header .search-box-wrapper {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .navbar-header .search-box-wrapper input {
        width: 100% !important;
        min-width: 100px !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    /* Wallet button mobile - compact */
    .navbar-header button[data-modal="RechargeModal"] {
        padding: 6px 10px !important;
        flex-shrink: 0 !important;
    }

    .navbar-header button[data-modal="RechargeModal"] span {
        font-size: 12px !important;
    }

    /* Hide credit left text on mobile */
    .navbar-header button[data-modal="RechargeModal"] > div:last-child:not(:first-child) {
        display: none !important;
    }

    /* Profile image mobile */
    .navbar-header .dropdown button img {
        width: 32px !important;
        height: 32px !important;
    }

    /* B2B toggle hide on mobile */
    .navbar-header .b2b-toggle-container {
        display: none !important;
    }

    /* Cards - cleaner padding */
    .card {
        border-radius: 12px !important;
    }

    .card.box-shadow {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    /* ================================================
       CRITICAL: FORCE SHOW ALL TABS ON MOBILE
       Override Bootstrap d-none d-md-block classes
       ================================================ */
    /* High specificity override for d-none d-md-block */
    ul.nav.custom-nav-tabs-2 > li.nav-item.d-none.d-md-block,
    ul.nav.custom-nav-tabs-2 > li.nav-item[class*="d-none"][class*="d-md-block"],
    .custom-nav-tabs-2 li.nav-item.d-none.d-md-block,
    .card-body ul.custom-nav-tabs-2 li.nav-item.d-none,
    ul.custom-nav-tabs-2 > li.d-none.d-md-block,
    #tabMenu > li.nav-item.d-none.d-md-block,
    #tabMenu li.nav-item.d-none,
    .nav.custom-nav-tabs-2 .nav-item.d-none,
    li.nav-item.d-none.d-md-block {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    /* Tab container wrapper with horizontal scroll */
    .card-body {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    /* Tab navigation mobile */
    .custom-nav-tabs-2,
    ul.nav.custom-nav-tabs-2,
    #tabMenu {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 8px;
        gap: 6px !important;
        min-width: max-content;
        width: max-content;
    }

    .custom-nav-tabs-2::-webkit-scrollbar,
    #tabMenu::-webkit-scrollbar {
        display: none;
    }

    /* Nav item display fix */
    .custom-nav-tabs-2 .nav-item,
    .custom-nav-tabs-2 > li,
    #tabMenu > li,
    #tabMenu .nav-item {
        display: flex !important;
        flex-shrink: 0 !important;
    }

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

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

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

    /* Hide mobile dropdown tab selector since we show all tabs */
    .custom-nav-tabs-2 > li.nav-item.d-block.d-md-none,
    #tabMenu > li.d-block.d-md-none {
        display: none !important;
    }

    /* Action dropdown improvements */
    .dropdown-menu {
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding: 8px !important;
        z-index: 99999 !important;
    }

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

    .dropdown-item {
        border-radius: 8px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        margin-bottom: 2px;
    }

    .dropdown-item:hover {
        background: #f3f4f6 !important;
    }

    /* Card overflow visible for dropdowns */
    .card {
        overflow: visible !important;
    }

    /* Mobile action button - primary style */
    .btn.dropdown-toggle {
        border-radius: 10px !important;
        font-weight: 600 !important;
    }

    /* Input group mobile */
    .input-group {
        flex-wrap: nowrap;
    }

    .input-group .form-control {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    /* 3 dot menu dropdown */
    #mobileDropdown {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px !important;
    }

    #mobileDropdown::after {
        display: none;
    }

    /* ================================================
       TABLE CONTAINER - FIXED HEIGHT + SCROLL
       Prevents page from going infinitely long
       ================================================ */
    .table-container,
    #order-content-div,
    .table-responsive,
    .orders-section-tabs .table-container {
        max-height: calc(100vh - 320px) !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

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

    /* Action options dropdown fix */
    .action-options {
        position: relative;
    }

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

    /* Pagination mobile styling */
    .pagination-container,
    .pagination-wrapper {
        padding: 12px;
        margin-top: 8px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .pagination .page-link {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media screen and (max-width: 767px) {
    /* Header responsiveness */
    .mobile-header-responsive {
        padding: 8px 12px !important;
        height: auto !important;
        min-height: 56px;
    }

    .mobile-header-responsive .row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-welcome-text h5 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .header-right-section {
        flex: 1;
        justify-content: flex-end;
    }

    .header-actions {
        gap: 8px !important;
    }

    /* Wallet button mobile */
    .wallet-btn {
        padding: 6px 10px;
        min-width: auto;
        height: 40px;
        border-radius: 12px;
    }

    .wallet-btn span {
        font-size: 13px !important;
    }

    /* Hide credit line on very small screens */
    .wallet-btn > div:nth-child(2) {
        display: none;
    }

    /* Mobile menu grid adjustment */
    .mobile-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Table container height for tablets/small screens */
    .table-container,
    #order-content-div,
    .table-responsive {
        max-height: calc(100vh - 340px) !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        min-width: 750px;
    }

    /* Dashboard main body padding */
    .dashboard-main-body {
        padding: 12px !important;
        padding-bottom: 90px !important;
    }

    /* Card adjustments */
    .card-body {
        padding: 12px !important;
        overflow-x: auto !important;
    }

    /* Tab styling for smaller tablets */
    .custom-nav-tabs-2 .nav-link,
    #tabMenu .nav-link {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    /* Bulk action container mobile */
    .bulk-action-container {
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        z-index: 999;
        border-radius: 0;
        margin: 0 !important;
    }

    .ba-inner-container {
        flex-direction: column;
        padding: 10px;
    }

    .ba-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .ba-actions li {
        font-size: 10px;
    }

    .ba-actions li iconify-icon {
        font-size: 16px;
    }

    /* Filter container mobile */
    .search-container {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .search-container label input {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Sliders and popups */
    .awb-tracking-slider,
    .single-ship-container,
    .edit-order-section,
    .morefilters-panel,
    .ticket-slider {
        width: 100% !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }

    .awb-tracking-slider.open,
    .single-ship-container.open,
    .edit-order-section.open,
    .morefilters-panel.open,
    .ticket-slider.open {
        right: 0 !important;
    }
}

@media screen and (max-width: 576px) {
    /* Header further adjustments */
    .header-welcome-text {
        display: none !important;
    }

    /* Hide sidebar toggle on small screens */
    .sidebar-mobile-toggle,
    .sidebar-toggle {
        display: none !important;
    }

    /* Wallet button extra compact */
    .wallet-btn {
        padding: 6px 8px;
        min-width: 80px;
    }

    /* Tab navigation even more compact */
    .custom-nav-tabs-2 .nav-link,
    #tabMenu .nav-link {
        padding: 5px 10px !important;
        font-size: 10px !important;
        border-radius: 15px;
    }

    /* Table height for small phones */
    .table-container,
    #order-content-div,
    .table-responsive {
        max-height: calc(100vh - 360px) !important;
    }

    /* Mobile menu grid 3 columns */
    .mobile-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 12px;
    }

    .mobile-menu-item {
        padding: 12px 6px;
    }

    .mobile-menu-item iconify-icon {
        font-size: 20px;
    }

    .mobile-menu-item span {
        font-size: 10px;
    }

    /* Orders section tabs mobile */
    #navTabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    #navTabs .alignContent {
        justify-content: flex-start;
        gap: 6px;
    }

    /* Bulk actions mobile */
    .ba-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Pagination mobile */
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pagination-container .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Modal adjustments */
    .confirmation-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .ba-popup-container .ba-pop-show.open {
        width: 95%;
        max-width: 95%;
        left: 2.5%;
        right: 2.5%;
    }

    /* Action dropdown buttons compact */
    .action-options .action-list {
        min-width: 140px;
    }

    /* Table row actions */
    .table-row td:last-child {
        min-width: 80px;
    }

    /* Bulk action bar adjustment for bottom nav */
    .bulk-action-container {
        bottom: 64px;
    }

    /* Dashboard main body extra padding */
    .dashboard-main-body {
        padding: 10px !important;
        padding-bottom: 90px !important;
    }

    /* Card body compact */
    .card-body {
        padding: 10px !important;
    }
}

@media screen and (max-width: 400px) {
    /* Extra small screens */
    .mobile-bottom-nav {
        height: 55px;
        padding: 0 5px;
    }

    .mobile-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }

    .mobile-nav-icon {
        font-size: 20px;
    }

    .mobile-nav-item span {
        font-size: 9px;
    }

    /* Table height adjustment for very small screens */
    .table-container,
    #order-content-div,
    .table-responsive {
        max-height: calc(100vh - 380px) !important;
    }

    /* Tab navigation tiny screens */
    .custom-nav-tabs-2 .nav-link,
    #tabMenu .nav-link {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }
}

/* ==========================================
   TABLET SPECIFIC STYLES (768px - 991px)
   ========================================== */
@media screen and (min-width: 768px) and (max-width: 991px) {
    /* Tablet optimizations */
    .dashboard-main-body {
        padding: 16px !important;
        padding-bottom: 90px !important;
    }

    /* Tab navigation tablet */
    .custom-nav-tabs-2 .nav-link,
    #tabMenu .nav-link {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }

    /* Table height for tablets */
    .table-container,
    #order-content-div,
    .table-responsive {
        max-height: calc(100vh - 280px) !important;
    }

    /* Mobile menu grid 4 columns on tablets */
    .mobile-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Cards better spacing on tablets */
    .card-body {
        padding: 16px !important;
    }
}

/* ==========================================
   GLOBAL MOBILE POLISH STYLES
   ========================================== */
/* Consistent button styling across mobile */
@media screen and (max-width: 991px) {
    .btn-primary-600 {
        background: linear-gradient(135deg, var(--primary-600, #6366f1) 0%, #8b5cf6 100%) !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
        transition: all 0.2s ease;
    }

    .btn-primary-600:hover,
    .btn-primary-600:focus {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    }

    .btn-outline-primary-600 {
        border: 2px solid var(--primary-600, #6366f1) !important;
        color: var(--primary-600, #6366f1) !important;
        background: transparent !important;
        transition: all 0.2s ease;
    }

    .btn-outline-primary-600:hover {
        background: var(--primary-600, #6366f1) !important;
        color: #fff !important;
    }

    /* Cards rounded corners */
    .card {
        border-radius: 16px !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        overflow: hidden;
    }

    .card.box-shadow {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    }

    /* Form elements consistent */
    .form-control {
        border-radius: 10px !important;
        border: 1px solid #e5e7eb !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        transition: all 0.2s ease;
    }

    .form-control:focus {
        border-color: var(--primary-600, #6366f1) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    }

    .form-select {
        border-radius: 10px !important;
        border: 1px solid #e5e7eb !important;
        padding: 10px 14px !important;
    }

    /* Badge improvements */
    .badge {
        border-radius: 8px !important;
        padding: 6px 10px !important;
        font-weight: 600 !important;
        font-size: 11px !important;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Better touch targets */
    button,
    .btn,
    a.dropdown-item,
    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Table wrapper */
    .table-responsive,
    .table-container {
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }

    /* Loading states */
    .loading-overlay {
        border-radius: 12px;
    }

    /* Pagination mobile */
    .pagination-container {
        padding: 12px;
        background: #f9fafb;
        border-radius: 12px;
        margin-top: 12px;
    }

    .pagination-container .pagination {
        gap: 4px;
    }

    .pagination-container .pagination .page-link {
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 600;
    }

    /* Modal improvements */
    .modal-content {
        border-radius: 20px !important;
        border: none !important;
        overflow: hidden;
    }

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

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        border-top: 1px solid #e5e7eb;
    }

    /* Offcanvas improvements */
    .offcanvas {
        border-radius: 20px 20px 0 0 !important;
    }

    .offcanvas-start {
        border-radius: 0 20px 20px 0 !important;
    }

    .offcanvas-end {
        border-radius: 20px 0 0 20px !important;
    }

    /* Mobile Tabs Wrapper - Horizontal Scroll */
    .mobile-tabs-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
    }

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

    .mobile-tabs-wrapper .nav.custom-nav-tabs-2 {
        display: flex !important;
        flex-wrap: nowrap !important;
        min-width: max-content;
        gap: 8px;
        padding: 0;
    }

    .mobile-tabs-wrapper .nav-item {
        flex-shrink: 0;
        display: block !important;
    }

    .mobile-tabs-wrapper .nav-link {
        white-space: nowrap;
        padding: 8px 14px !important;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Customer Support Card Tabs - Mobile */
    .custom-nav-tabs-2 > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        padding-bottom: 5px;
    }

    .custom-nav-tabs-2 > .row::-webkit-scrollbar {
        display: none;
    }

    .custom-nav-tabs-2 > .row > div[class*="col-"] {
        display: block !important;
        flex: 0 0 auto;
        width: auto !important;
        min-width: 140px;
        max-width: 180px;
    }

    .custom-nav-tabs-2 > .row > div.d-none.d-md-block {
        display: block !important;
    }

    .custom-nav-tabs-2 > .row .card {
        margin-bottom: 0;
    }

    .custom-nav-tabs-2 > .row .card-body {
        padding: 10px !important;
    }

    .custom-nav-tabs-2 > .row .w-64-px {
        width: 40px !important;
        height: 40px !important;
    }

    .custom-nav-tabs-2 > .row .w-40-px {
        width: 28px !important;
        height: 28px !important;
    }

    .custom-nav-tabs-2 > .row h6 {
        font-size: 12px !important;
        margin: 2px 0 !important;
    }

    .custom-nav-tabs-2 > .row .me-20 {
        margin-right: 8px !important;
    }
}
