/* Ticket Management Module CSS */
/* Enhanced UI/UX for Dashboard, List, and View pages */

/* ===== REWARD HISTORY ===== */
.search-bar {
    max-width: 600px;
}

.points-positive {
    color: #28a745;
    font-weight: 600;
}

.points-negative {
    color: #dc3545;
    font-weight: 600;
}

.pagination-container {
    padding: 15px 0;
}

/* ===== BULK UPDATE SEARCH ===== */
.input-with-btn {
    position: relative !important;
}

.input-with-btn .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    display: block !important;
    width: 100% !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    float: none !important;
    min-width: unset !important;
}

.input-with-btn .dropdown-menu[style*="display: none"] {
    display: none !important;
}

.input-with-btn .dropdown-item {
    padding: 8px 12px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    color: #333 !important;
    text-decoration: none !important;
    border:none; 
    background: transparent;
}

.input-with-btn .dropdown-item:hover {
    background-color: #f8f9fa !important;
}

.input-with-btn .dropdown-item:last-child {
    border-bottom: none !important;
}

.bulk-update-search .input-group {
    position: relative !important;
}

.bulk-update-search .input-group-append .btn {
    border-left: none !important;
}

/* ===== FILTER FORM LAYOUT ===== */
.card-body .row.g-3 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    align-items: flex-end !important;
    padding: 0 !important;
    margin: 0 !important;
}

.card-body .row.g-3 > div {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

/* Search field wider */
.card-body .row.g-3 .col-md-3 {
    flex: 2 !important;
    min-width: 200px !important;
}

/* Other fields equal width */
.card-body .row.g-3 .col-md-2:not(:has(.d-flex)) {
    flex: 1 !important;
    min-width: 120px !important;
}

/* Button container */
.card-body .row.g-3 .d-flex {
    flex: 1 !important;
    min-width: 120px !important;
}

/* Responsive - allow wrapping on smaller screens */
@media (max-width: 1199px) {
    .card-body .row.g-3 {
        flex-wrap: wrap !important;
    }
    
    /* .card-body .row.g-3 .col-md-3 {
        flex: 2 1 300px !important;
    } */
/*     
    .card-body .row.g-3 .col-md-2:not(:has(.d-flex)) {
        flex: 1 1 150px !important;
    }
    
    .card-body .row.g-3 .d-flex {
        flex: 1 1 150px !important;
    } */
}

@media (max-width: 767px) {
    .card-body .row.g-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .card-body .row.g-3 > div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .card-body .row.g-3 .d-flex {
        justify-content: stretch !important;
        gap: 0.5rem !important;
    }
    
    .card-body .row.g-3 .btn {
        flex: 1 !important;
    }
}

.card-body .row.g-3 .form-control,
.card-body .row.g-3 select {
    width: 100% !important;
}

.card-body .row.g-3 .d-flex {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    height: 40px;
}

.card-body .row.g-3 .btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ===== PAGE STRUCTURE ===== */

.page-header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 2rem;
    display: flex;
    align-items: center;
}

.page-header .d-flex {
    margin-top: 1rem;
}


.page-content{padding:10px 10px 30px 10px;background-color:rgba(255,255,255,0.95);border-radius:0 0 20px 20px;box-shadow:0 4px 15px rgba(0,0,0,0.1);}
.page-content .page-container {
    max-width: 100%;
    padding: 10px;
}

/* .row {padding: 15px 0} */

/* Stats Cards Flex Container */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-row .stats-card {
    flex: 1;
    min-width: 250px;
    max-width: calc(33.333% - 0.667rem);
}

.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #3b82f6), var(--card-color-light, #60a5fa));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-card.primary {
    --card-color: #007bff;
    --card-color-light: #5cb3ff;
}

.stats-card.success {
    --card-color: #28a745;
    --card-color-light: #71dd8a;
}

.stats-card.warning {
    --card-color: #ffc107;
    --card-color-light: #ffd966;
}

