﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

    /* Allow body scroll when modal is tall */
    /*body.modal-open {
        overflow-y: auto !important;
        padding-right: 0 !important;
    }*/

        /* Ensure modals display above all content */
        /*body.modal-open .modal {
            overflow-x: hidden;
            overflow-y: auto;
        }*/

.top-header {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #d32f2f;
}

    .logo span {
        color: #1976d2;
    }

.top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.lienamount-section {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: #ffecec;
    border-radius: 6px;
    color: red;
}

.lien-amount {
    font-weight: 600;
    color: red;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

.wallet-amount {
    font-weight: 600;
    color: #2e7d32;
}

.wallet-ledger-icon {
    cursor: pointer;
    color: #1976d2;
    font-size: 18px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

    .wallet-ledger-icon:hover {
        transform: scale(1.2);
        color: #1565c0;
    }

.refresh-icon {
    cursor: pointer;
    color: #666;
    font-size: 16px;
    margin-left: 8px;
}

.load-wallet-icon {
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    margin-left: 8px;
}

    .load-wallet-icon:hover {
        background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }

    .load-wallet-icon:active {
        transform: scale(0.95);
    }

.user-dropdown {
    position: relative;
}

.user-name {
    cursor: pointer;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 6px;
    font-weight: 500;
}

    .user-name:hover {
        background: #e0e0e0;
    }

.dropdown-menu-custom {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

    .dropdown-menu-custom.show {
        display: block;
    }

.dropdown-item-custom {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .dropdown-item-custom:last-child {
        border-bottom: none;
    }

    .dropdown-item-custom:hover {
        background: #f5f5f5;
    }

.search-section {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    padding: 20px 0;
    color: white;
}

.search-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.search-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: nowrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

    .search-field label {
        display: block;
        margin-bottom: 5px;
        color: #333;
        font-weight: 500;
        font-size: 14px;
    }

.content-body-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}


.control-label {
    display: block;
    margin-bottom: 3px;
    color: #555;
    font-weight: 500;
    font-size: 12px;
}


.input-wrapper {
    position: relative;
}

.swap-icon-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.swap-icon {
    background: white;
    border: 2px solid #323369;
    color: #323369;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .swap-icon:hover {
        background: #323369;
        color: white;
        transform: rotate(180deg);
    }

.date-shortcuts {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.date-shortcut-btn {
    padding: 9px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
}

    .date-shortcut-btn:hover {
        background: #e0e0e0;
    }

.search-btn-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-btn {
    padding: 9px 40px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
}

    .search-btn:hover {
        background: #b71c1c;
    }

.typeahead-dropdown {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
    width: 100%;
    display: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.typeahead-header {
    padding: 10px 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.typeahead-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

    .typeahead-item:last-child {
        border-bottom: none;
    }

    .typeahead-item:hover {
        background: #f0f7ff;
    }

.typeahead-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.typeahead-content {
    flex: 1;
}

.typeahead-city {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.typeahead-state {
    font-size: 12px;
    color: #999;
}

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

    .filter-group:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

    .filters-header h5 {
        margin: 0;
        font-weight: 700;
        color: #333;
        font-size: 18px;
    }

.clear-all-btn {
    background: none;
    border: none;
    color: #323369;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

    .clear-all-btn:hover {
        text-decoration: underline;
    }

.filter-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.filter-card {
    padding: 6px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .filter-card:hover {
        border-color: #323369;
        background: #f0f7ff;
    }

    .filter-card.active {
        border-color: #323369;
        background: #fffbea;
    }

.filter-card-icon {
    font-size: 24px;
    margin-bottom: 2px;
    line-height: 1;
}

.filter-card-label {
    font-size: 10px;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
}

.price-range-container {
    padding: 5px 0;
}

.price-range-slider {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #e8e8e8;
    position: relative;
    margin: 18px 0 15px 0;
}

.price-range-track {
    height: 100%;
    background: #323369;
    border-radius: 3px;
    position: absolute;
}

.price-range-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #323369;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
    top: -6.5px;
    cursor: pointer;
    transition: transform 0.1s;
}

    .price-range-handle:hover {
        transform: scale(1.15);
    }

.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.filter-group .form-control, .filter-group .form-control-sm {
    font-size: 13px;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    height: auto;
}

    .filter-group .form-control:focus, .filter-group .form-control-sm:focus {
        border-color: #323369;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
        outline: none;
    }

.sort-pills {
    margin-bottom: 20px;
}

.sort-pill {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

    .sort-pill:hover {
        background: #f8f9fa;
    }

    .sort-pill.active {
        background: #323369;
        color: white;
        border-color: #323369;
    }

    .sort-pill.sort-asc {
        background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    }

    .sort-pill.sort-desc {
        background: linear-gradient(135deg, #ff7400 0%, #323369 100%);
    }

.operator-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.operator-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .operator-header:hover {
        background: #e9ecef;
    }

.operator-name {
    font-weight: 600;
    font-size: 16px;
}

.operator-stats {
    font-size: 13px;
    color: #666;
}

.bus-list {
    display: none;
}

    .bus-list.expanded {
        display: block;
    }

.bus-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

    .bus-item:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

.bus-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
}

.bus-type {
    display: inline-block;
    padding: 4px 10px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 500;
}

.bus-berth-info {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.offer-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #FFF3E0;
    color: #E65100;
    border-radius: 6px;
    font-size: 12px;
    margin: 6px 8px 6px 0;
    font-weight: 500;
    border: 1px solid #FFE0B2;
}

    .offer-badge.pink {
        background: #FCE4EC;
        color: #C2185B;
        border-color: #F8BBD0;
    }

    .offer-badge.purple {
        background: #F3E5F5;
        color: #7B1FA2;
        border-color: #E1BEE7;
    }

.rating-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .rating-badge.yellow-rating {
        background: #FFC107;
        color: #333;
    }

.review-count {
    color: #666;
    font-size: 12px;
    margin-left: 4px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #666;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.2s;
}

    .icon-btn:hover {
        background: #f5f5f5;
        border-color: #999;
    }

.badge-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #E3F2FD;
    color: #1976D2;
    border-radius: 6px;
    font-size: 12px;
    margin: 0 6px;
    font-weight: 500;
}

.price-container {
    text-align: right;
}

.save-tag {
    background: #FFEB3B;
    color: #F57C00;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.price-final {
    background: #FFEB3B;
    color: #F57C00;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.seats-left {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 600;
    display: block;
    text-align: center;
}

.bus-time {
    font-size: 18px;
    font-weight: 600;
}

.bus-duration {
    color: #666;
    font-size: 13px;
}

.journey-timeline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.journey-point {
    text-align: center;
}

.journey-time {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.journey-city {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.journey-line-wrapper {
    flex: 1;
    text-align: center;
    position: relative;
}

.journey-line {
    height: 2px;
    background: linear-gradient(to right, #323369, #ff7400);
    position: relative;
}

.journey-duration {
    font-size: 12px;
    color: #666;
    background: white;
    padding: 2px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.bus-rating {
    color: #ff9800;
    font-weight: 600;
}

.bus-rating-yellow {
    color: #FFD700;
    font-weight: 600;
    background: #FFF9E6;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.discount-tag {
    background: #FFE5E5;
    color: #E74C3C;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 8px;
}

.view-seats-btn {
    background: #E17168 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    width: 100%;
}

    .view-seats-btn:hover {
        background: #D15F56 !important;
    }

.price-seats-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
    max-width: 200px;
    margin-bottom: -45px;
}

.amenity-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
}

.seat-modal .modal-dialog {
    max-width: 1200px;
    max-height: none;
    margin: 0.5rem auto;
}

.seat-layout {
    display: grid;
    gap: 6px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .seat-layout.layout-2x2 {
        grid-template-columns: repeat(5, 38px);
    }

    .seat-layout.layout-sleeper {
        grid-template-columns: repeat(4, 45px);
    }

    .seat-layout.layout-mixed {
        grid-template-columns: repeat(5, 40px);
    }

.seat {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
    background: white;
    min-width: 38px;
    min-height: 38px;
}

    .seat.sleeper {
        aspect-ratio: 2/1;
    }

    .seat.available:hover {
        border-color: #323369;
        transform: scale(1.1);
    }

    .seat.selected {
        background: #323369;
        color: white;
        border-color: #323369;
    }

    .seat.booked {
        background: #e0e0e0;
        color: #999;
        cursor: not-allowed;
    }

    .seat.ladies {
        background: #fce4ec;
        border-color: #f48fb1;
    }

    .seat.empty {
        border: none;
        cursor: default;
    }

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.results-section {
    display: none;
    margin-top: 30px;
}

.seatfilterbtns {
    font-size: 12px !important;
}

/* Bus Loader Styles */
.bus-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(1px);
}

.bus-loader-container {
    text-align: center;
    position: relative;
}

.bus-loader-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.bus-icon-loader {
    width: 250px;
    height: 250px;
    display: block;
    animation: busMove 2s ease-in-out infinite;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4));
}

@keyframes busMove {
    0%, 100% {
        transform: translateX(-70px);
    }

    50% {
        transform: translateX(70px);
    }
}

.loader-text {
    margin-top: 25px;
    font-size: 18px;
    font-weight: 600;
    color: #323369;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loader-dots {
    display: inline-block;
    width: 60px;
    text-align: left;
}

    .loader-dots::after {
        content: '...';
        animation: dots 1.5s steps(4, end) infinite;
    }

@keyframes dots {
    0%, 20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%, 100% {
        content: '...';
    }
}

.price-filter-btn {
    padding: 6px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
}

    .price-filter-btn:hover {
        border-color: #323369;
        background: #f0f7ff;
        color: #323369;
    }

    .price-filter-btn.active {
        background: #323369;
        color: white;
        border-color: #323369;
        font-weight: 600;
    }

#seatLayout {
    max-width: 100%;
    overflow-x: auto;
}

.seat-modal .modal-body {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 15px;
}

/* Tabs Active State */
.nav-tabs .nav-link.active {
    background: white !important;
    color: #323369 !important;
    border-bottom: 3px solid #323369 !important;
    font-weight: 700 !important;
}

.nav-tabs .nav-link {
    transition: all 0.3s;
}

    .nav-tabs .nav-link:hover {
        background: #f0f7ff;
        color: #323369;
    }

/* Hide scrollbars completely while maintaining scroll functionality */
#boardingPointsContainer,
#droppingPointsContainer,
.seat-modal .col-md-7,
.seat-modal .col-md-7 > div[style*="overflow-y: auto"],
#passengerModal .modal-body,
#busDetailsContent,
#boardingPointsList,
#droppingPointsList {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    #boardingPointsContainer::-webkit-scrollbar,
    #droppingPointsContainer::-webkit-scrollbar,
    .seat-modal .col-md-7::-webkit-scrollbar,
    .seat-modal .col-md-7 > div[style*="overflow-y: auto"]::-webkit-scrollbar,
    #passengerModal .modal-body::-webkit-scrollbar,
    #busDetailsContent::-webkit-scrollbar,
    #boardingPointsList::-webkit-scrollbar,
    #droppingPointsList::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
        width: 0;
        height: 0;
    }

/* Modal scrolling control */
.seat-modal .modal-content {
    max-height: none;
    display: flex;
    flex-direction: column;
}

.seat-modal .modal-dialog {
    display: flex;
    align-items: flex-start;
}

/* Seats area scrolls with modal body */
.seat-modal .col-md-7 {
    overflow-y: visible;
    overflow-x: hidden;
}

/* Right side boarding/dropping scrolls with modal body */
.seat-modal .col-md-5 {
    overflow-y: visible;
}

/* Keep modal footer visible and fixed at bottom */
.seat-modal .modal-footer {
    flex-shrink: 0;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Keep modal header visible and fixed at top */
.seat-modal .modal-header {
    flex-shrink: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Bus Details Modal Tabs */
.bus-detail-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    background: #f8f9fa;
}

    .bus-detail-tab:hover {
        background: #e9ecef;
        color: #333;
    }

    .bus-detail-tab.active {
        background: white;
        color: #323369;
        border-bottom: 3px solid #323369;
        font-weight: 600;
    }

/* Bus Details Content Area */
#busDetailsContent {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

#boardingPointsList,
#droppingPointsList {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

/* View More Buttons */
#viewMoreBoarding,
#viewMoreDropping {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: white;
    border: 2px solid #323369;
    border-radius: 6px;
    color: #323369;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    #viewMoreBoarding:hover,
    #viewMoreDropping:hover {
        background: #323369;
        color: white;
    }

@media (max-width: 768px) {
    .filters-section {
        position: static;
    }

    .seat-modal .modal-dialog {
        max-width: 95%;
        max-height: none;
        margin: 0.3rem auto;
    }

    .seat-modal .modal-content {
        max-height: none;
    }

    .seat-modal .modal-body {
        overflow-y: visible;
    }

    .seat-layout.layout-2x2 {
        grid-template-columns: repeat(5, 32px);
    }

    .seat {
        min-width: 32px;
        min-height: 32px;
        font-size: 9px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-field, .swap-icon-wrapper, .date-shortcuts, .search-btn-wrapper {
        width: 100%;
    }
}



/*Below css for TravelTrack and TravelHistory*/

.breadcrumb {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 30px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .breadcrumb a {
        color: white;
        text-decoration: none;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

        .breadcrumb a:hover {
            opacity: 1;
            text-decoration: underline;
        }

    .breadcrumb .current {
        font-weight: bold;
        opacity: 1;
    }

.page-indicator {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
}


.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #323369;
    }

    .radio-option label {
        font-size: 14px;
        cursor: pointer;
        color: #333;
    }

.form-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.btn-search {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

    .btn-search:hover {
        background: #c82333;
    }

.grid-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.grid-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
}

th {
    padding: 6px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
}

tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

    tbody tr:hover {
        background: #f8f9fa;
    }

td {
    padding: 6px;
    font-size: 12px;
    color: #555;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

    .status.confirmed {
        background: #d4edda;
        color: #155724;
    }

    .status.pending {
        background: #fff3cd;
        color: #856404;
    }

    .status.cancelled {
        background: #f8d7da;
        color: #721c24;
    }

    .status.success {
        background: #d4edda;
        color: #155724;
    }

    .status.failed {
        background: #f8d7da;
        color: #721c24;
    }

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.page-buttons {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

    .page-btn:hover:not(:disabled) {
        background: #f8f9fa;
    }

    .page-btn.active {
        background: #323369;
        color: white;
        border-color: #323369;
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}


/*end of travel track and travel history*/

/* Discount Save Tag Styling */
.discount-save-tag {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.container {
    margin-top: 10px;
}


/* ============================================
   CONSOLIDATED PAYOUT, PAYMENT LINKS, BBPS STYLES
   This section contains unified styles for:
   - MyPayouts
   - MyDirectPayouts
   - MyPaymentLinks
   - MyMultiPayouts
   - MyBBPS
   ============================================ */

/* Hidden columns & utilities */
.hdnboundcolmn {
    display: none;
}

.hidden {
    display: none !important;
}

.formgrouptransdetail {
    padding: 0px !important;
    margin: 0px !important;
}

.pull-right {
    float: right !important;
}

.text-bold {
    font-weight: 600;
}

/* Form control base size */
.form-control {
    font-size: 0.8rem;
}

/* ============================================
   PAYOUT CONTAINER & CARDS
   ============================================ */
.payout-container {
    max-width: 1400px;
    margin: 8px auto;
    padding: 0 12px;
}

    .payout-container > h5 {
        margin-top: 0px !important;
        margin-bottom: 5px !important;
        padding-top: 2px !important;
    }

.payout-card {
    background: white;
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    margin-top: 5px;
}

.payout-card-header {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
    padding: 7px 14px;
    border-radius: 6px 6px 0 0;
    margin: -12px -14px 10px -14px;
    font-size: 14px;
    font-weight: 600;
}

    .payout-card-header .row {
        margin: 0;
        align-items: center;
    }

.payout-card-body .table {
    border-radius: 6px;
    overflow: hidden;
}

.payout-card-body:has(.table) {
    padding: 0;
    margin: 0;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-row-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 7px;
}

.form-field-modern {
    flex: 1;
    min-width: 200px;
}

    .form-field-modern label {
        display: block;
        margin-bottom: 3px;
        color: #555;
        font-weight: 500;
        font-size: 12px;
    }

    .form-field-modern .form-control {
        border-radius: 5px;
        border: 1px solid #e0e0e0;
        padding: 6px 10px;
        font-size: 13px;
        transition: all 0.3s ease;
        height: 32px;
    }

        .form-field-modern .form-control:focus {
            border-color: #323369;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

    .form-field-modern select.form-control {
        padding: 6px 12px;
        line-height: 1.5;
    }

/* Bootstrap form-group styling */
.form-group label {
    color: #555;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 5px;
}

.form-group .form-control {
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    font-size: 13px;
    transition: all 0.3s ease;
}

    .form-group .form-control:focus {
        border-color: #323369;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-modern {
    padding: 6px 16px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 32px;
    height: auto;
    white-space: normal;
    word-wrap: break-word;
    display: inline-block;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
}

    .btn-primary-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.btn-success-modern {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

    .btn-success-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

.btn-danger-modern {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

    .btn-danger-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    }

.btn-warning-modern {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

/* Gradient buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
    border: none !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

    .btn-primary-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.btn-success-gradient {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

    .btn-success-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

/* Transfer buttons for MultiPayouts */
.transfer-btn-green {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33, 136, 56, 0.3);
    transition: all 0.3s ease-in-out;
}

    .transfer-btn-green:hover {
        background: linear-gradient(135deg, #218838, #1e7e34);
        box-shadow: 0 6px 16px rgba(33, 136, 56, 0.4);
        transform: translateY(-2px);
    }

.transfer-btn-orange {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

    .transfer-btn-orange:hover {
        background: linear-gradient(135deg, #f57c00, #e65100);
        box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
        transform: translateY(-2px);
    }

/* ============================================
   TABLE STYLES
   ============================================ */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    width: 100%;
    margin-bottom: 0;
    table-layout: auto;
}

    .table thead th {
        background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        padding: 10px !important;
        border: none !important;
    }

    .table tbody tr:hover {
        background: #f7fafc;
    }

    .table tbody td {
        padding: 10px;
        font-size: 13px;
        color: #4a5568;
        border-top: 1px solid #e0e0e0;
    }

.table-bordered {
    border: 1px solid #ddd;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

.table-header-gradient,
.table-header-gradient th,
#body_grdvwbeneficieries thead tr,
#body_grdvwbeneficieries thead tr th {
    background: #323369 !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px !important;
    border: none !important;
    text-align: left !important;
}

.transaction-grid-header {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white !important;
    font-weight: bold;
}

/* Transaction Grid Styles */
#grdvwTransactions thead th {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
    background-color: #323369 !important;
    color: white !important;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: normal;
    word-wrap: break-word;
    vertical-align: middle;
}

#grdvwTransactions tbody td {
    padding: 10px 8px;
    font-size: 12px;
    color: #333;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
}

    #grdvwTransactions tbody td:first-child {
        text-align: center;
        width: 50px;
    }

/* Force Enquire button visibility */
#grdvwTransactions .btn,
#grdvwTransactions a.btn,
#grdvwTransactions .btn-primary,
#grdvwTransactions .btn-Success,
a[id*="lnkTransferpendingcheck"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
}

/* Expanded row styling */
#grdvwTransactions tbody tr td[colspan] {
    background: #ffffff !important;
    padding: 15px 20px !important;
    border-left: 3px solid #323369 !important;
}

.expanded-details-panel {
    padding: 0;
    background: transparent;
    border: none;
    margin: 0;
}

.expanded-details-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    font-size: 11px;
    background: transparent;
    table-layout: fixed;
}

    .expanded-details-table tr {
        border: none;
    }

    .expanded-details-table td {
        padding: 2px 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border: none !important;
        vertical-align: top;
    }

    .expanded-details-table .detail-label {
        font-weight: 600;
        color: #555;
        width: 30%;
        background: transparent;
    }

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.badge.bg-success {
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
}

/* ============================================
   MODAL STYLES - CRITICAL FOR ALL POPUPS
   ============================================ */

/* Bootstrap Modal - Force proper display */
.modal {
    z-index: 100050 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

    .modal.fade {
        opacity: 0;
        transition: opacity .15s linear;
    }

        .modal.show,
        .modal.fade.show {
            display: block !important;
            opacity: 1 !important;
        }

.modal-backdrop {
    z-index: 100040 !important;
    opacity: 0.5 !important;
}

    .modal-backdrop.show {
        opacity: 0.5 !important;
    }

.modal-dialog {
    z-index: 100051 !important;
    position: relative;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal.show .modal-dialog {
    transform: none !important;
}

/* Force ALL modals to show when .show class is added */
#popmodal.show,
#kycModal.show,
#otpModal.show,
#emailotpModal.show,
#transferDetailsModal.show,
#popmodalRefundOTP.show,
#popmodalforLoadbalance.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 20px 25px;
    border-bottom: none;
    position: relative;
}

    .modal-modern .modal-header .modal-title {
        font-weight: 600;
        font-size: 18px;
    }

    .modal-modern .modal-header .close {
        position: absolute;
        right: 20px;
        top: 20px;
        color: white;
        opacity: 1;
        font-size: 32px;
        font-weight: 300;
        text-shadow: none;
        z-index: 10;
    }

        .modal-modern .modal-header .close:hover {
            opacity: 0.8;
        }

.modal-modern .modal-title {
    font-weight: 600;
    font-size: 22px;
    margin-right: 40px;
}

.modal-modern .modal-body {
    padding: 25px;
}

.modal-modern .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-body {
    padding: 20px;
}

/* Modal detail styles */
.detail-section-modern {
    margin-bottom: 20px;
}

    .detail-section-modern h5 {
        margin-top: 0;
        padding-bottom: 10px;
        border-bottom: 2px solid #323369;
        margin-bottom: 15px;
    }

    .detail-section-modern .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .detail-section-modern .col-xs-6 {
        padding-left: 15px;
        padding-right: 15px;
    }

.detail-row-modern {
    display: block;
    padding: 8px 0;
    margin-bottom: 10px;
    clear: both;
}

.detail-label-modern {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    width: auto;
    min-width: 140px;
}

.detail-value-modern {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-left: 10px;
}

/* Modal popmodal layout fix */
#popmodal .modal-body {
    padding: 20px !important;
}

#popmodal .box-body {
    padding: 0 !important;
}

#popmodal .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
}

#popmodal .col-xs-6 {
    position: relative !important;
    min-height: 1px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 50% !important;
    float: left !important;
}

#popmodal * {
    box-sizing: border-box !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.toast {
    background: white;
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    overflow: hidden;
}

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .toast.hide {
        opacity: 0;
        transform: translateX(400px);
    }

.toast-header-custom {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

    .toast-header-custom.error {
        background: linear-gradient(135deg, #ff416c 0%, #dc2430 100%);
        color: white !important;
    }

        .toast-header-custom.error .toast-icon i {
            color: white !important;
        }

    .toast-header-custom.success {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        color: white !important;
    }

        .toast-header-custom.success .toast-icon i {
            color: white !important;
        }

    .toast-header-custom.warning {
        background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
        color: white !important;
    }

        .toast-header-custom.warning .toast-icon i {
            color: white !important;
        }

.toast-icon {
    font-size: 20px;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .toast-icon i {
        color: white;
    }

.toast-title {
    flex: 1;
    display: flex;
    align-items: center;
}

.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

    .toast-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.toast-body-custom {
    padding: 20px;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   LOADER STYLES
   ============================================ */
.loadermain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Lower than modal's 100050 so modal shows on top */
}

.loader {
    position: relative;
    width: 50px;
    height: 50px;
}

    .loader img {
        display: none !important;
    }

    .loader::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #323369;
        border-right-color: #ff7400;
        animation: spin 0.8s linear infinite;
    }

    .loader::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 28px;
        height: 28px;
        margin: -14px 0 0 -14px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #ff7400;
        border-right-color: #323369;
        animation: spin 0.6s linear infinite reverse;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   PAGINATION & FILTERS
   ============================================ */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.page-info-modern {
    color: #666;
    font-size: 13px;
}

.balance-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.filter-toggle-btn {
    background: white;
    color: #323369;
    border: 2px solid #323369;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-toggle-btn:hover {
        background: #323369;
        color: white;
    }

/* Search button icons */
#btnSearchOption1::before,
#btnSearchOption2::before {
    font-family: FontAwesome;
    content: "\f002";
    margin-right: 6px;
}

#btn_download::before {
    font-family: FontAwesome;
    content: "\f019";
    margin-right: 6px;
}

/* ============================================
   MY PAYMENT LINKS SPECIFIC STYLES
   ============================================ */

/* Payment Gateway Box */
.pg-box {
    padding: 20px;
    border-radius: 12px;
    margin-top: 0px;
    font-family: 'Segoe UI', sans-serif;
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.PGboxdiv {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    padding: 12px 15px;
}

/* Payment Gateway Table */
.pg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #b5cbe1;
    border-radius: 8px;
    overflow: hidden;
    table-layout: auto;
}

    .pg-table th, .pg-table td {
        border-right: 1px solid #b5cbe1;
        border-bottom: 1px solid #b5cbe1;
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .pg-table th {
        font-weight: 600;
        color: #333;
        text-align: center;
        background-color: #f2f8ff;
    }

        .pg-table td:last-child,
        .pg-table th:last-child {
            border-right: none;
        }

    .pg-table tr:last-child td {
        border-bottom: none;
    }

/* OTP Input styles */
.emailotp-input, .otp-input {
    width: 30px;
    height: 30px;
    font-size: 14px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Amount suggestion buttons */
#suggestedAmounts {
    margin-top: 4px;
}

    #suggestedAmounts button {
        min-width: 60px;
        padding: 4px 10px !important;
        font-weight: 500 !important;
        background-color: #007bff !important;
        color: #ffffff !important;
        border: 1px solid #007bff !important;
        border-radius: 4px !important;
        font-size: 13px !important;
        cursor: pointer !important;
    }

        #suggestedAmounts button:hover {
            background-color: #0056b3 !important;
            border-color: #0056b3 !important;
        }

/* Dashboard card */
.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 10px;
    margin: 10px;
    width: 100%;
}

/* Radio button styles */
.radio {
    display: inline-flex;
    background: #fff;
    align-items: flex-start;
    justify-content: space-evenly;
    border-radius: 5px;
    padding: 3px 0px;
}

    .radio input {
        background: #fff;
        position: unset !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none;
        cursor: pointer;
        border-radius: 2px;
        margin: 0 5px !important;
        padding: 5px 10px !important;
        background: #6bdd6b;
        color: black;
        font-size: 14px;
        border: 2px solid lightgrey;
        transition: all 0.3s ease;
    }

        .radio input:checked {
            background: #6bdd6b;
            color: #000;
            box-shadow: 0 2px 2px #0000002e;
            border: 2px solid #a71009;
        }

        .radio input:before {
            content: attr(label);
            display: inline-block;
            text-align: center;
            width: 100%;
        }

.checkbox, .radio {
    margin-top: 0px !important;
}

/* Payment Gateway Buttons */
#btnPg, .btn-pg {
    background: #28a745 !important;
    color: white !important;
    border: 2px solid #1e7e34 !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
}

    #btnPg:hover, .btn-pg:hover {
        background: #218838 !important;
        border-color: #1e7e34 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }

    #btnPg.selected, .btn-pg.selected {
        background: #0056b3 !important;
        border-color: #004085 !important;
        box-shadow: 0 0 0 3px rgba(0,86,179,0.2) !important;
    }

.btn.selected {
    background-color: forestgreen;
    color: white;
    font-weight: bold;
}

/* Name Lookup Button */
input[type="button"][value="Name Lookup (optional)"] {
    background: #007bff !important;
    color: white !important;
    border: 2px solid #0056b3 !important;
    border-radius: 5px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 28px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

    input[type="button"][value="Name Lookup (optional)"]:hover {
        background: #0056b3 !important;
        border-color: #004085 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    }

/* Repeater PG buttons - Unselected = Gray, Selected = Green */
button[id*="btnPg"],
button[id*="rptPaymentLinks"][id*="btnPg"] {
    background: #eee !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

    button[id*="btnPg"]:hover,
    button[id*="rptPaymentLinks"][id*="btnPg"]:hover {
        background: #ddd !important;
    }

    /* Selected PG button = Green */
    button[id*="btnPg"].selected,
    button[id*="rptPaymentLinks"][id*="btnPg"].selected {
        background: forestgreen !important;
        color: white !important;
        font-weight: bold !important;
        border-color: forestgreen !important;
    }

/* PG Note */
#lblPaymentLinksNote {
    display: block;
    margin-top: 15px !important;
}

/* Payment Link Modal buttons */
#popmodal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

#popmodal #btncopyurl:hover {
    background: linear-gradient(135deg, #ff7400 0%, #323369 100%) !important;
}

#popmodal button[onclick*="window.location"]:hover {
    background: #e53e3e !important;
    color: white !important;
}

/* Copy message animation */
#lblcopymessage {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action column icons */
.fa-refresh {
    color: #323369 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 20px !important;
    margin: 0 8px !important;
    display: inline-block !important;
}

    .fa-refresh:hover {
        color: #ff7400 !important;
        transform: rotate(180deg) scale(1.15) !important;
        filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4)) !important;
    }

.fa-close {
    color: #e53e3e !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 20px !important;
    margin: 0 8px !important;
    display: inline-block !important;
}

    .fa-close:hover {
        color: #c53030 !important;
        transform: scale(1.2) !important;
        filter: drop-shadow(0 4px 8px rgba(229, 62, 62, 0.4)) !important;
    }

/* GridView Payment Links */
#grdvwPayments a.fa {
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#grdvwPayments a.fa-refresh {
    background: rgba(102, 126, 234, 0.1) !important;
}

    #grdvwPayments a.fa-refresh:hover {
        background: rgba(102, 126, 234, 0.2) !important;
    }

