/* ============================================
   JMMS Member Module Styles
   Uses layout color variables: --jmms-copper and --jmms-navy
   ============================================ */

/* Accordion Styling - Clean & Modern Design */
.accordion {
    --bs-accordion-padding-y: 0;
    --bs-accordion-padding-x: 0;
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
}

.accordion-item {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background-color: #fff;
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(196, 149, 106, 0.12);
}

.accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #1e3a5f;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-button:hover:not(.collapsed) {
    background-color: #faf8f6;
}

.accordion-button:not(.collapsed) {
    background-color: #faf8f6;
    color: #c4956a;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: inset 0 0 0 2px #c4956a;
    outline: none;
}

.accordion-button::after {
    margin-left: 1rem;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c4956a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-button i {
    color: #1e3a5f;
    font-size: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.accordion-button:not(.collapsed) i {
    color: #c4956a;
}

.accordion-body {
    padding: 1.75rem 1.5rem;
    background-color: #fff;
    border-top: none;
}

.accordion-body .section-title {
    color: #1e3a5f;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

/* Input Styles - Professional */
.form-control,
.form-select {
    border: 1.5px solid #d8d0c8;
    border-radius: 0.35rem;
    padding: 0.65rem 0.85rem;
    min-height: 45px;
    min-height: 45px;
    font-size: 0.95rem;
    color: #495057;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #c4956a;
    background-color: #fcfcfc;
}

.form-control:focus,
.form-select:focus {
    border-color: #c4956a;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.12);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 500;
}

/* Validation Styling */
.form-control.is-invalid,
.form-select.is-invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.invalid-feedback {
    display: none !important;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.35rem;
    font-weight: 500;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
    display: block !important;
}

/* Ensure feedback appears for intl-tel-input */
.iti.is-invalid ~ .invalid-feedback {
    display: block !important;
}

/* intl-tel-input phone inputs: always show flag on LEFT with LTR number entry.
   The library's [dir=rtl] selector matches the <html> ancestor and moves the flag
   to the right — we override with !important to pin it left regardless of page direction. */
.iti--allow-dropdown .iti__country-container {
    right: auto !important;
    left: 0 !important;
}

/* Force LTR inside the flag button so order is always: [FLAG][▼][+971] */
.iti__country-container,
.iti__selected-country,
.iti__selected-country-primary,
.iti__selected-dial-code {
    direction: ltr !important;
    unicode-bidi: embed !important;
}

.iti--allow-dropdown input.iti__tel-input,
.iti--allow-dropdown input.iti__tel-input[type=text],
.iti--allow-dropdown input.iti__tel-input[type=tel] {
    direction: ltr !important;
    text-align: left !important;
    /* Padding is driven by --iti-phone-pad set dynamically in JS after the accordion opens.
       The fallback 90px covers the widest common dial code buttons. */
    padding-left: var(--iti-phone-pad, 90px) !important;
    padding-right: 6px !important;
}

.form-label {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label .text-danger {
    color: #dc3545;
    margin-left: 0.25rem;
}

.form-label i {
    color: #c4956a;
    margin-right: 0.25rem;
}

/* Select2 Customization - Professional */
.select2-container {
    display: block !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    min-height: 45px !important;
    border: 1.5px solid #d8d0c8 !important;
    border-radius: 0.35rem !important;
    padding: 0.45rem 0.85rem !important;
    outline: none;
    display: flex !important;
    align-items: center;
    background-color: #fafafa !important;
    transition: all 0.3s ease !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #c4956a !important;
    background-color: #fcfcfc !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #495057 !important;
    flex-grow: 1;
    font-size: 0.95rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    top: 1px !important;
    position: absolute !important;
    width: 24px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #c4956a transparent transparent transparent !important;
    margin-top: 0.4rem !important;
}

/* Default LTR Arrow Position */
html[dir="ltr"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 0.5rem !important;
    left: auto !important;
}

/* RTL Support for Select2 Arrow */
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 0.5rem !important;
    right: auto !important;
}

/* Focus State */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #c4956a !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.12) !important;
}

/* Select2 Dropdown Styling */
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 0.85rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #c4956a !important;
}

/* Select2 Error State */
.select2-container--error .select2-selection--single {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.select2-container--error .select2-selection--multiple {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Upload Area */
.profile-upload-area {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 2px dashed #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.profile-upload-area:hover {
    border-color: #c4956a;
    background-color: #fcfcfc;
}

.profile-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-upload-area:hover .upload-overlay {
    opacity: 1;
}

/* Button Styling - Professional */
.btn {
    font-weight: 600;
    border-radius: 0.35rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Button Group Spacing */
.gap-3 {
    gap: 1rem !important;
}

.btn-success {
    background-color: #c4956a;
    border-color: #c4956a;
    color: #fff;
}

.btn-success:hover {
    background-color: #a87a52;
    border-color: #a87a52;
    box-shadow: 0 4px 12px rgba(196, 149, 106, 0.3);
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.2);
}

.btn-primary {
    background-color: #c4956a;
    border-color: #c4956a;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a87a52;
    border-color: #a87a52;
    box-shadow: 0 4px 12px rgba(196, 149, 106, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.2);
}

.btn-outline-secondary {
    color: #495057;
    border-color: #d8d0c8;
    background-color: #fafafa;
}

.btn-outline-secondary:hover {
    color: #c4956a;
    border-color: #c4956a;
    background-color: #fcfcfc;
}

/* Card Styling */
.card {
    border: 1px solid #e8ddd4;
    border-radius: 0.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 2rem;
}

/* Form Row Spacing */
.row.g-3 > [class*="col"] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Page Title Styling */
.page-title-box {
    margin-bottom: 2rem;
}

.page-title-box h4 {
    color: #1e3a5f;
    font-weight: 700;
}

/* Select2 Multiple Selection */
.select2-container .select2-selection--multiple {
    min-height: 50px !important;
    border: 1.5px solid #d8d0c8 !important;
    border-radius: 0.35rem !important;
    padding: 0.35rem 0.5rem !important;
    outline: none;
    background-color: #fafafa !important;
    transition: all 0.3s ease !important;
}

.select2-container .select2-selection--multiple:hover {
    border-color: #c4956a !important;
    background-color: #fcfcfc !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #c4956a !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.12) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e8ddd4;
    border-color: #c4956a;
    color: #1e3a5f;
    font-weight: 500;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1e3a5f;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #c4956a;
}

/* Select2 Error State */
.select2-container--error .select2-selection--single,
.select2-container--error .select2-selection--multiple {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}
/* Table Actions Customization (Dropdown) */
.card-drop {
    color: #74788d;
}

/* RTL Support */
[dir="rtl"] .section-title i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

/* Fix for forced LTR placeholders in RTL layout */
[dir="rtl"] input[type=text],
[dir="rtl"] input[type=email],
[dir="rtl"] input[type=date],
[dir="rtl"] select,
[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
}

/* Ensure LTR English names stay LTR even in RTL layout */
[dir="rtl"] input[name="firstNameEn"],
[dir="rtl"] input[name="lastNameEn"] {
    text-align: left;
    direction: ltr;
}

/* Ensure RTL Arabic names stay RTL even in LTR layout */
[dir="ltr"] input[name="firstNameAr"],
[dir="ltr"] input[name="lastNameAr"] {
    text-align: right;
    direction: rtl;
}

/* Align placeholders correctly for RTL */
[dir="rtl"] ::placeholder {
    text-align: right;
}

/* Align placeholders correctly for LTR */
[dir="ltr"] ::placeholder {
    text-align: left;
}

/* Specific placeholder overrides for mixed direction inputs */
[dir="rtl"] input[name="firstNameEn"]::placeholder,
[dir="rtl"] input[name="lastNameEn"]::placeholder {
    text-align: right;
}

[dir="ltr"] input[name="firstNameAr"]::placeholder,
[dir="ltr"] input[name="lastNameAr"]::placeholder {
    text-align: right;
}

/* DataTable Length Menu Customization */
div.dataTables_wrapper div.dataTables_length select option {
    background-color: #B5895F !important;
    color: #ffffff !important;
}

div.dataTables_wrapper div.dataTables_length select:focus {
    border-color: #B5895F;
    box-shadow: 0 0 0 0.15rem rgba(181, 137, 95, 0.25);
}

[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_length select option {
    background-color: #B5895F;
    color: #fff;
}

/* Flatpickr Customization for JMMS */
.flatpickr-calendar {
    font-family: 'Tajawal', 'Roboto', sans-serif;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* DATE PICKER HEADER COLOR - REQUESTED CHANGE */
.flatpickr-months {
    background-color: #C4956A !important;
    color: #fff !important;
    border-radius: 5px 5px 0 0;
}

.flatpickr-months .flatpickr-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #f0f0f0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background-color: #C4956A !important;
    color: #fff !important;
}

.flatpickr-current-month input.cur-year {
    color: #fff !important;
}

.flatpickr-weekdays {
    background-color: #C4956A !important;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
    background-color: #C4956A !important;
}

span.flatpickr-weekday {
    background: #C4956A !important;
    color: #fff !important;
}

/* Flatpickr Days */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #c4956a !important;
    /* JMMS Copper */
    border-color: #c4956a !important;
}

.flatpickr-day.today {
    border-color: #c4956a !important;
}

.flatpickr-day.today:hover {
    background: #c4956a !important;
    color: #fff !important;
}

/* 
   Button Arrow Direction Fix for LTR (English)
   In default (RTL optimized), Previous is mdi-arrow-right and Next is mdi-arrow-left.
   We need to Flip them in LTR context so Previous points Left and Next points Right.
   Also applies to "Back to List" button.
*/
html[dir="ltr"] .page-title-right .btn i {
    transform: rotate(180deg);
    display: inline-block;
}

/* ============================================
   Professional Profile Styles
   ============================================ */

/* Cover Banner */
.profile-cover {
    height: 180px;
    background: linear-gradient(135deg, #f5ebe0 0%, #ddb892 50%, #c4956a 100%);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    margin-bottom: 1rem;
}

/* Profile Sidebar Card */
.profile-sidebar-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
    border-radius: 0.5rem;
    overflow: visible;
    margin-top: 0;
    background: #ffffff;
}

.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.1);
}

.profile-img-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 0.25rem;
}

