tbody, td, tfoot, th, thead, tr {
color: #000!important;
}
    
.p {
color: #000!important;
}

/* Force tooltips to be fully opaque */
.tooltip {
    opacity: 1 !important;
}
.tooltip.show {
    opacity: 1 !important;
}
.tooltip .tooltip-inner {
    opacity: 1 !important;
    background-color: #fff !important;
} 

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-primary-rgb, 250, 137, 107), 0.15);
    color: rgb(var(--bs-primary-rgb, 250, 137, 107));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(var(--bs-primary-rgb, 250, 137, 107), 0.2);
    border-radius: 50% !important;
    flex-shrink: 0;
    overflow: hidden;
}

/* Ensure avatar images are also perfect circles */
img.rounded-circle {
    border-radius: 50% !important;
    object-fit: cover;
}

[data-bs-theme="dark"] .avatar-fallback {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Tags/chips text for multiple select */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #000 !important;
}

/* Selected text in the select2 field */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
}

/* Dropdown options text */
.select2-container--default .select2-results__option {
    color: #000 !important;
}

/* Select2 single select border color */
.select2-container--default .select2-selection--single {
    border-color: #969da2 !important;
}

/* Select2 multiple select border color */
.select2-container--default .select2-selection--multiple {
    border-color: #969da2 !important;
}

/* Highlighted/hovering option */
.select2-container--default .select2-results__option--highlighted {
    background-color: rgb(255, 173, 150) !important;
    color: white !important;
}

/* Additional hover state for better coverage */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #F0F0F0	 !important;
    color: black !important;
}

/* Selected option in dropdown */
.select2-container--default .select2-results__option--selected {
    background-color: #fa896b !important;
    color: white !important;
}
     
/* Disabled options inside dropdown */
.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: #aaa !important;      /* Light gray text */
    background-color: #f9f9f9 !important; /* Light background */
    cursor: not-allowed !important;
}

/* Hover over a selected option in the dropdown */
.select2-container--default .select2-results__option--selected:hover {
    background-color: #fa896b !important;
    color: white !important;
}

/* Force orange when hovering over selected option */
.select2-container--default .select2-results__option--selected[aria-selected="true"]:hover {
    background-color: #fa896b !important;
    color: white !important;
}

/* Selected AND highlighted (hover or keyboard focus) */
.select2-container--default 
.select2-results__option--selected.select2-results__option--highlighted {
    background-color: #fa896b !important;
    color: white !important;
}

/* Selected tags/chips text color */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #fff !important;       /* White text */
    background-color: #007bff;    /* Optional: blue background for contrast */
    border: 1px solid #007bff;    /* Match background for a clean look */
}

/* Remove grey cross icon background */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
}

.select2-container--default .select2-results>.select2-results__options { 
    overflow-x: hidden;
}


.timeline {
    position: relative;
    margin: 0 auto;  
}

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

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.timeline-icon {
    position: absolute; 
    width: 30px;
    height: 30px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1;
}

.timeline-content {
    margin-left: 40px;
    padding: 7px;
    background: #f8f9fa;
    border-radius: 0.5rem;
    position: relative;
    width: 100%; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 16px;
    border: 8px solid transparent;
    border-right-color: #f8f9fa;
}

.timeline-time {
    font-size: 0.8rem;
    color: #6c757d;
    position: absolute;
    right: 1rem;
    top: 7px;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

.clickable-row { cursor: pointer; } 


.fc-button-group .fc-button:focus {
    border: none !important;
    box-shadow: none !important;
}

.fc-button-group .fc-button.fc-button-active {
    background-color: #ff6b35 !important;
    border: none !important;
    box-shadow: none !important;
    color: white !important;
}

.fc-button.fc-current-button,
.fc-button.fc-current-button:focus,
.fc-button.fc-current-button:active {
    border: none !important;
    box-shadow: none !important;
    color: white !important;
    background-color: #ff6b35 !important;

}

.fc-bg-warning {
    background-color: #ffeba7 !important;
}

.fc-bg-success {
    background-color: #9ed39e !important;
}

.fc-bg-danger {
    background-color: #ffcece !important;
}

.fc-bg-info {
    background-color: rgb(220, 240, 255) !important;
}

.clocked-duration-text {
    display: inline-block;
    min-width: 75px; /* enough for (HH:MM:SS) */
    font-family: monospace;
}



button.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    background-color: #ccc; 
    border-color: #ccc;  
}
 