.page-content .stats-card.danger {
    --card-color: #dc3545;
    --card-color-light: #ff6b7a;
}

.page-content .stats-card.info {
    --card-color: #17a2b8;
    --card-color-light: #5ec4d6;
}

.page-content .stats-card.dark {
    --card-color: #1f2937;
    --card-color-light: #4b5563;
}

.page-content .stats-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-content .stats-card-info h6 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.page-content .stats-card-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.page-content .stats-card-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
}

.page-content .stats-card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--card-color), var(--card-color-light));
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== QUICK ACTIONS CARD ===== */
.page-content .quick-actions-card .stats-card-content {
    justify-content: flex-start;
    gap: 1rem;
}

.page-content .quick-actions-card .stats-card-info {
    flex: 1;
}

.page-content .btn-group-sm .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-content .btn-group-sm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== RECENT ACTIVITY TABLE ===== */
.page-content .activity-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin: 20px 0;
}

.page-content .activity-card .card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
}

.page-content .activity-card .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.page-content .activity-table {
    margin: 0;
}

.page-content .activity-table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.page-content .activity-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.page-content .activity-table tbody tr:hover {
    background: #f9fafb;
}

.page-content .ticket-number {
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4b5563;
}

.page-content .route-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.page-content .route-arrow {
    color: #9ca3af;
}

.page-content .departure-info {
    font-size: 0.875rem;
}

.page-content .departure-date {
    font-weight: 500;
    color: #1f2937;
}

.page-content .departure-time {
    color: #6b7280;
}

.page-content .fare-amount {
    font-weight: 600;
    color: #059669;
}

.page-content .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-content .status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.page-content .status-badge.used {
    background: #dbeafe;
    color: #1e40af;
}

.page-content .status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.page-content .status-badge.refunded {
    background: #fef3c7;
    color: #92400e;
}

.page-content .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
    font-size: 1.3rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== FILTERS SECTION ===== */
.filters-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.filters-card .card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.filters-card .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.filters-card .card-body {
    padding: 1.5rem;
}

.filter-form .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.filter-form .form-control,
.filter-form .form-select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.filter-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== TICKET LIST TABLE ===== */
.tickets-table {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tickets-table .card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
}

.tickets-table .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.tickets-table .table {
    margin: 0;
}

.tickets-table .table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.tickets-table .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.tickets-table .table tbody tr:hover {
    background: #f9fafb;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.pagination .page-link {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #4b5563;
}

.pagination .page-item.active .page-link {
    background: #286090;
    border-color: #286090b9;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #d1d5db;
    pointer-events: none;
}

/* ===== TICKET DETAIL VIEW ===== */
.detail-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow: hidden;
}

.detail-card .card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
}

.detail-card .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.detail-card .card-body {
    padding: 1.5rem;
}

.detail-section h6 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.detail-section p {
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 1rem;
}

.detail-section .fs-5 {
    font-size: 1.25rem;
}

.ticket-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== ACTIONS SIDEBAR ===== */
.actions-sidebar .d-grid {
    gap: 1rem;
}

.actions-sidebar .btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.actions-sidebar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== STATUS HISTORY ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.timeline-marker.bg-success, .bg-success {
    color: #10b981;
    background:#d1fae5;
    font-weight:normal;
}

.bg-secondary {
    border: 1px solid #0E1726;
    background: transparent;
    color: #0E1726;
}

.timeline-marker.bg-primary, .bg-primary {
    color: #46b8da;
    background: #dbeafe;
    font-weight:normal;
}

.timeline-marker.bg-warning, .bg-warning {
    color: #d58512;
    background: #fef3c7;
    font-weight:normal;
}

.timeline-marker.bg-danger, .bg-danger {
    color: #d43f3a;
    background: #fee2e2;
    font-weight:normal;
}

.timeline-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #1f2937;
}