#grdvwPayments a.fa-close {
    background: rgba(229, 62, 62, 0.1) !important;
}

    #grdvwPayments a.fa-close:hover {
        background: rgba(229, 62, 62, 0.2) !important;
    }

/* ============================================
   BBPS SPECIFIC STYLES
   ============================================ */
.bbps-logo-container {
    text-align: right;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .bbps-logo-container img {
        max-width: 80px;
        height: auto;
    }

.payout-card-header .col-md-9,
.payout-card-header .col-xs-8 {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   MODE SWITCH (IMPS/NEFT)
   ============================================ */
.bp-mode-switch {
    --h: 30px;
    --w: 132px;
    --pad: 2px;
    --r: 9999px;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --track: #ffffff;
    --track-border: #cbd5e1;
    --off-text: #334155;
    --on-text: #ffffff;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    width: var(--w);
    height: var(--h);
    background: var(--track) !important;
    border: 1px solid var(--track-border) !important;
    border-radius: var(--r) !important;
    box-shadow: 0 1px 1px rgba(0,0,0,.04) !important;
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 12px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

    .bp-mode-switch.bp-green {
        --accent: #16a34a;
        --accent-hover: #15803d;
    }

    .bp-mode-switch.bp-blue {
        --accent: #2563eb;
        --accent-hover: #1d4ed8;
    }

    .bp-mode-switch.bp-sm {
        --h: 26px;
        --w: 120px;
        font-size: 11px;
    }

    .bp-mode-switch.bp-lg {
        --h: 36px;
        --w: 160px;
        font-size: 13px;
    }

    .bp-mode-switch .bp-mode-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .bp-mode-switch .bp-seg,
    .bp-mode-switch .bp-seg:link,
    .bp-mode-switch .bp-seg:visited {
        flex: 1 1 50%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        text-transform: uppercase;
        letter-spacing: .2px;
        font-weight: 600;
        color: var(--off-text) !important;
        background: transparent !important;
        text-decoration: none !important;
        text-shadow: none !important;
        border: 0 !important;
        cursor: pointer;
        transition: color .15s ease, opacity .15s ease;
    }

        .bp-mode-switch .bp-seg.disabled {
            opacity: .45 !important;
            cursor: not-allowed !important;
        }

    .bp-mode-switch .bp-thumb {
        position: absolute;
        top: var(--pad);
        left: var(--pad);
        width: calc(50% - var(--pad)*2);
        height: calc(100% - var(--pad)*2);
        border-radius: var(--r);
        background: var(--accent) !important;
        border: 0 !important;
        box-shadow: 0 1px 0 rgba(0,0,0,.06) !important;
        transform: translateX(0);
        opacity: 1;
        transition: transform .2s ease, background-color .2s ease, width .2s ease, opacity .12s ease;
        z-index: 1;
    }

    .bp-mode-switch:hover .bp-thumb {
        background: var(--accent-hover) !important;
    }

    .bp-mode-switch.bp-selected-imps .imps,
    .bp-mode-switch.bp-selected-neft .neft {
        color: var(--on-text) !important;
    }

    .bp-mode-switch.bp-selected-neft .bp-thumb {
        transform: translateX(100%) !important;
    }

    .bp-mode-switch.bp-none .bp-thumb {
        opacity: 0 !important;
    }

    .bp-mode-switch.bp-one-side .bp-thumb {
        width: calc(100% - var(--pad)*2) !important;
        transform: translateX(0) !important;
    }

    .bp-mode-switch:focus-within {
        outline: none;
        box-shadow: 0 0 0 2px rgba(59,130,246,.25), 0 1px 1px rgba(0,0,0,.04) !important;
    }

/* ============================================
   SELECT2 CUSTOMIZATION
   ============================================ */
.select2 {
    width: 100% !important;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 6px 10px !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px !important;
        color: #555 !important;
        font-size: 13px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important;
    }

.select2-results__options {
    max-height: 280px !important;
    overflow-y: auto !important;
}

.select2-dropdown {
    border: 1px solid #323369 !important;
    border-radius: 6px !important;
}

.select2-search--dropdown {
    padding: 8px !important;
    background: #f8f9fa !important;
}

    .select2-search--dropdown .select2-search__field {
        padding: 8px 12px !important;
        border: 2px solid #323369 !important;
        border-radius: 5px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

        .select2-search--dropdown .select2-search__field:focus {
            border-color: #ff7400 !important;
            outline: none !important;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
        }

.select2-results__option {
    padding: 10px 12px !important;
    font-size: 14px !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .modal-modern .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }

    .form-field-modern {
        min-width: 100%;
    }

    .btn-modern {
        display: inline-block;
        min-width: 130px !important;
        font-size: 13px !important;
        padding: 10px 20px !important;
        margin: 5px;
    }

    .detail-section-modern .col-xs-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .select2-dropdown,
    span.select2-dropdown,
    .select2-container--open .select2-dropdown {
        max-height: 233px !important;
        height: auto !important;
        position: fixed !important;
    }

    .select2-results,
    .select2-results__options,
    ul.select2-results__options {
        max-height: 200px !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .select2-results__option {
        padding: 6px 8px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .select2-search--dropdown {
        padding: 4px !important;
    }

        .select2-search--dropdown .select2-search__field {
            padding: 6px 8px !important;
            font-size: 13px !important;
        }
}

@media (min-width: 769px) {
    .select2-results__options {
        max-height: 300px !important;
        overflow-y: auto !important;
    }
}

/* ============================================
   MOBILE CARD LAYOUT FOR BENEFICIARY GRID
   ============================================ */
@media screen and (max-width: 760px) {
    /* Force table to blocks */
    table.grid-modern,
    table.grid-modern *,
    table.grid-modern tbody,
    table.grid-modern thead,
    table.grid-modern tr,
    table.grid-modern th,
    table.grid-modern td,
    table#grdvwbeneficieries,
    table#grdvwbeneficieries *,
    table#grdvwbeneficieries tbody,
    table#grdvwbeneficieries thead,
    table#grdvwbeneficieries tr,
    table#grdvwbeneficieries th,
    table#grdvwbeneficieries td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

        /* Hide headers */
        table.grid-modern thead,
        table.grid-modern thead *,
        table#grdvwbeneficieries thead,
        table#grdvwbeneficieries thead * {
            display: none !important;
            visibility: hidden !important;
            position: absolute !important;
            left: -9999px !important;
            top: -9999px !important;
        }

        /* Card rows */
        table.grid-modern tbody tr,
        table#grdvwbeneficieries tbody tr {
            display: block !important;
            width: 100% !important;
            border: 1px solid #ddd !important;
            margin: 0 0 15px 0 !important;
            padding: 10px !important;
            border-radius: 8px !important;
            background: white !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        }

            /* Cells as rows */
            table.grid-modern tbody tr td,
            table#grdvwbeneficieries tbody tr td {
                display: block !important;
                width: 100% !important;
                border: none !important;
                border-bottom: 1px solid #f0f0f0 !important;
                position: relative !important;
                padding: 8px 8px 8px 50% !important;
                text-align: left !important;
                min-height: 35px !important;
            }

                table.grid-modern tbody tr td:last-child,
                table#grdvwbeneficieries tbody tr td:last-child {
                    border-bottom: none !important;
                }

                /* Labels */
                table.grid-modern tbody tr td:before,
                table#grdvwbeneficieries tbody tr td:before {
                    position: absolute !important;
                    left: 6px !important;
                    top: 8px !important;
                    width: 45% !important;
                    font-weight: 600 !important;
                    color: #323369 !important;
                    font-size: 12px !important;
                }

                table.grid-modern tbody tr td:nth-child(1):before,
                table#grdvwbeneficieries tbody tr td:nth-child(1):before {
                    content: "S.No";
                }

                table.grid-modern tbody tr td:nth-child(2):before,
                table#grdvwbeneficieries tbody tr td:nth-child(2):before {
                    content: "Beneficiary Name";
                }

                table.grid-modern tbody tr td:nth-child(3):before,
                table#grdvwbeneficieries tbody tr td:nth-child(3):before {
                    content: "Bank Name";
                }

                table.grid-modern tbody tr td:nth-child(4):before,
                table#grdvwbeneficieries tbody tr td:nth-child(4):before {
                    content: "IFSC";
                }

                table.grid-modern tbody tr td:nth-child(5):before,
                table#grdvwbeneficieries tbody tr td:nth-child(5):before {
                    content: "Account";
                }

                table.grid-modern tbody tr td:nth-child(6):before,
                table#grdvwbeneficieries tbody tr td:nth-child(6):before {
                    content: "Beneficiary PAN";
                }

                table.grid-modern tbody tr td:nth-child(7):before,
                table#grdvwbeneficieries tbody tr td:nth-child(7):before {
                    content: "Amount";
                }

                table.grid-modern tbody tr td:nth-child(8):before,
                table#grdvwbeneficieries tbody tr td:nth-child(8):before {
                    content: "IMPS";
                }

                table.grid-modern tbody tr td:nth-child(9):before,
                table#grdvwbeneficieries tbody tr td:nth-child(9):before {
                    content: "NEFT";
                }

                table.grid-modern tbody tr td:nth-child(10):before,
                table#grdvwbeneficieries tbody tr td:nth-child(10):before {
                    content: "Delete";
                }

    /* Buttons in mobile */
    .grid-modern .btn,
    #grdvwbeneficieries .btn {
        display: inline-block !important;
        margin: 5px 0 !important;
        font-size: 12px !important;
    }

    .grid-modern input[type="text"],
    #grdvwbeneficieries input[type="text"] {
        width: 100% !important;
        max-width: 200px !important;
    }
}