.profile-role {
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Info List (Contact) */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.info-list-item:last-child {
    border-bottom: none;
}

.info-list-item i {
    font-size: 1.2rem;
    color: #c4956a;
    width: 30px;
    text-align: center;
    margin-inline-end: 10px;
}

.info-list-item small.text-muted {
    color: #475569 !important;
    font-weight: 600;
}

.info-list-item span {
    color: #1e293b;
    font-weight: 500;
}

/* Stat Cards */
.stat-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
    border-radius: 0.5rem;
    transition: transform 0.2s;
    background: #ffffff;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(10, 22, 40, 0.08);
}

.stat-card h6 {
    color: #475569 !important;
    font-weight: 600;
}

.stat-card h5 {
    color: #0a1628 !important;
    font-weight: 700;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bg-soft-primary {
    background-color: rgba(85, 110, 230, 0.12);
    color: #3b52b5;
}

.bg-soft-success {
    background-color: rgba(52, 195, 143, 0.12);
    color: #1a8a5e;
}

.bg-soft-warning {
    background-color: rgba(241, 180, 76, 0.12);
    color: #b87d1a;
}

.bg-soft-info {
    background-color: rgba(80, 165, 241, 0.12);
    color: #2a7ac4;
}

/* Timeline Styles */
.assignment-timeline {
    position: relative;
    padding-inline-start: 1rem;
    border-inline-start: 2px solid #e2e8f0;
    margin-inline-start: 1rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-inline-start: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.6rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c4956a;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(196, 149, 106, 0.3);
}

/* RTL fix for marker */
[dir="rtl"] .timeline-marker {
    left: auto;
    right: -1.6rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.25rem;
}

.timeline-content h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #0a1628;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0;
}