.timeline-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===== QR CODE ===== */
.qr-code-card {
    text-align: center;
}

.qr-code-card img {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */ 
/* OTHER DECLARATION WAS MOVED TO THE GLOBAL  */
@media (max-width: 992px) {
    .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header .d-flex {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .stats-card-number {
        font-size: 2rem;
    }
    
    .stats-card-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
    }
    
    .stats-card-content {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .page-header .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        margin-top: 1.25rem;
    }
    
    .page-header .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-card {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }
    
    .stats-card-number {
        font-size: 1.875rem;
    }
    
    .stats-card-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }
    
    .stats-card-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quick-actions-card .stats-card-content {
        flex-direction: column;
    }
    
    .quick-actions-card .btn-group-sm {
        flex-direction: column;
        width: 100%;
    }
    
    .quick-actions-card .btn-group-sm .btn {
        margin-bottom: 0.5rem;
    }
    
    .activity-card .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .activity-card .card-header h6 {
        font-size: 1.5rem;
    }
    
    .activity-table {
        font-size: 0.875rem;
    }
    
    .activity-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .activity-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 1.3rem;
    }
    
    .ticket-number {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .route-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        font-size: 1.3rem;
        padding: 0.25rem 0.5rem;
    }
    
    .status-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.375rem;
    }
    
    .page-header .d-flex {
        margin-top: 1rem;
    }
    
    .page-content {
        margin: 0 10px
    }
    
    
    .col-xl-3,
    .col-md-6,
    .col-xl-4 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
    
    .stats-card-number {
        font-size: 1.625rem;
    }
    
    .stats-card-subtitle {
        font-size: 0.8rem;
    }
    
    .stats-card-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    .activity-card {
        border-radius: 0.75rem;
    }
    
    .activity-card .card-header {
        padding: 0.75rem;
    }
    
    .activity-card .card-header h6 {
        font-size: 0.9rem;
    }
    
    .activity-card .card-header .btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .activity-table {
        font-size: 0.8rem;
    }
    
    .activity-table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .activity-table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .ticket-number {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .departure-info {
        line-height: 1.3;
    }
    
    .departure-date,
    .departure-time {
        display: block;
        font-size: 0.7rem;
    }
    
    .fare-amount {
        font-size: 0.8rem;
    }
    
    .action-buttons .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .status-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .page-header .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .stats-card {
        padding: 0.875rem;
    }
    
    .stats-card-number {
        font-size: 1.5rem;
    }
    
    .stats-card-subtitle {
        font-size: 1rem;
    }
    
    .stats-card-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    .activity-table {
        font-size: 1rem;
    }
    
    .activity-table thead th {
        font-size: 1rem;
        padding: 0.4rem 0.2rem;
    }
    
    .activity-table tbody td {
        font-size: 1rem;
        padding: 0.4rem 0.2rem;
    }
    
    /* Hide less important columns on very small screens */
    .activity-table th:nth-child(4),
    .activity-table td:nth-child(4) {
        display: none;
    }
    
    .ticket-number {
        font-size:1rem;
    }
    
    .route-info {
        font-size: 1rem;
    }
    
    .fare-amount {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 0.125rem;
    }
    
    .action-buttons .btn {
        font-size:1rem;
        padding: 0.15rem 0.3rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .page-header {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .page-header .d-flex {
        flex-direction: row;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .page-header .btn {
        width: auto;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .stats-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stats-card-number {
        font-size: 1.5rem;
    }
    
    .stats-card-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
}

/* ===== HIGH DPI/RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stats-card::before {
        background: linear-gradient(90deg, var(--card-color, #3b82f6), var(--card-color-light, #60a5fa));
    }
    
    .stats-card-icon {
        background: linear-gradient(135deg, var(--card-color), var(--card-color-light));
    }
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .stats-card,
    .activity-card,
    .filters-card,
    .tickets-table,
    .detail-card {
        animation: none;
        transition: none;
    }
    
    .stats-card:hover,
    .btn:hover,
    .action-buttons .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card,
.activity-card,
.filters-card,
.tickets-table,
.detail-card {
    animation: fadeInUp 0.5s ease-out;
}

.stats-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ===== PRINT STYLES ===== */
@media print {
    .page-header,
    .no-print {
        display: none !important;
    }
    
    .page-content {
        padding: 0;
    }
    
    .stats-card,
    .activity-card,
    .filters-card,
    .tickets-table,
    .detail-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .action-buttons,
    .filter-buttons {
        display: none;
    }
}

/* ===== TICKET PREVIEW MODAL RESPONSIVE ===== */
@media (max-width: 615px) {
    #ticketPreviewModal .modal-dialog {
        margin: 5px;
        max-width: 100% !important;
    }
    
    #ticketPreviewModal .modal-content {
        border-radius: 0.5rem;
    }
    
    #ticketPreviewModal .modal-header {
        padding: 0.75rem 1rem;
    }
    
    #ticketPreviewModal .modal-title {
        font-size: 1rem;
    }
    
    #ticketPreviewModal .modal-body {
        padding: 0.75rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    #ticketPreviewModal .modal-footer {
        padding: 0.75rem;
    }
    
    #ticketPreviewActions .pull-right,
    #ticketPreviewActions .pull-left {
        float: none !important;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    #ticketPreviewActions .pull-right {
        order: 2;
    }
    
    #ticketPreviewActions .pull-left {
        order: 1;
    }
    
    #ticketPreviewActions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    #ticketPreviewActions .clearfix {
        display: none;
    }
    
    /* Ticket content responsive adjustments */
    #ticketPreviewContent {
        font-size: 0.875rem;
    }
    
    /* Scale down ticket details on mobile */
    #ticketPreviewContent > div[style*="flex: 1"] {
        transform: scale(0.7);
        transform-origin: top left;
        margin-bottom: -30%;
        opacity: 0.6;
    }
    
    /* Make QR code the main display on mobile */
    #ticketPreviewContent .qr-code {
        max-width: 200px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    #ticketPreviewContent .vessel-copy {
        font-size: 0.75rem;
        text-align: center;
        margin-top: 10px;
    }
    
    /* Reorder: QR code first on mobile */
    #ticketPreviewContent {
        display: flex;
        flex-direction: column-reverse;
    }
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e3e6f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-content {
    background: #f8f9fc;
    padding: 10px;
    border-radius: 5px;
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== RESPONSIVE DESIGN FOR TICKET VIEW ===== */
@media (max-width: 992px) {
    .page-content .row {
        flex-direction: column;
    }
    
    .page-content .col-lg-8,
    .page-content .col-lg-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .page-content .col-lg-4 {
        order: -1; /* Move sidebar to top on mobile */
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 5px;
        margin-bottom: 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .page-header .d-flex {
        flex-direction: column;
        gap: 5px !important;
    }
    
    .page-header .btn {
        width: 100%;
        text-align: center;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 0;
    }
    
    .card-header h6 {
        font-size: 1.5rem;
    }
    hr {margin:10px 0}
    
    .card-body {
        padding: 5px 15px;
    }
    
    .card-body .row {
        flex-direction: column;
        gap: 0;
    }
    
    .card-body .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .fs-5 {
        font-size: 1.5rem !important;
    }
    
    .d-grid {
        gap: 8px !important;
    }
    
    .d-grid .btn {
        padding: 10px 15px;
        font-size: 1.3rem;
    }
    
    .table-responsive {
        font-size:1.3rem;
    }
    
    .table th,
    .table td {
        padding: 8px 5px;
    }
    
    .badge {
        font-size: 1rem;
        padding: 4px 8px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        width: 10px;
        height: 10px;
        left: -25px;
    }
    
    .timeline-content {
        padding: 8px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin: 0px 10px !important;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 10px;
    }
    
    .card-header h6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .card-body h6 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .card-body p {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .fs-5 {
        font-size: 1.5rem !important;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 1.5rem;
    }
    
    .btn i {
        margin-right: 5px;
    }
    
    .table {
        font-size: 1.5rem;
    }
    
    .table th,
    .table td {
        padding: 5px 3px;
        word-break: break-word;
    }
    
    .badge {
        font-size: 1rem;
        padding: 3px 6px;
    }
    
    .timeline {
        padding-left: 15px;
    }
    
    .timeline-marker {
        width: 8px;
        height: 8px;
        left: -20px;
    }
    
    .timeline-content {
        padding: 6px;
        font-size: 1.5rem;
    }
    
    .timeline-content h6 {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }
    
    .timeline-content p {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    /* QR Code adjustments */
    .img-fluid {
        max-width: 150px;
        height: auto;
    }
    
    .text-muted.small {
        font-size: 1.5rem;
    }
}

/* ===== TABLE HEADER STYLING (ALL SCREEN SIZES) ===== */
/* White font color for all table headers */
#ticketsTable th {
    color: #fff !important;
    background-color: #286090 !important;
}

/* Override link colors in all table headers */
#ticketsTable th a {
    color: #fff !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

#ticketsTable th a:hover {
    color: #fff !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

#ticketsTable th a:focus {
    color: #fff !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

#ticketsTable th a:active {
    color: #fff !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

/* White color for sort icons in headers */
#ticketsTable th .fa-sort,
#ticketsTable th .fa-sort-up,
#ticketsTable th .fa-sort-down {
    color: #fff !important;
}

#ticketsTable th .fa-sort.text-muted,
#ticketsTable th .fa-sort-up.text-muted,
#ticketsTable th .fa-sort-down.text-muted {
    color: #fff !important;
}

/* Remove white background from active/visited links */
#ticketsTable th a:active,
#ticketsTable th a:focus,
#ticketsTable th a:visited {
    background-color: transparent !important;
    color: #fff !important;
}

