/* body {
    background-color: #fff;
} */
.boxbg:nth-child(1) .div-set {
    background: #deefff;
}
.boxbg:nth-child(2) .div-set {
    background: #ffecf5;
}
.boxbg:nth-child(3) .div-set {
    background: #e0ffec;
}
.boxbg:nth-child(4) .div-set {
    background: #fffbef;
}
/* .navBar {
    padding: 1rem;
    background-color: #f2f2f7;
} */
/* .main-content {
    background: #fff;
} */
/* .sideBar {
    background-color: #f2f2f7;
}
.accordion-item {
    background-color: #f2f2f7;
} */
.div-set {
    box-shadow: none;
}
.sideBar {
    box-shadow: none;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sideBar-logo {
    flex-shrink: 0;
}

.sideBar-content {
    flex: 1 1 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #0E2547 transparent;
    padding-bottom: 2rem;
}

.sideBar-content::-webkit-scrollbar {
    width: 4px;
}

.sideBar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sideBar-content::-webkit-scrollbar-thumb {
    background-color: #0E2547;
    border-radius: 4px;
}

.sideBar-content::-webkit-scrollbar-thumb:hover {
    background-color: #1a3a6b;
}
.header-txt {
    border-radius: 16px 16px 0px 0px;
    border-bottom: 1px solid #e7e7e7;
    /* background: #f2f2f7; */
    padding: 1rem;
}
.alert_txt {
    color: #000;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}
.maintxtDev:nth-child(1) .alert-txt {
    background-color: #f5f5f5;
}
.maintxtDev:nth-child(2) .alert-txt {
    background-color: #fffbef;
}
.maintxtDev:nth-child(3) .alert-txt {
    background-color: #fff;
}
.maintxtDev:nth-child(4) .alert-txt {
    background-color: #f0fff0;
}
.maintxtDev:nth-child(5) .alert-txt {
    background-color: #f5f5f5;
}
/* .table-custom .table thead th {
    background-color: #f2f2f7;
} */
.bkhCancelBtn {
    padding: 16px;
    background: #909090 !important;
    border-color: #909090;
}
.form-switch .form-check-input {
    width: 16%;
    margin-right: 8px !important;
}
.form-switch .width-set{
    width: 2.8rem!important;
}
.mainCard {
    border-radius: 0px 4px 4px 4px;
    border: 1px solid #e1e1e1;
    background: #fff;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.12);
    padding: 2rem 1rem;
}
.flight-input {
    padding: 12px;
}
.cardImg {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    border: 1px solid var(--light-gray-button, #dadada);
    background: var(--white, #fff);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
    transition: transform 0.5s ease;
    height: 250px;
}
img.imgStyle {
    width: 203px;
    height: 232px;
}
.flex_sect {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.badgTxt {
    position: absolute;
    top: 4%;
    left: 5%;
}
.ImgCard {
    position: relative;
}
.cardImg:hover {
    transform: scale(1.03) !important;
    cursor: pointer;
}
/* a{
    color: unset !important;
} */
.sid_hover > li > a:hover {
    color: var(--wColor) !important;
}
.sid_hover:hover {
    background-position: left bottom !important;
    color: var(--wColor) !important;
}
.sid_hover:hover img.pe-1 {
    filter: invert(1);
}
.sid_hover {
    background: linear-gradient(to right, var(--theme-hover) 50%, transparent 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: all 0.6s ease-out !important;
    padding: 0;
    margin: 0;
    text-decoration: none;
}
.sid_hover > li {
    list-style: none !important;
    padding: 1rem 1.25rem;
}
.sid_hover > li > a {
    text-decoration: none;
    color: var(--bColor);
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    transition: all 0.5s ease-out !important;
}
.checked {
    color: orange;
  }
  .labelBottomtxt {
    display: flex;
    gap: 32px;
    align-items: baseline;
}
.rating {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
img.ic_pad {
    background: #737373;
    padding: 2px;
    border-radius: 10px;
    filter: invert(1);
    margin-right: 11px;
}

.remo_bg_color {
    border-left: none;
    border-right: none;
}
.description_introio {
    padding-left: 26px;
}
img.ic_pad2 {
    background: green;
    padding: 4px;
    border-radius: 100%;
    margin-right: 11px;
}
img.ic_pad3 {
    background: orange;
    padding: 4px;
    border-radius: 100%;
    margin-right: 11px;
}
img.ic_pad4 {
    background: darkblue;
    padding: 4px;
    border-radius: 100%;
    margin-right: 11px;
}
.ic_pad5{
    background: red;
    padding: 4px;
    border-radius: 100%;
    margin-right: 11px;
}
.fle_dev {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fle_dev2 {
    display: flex;
    gap: 12px;
}
.tourOpert {
    padding: 1rem 0.8rem;
    background: #f2f2f7;
    border-radius: 8px;
}
#profile-description {
    max-width: 400px; 
    margin-top: 10px; 
    position:relative;
  }
  #profile-description .text {
    margin-bottom: 5px; 
  }
  #profile-description .show-more {
    cursor: pointer;
  }
  #profile-description .show-more:hover { 
      color: #1779dd;
  }
  #profile-description .show-more-height { 
    /* height: 20px; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  span.moreTxt:hover {
    border-bottom: 1px solid;
}
p.dateflex {
    display: flex;
    align-items: center;
}
img.imMar {
    margin-right: 12px;
}
.txt-flex {
    display: flex;
    justify-content: space-between;
}
.navBar > .notification-div > .dropdown > .dropdown-menu {
    background-color: #fff !important;
}
.accordion-item {
    border: 0;
}

/* ============================================================
   B2B Portal — Responsive Styles
   Breakpoints: 992px (tablet) | 768px (mobile) | 576px (small)
   ============================================================ */

/* --- Hamburger Toggle Button (mobile only) --- */
.mobile-hamburger {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.2s ease;
}
.mobile-hamburger:hover,
.mobile-hamburger:focus {
    background: #f0f0f0;
    outline: none;
}

/* --- Sidebar Mobile Close Button --- */
.sidebar-close-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.sidebar-close-btn:hover {
    background: rgba(0,0,0,0.08);
    color: #000;
}

/* --- Sidebar logo: override padding when flex --- */
.sideBar-logo.d-flex.align-items-center {
    padding: 14px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    min-height: 64px;
}

/* Cap the logo image height so it doesn't dominate the sidebar */
.sideBar-logo .sideLogo {
    max-height: 44px;
    width: auto;
    max-width: 140px;
    -o-object-fit: contain;
       object-fit: contain;
}

/* ============================================================
   Tablet: 992px and below
   ============================================================ */
@media (max-width: 991.98px) {

    /* Show hamburger button */
    .mobile-hamburger {
        display: flex;
    }

    /* Show sidebar close button */
    .sidebar-close-btn {
        display: flex;
    }

    /* Sidebar: hidden at start, slides in as full-screen drawer */
    .sideBar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 0 !important;
        height: 100vh !important;
        overflow: hidden !important;
        z-index: 1055 !important;
        box-shadow: none !important;
        transition: none !important;
        display: flex !important;
        flex-direction: column !important;
        background-color: #fff !important;
    }

    /* Sidebar open: show drop shadow */
    .sideBar.d-block {
        box-shadow: 4px 0 24px rgba(0,0,0,0.22) !important;
    }

    /* Sidebar content: fill all height below logo */
    .sideBar-content {
        flex: 1 1 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Remove main content left padding — sidebar is overlay */
    .main-div {
        padding-left: 0 !important;
    }

    /* Navbar: align center & add gap between hamburger and content */
    .navBgClr.sticky-top.navBar-scroll nav.navBar.flex-between {
        align-items: center !important;
        padding: 8px 12px !important;
        gap: 0.5rem;
    }

    nav.navBar.flex-between {
        align-items: center !important;
    }

    /* Breadcrumb width: auto on tablet */
    .sideBar-div + .navBgClr.sticky-top.navBar-scroll .navBar-head ol.breadcrumb {
        width: auto;
        max-width: 240px;
    }

    /* NavBar head: shrink to fit */
    .navBar-head {
        flex: 1;
        min-width: 0;
    }

    /* Welcome heading: truncate */
    .navBar-head .breadCrumb-nav h1 {
        font-size: 16px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 220px;
    }
}

/* ============================================================
   Mobile: 768px and below
   ============================================================ */
@media (max-width: 767.98px) {

    /* Navbar: single clean row — hamburger | title | icons */
    .navBgClr.sticky-top.navBar-scroll nav.navBar.flex-between {
        flex-wrap: nowrap !important;
        padding: 0 12px !important;
        justify-content: space-between;
        align-items: center !important;
        gap: 8px;
        min-height: 54px;
        border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }

    /* Hide PNR search form in top bar — too wide for mobile */
    .navBgClr.sticky-top.navBar-scroll .form-group.has-search {
        display: none !important;
    }

    /* NavBar head: take remaining space, clip overflow */
    .navBar-head {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    /* Hide breadcrumb list inside navbar on mobile — too cluttered */
    .navBar-head .breadCrumb-nav nav[aria-label="breadcrumb"],
    .navBar-head .breadCrumb-nav .breadcrumb {
        display: none !important;
    }

    /* Welcome heading: compact, single line */
    .navBar-head .breadCrumb-nav h1,
    .breadCrumb-nav h1 {
        font-size: 14px !important;
        font-weight: 600 !important;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }

    /* Notification + wallet + profile icons area
       Override app.css @450px rule: .notification-div { width: 100% }
       which breaks the single-row navbar layout */
    .notification-div.d-flex {
        flex-shrink: 0;
        align-items: center;
        gap: 4px !important;
        width: auto !important;
    }

    /* Bell icon wrapper: proper tap target */
    .navbar .navbar_right .notifications .icon_wrap {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f5f5f5;
    }

    /* Bell icon size */
    .navbar .navbar_right .notifications .icon_wrap i.far.fa-bell {
        font-size: 17px;
        color: #333;
    }

    /* Notification badge dot: keep visible */
    .navbar .navbar_right .notifications .icon_wrap .bg-danger.dots {
        top: 3px !important;
        right: 3px !important;
    }

    /* Wallet dropdown toggle: icon-only compact */
    .notification-div.d-flex .dropdown.d-flex.align-items-center > a.me-3 {
        margin-right: 0 !important;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f5f5f5;
        padding: 8px;
    }

    /* Profile button: avatar only — hide name text */
    .nav-username {
        display: none !important;
    }

    /* Profile dropdown toggle: no extra padding, tight */
    .notification-div .dropdown > .btn.dropdown-toggle {
        padding: 2px 4px !important;
        gap: 0 !important;
    }

    /* Remove dropdown caret on mobile (avatar is obvious toggle) */
    .notification-div .dropdown > .btn.dropdown-toggle::after,
    .notification-div .dropdown > .btn.dropdown-toggle::before,
    .navBar > .notification-div > .dropdown-toggle::after,
    .navBar > .notification-div > .dropdown-toggle::before {
        display: none !important;
    }

    /* Hide notification_dd arrow triangle — dropdown is position:fixed on mobile
       so the ::before triangle points to wrong location */
    .notification_dd::before {
        display: none !important;
    }

    /* Avatar circle: proper size on mobile */
    .profile-img {
        width: 34px !important;
        height: 34px !important;
        margin-right: 0 !important;
        border-radius: 50% !important;
        overflow: hidden;
        flex-shrink: 0;
    }
    .profile-img img {
        width: 34px !important;
        height: 34px !important;
        -o-object-fit: cover;
           object-fit: cover;
        border-radius: 50%;
    }

    /* Notification dropdown: right-aligned, won't go off-screen */
    .notification_dd {
        left: auto !important;
        right: 0 !important;
        width: min(300px, calc(100vw - 20px)) !important;
    }

    /* Wallet dropdown: right-aligned, compact */
    ul.dropdown-menu.p-3.px-2.rounded.scroll-smoth {
        min-width: 210px !important;
        max-width: 240px !important;
        right: 0 !important;
        left: auto !important;
    }

    /* Profile dropdown: align to right edge */
    .dropdown-menu-set {
        right: 0 !important;
        left: auto !important;
        min-width: 180px;
    }

    /* Main content: less padding */
    .main-content {
        padding: 0.5rem !important;
    }

    /* Header pad: tighter */
    .header-pad {
        padding: 0.6rem 0 0.4rem !important;
    }

    /* Breadcrumb body below navbar */
    .breadCrumb-body {
        padding: 0.4rem 0.75rem 0 !important;
    }

    /* Fix sticky content top offset */
    .sideBar-div + .navBgClr.sticky-top.navBar-scroll + .pt-4.d-none.breadCrumb-body + .row,
    .sideBar-div + .navBgClr.sticky-top.navBar-scroll + .pt-4.d-none.breadCrumb-body + div {
        padding-top: 10px !important;
    }

    /* Dashboard stat cards: 2 per row on mobile */
    .row.gy-3.pad-b > .col-md-3,
    .row.gy-3.pad-b > .col-sm-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* News/Top-agents full width on mobile */
    .row.gy-3.pad-b > .col-md-8,
    .row.gy-3.pad-b > .col-md-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Promotions table: full width */
    .col-md-5 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Tables: always scrollable horizontally */
    .table-custom {
        overflow-x: hidden;
    }
    .table-custom .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        min-height: 100px !important;
    }

    /* Table font size: slightly smaller */
    .table-custom .table thead th,
    .table-custom .table tbody td {
        font-size: 12px;
        padding: 0.45rem 0.6rem;
    }

    /* Card image: vertical on mobile */
    .cardImg {
        flex-direction: column !important;
        height: auto !important;
    }
    img.imgStyle {
        width: 100% !important;
        height: 160px !important;
        -o-object-fit: cover;
           object-fit: cover;
    }

    /* Modal: fill most of screen on mobile */
    .modal-dialog:not(.modal-xl):not(.modal-fullscreen) {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem) !important;
    }

    /* Charts */
    .chart-dev {
        padding: 1rem 0.75rem;
    }
    .mapChart ul {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .mapChart ul li {
        width: 45%;
    }

    /* Action buttons: wrap */
    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-wrap: wrap;
    }

    /* Tour card */
    .cardImg:hover {
        transform: none !important;
    }

    /* Flight search tabs: no overflow */
    .tab-content {
        overflow-x: hidden;
    }

    /* Filter forms: stack items */
    .filter_search_form .row > [class*="col-"] {
        margin-bottom: 0.4rem;
    }
}

/* ============================================================
   Small Mobile: 576px and below
   ============================================================ */
@media (max-width: 575.98px) {

    /* Dashboard stat cards: full-width */
    .row.gy-3.pad-b > .col-md-3,
    .row.gy-3.pad-b > .col-sm-4,
    .row.gy-3.pad-b > .col-sm-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Sidebar: full width when open on very small screens */
    .sideBar.d-block {
        width: 100vw !important;
    }

    /* Navbar: ultra-compact, maintain min-height */
    .navBgClr.sticky-top.navBar-scroll nav.navBar.flex-between {
        padding: 0 8px !important;
        min-height: 50px;
        gap: 6px;
    }

    /* Welcome title: very compact */
    .navBar-head .breadCrumb-nav h1,
    .breadCrumb-nav h1 {
        font-size: 12px !important;
        max-width: 110px;
    }

    /* Hamburger: slightly smaller */
    .mobile-hamburger {
        padding: 5px 8px;
        font-size: 1rem;
    }

    /* Bell icon wrapper: slightly smaller */
    .navbar .navbar_right .notifications .icon_wrap {
        width: 32px;
        height: 32px;
    }
    .navbar .navbar_right .notifications .icon_wrap i.far.fa-bell {
        font-size: 15px;
    }

    /* Wallet icon: smaller tap target */
    .notification-div.d-flex .dropdown.d-flex.align-items-center > a.me-3 {
        width: 32px;
        height: 32px;
        padding: 7px;
    }

    /* Avatar: smaller */
    .profile-img {
        width: 30px !important;
        height: 30px !important;
    }
    .profile-img img {
        width: 30px !important;
        height: 30px !important;
    }

    /* Notification dropdown: near full width, fixed position */
    .notification_dd {
        width: calc(100vw - 16px) !important;
        right: 8px !important;
        left: auto !important;
    }

    /* Tables: more compact */
    .table-custom .table thead th,
    .table-custom .table tbody td {
        font-size: 11px;
        padding: 0.35rem 0.4rem;
    }

    /* Div-set: smaller min-height */
    .div-set {
        min-height: 120px;
    }

    /* Buttons: smaller */
    .btn-sm {
        font-size: 11px;
        padding: 0.28rem 0.45rem;
    }

    /* Inputs: readable font */
    .form-control,
    .form-select {
        font-size: 13px;
    }

    /* Breadcrumb font: smaller */
    li.breadcrumb-item {
        font-size: 10px !important;
    }

    /* Modals: near full-screen */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem) !important;
    }

    /* Header overview title */
    .header-pad h3 {
        font-size: 14px;
    }

    /* Main content: minimal padding */
    .main-content {
        padding: 0.4rem !important;
    }
}
/* Nav tabs: horizontal scroll on mobile */
@media (max-width: 767.98px) {
    .nav.nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .nav.nav-tabs .nav-item {
        flex-shrink: 0;
    }
    .nav.nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 12px;
        padding: 0.4rem 0.7rem;
    }

    /* Card header on mobile */
    .card-header {
        padding: 0.75rem;
    }
    .card-header h4 {
        font-size: 15px;
        margin-bottom: 0.25rem;
    }

    /* Container fluid: no side padding on tiny screens */
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Action buttons row: wrap */
    .btn-group {
        flex-wrap: wrap;
    }

    /* Badges in filter buttons: keep visible */
    .nav-link .badge {
        font-size: 9px;
        padding: 2px 4px;
    }
}