div:where(.swal2-icon) { 
    width: 4em !important;
    height: 4em !important; 
    margin: 0.6em auto .6em !important;
}

/* leave calendar */
.fc-custom-event {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.fc-event-title,
.fc-event-time {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.fc .fc-daygrid-day-frame {
    min-height: unset !important;
}


/* Change close button appearance */
.swal2-close {
    font-size: 1.3rem;        
    color: #6c757d;          
    top: unset !important;
    right: unset !important;   
    background: none;
    border: none;
    box-shadow: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.swal2-close:hover {
    color: #000;              
    opacity: 1;
}

.custom-swal-close {
    font-size: 1.5rem;
    color: #495057;
    top: 8px !important;
    right: 12px !important;
}

div:where(.swal2-container) h2:where(.swal2-title) { 
    padding: unset !important; 
    font-size: 25px !important;
}

div:where(.swal2-container) .swal2-html-container { 
    margin: 0.3em 1.6em 0em !important; 
} 

.time-input-width {
    width: 50% !important;
}
 
.inbox-header {
    padding: 18px 20px;
    display:flex;
    align-items:center;
    gap:12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  

  /* alert */
  .alert-modern {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.alert-success-modern {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #0f5132;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #721c24;
}

.alert-warning-modern {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #664d03;
}

.alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 14px;
}

.alert-success-modern .alert-icon {
    background: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.alert-danger-modern .alert-icon {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-warning-modern .alert-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.alert-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.alert-title {
    font-weight: 600;
    margin-right: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-message {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.btn-close-modern {
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.6;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
    margin-left: 12px;
}

.btn-close-modern:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global focus cleanup for form elements: remove default blue glow */
.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:active:focus,
.input-group .form-control:focus,
.input-group .form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #111f38; /* subtle brand-aligned border on focus */
}

/* Our pill-field wrappers also suppress default focus rings */
.pill-field input:focus,
.pill-field select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove default focus ring for icon-only buttons/controls */
/* Override Bootstrap primary button color to orange */
.btn-primary {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e86f55 !important;
    border-color: #e86f55 !important;
    color: #fff !important;
}

.action-btn:focus,
.action-btn:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Centralized action buttons */
.action-buttons { display: inline-flex; gap: .4rem; }
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd1dc;
    border-radius: 10px;
    color: #111f38;
    background: #fff;
    transition: all 0.18s ease;
}
.action-btn iconify-icon { font-size: 18px; }
/* Generic hover only for neutral action buttons (not colored variants) */
.action-btn:not(.action-btn--view):not(.action-btn--edit):not(.action-btn--delete):hover {
    border-color: #111f38;
    background: #111f38;
    color: #fff;
}
.action-btn--view {
    border-color: #22c55e; /* green border */
    color: #15803d;
}
.action-btn--view:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.action-btn--edit {
    border-color: #c4b5fd;
    color: #4c1d95;
}
.action-btn--edit:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.action-btn--delete {
    border-color: #f0616d;
    color: #f0616d;
}
.action-btn--delete:hover {
    background: #f0616d;
    border-color: #f0616d;
    color: #fff;
}

/* File type icons (Excel/Word/PDF/etc.) */
.file-type-icon {
    font-size: 28px;
}
.file-type-icon--excel {
    color: #107c41;
}
.file-type-icon--word {
    color: #185abd;
}
.file-type-icon--pdf {
    color: #d92c20;
}
.file-type-icon--image {
    color: #0ea5e9;
}
.file-type-icon--text {
    color: #6b7280;
}

/* Compact button helper to match action button height */
.btn-compact {
    height: 36px;
    padding: .3rem .9rem;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
}

/* Standardized modern table styling + hover for all listings */
.table-modern {
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}
.table-modern thead th {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ef;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.table-modern tbody tr {
    transition: background-color .15s ease;
}
.table-modern tbody tr:hover {
    background-color: #f6f8fb;
}

/* Priority badges (global) */
.tag {
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .75rem;
    border: 1px solid transparent;
    text-transform: capitalize;
    white-space: nowrap;
    display: inline-block;
}
.tag-priority-critical {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}
.tag-priority-high {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}
.tag-priority-medium {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}
.tag-priority-low {
    border-color: #9ca3af;
    background: #e5e7eb;
    color: #374151;
}

/* Standardized stage badges */
.tag-stage-backlog {
    border-color: #9ca3af;
    background: #e5e7eb;
    color: #374151;
}
.tag-stage-sprint {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}
.tag-stage-released {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}

/* Standardized status badges */
.tag-status-todo {
    border-color: #9ca3af;
    background: #e5e7eb;
    color: #374151;
}
.tag-status-in_progress {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}
.tag-status-blocked {
    border-color: #dc2626;
    background: #fee2e2;
    color: #991b1b;
}
.tag-status-in_qa {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}
.tag-status-qa_complete {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}
.tag-status-released {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}
.tag-status-on_hold {
    border-color: #9ca3af;
    background: #f3f4f6;
    color: #4b5563;
}

/* Modal options - normal state */
.status-option,
.requirement-status-option {
    transition: all 0.2s ease;
}

.status-option:not(.active):not(.pressed):hover,
.requirement-status-option:not(.active):not(.pressed):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal options - active/pressed state */
.status-option.active,
.status-option.pressed,
.requirement-status-option.active,
.requirement-status-option.pressed {
    background: #fa896b !important;
    border-color: #fa896b !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Clickable badges - toggle button style */
.priority-badge-clickable,
.stage-badge-clickable,
.status-badge-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.priority-badge-clickable:hover,
.stage-badge-clickable:hover,
.status-badge-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-width: 2px;
}

.priority-badge-clickable:active,
.stage-badge-clickable:active,
.status-badge-clickable:active {
    transform: translateY(0);
}

/* Pressed state - simple drop shadow to show it's active */
.priority-badge-clickable.pressed,
.stage-badge-clickable.pressed,
.status-badge-clickable.pressed {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Stage movement buttons - match pill colors */
.btn-stage-release {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.btn-stage-release:hover {
    background-color: #bbf7d0;
    border-color: #16a34a;
    color: #14532d;
}

.btn-stage-backlog {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-stage-backlog:hover {
    background-color: #d1d5db;
    border-color: #6b7280;
    color: #1f2937;
}

/* Tag-based Multi-select Component */
.tag-multiselect {
    position: relative;
}

.tag-multiselect-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    cursor: text;
}

.tag-multiselect-container:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tag-multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.tag-multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #495057;
}

.tag-multiselect-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.tag-multiselect-remove:hover {
    color: #dc3545;
}

.tag-multiselect-remove iconify-icon {
    width: 14px;
    height: 14px;
}

.tag-multiselect-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    padding: 0;
    font-size: 0.875rem;
    background: transparent;
}

.tag-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.tag-multiselect-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #212529;
    transition: background-color 0.15s ease;
}

.tag-multiselect-option:hover,
.tag-multiselect-option.highlighted {
    background-color: #f8f9fa;
}

.tag-multiselect-option:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.tag-multiselect-option:last-child {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Remove ALL spacing on auth pages - MUST be at end to override all other styles */
body.auth-page {
    padding: 0 !important;
    margin: 0 !important;
}

body.auth-page #main-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.auth-page .preloader {
    display: none !important;
}

body:has(.page-wrapper--auth) #main-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body .body-wrapper--no-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove all spacing on auth pages */
body .page-wrapper--auth {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh !important;
}

body .page-wrapper--auth .body-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh !important;
}

body .page-wrapper--auth .container-fluid {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Ensure login form starts at top */
body .page-wrapper--auth .d-flex.align-items-center {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
}

/* Hide any topbar/header elements on auth pages */
body .page-wrapper--auth .topbar,
body .page-wrapper--auth header {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
}

/* Remove any topbar spacing that might be applied globally */
body .page-wrapper--auth {
    position: relative !important;
}

/* Ensure no fixed positioning creates space */
body .page-wrapper--auth .topbar {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Standardized cancel button (white on grey) */
.btn-cancel {
    background: #f8f9fb;
    color: #111f38;
    border: 1px solid #cbd1dc;
}
.btn-cancel:hover {
    background: #eef1f6;
    border-color: #aeb6c6;
    color: #0b1530;
}
.btn-cancel:focus {
    box-shadow: none !important;
}

/* Standardized back button (neutral outline) */
.btn-back {
    background: #ffffff;
    color: #111f38;
    border: 1px solid #cbd1dc;
}
.btn-back:hover {
    background: #f6f8fb;
    border-color: #aeb6c6;
    color: #0b1530;
}
.btn-back:focus {
    box-shadow: none !important;
}

/* Fix sidebar dropdown overflow - prevent clipping */
.left-sidebar .scroll-sidebar {
    padding-bottom: 50px;
}
.sidebar-nav .first-level {
    margin-bottom: 0;
}

/* ============================================
   STANDARDIZED LINK STYLING - CENTRALIZED
   ============================================
   All hyperlinks across the site follow these rules:
   - Bold (font-weight: 600)
   - No underline (text-decoration: none)
   - Orange color (#fa896b)
   - Darker orange on hover (#e86f55)
   
   To change link styling site-wide, modify the CSS variables below.
   ============================================ */

:root {
    --link-color: #fa896b;           /* Brand orange - default link color */
    --link-color-hover: #e86f55;      /* Darker orange - hover/focus color */
    --link-font-weight: 600;          /* Bold text */
    --link-text-decoration: none;      /* No underline */
}

/* Base link styling - applies to all links except UI components */
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.sidebar-link):not(.action-btn):not(.tag-multiselect-option):not(.pagination-link):not(.filter-pill) {
    color: var(--link-color) !important;
    font-weight: var(--link-font-weight) !important;
    text-decoration: var(--link-text-decoration) !important;
}

/* Link hover and focus states */
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.sidebar-link):not(.action-btn):not(.tag-multiselect-option):not(.pagination-link):not(.filter-pill):hover,
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.sidebar-link):not(.action-btn):not(.tag-multiselect-option):not(.pagination-link):not(.filter-pill):focus,
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.sidebar-link):not(.action-btn):not(.tag-multiselect-option):not(.pagination-link):not(.filter-pill):active,
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.sidebar-link):not(.action-btn):not(.tag-multiselect-option):not(.pagination-link):not(.filter-pill):visited {
    color: var(--link-color-hover) !important;
    text-decoration: var(--link-text-decoration) !important;
    outline: none !important;
}

/* Modern pagination styling - GLOBAL override for all pages */
.table-modern nav,
.table-modern .pagination,
.table-modern ul.pagination,
nav .pagination,
nav ul.pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: wrap;
    width: 100%;
}
.table-modern nav .d-flex,
.table-modern nav .d-none,
.table-modern nav .small,
.table-modern nav p {
    display: none !important;
}
.table-modern .pagination .page-item,
.table-modern ul.pagination .page-item,
nav .pagination .page-item,
nav ul.pagination .page-item {
    margin: 0 !important;
    list-style: none !important;
}
.table-modern .pagination .page-link,
.table-modern ul.pagination .page-link,
nav .pagination .page-link,
nav ul.pagination .page-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111f38 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
    line-height: 1 !important;
}
.table-modern .pagination .page-link:hover,
.table-modern ul.pagination .page-link:hover,
nav .pagination .page-link:hover,
nav ul.pagination .page-link:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #fa896b !important;
    text-decoration: none !important;
}
.table-modern .pagination .page-item.active .page-link,
.table-modern ul.pagination .page-item.active .page-link,
nav .pagination .page-item.active .page-link,
nav ul.pagination .page-item.active .page-link {
    background: #fa896b !important;
    border-color: #fa896b !important;
    color: #fff !important;
    font-weight: 600 !important;
    z-index: 1;
}
.table-modern .pagination .page-item.disabled .page-link,
.table-modern ul.pagination .page-item.disabled .page-link,
nav .pagination .page-item.disabled .page-link,
nav ul.pagination .page-item.disabled .page-link {
    background: #f8fafc !important;
    border-color: #e4e7ec !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}
.table-modern .pagination .page-item.disabled .page-link:hover,
.table-modern ul.pagination .page-item.disabled .page-link:hover,
nav .pagination .page-item.disabled .page-link:hover,
nav ul.pagination .page-item.disabled .page-link:hover {
    background: #f8fafc !important;
    border-color: #e4e7ec !important;
    color: #94a3b8 !important;
}

/* Override Bootstrap link utility classes to use our standard styling */
a.link-primary,
a.link-secondary,
a.link-success,
a.link-info,
a.link-warning,
a.link-danger,
a.link-light,
a.link-dark,
a.link-muted {
    color: var(--link-color) !important;
    font-weight: var(--link-font-weight) !important;
    text-decoration: var(--link-text-decoration) !important;
}

a.link-primary:hover,
a.link-secondary:hover,
a.link-success:hover,
a.link-info:hover,
a.link-warning:hover,
a.link-danger:hover,
a.link-light:hover,
a.link-dark:hover,
a.link-muted:hover,
a.link-primary:focus,
a.link-secondary:focus,
a.link-success:focus,
a.link-info:focus,
a.link-warning:focus,
a.link-danger:focus,
a.link-light:focus,
a.link-dark:focus,
a.link-muted:focus {
    color: var(--link-color-hover) !important;
    text-decoration: var(--link-text-decoration) !important;
}

/* Rich text editor (RTE) content links */
.wysiwyg-content {
    color: #000;
    line-height: 1.6;
}

.wysiwyg-content p {
    margin-bottom: 1rem;
}

.wysiwyg-content h1,
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.wysiwyg-content h1 { font-size: 2rem; }
.wysiwyg-content h2 { font-size: 1.75rem; }
.wysiwyg-content h3 { font-size: 1.5rem; }
.wysiwyg-content h4 { font-size: 1.25rem; }
.wysiwyg-content h5 { font-size: 1.1rem; }
.wysiwyg-content h6 { font-size: 1rem; }

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.wysiwyg-content ul {
    list-style-type: disc;
}

.wysiwyg-content ol {
    list-style-type: decimal;
}

.wysiwyg-content li {
    margin-bottom: 0.5rem;
}

.wysiwyg-content ul ul,
.wysiwyg-content ol ol,
.wysiwyg-content ul ol,
.wysiwyg-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.wysiwyg-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #ddd;
    background-color: #f8f9fa;
    font-style: italic;
}

.wysiwyg-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.wysiwyg-content code {
    padding: 0.2rem 0.4rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.wysiwyg-content pre code {
    padding: 0;
    background-color: transparent;
    border: none;
}

.wysiwyg-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.wysiwyg-content table th,
.wysiwyg-content table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.wysiwyg-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.wysiwyg-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

.wysiwyg-content strong,
.wysiwyg-content b {
    font-weight: 600;
}

.wysiwyg-content em,
.wysiwyg-content i {
    font-style: italic;
}

.wysiwyg-content u {
    text-decoration: underline;
}

.wysiwyg-content a {
    color: var(--link-color, #0d6efd);
    font-weight: var(--link-font-weight, normal);
    text-decoration: var(--link-text-decoration, underline);
}

.wysiwyg-content a:hover,
.wysiwyg-content a:focus,
.wysiwyg-content a:active,
.wysiwyg-content a:visited {
    color: var(--link-color-hover, #0a58ca);
    text-decoration: var(--link-text-decoration, underline);
    outline: none;
}