/* ===== RESPONSIVE TABLE WITH FROZEN FIRST COLUMN ===== */
@media (max-width: 767px) {
    /* Remove container width constraint */
    .container {
        max-width: none !important;
        width: 100% !important;
        padding: 80px 5px 90px !important;
    }
    
    /* Force table-responsive to actually scroll */
    .table-responsive {
        overflow-x: scroll !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* Let table content determine natural width */
    #ticketsTable {
        width: auto !important;
        min-width: 1000px !important;
        white-space: nowrap !important;
    }
    
    #ticketsTable th,
    #ticketsTable td {
        white-space: nowrap !important;
        font-size: 1.3rem !important;
        padding: 3px 5px !important;
    }
    
    /* Freeze first column for both tables */
    #ticketsTable th:first-child,
    #ticketsTable td:first-child,
    .activity-table th:first-child,
    .activity-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background-color: #286090 !important;
        color: #fff !important;
        z-index: 10 !important;
        /* min-width: 130px !important; */
        box-shadow: 2px 0 5px rgba(0,0,0,0.1) !important;
    }
    
    #ticketsTable td:first-child,
    .activity-table td:first-child {
        background-color: #f8f9fa !important;
        border-right: 2px solid #dee2e6 !important;
    }
    
    #ticketsTable .btn-group {
        display: flex !important;
        gap: 2px !important;
    }
    
    #ticketsTable .btn-sm {
        padding: 8px 10px !important;
        font-size: 1.3rem !important;
        min-width: 40px !important;
    }
}