/* ---- Critical overflow fixes (agent layout) ---- */
button.form-control.search-btn1.btn-sm {
    position: static !important;
    right: auto !important;
}

.main-div,
.main-content {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .ui-theme-settings {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .div-set {
        min-height: 110px !important;
        padding: 12px !important;
        word-break: break-word;
        overflow: hidden;
    }
    .div-set label.text-sm {
        font-size: 11px !important;
        white-space: normal !important;
        word-break: break-word;
        display: block;
        line-height: 1.3;
    }
    .div-set p.text-xxlg {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }
    img {
        max-width: 100%;
    }
}

/* ================================================================
   ROUND 4 — Global table scroll, flight filters, nav polish
   ================================================================ */

/* ---- Tablet & below (≤ 991px) ---- */
@media (max-width: 991.98px) {

    /* Make all card bodies scrollable — tables inside will scroll */
    .card-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Flight filter bar: make 5 selects horizontally scrollable */
    .flight-search-form .flex-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .flight-search-form .flex-between .form-check {
        width: 100%;
    }
    .flight-search-form .flex-between > .d-flex.align-items-center {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        width: 100%;
        gap: 0.3rem;
    }
    .flight-search-filter {
        flex-shrink: 0 !important;
        min-width: 80px !important;
        width: auto !important;
        font-size: 12px;
        padding: 0.25rem 0.4rem !important;
    }
}

/* ---- Mobile (≤ 767px) ---- */
@media (max-width: 767.98px) {

    /* Bootstrap negative-margin rows inside main-content */
    .main-content .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Breadcrumb: horizontal scroll rather than wrapping */
    .breadCrumb-nav .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        font-size: 11px;
    }
    .breadCrumb-nav .breadcrumb-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Welcome heading: truncate if name is long */
    .breadCrumb-nav h1 {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 160px);
    }

    /* Flight date row: stack depart + return */
    .flight-dateSet {
        flex-direction: column;
        gap: 0.5rem;
    }
    .flight-searchdetail {
        width: 100%;
    }
    .flight-dateSet .roundTrip {
        padding-left: 0 !important;
        display: block !important;
    }

    /* Card header: reduce padding */
    .card-header {
        padding: 0.6rem 0.75rem;
    }

    /* Table cells: smaller font to fit more on screen */
    .table td, .table th {
        font-size: 12px;
        padding: 0.4rem 0.5rem;
    }

    /* Filter search form: stack inputs */
    .filter_search_form .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }

    /* Buttons group in card headers: wrap */
    .card-header .btn,
    .header-pad .btn {
        font-size: 12px;
        padding: 0.3rem 0.6rem;
    }
}

