/* Premium tour operators page styling */

.operators-page-section {
    background-color: #f8fafc;
}

/* Actions Panel flex and alignment for Bootstrap 4 compatibility */
.actions-panel {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(13, 31, 45, 0.06) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

@media (min-width: 768px) {
    .actions-panel {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }
}

/* Download buttons container margins */
.download-btns-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .download-btns-wrap {
        margin-bottom: 0;
    }
}

/* Export Buttons */
.btn-export-excel {
    background-color: #dc3545;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
    border: none;
    margin: 5px;
    transition: background-color 0.2s ease;
}

.btn-export-excel:hover {
    background-color: #bb2d3b;
    color: #ffffff;
}

.btn-export-pdf {
    background-color: #1964a2;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
    border: none;
    margin: 5px;
    transition: background-color 0.2s ease;
}

.btn-export-pdf:hover {
    background-color: #124d7c;
    color: #ffffff;
}

/* Search Form Panel width overrides */
.search-form {
    width: 100%;
}

@media (min-width: 768px) {
    .search-form {
        width: 300px;
    }
}

/* Custom Search Input */
.custom-search-input {
    border-color: #e2e8f0;
    height: 40px;
    font-size: 13px;
    border-radius: 20px 0 0 20px !important;
    outline: none;
    box-shadow: none !important;
}

.btn-search {
    border-radius: 0 20px 20px 0 !important;
    height: 40px;
    padding: 0 16px;
    background-color: #1964a2 !important;
    border-color: #1964a2 !important;
    color: #ffffff;
}

/* Premium Custom Table styling */
.custom-operators-table {
    border-collapse: collapse;
}

.custom-operators-table thead th {
    background-color: #1964a2;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px;
}

.custom-operators-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
}

.custom-operators-table tbody tr:hover {
    background-color: rgba(25, 100, 162, 0.02);
}

.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.btn-xs {
    font-size: 11px;
}

/* Custom Pagination Styles with clear margins and responsive wrap */
.operators-pagination {
    margin-top: 35px;
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.operators-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.operators-pagination .page-item {
    margin: 4px;
}

.operators-pagination .page-item .page-link {
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1964a2;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 0;
}

.operators-pagination .page-item.active .page-link {
    background-color: #1964a2 !important;
    border-color: #1964a2 !important;
    color: #ffffff !important;
}

.operators-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    border-color: #e2e8f0 !important;
    background-color: #f8fafc;
    cursor: not-allowed;
}

.operators-pagination .page-item .page-link:hover:not(.disabled) {
    background-color: #f1f5f9;
    border-color: #cbd5e1 !important;
    text-decoration: none;
}

/* Bottom action buttons spacing on mobile viewports */
.bottom-action-buttons {
    width: 100%;
}

.bottom-action-buttons a {
    margin-bottom: 12px;
    width: 100%;
}

@media (min-width: 576px) {
    .bottom-action-buttons {
        flex-direction: row !important;
    }
    .bottom-action-buttons a {
        margin-bottom: 0;
        width: auto;
    }
}