/* Empty data styling */
.grid-modern tbody tr.empty-row td {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    background: #fafafa;
}

.grid-modern .no-records-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .grid-modern .no-records-message i {
        font-size: 48px;
        color: #ddd;
    }

/* GridView Empty Data Text - Centered */
.table tbody tr td[colspan],
table tbody tr td[colspan] {
    text-align: center !important;
    padding: 30px 20px !important;
    color: #666 !important;
    font-size: 14px !important;
}

/* Remove extra border for empty data in table-bordered */
.table-bordered tbody tr:only-child td:only-child,
.table.table-bordered tbody tr:only-child td:only-child {
    border: none !important;
}

/* For grdvwPayments specifically - remove all borders on empty data */
#grdvwPayments.table-bordered > tbody > tr:only-child > td:only-child,
[id*="grdvwPayments"].table-bordered > tbody > tr:only-child > td:only-child,
[id$="grdvwPayments"].table-bordered > tbody > tr:only-child > td:only-child {
    border: none !important;
}

/* Remove table border itself when showing empty data */
#grdvwPayments.table-bordered:has(tbody > tr:only-child > td:only-child),
[id*="grdvwPayments"].table-bordered:has(tbody > tr:only-child > td:only-child) {
    border: none !important;
}

/* When GridView has no records - remove table and row borders */
.table-bordered > tbody > tr:first-child:last-child > td:first-child:last-child {
    border: none !important;
}