/* Field Display */
.field-group {
    margin-bottom: 1.25rem;
}

.field-label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 0.25rem;
}

.field-value {
    font-size: 1rem;
    color: #0a1628;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.field-value i {
    margin-inline-end: 0.5rem;
    color: #c4956a;
}

/* Card headers in profile */
.card-header h5 {
    color: #0a1628;
    font-weight: 600;
}

/* ============================================
   Profile Tabs Customization
   ============================================ */
.nav-tabs-custom {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

[data-bs-theme="dark"] .nav-tabs-custom {
    border-bottom-color: #32394e;
}

.nav-tabs-custom .nav-item .nav-link {
    border: none;
    background-color: transparent !important;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* Active State */
.nav-tabs-custom .nav-item .nav-link.active {
    color: #0a1628 !important;
    font-weight: 700;
}

/* Active Icon Color */
.nav-tabs-custom .nav-item .nav-link.active i {
    color: #c4956a;
}

.nav-tabs-custom .nav-item .nav-link i {
    color: #475569;
}

/* Hover State */
.nav-tabs-custom .nav-item .nav-link:hover {
    color: #0a1628;
}

.nav-tabs-custom .nav-item .nav-link:hover i {
    color: #c4956a;
}

/* Underline Indicator */
.nav-tabs-custom .nav-item .nav-link::after {
    content: "";
    background: #c4956a;
    height: 3px;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tabs-custom .nav-item .nav-link.active::after {
    transform: scaleX(1);
}

/* Dark Mode Specifics for Text Visibility */
[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link i {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link.active,
[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link:hover {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link.active i,
[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link:hover i {
    color: #c4956a !important;
}

/* Grade pill in member-list tables — every pill renders at the SAME fixed width
   regardless of label length, with overflow ellipsised. Uses !important because
   Bootstrap's `.badge` rule otherwise wins on inline-flex/auto-width. */
.grade-badge {
    display: inline-block !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    padding: 0.5em 0.6em !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Ensure tab content takes full height when active */
.tab-content>.tab-pane.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}