@media (max-width: 480px) {
    #ticketsTable {
        min-width: 800px !important;
    }
    
    #ticketsTable th:first-child,
    #ticketsTable td:first-child {
        min-width: 120px !important;
    }
    
    #ticketsTable th {
        font-size: 1.5rem !important;
        padding: 8px 6px !important;
    }
    
    #ticketsTable td {
        font-size: 1.5rem !important;
        padding: 8px 6px !important;
    }
    
    #ticketsTable .btn-sm {
        padding: 6px 8px !important;
        font-size: 1.2rem !important;
        min-width: 35px !important;
    }
}

/* ===== MODAL BACKDROP FIX ===== */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1040 !important;
    background-color: #000 !important;
    opacity: 0.8 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-open {
    overflow: hidden !important;
}

/* ===== MODAL STYLING ===== */
.modal.fade .modal-dialog {
    transform: translate(0, -25%) !important;
    transition: transform 0.3s ease-out !important;
}

.modal.in .modal-dialog {
    transform: translate(0, 0) !important;
}

.modal-content {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: #fff !important;
}

.modal-header {
    background: transparent !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal-header h4 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.modal-header .close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
}

.modal-body {
    padding: 20px !important;
}

.modal-body .field {
    margin-bottom: 15px !important;
}

.modal-body label {
    display: block !important;
    margin-bottom: 5px !important;
    color: #555 !important;
    font-weight: 500 !important;
}