/* Remove empty thead borders if present */
.table-bordered > thead:empty,
.table-bordered > thead:empty + tbody > tr:only-child > td:only-child {
    border: none !important;
}

/* Fallback: target the table border directly when only single cell exists */
.table-bordered:not(:has(thead tr)) tbody tr:only-child td:only-child {
    border: none !important;
}

/* Additional specific targeting for ASP.NET generated GridView IDs */
table[id*="grdvwPayments"] > tbody > tr:only-child > td:only-child {
    border: none !important;
}

table[id*="grdvwPayments"]:not(:has(thead tr th)) {
    border: none !important;
}

/* Specific for grdvwPayments empty data */
#grdvwPayments tbody tr td,
[id*="grdvwPayments"] tbody tr td {
    text-align: center;
}

/* No Records Found text styling */
td:only-child {
    text-align: center !important;
}

/* Override first column in expanded panel */
.grid-modern tbody tr td:first-child {
    max-width: none !important;
    overflow: visible !important;
}

/* Responsive table adjustments */
@media (max-width: 1400px) {
    .grid-modern {
        table-layout: auto;
    }
}

@media (max-width: 768px) {
    .grid-modern thead th,
    .grid-modern tbody td {
        padding: 8px 6px;
        font-size: 11px;
    }

    .expanded-details-table .detail-label {
        width: 120px;
    }
}

@media (min-width: 992px) {
    .table, .dataTable {
        table-layout: auto !important;
        width: 100% !important;
    }

    .grid-container {
        overflow-x: visible !important;
    }

    #grdvwTransactions {
        width: 100%;
    }

        #grdvwTransactions thead th,
        #grdvwTransactions tbody td {
            white-space: normal;
            word-wrap: break-word;
            padding: 10px 8px;
            max-width: none;
        }
}

@media (max-width: 991px) {
    .table, .dataTable {
        table-layout: auto !important;
    }

    .grid-container {
        overflow-x: auto !important;
    }

    #grdvwTransactions {
        min-width: 100%;
    }

        #grdvwTransactions thead th,
        #grdvwTransactions tbody td {
            white-space: normal;
            word-wrap: break-word;
            font-size: 11px;
            padding: 8px 6px;
        }
}

/* High-contrast support */
@media (forced-colors: active) {
    .bp-mode-switch {
        border: 1px solid CanvasText !important;
    }

        .bp-mode-switch .bp-thumb {
            outline: 1px solid CanvasText;
        }
}

/* ============================================
   BILLPAY SUMMARY / RECEIPT STYLES
   ============================================ */
:root {
    --billpay-brand: #0b3d91;
    --billpay-ink: #111827;
    --billpay-muted: #6b7280;
    --billpay-border: #e5e7eb;
    --billpay-success: #16a34a;
}

