/* Travels Section Header Styling */
.search-traveler-header {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #e9ecef;
}

.search-traveler-header .section-title {
    margin: 0;
    color: #1e3c72;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: right;
}

/* Filters Lists Styling */
.filters-lists-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    padding: 12px;
    overflow: hidden;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-item:last-child {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-item label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.filter-item select,
.filter-item input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.1);
    outline: none;
}

.filter-item .btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 4px;
    min-width: 80px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== جدول الرحلات المتاحة — مضغوط وقابل للقراءة (12 عموداً) ===== */
.search-traveler-section .travels-table-section {
    margin-top: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.search-traveler-section .travels-table-container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #c5d3e8;
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.search-traveler-section .travels-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.75rem;
    line-height: 1.35;
    background: #fff;
}

.search-traveler-section .travels-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2d5a9e 100%);
    color: #fff;
}

.search-traveler-section .travels-table thead th {
    padding: 7px 4px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    font-size: 0.6875rem;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: none;
    box-shadow: none;
}

.search-traveler-section .travels-table thead th i {
    margin-left: 3px;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.92);
    animation: none;
    text-shadow: none;
}

.search-traveler-section .travels-table thead th:not(:last-child)::after {
    display: none;
}

.search-traveler-section .travels-table tbody td {
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #d8e2ef !important;
    background: transparent;
    line-height: 1.35;
    transition: background-color 0.15s ease;
}

.search-traveler-section .travels-table tbody tr {
    min-height: 0;
    height: auto;
    border: none;
}

.search-traveler-section .travels-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.search-traveler-section .travels-table tbody tr:nth-child(odd) td {
    background: #fff;
}

.search-traveler-section .travels-table tbody tr:hover td {
    background: #eef4ff;
    transform: none;
    box-shadow: none;
}

/* عرض الأعمدة — 12 عموداً */
.search-traveler-section .travels-table th:nth-child(1),
.search-traveler-section .travels-table td:nth-child(1) { width: 3.5%; }

.search-traveler-section .travels-table th:nth-child(2),
.search-traveler-section .travels-table td:nth-child(2) { width: 7%; }

.search-traveler-section .travels-table th:nth-child(3),
.search-traveler-section .travels-table td:nth-child(3) { width: 9%; }

.search-traveler-section .travels-table th:nth-child(4),
.search-traveler-section .travels-table td:nth-child(4) { width: 9%; }

.search-traveler-section .travels-table th:nth-child(5),
.search-traveler-section .travels-table td:nth-child(5) { width: 11%; }

.search-traveler-section .travels-table th:nth-child(6),
.search-traveler-section .travels-table td:nth-child(6) { width: 9%; }

.search-traveler-section .travels-table th:nth-child(7),
.search-traveler-section .travels-table td:nth-child(7) { width: 7%; }

.search-traveler-section .travels-table th:nth-child(8),
.search-traveler-section .travels-table td:nth-child(8) { width: 7%; }

.search-traveler-section .travels-table th:nth-child(9),
.search-traveler-section .travels-table td:nth-child(9) { width: 5%; }

.search-traveler-section .travels-table th:nth-child(10),
.search-traveler-section .travels-table td:nth-child(10) { width: 8%; }

.search-traveler-section .travels-table th:nth-child(11),
.search-traveler-section .travels-table td:nth-child(11) { width: 11.5%; }

.search-traveler-section .travels-table th:nth-child(12),
.search-traveler-section .travels-table td:nth-child(12) { width: 12%; }

.search-traveler-section .travels-table thead th.travel-col-order-link {
    white-space: nowrap;
    line-height: 1.2;
    font-size: 0.6rem;
    padding: 6px 3px;
    vertical-align: middle;
    letter-spacing: -0.02em;
}

.search-traveler-section .travels-table thead th.travel-col-order-link i {
    font-size: 0.55rem;
    margin-inline-start: 2px;
    vertical-align: middle;
}