.modal-body select,
.modal-body textarea {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
}

.modal-body select:focus,
.modal-body textarea:focus {
    outline: none !important;
    border-color: #286090 !important;
    box-shadow: 0 0 0 2px rgba(40, 96, 144, 0.2) !important;
}



/* Modal positioning fixes - Override conflicting styles */
.modal#statusUpdateModal, .modal#bulkUpdateModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
    z-index: 1050 !important;
}

.modal#statusUpdateModal .modal-dialog, #bulkUpdateModal.modal .modal-dialog {
    position: fixed !important;
    top: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
    height: auto !important;
    max-height: 650px !important;
}

.modal#statusUpdateModal .modal-content, #bulkUpdateModal.modal .modal-content {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(115,91,91,.15) !important;
    padding: 0 !important;
    overflow: visible !important;
    max-height: 650px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure modal is hidden by default and doesn't interfere with page interaction */
#statusUpdateModal:not(.in), #bulkUpdateModal.modal:not(.in) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#statusUpdateModal.in, #bulkUpdateModal.modal.in {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Bulk Update Modal Height and Scrolling */
#bulkUpdateModal .modal-dialog {
    height: 650px !important;
    max-height: 650px !important;
    min-height: auto !important;
}

#bulkUpdateModal .modal-content {
    height: 650px !important;
    max-height: 650px !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

#bulkUpdateModal .modal-header {
    flex-shrink: 0 !important;
}

#bulkUpdateModal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    height: auto !important;
    max-height: calc(650px - 140px) !important; /* Approx header + footer height */
}

#bulkUpdateModal .modal-body::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari/Opera */
}

#bulkUpdateModal .modal-footer {
    flex-shrink: 0 !important;
}

/* Bulk Update Preview Table */
#bulkPreview .table {
    width: 100% !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
}

#bulkPreview .table th {
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-top: none !important;
}

#bulkPreview .table td {
    vertical-align: middle !important;
    padding: 0.5rem !important;
}

#bulkPreview .table .sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

#bulkPreview .badge {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

#bulkPreview code {
    background: #f8f9fa !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 3px !important;
    font-size: 0.8rem !important;
}

/* Custom scrollbar for affected tickets table */
#bulkPreview .table-container,
#bulkPreview div[style*="overflow-y: auto"] {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent !important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
#bulkPreview .table-container::-webkit-scrollbar,
#bulkPreview div[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 6px !important;
}

#bulkPreview .table-container::-webkit-scrollbar-track,
#bulkPreview div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: transparent !important;
}

#bulkPreview .table-container::-webkit-scrollbar-thumb,
#bulkPreview div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.5) !important;
    border-radius: 3px !important;
    border: none !important;
}