.receipt {
    width: 760px;
    margin: 10px auto;
    background: #fff;
    border: 1px solid var(--billpay-border);
    border-radius: 10px;
    padding: 14px;
    box-sizing: border-box;
    color: var(--billpay-ink);
    font: 13px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

    /* header (very compact) */
    .receipt .header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .receipt .brand {
        display: flex;
        gap: 8px;
        align-items: center;
    }

        .receipt .brand .name {
            font-weight: 800;
            color: var(--billpay-brand);
            font-size: 18px;
        }

    .receipt .tagline {
        font-size: 11px;
        color: var(--billpay-muted);
    }

    .receipt .meta {
        text-align: right;
    }

    .receipt .title {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
    }

    .receipt .contact {
        color: var(--billpay-muted);
        font-size: 11px;
    }

    .receipt .divider {
        height: 1px;
        background: var(--billpay-border);
        margin: 8px 0;
    }

    /* summary row */
    .receipt .summary {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 8px;
    }

    .receipt .card {
        border: 1px solid var(--billpay-border);
        border-radius: 8px;
        padding: 8px;
    }

    .receipt .label,
    .receipt .receiptlabel {
        font-size: 10px;
        text-transform: uppercase;
        color: var(--billpay-muted) !important;
        letter-spacing: .06em;
    }

    .receipt .value {
        font-weight: 700;
        font-size: 15px;
    }

    .receipt .amount {
        font-size: 18px;
        text-align: right;
    }

    .receipt .status-Success {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: var(--billpay-success);
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    .receipt .status-Pending {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: orange;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    .receipt .status-Failed {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: orangered;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    /* details grid (dense, two pairs per row) */
    .receipt .kv {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr;
        border: 1px solid var(--billpay-border);
        border-radius: 8px;
        overflow: hidden;
        margin: 0;
        column-gap: 0;
        row-gap: 0;
    }

        .receipt .kv dt,
        .receipt .kv dd {
            padding: 7px 9px;
            border-bottom: 1px solid var(--billpay-border);
            font-size: 13px;
            margin: 0;
            box-sizing: border-box;
        }

        .receipt .kv dt {
            background: #fafafa;
            color: #374151;
            font-weight: 600;
        }

        .receipt .kv dd {
            background: #fff;
            margin-left: 0;
            margin-inline-start: 0;
            -webkit-margin-start: 0;
            padding-left: 9px;
        }

            .receipt .kv dt:nth-last-child(2),
            .receipt .kv dd:last-child {
                border-bottom: none;
            }

    .receipt .disclaimer {
        margin-top: 8px;
        padding: 8px 10px;
        border: 1px dashed var(--billpay-border);
        border-radius: 8px;
        background: #fcfcfd;
        color: #374151;
        font-size: 11.5px;
    }

    .receipt .foot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        font-weight: 600;
    }

    .receipt .muted {
        color: var(--billpay-muted);
    }

    /* Screen: keep logo tidy */
    .receipt .brand .logosmry {
        height: 44px;
        width: auto;
        max-width: 280px;
        display: block;
        object-fit: contain;
    }

    /* Generic protection for any images inside the receipt */
    .receipt img {
        max-width: 100%;
        height: auto;
    }

/* ============================================
   BILLPAY SUMMARY PRINT STYLES
   ============================================ */
@media print {
    /* A4 portrait page box */
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        width: 210mm;
        height: 297mm;
        margin: 0;
    }

    /* Keep colors/shading; match the screen background if you want */
    body {
        background: #f5f7fb !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

        /* Hide everything but KEEP the form + receipt path visible */
        body * {
            visibility: hidden !important;
        }

    form, .receipt, .receipt * {
        visibility: visible !important;
    }

    /* Size and style the receipt card on the page */
    .receipt {
        width: 186mm !important;
        margin: 0 auto 0 auto !important;
        padding: 8mm 12mm !important;
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        font: 13px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        max-height: 140mm !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Re-assert layout that some libs flatten on print */
    .receipt .header {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .receipt .brand {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .receipt .summary {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .receipt .kv {
        display: grid !important;
        grid-template-columns: auto 1fr auto 1fr !important;
    }

    .receipt .foot {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Keep your visuals */
    .receipt .card {
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 8px !important;
        background: #fff !important;
    }

    .receipt .label,
    .receipt .receiptlabel {
        color: #6b7280 !important;
        letter-spacing: .06em !important;
        text-transform: uppercase !important;
        font-size: 10px !important;
    }

    .receipt .value {
        font-weight: 700 !important;
        font-size: 15px !important;
    }

    .receipt .amount {
        font-size: 18px !important;
    }

    .receipt .kv dt {
        background: #fafafa !important;
        color: #374151 !important;
        font-weight: 600 !important;
    }

    .receipt .kv dd {
        background: #fff !important;
    }

    .receipt .disclaimer {
        background: #fcfcfd !important;
        border: 1px dashed #e5e7eb !important;
    }

    /* Status pills */
    .receipt .status-Success {
        background: #16a34a !important;
        color: #fff !important;
        padding: 2px 8px !important;
        border-radius: 999px !important;
        font-weight: 800 !important;
        font-size: 11px !important;
    }

    .receipt .status-Pending {
        background: orange !important;
        color: #fff !important;
        padding: 2px 8px !important;
        border-radius: 999px !important;
        font-weight: 800 !important;
        font-size: 11px !important;
    }

    .receipt .status-Failed {
        background: orangered !important;
        color: #fff !important;
        padding: 2px 8px !important;
        border-radius: 999px !important;
        font-weight: 800 !important;
        font-size: 11px !important;
    }

    /* Logo guard */
    .receipt img {
        max-width: 100% !important;
        height: auto !important;
    }

    .receipt .brand .logosmry {
        height: 14mm !important;
        width: auto !important;
        max-width: 80mm !important;
    }

    /* Avoid cut-offs anywhere */
    .receipt, .receipt .summary, .receipt .card, .receipt .kv, .receipt .kv dt, .receipt .kv dd, .receipt .disclaimer, .receipt .foot {
        page-break-inside: avoid !important;
    }
}

/* ============================================
   BILLPAY SUMMARY RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .receipt {
        width: 95%;
        padding: 10px;
    }

        .receipt .summary {
            grid-template-columns: repeat(2, 1fr);
        }

        .receipt .kv {
            grid-template-columns: auto 1fr;
        }

        .receipt .header {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .receipt .brand {
            justify-content: center;
            flex-wrap: wrap;
        }

        .receipt .meta {
            text-align: center;
            margin-top: 10px;
        }

        .receipt .foot {
            flex-direction: column;
            gap: 8px;
            text-align: center;
        }
}

/* =============================================
   TRACK TRAVEL PAGE STYLES
   Wrapper: .track-travel-page
   Page: TrackTravel.aspx
   ============================================= */

.track-travel-page {
    --track-brand: #0b3d91;
    --track-ink: #111827;
    --track-muted: #6b7280;
    --track-border: #e5e7eb;
    --track-success: #16a34a;
}

    .track-travel-page * {
        box-sizing: border-box;
    }

    .track-travel-page .track-receipt {
        width: 760px;
        margin: 10px auto;
        background: #fff;
        border: 1px solid var(--track-border);
        border-radius: 10px;
        padding: 14px;
    }

    /* header (very compact) */
    .track-travel-page .track-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .track-travel-page .track-brand {
        display: flex;
        gap: 8px;
        align-items: center;
    }

        .track-travel-page .track-brand .name {
            font-weight: 800;
            color: var(--track-brand);
            font-size: 18px;
        }

    .track-travel-page .track-tagline {
        font-size: 11px;
        color: var(--track-muted);
    }

    .track-travel-page .track-meta {
        text-align: right;
    }

    .track-travel-page .track-title {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
    }

    .track-travel-page .track-contact {
        color: var(--track-muted);
        font-size: 11px;
    }

    .track-travel-page .track-divider {
        height: 1px;
        background: var(--track-border);
        margin: 8px 0;
    }

    /* summary row */
    .track-travel-page .track-summary {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 8px;
    }

    .track-travel-page .track-card {
        border: 1px solid var(--track-border);
        border-radius: 8px;
        padding: 8px;
    }

    .track-travel-page .track-receiptlabel {
        font-size: 10px;
        text-transform: uppercase;
        color: var(--track-muted);
        letter-spacing: .06em;
    }

    .track-travel-page .track-value {
        font-weight: 700;
        font-size: 15px;
    }

    .track-travel-page .track-amount {
        font-size: 18px;
    }

    .track-travel-page .track-status-Success {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: var(--track-success);
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    .track-travel-page .track-status-Pending {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: orange;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    .track-travel-page .track-status-Failed {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: orangered;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    /* details grid (dense, two pairs per row) */
    .track-travel-page .track-kv {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr;
        border: 1px solid var(--track-border);
        border-radius: 8px;
        overflow: hidden;
    }

        .track-travel-page .track-kv dt,
        .track-travel-page .track-kv dd {
            padding: 7px 9px;
            border-bottom: 1px solid var(--track-border);
            font-size: 13px;
            margin-bottom: 1px;
        }

        .track-travel-page .track-kv dt {
            background: #fafafa;
            color: #374151;
            font-weight: 600;
        }

        .track-travel-page .track-kv dd {
            background: #fff;
        }

            .track-travel-page .track-kv dt:nth-last-child(2),
            .track-travel-page .track-kv dd:last-child {
                border-bottom: none;
            }

    .track-travel-page .track-disclaimer {
        margin-top: 8px;
        padding: 8px 10px;
        border: 1px dashed var(--track-border);
        border-radius: 8px;
        background: #fcfcfd;
        color: #374151;
        font-size: 11.5px;
    }

    .track-travel-page .track-foot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        font-weight: 600;
    }

    .track-travel-page .track-muted {
        color: var(--track-muted);
    }

    /* passenger label */
    .track-travel-page .track-passenger-label {
        font-weight: 600;
        color: #374151;
        margin-bottom: 5px;
        font-size: 13px;
    }

    /* passenger table */
    .track-travel-page .track-passenger-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 5px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

        .track-travel-page .track-passenger-table th,
        .track-travel-page .track-passenger-table td {
            padding: 7px 9px;
            border-bottom: 1px solid #e5e7eb;
            font-size: 13px;
            text-align: left;
        }

        .track-travel-page .track-passenger-table thead,
        .track-travel-page .track-passenger-table > thead {
            background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
        }

            .track-travel-page .track-passenger-table thead tr,
            .track-travel-page .track-passenger-table > thead > tr {
                background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
            }

                .track-travel-page .track-passenger-table th,
                .track-travel-page .track-passenger-table thead th,
                .track-travel-page .track-passenger-table thead tr th,
                .track-travel-page .track-passenger-table > thead > tr > th,
                .track-travel-page table.track-passenger-table thead th {
                    background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
                    color: #fff !important;
                    font-weight: 600 !important;
                }

        .track-travel-page .track-passenger-table td {
            background: #fff;
        }

        .track-travel-page .track-passenger-table tbody tr:last-child td {
            border-bottom: none;
        }

/* print */
@media print {
    .track-travel-page .track-receipt {
        width: 760px !important;
        margin: 10px auto !important;
        border: 1px solid var(--track-border) !important;
        border-radius: 10px !important;
        padding: 14px !important;
        background: #fff !important;
    }
}

/* small screens */
@media (max-width: 820px) {
    .track-travel-page .track-receipt {
        width: auto;
        margin: 0;
        border-radius: 0;
    }

    .track-travel-page .track-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .track-travel-page .track-kv {
        grid-template-columns: auto 1fr;
    }

    .track-travel-page .track-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .track-travel-page .track-brand {
        justify-content: center;
        flex-wrap: wrap;
    }

    .track-travel-page .track-meta {
        text-align: center;
        margin-top: 10px;
    }

    .track-travel-page .track-foot {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .receipt .summary {
        grid-template-columns: 1fr;
    }

    .receipt .brand .logosmry {
        height: 36px;
        max-width: 200px;
    }
}

/* ============================================
   CHANGE MPIN / PASSWORD PAGE STYLES
   ============================================ */
.mpin-change-page .search-section .container,
.password-change-page .search-section .container {
    max-width: 480px !important;
}

.mpin-change-page .search-section .search-card,
.password-change-page .search-section .search-card {
    padding: 20px !important;
}

.mpin-change-page .page-header,
.password-change-page .page-header {
    text-align: center;
    margin-bottom: 25px;
}

.mpin-change-page .page-icon-wrapper,
.password-change-page .page-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.mpin-change-page .page-icon,
.password-change-page .page-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

    .mpin-change-page .page-icon svg,
    .password-change-page .page-icon svg {
        width: 36px;
        height: 36px;
        fill: white;
    }

.mpin-change-page .page-title,
.password-change-page .page-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.mpin-change-page .page-subtitle,
.password-change-page .page-subtitle {
    font-size: 12px;
    color: #666;
}

.mpin-change-page .form-group-custom,
.password-change-page .form-group-custom {
    margin-bottom: 18px;
}

    .mpin-change-page .form-group-custom label,
    .password-change-page .form-group-custom label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #444;
        margin-bottom: 8px;
    }

.mpin-change-page .input-with-icon,
.password-change-page .input-with-icon {
    position: relative;
}

    .mpin-change-page .input-with-icon input,
    .password-change-page .input-with-icon input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .mpin-change-page .input-with-icon input:focus,
        .password-change-page .input-with-icon input:focus {
            border-color: #323369;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.mpin-change-page .toggle-password-icon,
.password-change-page .toggle-password-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: color 0.3s;
}

    .mpin-change-page .toggle-password-icon:hover,
    .password-change-page .toggle-password-icon:hover {
        color: #323369;
    }

    .mpin-change-page .toggle-password-icon i,
    .password-change-page .toggle-password-icon i {
        pointer-events: none;
    }

.mpin-change-page .btn-group-custom,
.password-change-page .btn-group-custom {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.mpin-change-page .btn-custom,
.password-change-page .btn-custom {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mpin-change-page .btn-primary-custom,
.password-change-page .btn-primary-custom {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
}

    .mpin-change-page .btn-primary-custom:hover,
    .password-change-page .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.mpin-change-page .btn-secondary-custom,
.password-change-page .btn-secondary-custom {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

    .mpin-change-page .btn-secondary-custom:hover,
    .password-change-page .btn-secondary-custom:hover {
        background: #e0e0e0;
    }

.mpin-change-page .username-display,
.password-change-page .username-display {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .mpin-change-page .username-display label,
    .password-change-page .username-display label {
        font-size: 9px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        margin: 0;
        letter-spacing: 0.3px;
    }

    .mpin-change-page .username-display .value,
    .password-change-page .username-display .value {
        font-size: 12px;
        font-weight: 600;
        color: #333;
    }

.mpin-change-page .username-wrapper,
.password-change-page .username-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.mpin-change-page .mpin-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.mpin-change-page .success-message,
.password-change-page .success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.mpin-change-page .error-message,
.password-change-page .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* MPIN / Password Page Mobile Responsive */
@media (max-width: 480px) {
    .mpin-change-page .search-section .container,
    .password-change-page .search-section .container {
        max-width: 100% !important;
        padding: 0 15px;
    }

    .mpin-change-page .btn-group-custom,
    .password-change-page .btn-group-custom {
        flex-direction: column;
    }

    .mpin-change-page .btn-custom,
    .password-change-page .btn-custom {
        width: 100%;
    }
}

/* ============================================
   MY PROFILE PAGE STYLES
   ============================================ */
.my-profile-page .search-section .container {
    max-width: 800px !important;
}

.my-profile-page .search-section .search-card {
    padding: 20px !important;
}

.my-profile-page .search-section h5 {
    margin-bottom: 15px !important;
}

.my-profile-page .profile-header {
    text-align: center;
    margin-bottom: 15px;
}

.my-profile-page .profile-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.my-profile-page .profile-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

    .my-profile-page .profile-icon svg {
        width: 42px;
        height: 42px;
        fill: white;
    }

.my-profile-page .profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.my-profile-page .profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 0;
}

.my-profile-page .profile-field {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

    .my-profile-page .profile-field label {
        display: block;
        font-size: 10px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
    }

    .my-profile-page .profile-field .value {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        word-break: break-word;
    }

/* My Profile Page Mobile Responsive */
@media (max-width: 768px) {
    .my-profile-page .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .my-profile-page .search-section .container {
        max-width: 100% !important;
        padding: 0 15px;
    }
}

/* ============================================
   TRAVEL HISTORY PAGE STYLES
   ============================================ */
/* Action Icons Styling */
.travel-history-page .view-icon,
.travel-history-page .print-icon {
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    margin: 0 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.travel-history-page .view-icon {
    color: #1976d2;
}

    .travel-history-page .view-icon:hover {
        color: #1565c0;
        transform: scale(1.2);
    }

.travel-history-page .print-icon {
    color: #28a745;
}

    .travel-history-page .print-icon:hover {
        color: #20c997;
        transform: scale(1.2);
    }

    .travel-history-page .view-icon:active,
    .travel-history-page .print-icon:active {
        transform: scale(0.95);
    }

/* Popup Overlay */
.travel-history-page .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .travel-history-page .popup-overlay.active {
        display: flex;
    }

.travel-history-page .popup-content {
    background: white;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.travel-history-page .popup-header {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.travel-history-page .popup-title {
    font-size: 18px;
    font-weight: bold;
}

.travel-history-page .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .travel-history-page .close-btn:hover {
        background: rgba(255,255,255,0.2);
    }

.travel-history-page .popup-body {
    padding: 25px;
}

.travel-history-page .detail-section {
    margin-bottom: 25px;
}

.travel-history-page .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.travel-history-page .detail-label {
    color: #666;
    font-size: 14px;
}

.travel-history-page .detail-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.travel-history-page .route-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.travel-history-page .route-city {
    flex: 1;
}

.travel-history-page .route-city-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.travel-history-page .route-time {
    font-size: 13px;
    color: #666;
}

.travel-history-page .route-arrow {
    font-size: 20px;
    color: #323369;
}

.travel-history-page .passenger-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .travel-history-page .passenger-table th {
        background: #f8f9fa;
        padding: 10px;
        text-align: left;
        font-size: 13px;
        color: #666;
        border-bottom: 2px solid #e0e0e0;
    }

    .travel-history-page .passenger-table td {
        padding: 10px;
        font-size: 13px;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
    }

.travel-history-page .total-amount {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
}

.travel-history-page .home-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
}

    .travel-history-page .home-btn:hover {
        background: #c82333;
    }

.travel-history-page .cancel-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .travel-history-page .cancel-btn:hover {
        background: #c82333;
        transform: scale(1.05);
    }

    .travel-history-page .cancel-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.6;
    }

.travel-history-page .refund-info {
    font-size: 11px;
    color: #28a745;
    margin-top: 3px;
    font-weight: 600;
}

.travel-history-page .no-cancel {
    font-size: 11px;
    color: #dc3545;
    font-weight: 600;
}

/* Travel History Mobile Responsive */
@media (max-width: 768px) {
    .travel-history-page .popup-content {
        width: 100%;
        max-width: 100%;
    }

    .travel-history-page .route-section {
        flex-direction: column;
        text-align: center;
    }

    .travel-history-page .route-arrow {
        transform: rotate(90deg);
    }
}

/* =============================================
   BOOKING CONFIRMATION PAGE STYLES
   Wrapper: .booking-confirmation-page
   Page: TravelBookingConfirmation.aspx
   ============================================= */

.booking-confirmation-page {
    --bc-brand: #0b3d91;
    --bc-ink: #111827;
    --bc-muted: #6b7280;
    --bc-border: #e5e7eb;
    --bc-success: #16a34a;
}

    .booking-confirmation-page * {
        box-sizing: border-box;
    }

    .booking-confirmation-page .bc-receipt {
        width: 760px;
        margin: 10px auto;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 14px;
    }

    /* header */
    .booking-confirmation-page .bc-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .booking-confirmation-page .bc-brand {
        display: flex;
        gap: 8px;
        align-items: center;
    }

        .booking-confirmation-page .bc-brand .name {
            font-weight: 800;
            color: #0b3d91;
            font-size: 18px;
        }

    .booking-confirmation-page .bc-tagline {
        font-size: 11px;
        color: #6b7280;
    }

    .booking-confirmation-page .bc-meta {
        text-align: right;
    }

    .booking-confirmation-page .bc-title {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
    }

    .booking-confirmation-page .bc-contact {
        color: #6b7280;
        font-size: 11px;
    }

    .booking-confirmation-page .bc-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 8px 0;
    }

    /* summary row */
    .booking-confirmation-page .bc-summary {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 8px;
    }

    .booking-confirmation-page .bc-card {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px;
    }

    .booking-confirmation-page .bc-receiptlabel {
        font-size: 10px;
        text-transform: uppercase;
        color: #6b7280;
        letter-spacing: .06em;
    }

    .booking-confirmation-page .bc-value {
        font-weight: 700;
        font-size: 15px;
    }

    .booking-confirmation-page .bc-amount {
        font-size: 18px;
    }

    .booking-confirmation-page .bc-status-Success {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: #16a34a;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    .booking-confirmation-page .bc-status-Pending {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: orange;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    .booking-confirmation-page .bc-status-Failed {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        background-color: orangered;
        color: #fff;
        font-weight: 800;
        font-size: 11px;
    }

    /* details grid */
    .booking-confirmation-page .bc-kv {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

        .booking-confirmation-page .bc-kv dt,
        .booking-confirmation-page .bc-kv dd {
            padding: 7px 9px;
            font-size: 13px;
            margin: 0;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
        }

        .booking-confirmation-page .bc-kv dt {
            background: #fafafa;
            color: #374151;
            font-weight: 600;
        }

        .booking-confirmation-page .bc-kv dd {
            background: #fff;
        }

            .booking-confirmation-page .bc-kv dt:nth-child(4n),
            .booking-confirmation-page .bc-kv dd:nth-child(4n) {
                border-right: none;
            }

            .booking-confirmation-page .bc-kv dt:nth-last-child(-n+4),
            .booking-confirmation-page .bc-kv dd:nth-last-child(-n+4) {
                border-bottom: none;
            }

    .booking-confirmation-page .bc-disclaimer {
        margin-top: 8px;
        padding: 8px 10px;
        border: 1px dashed #e5e7eb;
        border-radius: 8px;
        background: #fcfcfd;
        color: #374151;
        font-size: 11.5px;
    }

    .booking-confirmation-page .bc-foot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        font-weight: 600;
    }

    .booking-confirmation-page .bc-muted {
        color: #6b7280;
    }

    /* passenger label */
    .booking-confirmation-page .bc-passenger-label {
        font-weight: 600;
        color: #374151;
        margin-bottom: 5px;
        font-size: 13px;
    }

    /* passenger table */
    .booking-confirmation-page .bc-passenger-table {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 4px;
    }

        .booking-confirmation-page .bc-passenger-table thead,
        .booking-confirmation-page .bc-passenger-table > thead {
            background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
        }

            .booking-confirmation-page .bc-passenger-table thead tr,
            .booking-confirmation-page .bc-passenger-table > thead > tr {
                background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
            }

                .booking-confirmation-page .bc-passenger-table th,
                .booking-confirmation-page .bc-passenger-table thead th,
                .booking-confirmation-page .bc-passenger-table > thead > tr > th {
                    background: linear-gradient(135deg, #323369 0%, #ff7400 100%) !important;
                    color: #fff !important;
                    padding: 8px 10px;
                    font-weight: 600 !important;
                    font-size: 13px;
                    text-align: left;
                    border-bottom: 2px solid #e5e7eb;
                }

        .booking-confirmation-page .bc-passenger-table td {
            padding: 7px 10px;
            font-size: 13px;
            border-bottom: 1px solid #e5e7eb;
            background: #fff;
        }

        .booking-confirmation-page .bc-passenger-table tbody tr:last-child td {
            border-bottom: none;
        }

        .booking-confirmation-page .bc-passenger-table tbody tr:hover {
            background: #f9fafb;
        }

/* print */
@media print {
    .booking-confirmation-page .bc-receipt {
        width: 760px !important;
        margin: 10px auto !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        padding: 14px !important;
        background: #fff !important;
    }
}

/* small screens */
@media (max-width: 820px) {
    .booking-confirmation-page .bc-receipt {
        width: auto;
        margin: 0;
        border-radius: 0;
    }

    .booking-confirmation-page .bc-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-confirmation-page .bc-kv {
        grid-template-columns: auto 1fr;
    }

    .booking-confirmation-page .bc-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booking-confirmation-page .bc-brand {
        justify-content: center;
        flex-wrap: wrap;
    }

    .booking-confirmation-page .bc-meta {
        text-align: center;
        margin-top: 10px;
    }

    .booking-confirmation-page .bc-foot {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* =============================================
   BUS BOOKING CONTENT PAGE STYLES
   Wrapper: .bus-booking-content-page
   Page: BusBookingContent.aspx
   ============================================= */

.bus-booking-content-page .bbc-banner-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.bus-booking-content-page .bbc-banner-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.bus-booking-content-page .bbc-banner-carousel {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 8px;
}

.bus-booking-content-page .bbc-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.bus-booking-content-page .bbc-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bus-booking-content-page .bbc-banner-slide.active {
        opacity: 1;
        z-index: 1;
    }

    .bus-booking-content-page .bbc-banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

/* Navigation Arrows */
.bus-booking-content-page .bbc-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .bus-booking-content-page .bbc-banner-nav:hover {
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        transform: translateY(-50%) scale(1.1);
    }

    .bus-booking-content-page .bbc-banner-nav span {
        font-size: 28px;
        font-weight: bold;
        color: #333;
        line-height: 1;
    }

.bus-booking-content-page .bbc-banner-prev {
    left: 15px;
}

.bus-booking-content-page .bbc-banner-next {
    right: 15px;
}

/* Dots Indicator */
.bus-booking-content-page .bbc-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.bus-booking-content-page .bbc-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .bus-booking-content-page .bbc-banner-dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    .bus-booking-content-page .bbc-banner-dot.active {
        background: white;
        border-color: #d32f2f;
        transform: scale(1.3);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .bus-booking-content-page .bbc-banner-carousel {
        height: 250px;
    }

    .bus-booking-content-page .bbc-banner-nav {
        width: 35px;
        height: 35px;
    }

        .bus-booking-content-page .bbc-banner-nav span {
            font-size: 22px;
        }

    .bus-booking-content-page .bbc-banner-prev {
        left: 10px;
    }

    .bus-booking-content-page .bbc-banner-next {
        right: 10px;
    }

    .bus-booking-content-page .bbc-banner-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .bus-booking-content-page .bbc-banner-section {
        padding: 20px 0;
    }

    .bus-booking-content-page .bbc-banner-card {
        padding: 15px;
    }

    .bus-booking-content-page .bbc-banner-carousel {
        height: 200px;
    }
}

/* ================================================
   MY DASHBOARD PAGE - Unique styles (.my-dashboard-page)
   Prefix: mdb-
   ================================================ */

/* Wrapper - Prevent horizontal scroll */
.my-dashboard-page {
    overflow-x: hidden;
    width: 100%;
}

    /* Dashboard Container */
    .my-dashboard-page .mdb-container {
        max-width: 1400px;
        margin: 8px auto;
        padding: 0 12px;
    }

    /* Page Header */
    .my-dashboard-page .mdb-page-header {
        background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
        color: white;
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .my-dashboard-page .mdb-page-header h1 {
            margin: 0;
            font-size: 22px;
            font-weight: 600;
        }

        .my-dashboard-page .mdb-page-header small {
            opacity: 0.85;
            font-size: 13px;
        }

        .my-dashboard-page .mdb-page-header .mdb-breadcrumb {
            display: flex;
            gap: 8px;
            align-items: center;
            font-size: 13px;
        }

            .my-dashboard-page .mdb-page-header .mdb-breadcrumb a {
                color: white;
                text-decoration: none;
                opacity: 0.85;
            }

                .my-dashboard-page .mdb-page-header .mdb-breadcrumb a:hover {
                    opacity: 1;
                }

    /* Birthday Banner */
    .my-dashboard-page .mdb-birthday-banner {
        text-align: center;
        margin-bottom: 15px;
    }

        .my-dashboard-page .mdb-birthday-banner img {
            max-width: 300px;
            width: 100%;
        }

    /* Content Body Card */
    .my-dashboard-page .mdb-content-body-card {
        background: transparent;
    }

    /* Section Title */
    .my-dashboard-page .mdb-section-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .my-dashboard-page .mdb-section-title i {
            color: #323369;
        }

    /* Stats Row */
    .my-dashboard-page .mdb-stats-row {
        margin-bottom: 15px;
    }

    /* Dashboard Cards */
    .my-dashboard-page .mdb-card {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        padding: 15px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .my-dashboard-page .mdb-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        }

        /* Compact Card Style */
        .my-dashboard-page .mdb-card.compact {
            padding: 12px 15px;
            margin-bottom: 8px;
            border-radius: 8px;
        }

    .my-dashboard-page .mdb-icon {
        font-size: 18px;
        color: white;
        padding: 10px;
        border-radius: 10px;
        margin-right: 12px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

    .my-dashboard-page .mdb-card.compact .mdb-icon {
        width: 38px;
        height: 38px;
        padding: 8px;
        font-size: 16px;
    }

    .my-dashboard-page .mdb-count {
        font-size: 18px;
        font-weight: 700;
        text-align: right;
        color: #333;
    }

    .my-dashboard-page .mdb-card.compact .mdb-count {
        font-size: 16px;
    }

    .my-dashboard-page .mdb-card.compact .mdb-text-muted {
        font-size: 11px;
    }

    .my-dashboard-page .mdb-card.compact .mdb-formatedamount {
        font-size: 10px;
    }

    /* Background Colors */
    .my-dashboard-page .mdb-bg-aqua {
        background: linear-gradient(135deg, #483a5e 0%, #00a1d6 100%);
    }

    .my-dashboard-page .mdb-bg-red {
        background: linear-gradient(135deg, #dd4b39 0%, #c0392b 100%);
    }

    .my-dashboard-page .mdb-bg-yellow {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    }

    .my-dashboard-page .mdb-bg-green {
        background: linear-gradient(135deg, #00a65a 0%, #27ae60 100%);
    }

    .my-dashboard-page .mdb-text-muted {
        font-size: 13px;
        text-align: right;
        color: #666;
        font-weight: 500;
    }

    .my-dashboard-page .mdb-formatedamount {
        text-align: right;
        font-weight: 600;
        font-size: 12px;
        color: #888;
        margin-top: 2px;
    }

    /* Chart Container */
    .my-dashboard-page .mdb-chart-container {
        background: white;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
        height: 100%;
    }

        .my-dashboard-page .mdb-chart-container.compact {
            padding: 15px;
            border-radius: 8px;
            min-height: 320px;
        }

    .my-dashboard-page #amountChart {
        max-height: 280px;
        width: 100%;
    }

    .my-dashboard-page .mdb-chart-container.compact #amountChart {
        max-height: 280px;
    }

    /* News Ticker */
    .my-dashboard-page .mdb-news-section-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .my-dashboard-page .mdb-news-section-title i {
            color: #323369;
        }

    .my-dashboard-page .mdb-news-ticker {
        min-height: 300px;
        overflow-y: auto;
        background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
        color: white;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }

        .my-dashboard-page .mdb-news-ticker.compact {
            min-height: 290px;
            max-height: 290px;
            padding: 15px;
            border-radius: 8px;
        }

    /* Equal Height Row for Chart and News */
    .my-dashboard-page .row.mdb-equal-height {
        display: flex;
        flex-wrap: wrap;
    }

        .my-dashboard-page .row.mdb-equal-height > [class*='col-'] {
            display: flex;
            flex-direction: column;
        }

        .my-dashboard-page .row.mdb-equal-height .mdb-chart-container,
        .my-dashboard-page .row.mdb-equal-height .mdb-news-ticker {
            flex: 1;
        }

    .my-dashboard-page .mdb-news-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.4;
        padding: 8px;
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
        transition: background 0.3s ease;
    }

    .my-dashboard-page .mdb-news-ticker.compact .mdb-news-item {
        margin-bottom: 8px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .my-dashboard-page .mdb-news-item:hover {
        background: rgba(255,255,255,0.2);
    }

    .my-dashboard-page .mdb-news-item i {
        margin-right: 10px;
        margin-top: 2px;
        color: #ffd700;
        font-size: 14px;
    }

    .my-dashboard-page .mdb-news-ticker.compact .mdb-news-item i {
        font-size: 12px;
        margin-right: 8px;
    }

    .my-dashboard-page .mdb-news-ticker::-webkit-scrollbar {
        width: 6px;
    }

    .my-dashboard-page .mdb-news-ticker::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 10px;
    }

    .my-dashboard-page .mdb-news-ticker::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    /* Toast Notification Styles */
    .my-dashboard-page .mdb-toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }

    .my-dashboard-page .mdb-toast-notification {
        background: white;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        padding: 15px 20px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 300px;
        animation: mdbSlideIn 0.3s ease;
    }

        .my-dashboard-page .mdb-toast-notification.success {
            border-left: 4px solid #28a745;
        }

        .my-dashboard-page .mdb-toast-notification.error {
            border-left: 4px solid #dc3545;
        }

        .my-dashboard-page .mdb-toast-notification.warning {
            border-left: 4px solid #ffc107;
        }

@keyframes mdbSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* My Dashboard Page - Mobile Responsive */
@media (max-width: 768px) {
    .my-dashboard-page .mdb-container {
        padding: 0 8px;
    }

    .my-dashboard-page .mdb-page-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px 15px;
    }

        .my-dashboard-page .mdb-page-header h1 {
            font-size: 18px;
        }

    .my-dashboard-page .mdb-stats-row {
        margin-bottom: 10px;
    }

    .my-dashboard-page .mdb-card {
        padding: 10px 12px;
    }

        .my-dashboard-page .mdb-card.compact {
            padding: 8px 10px;
        }

    .my-dashboard-page .mdb-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        padding: 6px;
        margin-right: 8px;
    }

    .my-dashboard-page .mdb-count {
        font-size: 14px;
    }

    .my-dashboard-page .mdb-card.compact .mdb-count {
        font-size: 13px;
    }

    .my-dashboard-page .mdb-text-muted {
        font-size: 10px;
    }

    .my-dashboard-page .mdb-formatedamount {
        font-size: 9px;
    }

    .my-dashboard-page .mdb-news-ticker {
        min-height: 200px;
        max-height: 200px;
    }

        .my-dashboard-page .mdb-news-ticker.compact {
            min-height: 150px;
            max-height: 150px;
        }

    /* Chart Container - Mobile Fix for Y-axis labels */
    .my-dashboard-page .mdb-chart-container {
        padding: 10px 5px 10px 0;
        min-height: 200px;
        overflow: visible;
    }

        .my-dashboard-page .mdb-chart-container.compact {
            padding: 10px 5px 10px 0;
            min-height: 200px;
            overflow: visible;
        }

            .my-dashboard-page .mdb-chart-container.compact #amountChart,
            .my-dashboard-page #amountChart {
                max-height: 180px;
                min-height: 160px;
                width: 100% !important;
            }

        /* Chart Canvas wrapper - ensure Y-axis labels visible */
        .my-dashboard-page .mdb-chart-container canvas {
            margin-left: 0 !important;
        }

    /* Equal height row stack on mobile */
    .my-dashboard-page .row.mdb-equal-height {
        flex-direction: column;
    }

        .my-dashboard-page .row.mdb-equal-height > [class*='col-'] {
            width: 100%;
            max-width: 100%;
            flex: 0 0 100%;
            margin-bottom: 15px;
        }
}

/* ================================================
   RETAILER TRAVEL MASTER - Navigation & Header Styles
   Wrapper: .rtm-page
   Prefix: rtm-
   ================================================ */

/* Navigation Card Container - Positioned to overlap search section only */
.rtm-page .rtm-nav-card-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 100;
    padding: 0 20px;
    transform: translateY(-40%) translateX(5%);
    margin-top: 15px;
}

.rtm-page .rtm-nav-card {
    background: white;
    border-radius: 16px;
    padding: 5px 5px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 100;
}

/* MyDashboard page - pull container up for nav card overlap */
.rtm-page .my-dashboard-page {
    /*margin-top: -56px;*/
}

.rtm-page .my-dashboard-page .mdb-page-header {
    padding-top: 11px;
}


/* Make sure top-header stays on top and fully visible */
.rtm-page .rtm-top-header {
    position: relative;
    background: white;
    padding: 12px 0;
}

/* Adjust search section to accommodate overlap */
.rtm-page .rtm-search-section,
.rtm-page .search-section {
    position: relative;
    margin-top: -43px;
    z-index: 50;
}

.rtm-page .rtm-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
}

    .rtm-page .rtm-nav-item:hover {
        transform: translateY(-8px);
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

.rtm-page .rtm-nav-icon-container {
    width: 70px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.rtm-page .rtm-nav-item:hover .rtm-nav-icon-container {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.rtm-page .rtm-nav-icon-container img {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.rtm-page .rtm-nav-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: color 0.3s ease;
}

.rtm-page .rtm-nav-item:hover .rtm-nav-label {
    color: #323369;
}

/* Active Navigation Item Styles */
.rtm-page .rtm-nav-item.rtm-active-nav {
    background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

    .rtm-page .rtm-nav-item.rtm-active-nav .rtm-nav-icon-container {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }

    .rtm-page .rtm-nav-item.rtm-active-nav .rtm-nav-label {
        color: white;
        font-weight: 700;
    }

    /* Hover state should not override active state */
    .rtm-page .rtm-nav-item.rtm-active-nav:hover {
        background: linear-gradient(135deg, #323369 0%, #ff7400 100%);
    }

/* Top Navigation Styles */
.rtm-page .rtm-top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.rtm-page .rtm-wallet-section {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

.rtm-page .rtm-wallet-amount {
    font-weight: 600;
    color: #28a745;
}

.rtm-page .rtm-refresh-icon {
    cursor: pointer;
    color: #666;
    font-size: 16px;
    margin-left: 8px;
}

    .rtm-page .rtm-refresh-icon:hover {
        color: #28a745;
    }

.rtm-page .rtm-load-wallet-icon {
    /*    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s;*/

    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    margin-left: 8px;
}

    .rtm-page .rtm-load-wallet-icon:hover {
        background: #218838;
        transform: scale(1.1);
    }

.rtm-page .rtm-wallet-ledger-icon {
    cursor: pointer;
    color: #1976d2;
    font-size: 18px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

    .rtm-page .rtm-wallet-ledger-icon:hover {
        color: #323369;
    }

.rtm-page .rtm-lienamount-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rtm-page .rtm-user-dropdown {
    position: relative;
    display: inline-block;
}

.rtm-page .rtm-user-name {
    /*cursor: pointer;
    font-weight: 600;
    color: #323369;*/
    cursor: pointer;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 6px;
    font-weight: 500;
}

.rtm-page .rtm-dropdown-menu-custom {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
}

    .rtm-page .rtm-dropdown-menu-custom.show {
        display: block;
    }

.rtm-page .rtm-dropdown-item-custom {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

    .rtm-page .rtm-dropdown-item-custom:hover {
        background: #f8f9fa;
    }

    .rtm-page .rtm-dropdown-item-custom:last-child {
        border-bottom: none;
    }

    .rtm-page .rtm-dropdown-item-custom a {
        color: #333;
        text-decoration: none;
    }

.rtm-page .rtm-logo img {
    max-width: 200px;
    width: 100%;
}

/* ================================================
   RETAILER TRAVEL MASTER - Responsive Design
   ================================================ */

@media (max-width: 992px) {
    .rtm-page .rtm-nav-card-container {
        transform: translate(0%, -40%);
    }

    .rtm-page .rtm-nav-card {
        gap: 35px;
        padding: 20px 30px;
    }

    .rtm-page .rtm-nav-icon-container {
        width: 60px;
        height: 60px;
    }

        .rtm-page .rtm-nav-icon-container img {
            width: 38px;
            height: 38px;
        }
}

@media (max-width: 768px) {
    /* Tablet Header Adjustments */
    .rtm-page .rtm-top-header {
        padding: 8px 0 !important;
    }

    .rtm-page .rtm-logo img {
        max-width: 180px !important;
    }

    .rtm-page .rtm-top-nav {
        font-size: 11px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

        .rtm-page .rtm-top-nav > div {
            padding: 4px 7px !important;
            font-size: 11px !important;
        }

    .rtm-page .rtm-wallet-section {
        font-size: 11px !important;
        gap: 4px !important;
    }

        .rtm-page .rtm-wallet-section span,
        .rtm-page .rtm-wallet-amount {
            font-size: 11px !important;
        }

    .rtm-page .rtm-user-dropdown {
        display: inline-block !important;
    }

        .rtm-page .rtm-user-dropdown .rtm-user-name {
            font-size: 11px !important;
            display: inline-block !important;
            cursor: pointer;
        }

    .rtm-page .rtm-dropdown-menu-custom {
        min-width: 180px !important;
        font-size: 12px !important;
    }

    .rtm-page .rtm-dropdown-item-custom {
        font-size: 12px !important;
    }

    .rtm-page .rtm-nav-card-container {
        transform: translate(0%, -35%);
        padding: 0 10px;
        max-width: 100%;
    }

    .rtm-page .rtm-nav-card {
        gap: 20px;
        padding: 20px 15px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

        /* Custom scrollbar for webkit browsers */
        .rtm-page .rtm-nav-card::-webkit-scrollbar {
            height: 6px;
        }

        .rtm-page .rtm-nav-card::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .rtm-page .rtm-nav-card::-webkit-scrollbar-thumb {
            background: #323369;
            border-radius: 10px;
        }

            .rtm-page .rtm-nav-card::-webkit-scrollbar-thumb:hover {
                background: #ff7400;
            }

    .rtm-page .rtm-nav-item {
        padding: 12px 15px;
        min-width: 100px;
    }

    .rtm-page .rtm-nav-icon-container {
        width: 55px;
        height: 55px;
    }

        .rtm-page .rtm-nav-icon-container img {
            width: 35px;
            height: 35px;
        }

    .rtm-page .rtm-nav-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Top Header Mobile Fixes */
    .rtm-page .rtm-top-header {
        padding: 6px 0 !important;
        position: relative !important;
        background: white !important;
        padding-bottom: 8px !important;
    }

        .rtm-page .rtm-top-header .container {
            padding-left: 4px !important;
            padding-right: 4px !important;
        }

        .rtm-page .rtm-top-header .row {
            margin: 0 !important;
            align-items: center !important;
        }

        .rtm-page .rtm-top-header .col-md-2,
        .rtm-page .rtm-top-header .col-md-10 {
            padding: 0 4px !important;
        }

    /* Logo - Compact */
    .rtm-page .rtm-logo {
        margin-bottom: 0 !important;
    }

        .rtm-page .rtm-logo img {
            max-width: 120px !important;
            height: auto;
        }

    /* Top Navigation - Single Row, Better Readability */
    .rtm-page .rtm-top-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        font-size: 9px !important;
        justify-content: flex-end !important;
        align-items: center !important;
        line-height: 1.3 !important;
        position: relative !important;
        z-index: 201 !important;
    }

    /* Wallet Section - Readable */
    .rtm-page .rtm-wallet-section {
        font-size: 9px !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 4px 6px !important;
        background: rgba(40, 167, 69, 0.08) !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }

        .rtm-page .rtm-wallet-section span {
            font-size: 9px !important;
        }

    .rtm-page .rtm-wallet-amount {
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #28a745 !important;
    }

    .rtm-page .rtm-refresh-icon,
    .rtm-page .rtm-load-wallet-icon,
    .rtm-page .rtm-wallet-ledger-icon {
        font-size: 14px !important;
        padding: 2px !important;
        cursor: pointer !important;
    }

    /* Lien Amount Section - Hide on Mobile */
    .rtm-page .rtm-lienamount-section {
        display: none !important;
    }

    /* Track Ticket & Ticket History - Readable */
    .rtm-page .rtm-top-nav > div[onclick*="TrackTravel"],
    .rtm-page .rtm-top-nav > div[onclick*="TravelHistory"] {
        font-size: 9px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
        background: rgba(102, 126, 234, 0.05) !important;
        border-radius: 4px !important;
        line-height: 1.3 !important;
    }

    /* User Dropdown - Full Name Visible */
    .rtm-page .rtm-user-dropdown {
        position: relative !important;
        display: inline-block !important;
    }

        .rtm-page .rtm-user-dropdown .rtm-user-name {
            font-size: 9px !important;
            max-width: 95px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            font-weight: 600 !important;
            color: #323369 !important;
            padding: 4px 6px !important;
            background: rgba(102, 126, 234, 0.1) !important;
            border-radius: 4px !important;
            cursor: pointer !important;
            display: inline-block !important;
        }

    /* Dropdown Menu - Mobile Optimized */
    .rtm-page .rtm-dropdown-menu-custom {
        position: fixed !important;
        right: 4px !important;
        top: 50px !important;
        left: auto !important;
        width: 180px !important;
        font-size: 11px !important;
        z-index: 10000 !important;
        background: white !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }

        .rtm-page .rtm-dropdown-menu-custom.show {
            display: block !important;
        }

    .rtm-page .rtm-dropdown-item-custom {
        padding: 10px 12px !important;
        font-size: 11px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

        .rtm-page .rtm-dropdown-item-custom:last-child {
            border-bottom: none !important;
        }

        .rtm-page .rtm-dropdown-item-custom a,
        .rtm-page .rtm-dropdown-item-custom .aspNetDisabled {
            font-size: 11px !important;
            color: #333 !important;
            text-decoration: none !important;
        }

    /* Container Padding */
    .rtm-page .container {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .rtm-page .rtm-nav-card-container {
        transform: translate(0%, -32%);
        padding: 0 5px;
        margin-bottom: -12px;
        margin-top: 8px;
    }

    .rtm-page .rtm-nav-card {
        gap: 12px;
        padding: 12px 8px;
    }

    .rtm-page .rtm-nav-item {
        padding: 8px 10px;
        min-width: 80px;
    }

    .rtm-page .rtm-nav-icon-container {
        width: 45px;
        height: 45px;
    }

        .rtm-page .rtm-nav-icon-container img {
            width: 30px;
            height: 30px;
        }

        .rtm-page .rtm-nav-icon-container span {
            font-size: 30px;
        }

    .rtm-page .rtm-nav-label {
        font-size: 11px;
    }
}
