#tms-travelers .tms-card {
    background: #fff;
    border-radius: 12px;
}
.tms-travelers-wrap * {
    box-sizing: border-box;
}
.tms-travelers-wrap {
    color: #1e293b;
    max-width: 100%;
    padding: 20px 50px 48px 50px;
}

.tms-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.tms-toolbar-form {
    flex: 1;
}

.tms-traveler-search {
    max-width: 320px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.tms-traveler-search:focus,
.tms-traveler-filter:focus {
    border-color: #4b0082;
    box-shadow: 0 0 0 0.2rem rgba(75, 0, 130, 0.12);
}

.tms-traveler-filter {
    width: 180px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.tms-toolbar-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.tms-pagination-wrapper {
    padding: 10px 0;
}

.tms-pagination-info {
    font-size: 13px;
}

.tms-pagination {
    gap: 4px;
}

.tms-pagination .page-link {
    border-radius: 8px !important;
    padding: 6px 12px;
    font-size: 13px;
    color: #4b0082;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.tms-pagination .page-link:hover {
    background: #4b0082;
    color: #fff;
}

.tms-pagination .page-item.active .page-link {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #f4a304 0%, #f97316 100%);
}

.tms-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

.tms-pagination .page-item .page-link {
    min-width: 36px;
    text-align: center;
}

/* Traveler Tabs */
.tms-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.tms-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}

.tms-tab:hover {
    color: #4b0082;
    background: rgba(37, 99, 235, 0.04);
}

.tms-tab.active {
    color: #4b0082;
    border-bottom-color: #4b0082;
    background: rgba(37, 99, 235, 0.04);
}

/* Tab content */
.tms-tab-content {
    display: none;
}

.tms-tab-content.active {
    display: block;
}

/* Form spacing */
#tms-traveler-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

#tms-traveler-form .tms-required {
    color: #dc2626;
}

#tms-traveler-form .form-control,
#tms-traveler-form .form-select {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}
#tms-traveler-form .form-control:focus,
#tms-traveler-form .form-select:focus {
    outline: none;
    border-color: #4b0082;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

#tms-traveler-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .tms-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tms-tab {
        white-space: nowrap;
    }
}

/* Traveler View Modal */
#tms-view-traveler-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#tms-view-traveler-content .tms-view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf7ff 0%, #f8fafc 100%);
}

#tms-view-traveler-content .tms-view-head h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

#tms-view-traveler-content .tms-view-code {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

#tms-view-traveler-content .tms-view-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

#tms-view-traveler-content .tms-view-section-title {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#tms-view-traveler-content .tms-view-grid {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px;
}

#tms-view-traveler-content .tms-view-item {
    min-width: 0;
}

#tms-view-traveler-content .tms-view-item-label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: #64748b;
}

#tms-view-traveler-content .tms-view-item-value {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

#tms-view-traveler-content .tms-view-item-value.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

#tms-view-traveler-content .tms-view-item-value a {
    color: #4b0082;
    text-decoration: none;
}

#tms-view-traveler-content .tms-view-item-value a:hover {
    text-decoration: underline;
}

.tms-view-payment-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.tms-view-payment-card__title {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.tms-view-payment-card label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.tms-payment-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.tms-payment-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf7ff 0%, #f8fafc 100%);
}

.tms-payment-stat__label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tms-payment-table-wrap {
    overflow-x: auto;
}

.tms-payment-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.tms-payment-table th,
.tms-payment-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.tms-payment-table th {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tms-payment-empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

@media (max-width: 992px) {
    #tms-view-traveler-content .tms-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tms-payment-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #tms-view-traveler-content .tms-view-grid {
        grid-template-columns: 1fr;
    }

    #tms-view-traveler-content .tms-view-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 600px) {
    .tms-travelers-wrap {
        padding: 20px 20px 48px 20px;
    }
}
@media (max-width: 1200px) {
    .tms-travelers-wrap {
        padding: 20px 20px 48px 20px;
    }
}