#bulkPreview .table-container::-webkit-scrollbar-thumb:hover,
#bulkPreview div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.7) !important;
}

/* Override Bootstrap modal styles */
/* Modal positioning is handled by the existing CSS above */

.row {
    margin-left: 0px;
    display: flex;
    width: 100%;
    align-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.h4, .h5, .h6, h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.text-secondary {font-weight:550px;}

/* ================= VESSEL SCHEDULE ================= */
.schedule-summary-card {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

.schedule-summary-card__header {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.12), rgba(14, 165, 233, 0.18)) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    padding: 1.5rem 1.75rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.schedule-summary-card__body {
    padding: 1.75rem !important;
}

.schedule-heading {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
}

.schedule-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.schedule-heading__title {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.schedule-heading__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.schedule-chip--muted {
    background: rgba(226, 232, 240, 0.45);
    color: #475569;
}

.schedule-chip--info {
    background: rgba(56, 189, 248, 0.18);
    color: #0369a1;
    border-color: rgba(56, 189, 248, 0.4);
}

.schedule-chip--warn {
    background: rgba(254, 240, 138, 0.55);
    color: #854d0e;
    border-color: rgba(251, 191, 36, 0.7);
}

.schedule-chip__icon {
    opacity: 0.8;
}

.schedule-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.schedule-meta-block {
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: #f8fafc;
    min-height: 100%;
}

.schedule-meta-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.schedule-meta-main {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.schedule-arrow {
    margin: 0 0.4rem;
    color: #94a3b8;
    font-size: 1rem;
}

.schedule-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.schedule-detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: #475569;
}

.schedule-detail-list strong {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.schedule-fare-block {
    background: #fff;
}

.schedule-fare-table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.schedule-fare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.schedule-fare-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: gray;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.schedule-fare-table tbody th { 
    font-weight: 600;
    color: gray;
    padding: 0.65rem 0;
}

.schedule-fare-table td {
    padding: 0.65rem 0 0.65rem 1rem;
    font-weight: 600;
    color: #0f172a;
}

.schedule-fare-table tbody tr + tr td,
.schedule-fare-table tbody tr + tr th {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* Voyage matrix */
.voyage-matrix-card {
    border-radius: 18px !important;
    border: none !important;
}

.voyage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
}

.legend-dot--same {
    background: #16a34a;
}

.legend-dot--next {
    background: #0ea5e9;
}

.legend-dot--multi {
    background: #f97316;
}

.voyage-grid {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* gap: 1.5rem; */
}
/* 
.voyage-grid__col {
    display: flex;
} */

.voyage-day-card .card-header {
    border: none;
    /* background: rgba(241, 245, 249, 0.8) !important; */
}

.voyage-slot-list {
    max-height: 340px;
    overflow-y: auto;
}

.voyage-slot-list::-webkit-scrollbar {
    width: 6px;
}

.voyage-slot-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.voyage-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-left: 4px solid rgba(14, 165, 233, 0.25);
    padding: 1rem;
}

.voyage-slot__time {
    flex: 1;
}

.voyage-slot__label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.voyage-slot__arrow {
    width: 32px;
    height: 2px;
    background: rgba(148, 163, 184, 0.6);
    position: relative;
}

.voyage-slot__arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid rgba(148, 163, 184, 0.9);
}

.voyage-slot__meta {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #475569;
}

.voyage-slot__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.voyage-duration {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.voyage-status {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.voyage-status--same {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.voyage-status--next {
    background: rgba(56, 189, 248, 0.18);
    color: #0369a1;
}

.voyage-status--multi {
    background: rgba(251, 191, 36, 0.25);
    color: #7c2d12;
}

@media (max-width: 767.98px) {
    .schedule-summary-card__header,
    .voyage-matrix-card .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .schedule-meta-main {
        font-size: 1.2rem;
    }

    .voyage-slot {
        flex-direction: column;
        align-items: flex-start;
    }

    .voyage-slot__status {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}