/* ---- Small mobile (≤ 575px) ---- */
@media (max-width: 575.98px) {

    /* Flight search: From / To inputs stack vertically */
    .flight-search-form .row.gy-3 > .col-lg-6 > .row > .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    /* Flight search date + search button: full width */
    .flight-search-form .col-md-9,
    .flight-search-form .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Card body: reduce padding on tiny screens */
    .card-body {
        padding: 0.6rem;
    }

    /* Notification count badge: keep visible */
    .notiCount {
        font-size: 10px;
        min-width: 18px;
        height: 18px;
    }
}

/* ---- Table container variants: all scrollable on mobile ---- */
@media (max-width: 991.98px) {
    .table-container,
    .iq-card-body,
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ================================================================
   PASSENGER DROPDOWN FIX — Allow popup to appear on mobile
   ================================================================ */
@media (max-width: 991.98px) {

    /* The top row with One Way / Passengers / Economy:
       Must be overflow:visible so the absolute-position dropdowns are not clipped */
    .flight-search-form > .d-flex:first-child {
        overflow: visible !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding-bottom: 0.75rem !important;
        position: relative;
    }

    /* Each of the three dropdown triggers: equal-width, readable size */
    .flight-search-form .dropdown-flight,
    .flight-search-form .dropdown-passanger,
    .flight-search-form .dropdown-flightSeats {
        flex: 1 1 auto;
        min-width: 100px;
        position: relative;
    }

    /* Passenger (adultPass) popup: ensure it's not clipped */
    .flight-search-form .adultPass,
    .flight-search-form .passengerCont {
        z-index: 1050 !important;
        width: 230px !important;
    }

    /* adultRow: Adults / Childs / Infant labels + +/- controls */
    .flight-search-form .adultRow {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        gap: 0.5rem;
    }

    /* Icons inside adultRow labels */
    .flight-search-form .adultRow label {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 13px;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
    }

    /* Quantity +/- buttons: keep tap-friendly size */
    .flight-search-form .quantity__minus,
    .flight-search-form .quantity__plus {
        width: 26px !important;
        height: 26px !important;
        line-height: 26px !important;
        font-size: 16px;
    }

    /* Quantity number input */
    .flight-search-form .quantity__input,
    .flight-search-form .quantity__input1 {
        width: 30px !important;
        height: 26px !important;
        text-align: center;
        font-size: 14px;
    }

    /* Passenger trigger input: don't overflow button */
    .flight-search-form .dropdown-passanger .dropdown-btn input.total-passenger {
        width: 80px;
        min-width: 60px;
    }
}

/* On very small screens: stack passenger dropdown if it would clip right edge */
@media (max-width: 575.98px) {
    .flight-search-form .adultPass,
    .flight-search-form .passengerCont {
        left: 0 !important;
        right: auto;
        width: calc(100vw - 40px) !important;
        max-width: 280px !important;
    }
}

/* ================================================================
   FLIGHT FORM MOBILE — Inline passenger section + full form layout
   ================================================================ */
@media (max-width: 767.98px) {

    /* Top row: three dropdowns wrap, don't scroll */
    .flight-search-form > .d-flex:first-child {
        overflow: visible !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        padding-bottom: 0 !important;
        align-items: flex-start !important;
    }

    /* One Way and Economy: side by side at 50% each */
    .flight-search-form .dropdown-flight {
        flex: 0 0 50%;
        width: 50%;
        padding-right: 0.25rem;
        padding-bottom: 0.5rem;
    }
    .flight-search-form .dropdown-flightSeats {
        flex: 0 0 50%;
        width: 50%;
        padding-left: 0.25rem;
        padding-bottom: 0.5rem;
    }
    /* Remove right margin that pushes items off screen */
    .flight-search-form .dropdown-flight.me-3,
    .flight-search-form .dropdown-passanger.me-3 {
        margin-right: 0 !important;
    }

    /* Passenger section: full width, always show inline on mobile */
    .flight-search-form .dropdown-passanger {
        flex: 0 0 100%;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    /* Hide the dropdown-btn trigger (icon + "0 Adult" text) — replace with heading */
    .flight-search-form .dropdown-passanger > .dropdown-btn {
        display: none !important;
    }

    /* Show adultPass inline, full-width — no popup on mobile */
    .flight-search-form .adultPass {
        display: block !important;
        position: static !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        border: 1px solid #076CC9 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 0;
    }

    /* passengerCont: also make static/inline */
    .flight-search-form .passengerCont {
        position: static !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        border: none !important;
        box-shadow: none !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
    }

    /* input-group wrapper: no absolute */
    .flight-search-form #passanger-section {
        position: static !important;
    }

    /* Each passenger row: label on left, counter on right */
    .flight-search-form .adultRow {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .flight-search-form .adultRow:last-child {
        border-bottom: none;
    }

    /* Passenger label with icon */
    .flight-search-form .adultRow > label {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    /* Quantity controls: large enough for touch */
    .flight-search-form .quantity {
        display: flex !important;
        align-items: center !important;
        gap: 0;
    }
    .flight-search-form .quantity__minus,
    .flight-search-form .quantity__plus {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .flight-search-form .quantity__input,
    .flight-search-form .quantity__input1 {
        width: 34px !important;
        height: 30px !important;
        text-align: center !important;
        font-size: 14px !important;
        border: 1px solid #e1e1e1 !important;
    }
}

/* ============================================================
   NAVBAR — Elevate above all page content
   ============================================================ */
.navBgClr.sticky-top.navBar-scroll {
    z-index: 1049 !important;
}
/* Ensure no ancestor clips the notification/profile dropdowns */
.navBgClr.sticky-top.navBar-scroll,
nav.navBar,
div.navbar,
.notification-div,
.navbar_right,
.notifications {
    overflow: visible !important;
}
/* Notification dropdown: always on top */
.notification_dd {
    z-index: 9999 !important;
}
/* Profile & wallet dropdowns: always on top */
.dropdown-menu-set,
ul.dropdown-menu.p-3.px-2.rounded.scroll-smoth {
    z-index: 9999 !important;
}

/* Override app.css @450px: .notification-div { width: 100% } which
   breaks the single-row navbar on small phones */
@media (max-width: 450px) {
    .notification-div,
    .notification-div.d-flex {
        width: auto !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* Notification dropdown: fixed position so it's never clipped by
       ancestor overflow, and always sits above page content */
    .notification_dd {
        position: fixed !important;
        top: 58px !important;
        right: 8px !important;
        left: auto !important;
        width: min(320px, calc(100vw - 16px)) !important;
        max-height: 72vh;
        overflow-y: auto;
        z-index: 9999 !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    }
    /* Profile dropdown: absolute, right-aligned, high z-index */
    .dropdown-menu-set {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        min-width: 180px;
        z-index: 9999 !important;
    }
    /* Wallet dropdown: right-aligned */
    ul.dropdown-menu.p-3.px-2.rounded.scroll-smoth {
        right: 0 !important;
        left: auto !important;
        z-index: 9999 !important;
    }
}

/* ============================================================
   AGENT FLIGHT FORM — Mobile responsive (matches public form design)
   ============================================================ */
@media (max-width: 991.98px) {
    /* Remove fixed height so wrapped rows are visible */
    .d-flex.pb-4.res-flight-search {
        height: auto !important;
        flex-wrap: wrap !important;
        gap: 0.5rem;
        padding-bottom: 0.5rem !important;
    }

    /* Passenger section: full width, own row */
    .res-flight-search > .dropdown.pax-quantity {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
        order: 3;
    }

    /* Prefer airline: full width, own row */
    .res-flight-search > .selectDev {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    /* Passenger section: vertical list (matches user's adultPass/passengerCont style) */
    .pax-quantity > ul.infantsDrop {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        border: 1px solid #076cc9 !important;
        border-radius: 8px !important;
        overflow: hidden;
    }
    .pax-quantity > ul.infantsDrop > li:first-child {
        padding: 0;
        width: 100%;
    }
    .pax-quantity > ul.infantsDrop > li:first-child > div {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }
    /* Each passenger row: label left, counter right */
    .pax-quantity .adultRow {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        border-bottom: 1px solid #f0f0f0;
        border-right: none !important;
        flex-direction: row !important;
    }
    .pax-quantity .adultRow:last-child {
        border-bottom: none;
    }
    .pax-quantity .adultRow > label {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }
    .pax-quantity .adultRow > label small {
        font-size: 11px;
        font-weight: 400;
        color: #888;
    }
    .pax-quantity .adultRow .quantity {
        display: flex !important;
        align-items: center !important;
        gap: 0;
    }
    .pax-quantity .adultRow .quantity__minus,
    .pax-quantity .adultRow .quantity__plus {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .pax-quantity .adultRow .quantity__input {
        width: 34px !important;
        height: 30px !important;
        text-align: center !important;
        font-size: 14px !important;
        border: 1px solid #e1e1e1 !important;
    }
    /* Hide child/infant age dropdowns */
    .pax-quantity #dropDownId {
        display: none !important;
    }
}