/* خلايا محددة */
.search-traveler-section .travels-table .row-number {
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.search-traveler-section .travels-table .travel-id-cell {
    font-weight: 700;
    color: #1e3c72;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    font-variant-numeric: tabular-nums;
}

.search-traveler-section .travels-table .travel-from-cell,
.search-traveler-section .travels-table .travel-to-cell {
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    font-size: inherit;
    white-space: normal;
    overflow: visible;
    line-height: 1.25;
}

.search-traveler-section .travels-table .travel-route-country {
    display: block;
    font-weight: 700;
}

.search-traveler-section .travels-table .travel-route-airport {
    display: block;
    font-size: 0.625rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.my-trips-section .travel-route-airport,
.my-trips-section .travel-from-cell .travel-route-airport,
.my-trips-section .travel-to-cell .travel-route-airport {
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 1px;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

.search-traveler-section .travels-table .travel-route-hall,
.my-trips-section .travel-route-hall,
.my-trips-section .travel-to-cell .travel-route-hall {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    color: #0f766e;
    margin-top: 1px;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

.search-traveler-section .travels-table .travel-traveler-cell,
.search-traveler-section .travels-table .travel-traveler-cell .traveler-info,
.search-traveler-section .travels-table .travel-traveler-cell .traveler-name {
    text-align: center;
    font-weight: 600;
    font-size: inherit;
    display: table-cell;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.search-traveler-section .travels-table .traveler-info {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-traveler-section .travels-table .travel-date-cell {
    color: #475569;
    font-variant-numeric: tabular-nums;
    font-size: 0.71875rem;
}

.search-traveler-section .travels-table .travel-time-cell {
    color: #1d4ed8;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.71875rem;
}

.search-traveler-section .travels-table .travel-quantity-cell {
    display: table-cell;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border-radius: 4px;
    padding: 4px 2px;
    font-variant-numeric: tabular-nums;
}

.search-traveler-section .travels-table .travel-status-cell {
    overflow: visible;
}

.search-traveler-section .travels-table .travel-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-traveler-section .travels-table .travel-status.available {
    background: #dcfce7;
    color: #166534;
}

.search-traveler-section .travels-table .travel-status.booked {
    background: #fef3c7;
    color: #92400e;
}

.search-traveler-section .travels-table .travel-status.delivered,
.search-traveler-section .travels-table .travel-status.completed {
    background: #dbeafe;
    color: #1e40af;
}

.search-traveler-section .travels-table .travel-order-link-cell {
    font-variant-numeric: tabular-nums;
    overflow: hidden !important;
    max-width: 0;
    box-sizing: border-box;
}

.search-traveler-section .travels-table .travel-order-link-cell .table-link-num {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #7c3aed;
    font-size: inherit;
    line-height: 1.3;
}

.search-traveler-section .travels-table .travel-actions-cell {
    overflow: visible;
    white-space: nowrap;
}

.search-traveler-section .travels-table .action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.search-traveler-section .travels-table .action-buttons .btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.75rem;
}

.search-traveler-section .travels-table .action-buttons .btn i {
    font-size: 0.75rem;
    margin: 0;
}

.search-traveler-section .travels-table .no-travels {
    padding: 2rem 1rem;
    font-size: 0.875rem;
    white-space: normal;
}

.search-traveler-section .travels-table .eg-table-pagination {
    font-size: 0.75rem;
}

/* إلغاء فرض الخط العريض العام */
.search-traveler-section .travels-table tbody td,
.search-traveler-section .travels-table tbody td * {
    font-weight: inherit;
}

.search-traveler-section .travels-table .travel-id-cell,
.search-traveler-section .travels-table .travel-from-cell,
.search-traveler-section .travels-table .travel-to-cell,
.search-traveler-section .travels-table .traveler-name,
.search-traveler-section .travels-table .travel-quantity-cell,
.search-traveler-section .travels-table .table-link-num {
    font-weight: 600;
}

@media (max-width: 992px) {
    .search-traveler-section .travels-table {
        min-width: 820px;
        font-size: 0.71875rem;
    }

    .search-traveler-section .travels-table thead th {
        font-size: 0.65rem;
        padding: 6px 3px;
    }

    .search-traveler-section .travels-table tbody td {
        font-size: 0.71875rem;
        padding: 5px 3px;
    }
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .filter-item {
        min-width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .filter-item label {
        text-align: center;
        min-width: auto;
        font-size: 0.7rem;
    }

    .filter-item select,
    .filter-item input {
        min-width: auto;
        font-size: 0.65rem;
        padding: 4px 6px;
    }

    .filter-item .btn {
        font-size: 0.65rem;
        padding: 4px 8px;
        min-width: 60px;
        align-self: center;
    }

    .search-traveler-section .travels-table {
        min-width: 760px;
    }
}
