/*we can write custom css as needed*/

/* Note content styling to render HTML properly */
.note-content {
    word-wrap: break-word;
}

.note-content p {
    margin-bottom: 0.5rem;
}

.note-content p:last-child {
    margin-bottom: 0;
}

/* Ensure note action buttons are the same size */
.note-actions .btn {
    min-width: 32px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modern Status Badge Styles - Rich UI */
/* Status Text - Colored Text Only */
.status-wrapper {
    display: flex;
    flex-direction: column;
}

.status-text {
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.status-text i {
    margin-right: 6px;
    font-size: 12px;
}

.status-timestamp {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.2;
}

/* Approved - Green Text */
.status-text-approved {
    color: #059669;
}

.status-text-approved:hover {
    color: #047857;
}

.status-text-approved i {
    color: #059669;
}

/* Pending - Orange Text */
.status-text-pending {
    color: #f97316 !important;
}

.status-text-pending:hover {
    color: #ea580c !important;
}

.status-text-pending i {
    color: #f97316 !important;
}

/* Rejected - Red Text */
.status-text-rejected {
    color: #dc2626;
}

.status-text-rejected:hover {
    color: #b91c1c;
}

.status-text-rejected i {
    color: #dc2626;
}

.status-reason {
    font-size: 11px;
    margin-top: 6px;
    display: inline-block;
    color: #6b7280;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 12px;
}

/* Enhanced Page UI Styles */
.pending-learner-page .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pending-learner-page .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pending-learner-page .filter-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 1 !important;
    overflow: visible;
}

.pending-learner-page .card {
    overflow: visible;
}

.pending-learner-page .card-body {
    overflow: visible;
}

.pending-learner-page .filter-section .form-group {
    margin-bottom: 0;
}

.pending-learner-page .filter-section .form-group label {
    margin-bottom: 8px;
}

.pending-learner-page #search_filter {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.pending-learner-page .filter-section h5 {
    color: #1e293b;
    font-weight: 600;
    font-size: 16px;
}

.pending-learner-page .filter-section .form-group label {
    color: #475569;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
}

.pending-learner-page .filter-section .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 42px;
    line-height: 1.5;
}

.pending-learner-page .filter-section .form-control:focus {
    border-color: #4d79f6;
    box-shadow: 0 0 0 3px rgba(77, 121, 246, 0.1);
    outline: none;
}

.pending-learner-page .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.pending-learner-page .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.pending-learner-page .btn-secondary {
    background: linear-gradient(135deg, #4ac7ec 0%, #33c0ea 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(74, 199, 236, 0.3);
    transition: all 0.3s ease;
}

.pending-learner-page .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 199, 236, 0.4);
    background: linear-gradient(135deg, #33c0ea 0%, #1cb9e7 100%);
}

/* Blue Primary Button - matches pending learner search button style */
.btn-blue-primary,
a.btn-blue-primary,
.btn.btn-blue-primary,
a.btn.btn-blue-primary {
    background: #4d79f6 !important;
    border: none !important;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

/* Small size button */
.btn-sm.btn-blue-primary,
a.btn-sm.btn-blue-primary,
.btn.btn-sm.btn-blue-primary,
a.btn.btn-sm.btn-blue-primary {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

/* Regular size button */
.btn-blue-primary:not(.btn-sm),
a.btn-blue-primary:not(.btn-sm),
.btn.btn-blue-primary:not(.btn-sm),
a.btn.btn-blue-primary:not(.btn-sm) {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(77, 121, 246, 0.3);
}

.btn-blue-primary:hover,
a.btn-blue-primary:hover,
.btn.btn-blue-primary:hover,
a.btn.btn-blue-primary:hover {
    background: #3b5bdb !important;
    color: #ffffff !important;
}

.btn-blue-primary:not(.btn-sm):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 121, 246, 0.4);
}

.btn-blue-primary:focus,
.btn-blue-primary.focus,
.btn-blue-primary:active,
.btn-blue-primary.active,
a.btn-blue-primary:focus,
a.btn-blue-primary:active {
    background: #3b5bdb !important;
    color: #ffffff !important;
}

.btn-blue-primary:not(.btn-sm):focus,
.btn-blue-primary:not(.btn-sm):active {
    box-shadow: 0 6px 20px rgba(77, 121, 246, 0.4);
}

.btn-blue-primary:disabled,
.btn-blue-primary.disabled {
    background: #9db4f0 !important;
    color: #ffffff !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.enrolment-view-page .section-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 18px 18px 10px 18px;
    margin-bottom: 18px;
}

.enrolment-view-page .section-title {
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.enrolment-view-page .data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
}

.enrolment-view-page .data-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enrolment-view-page .data-field label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

.enrolment-view-page .data-value {
    display: block;
    padding: 2px 0 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

.enrolment-view-page .header-bar {
    background: #4a5568;
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.enrolment-view-page {
    background: #eef2f7;
    padding-bottom: 48px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.enrolment-view-page .page-shell {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    flex: 1 0 auto;
    margin-bottom: 32px;
}

.enrolment-view-page .section-card + .section-card {
    margin-top: 18px;
}

/* v2 enrolment view rich UI */
.enrolment-v2-view {
    background: #f5f7fb;
    padding-bottom: 48px;
}

.enrolment-v2-view .page-title-box {
    border: none;
}

.enrolment-v2-view .action-buttons a {
    min-width: 64px;
}

.enrolment-modal .modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(61, 87, 148, 0.18);
}

.enrolment-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fb;
}

.enrolment-modal .modal-body {
    background: #ffffff;
    padding-top: 20px;
    padding-left: 24px;
    padding-right: 24px;
}

.enrolment-modal .enrolment-v2-view {
    background: #ffffff;
    padding: 0 4px;
}

.modal-xxl {
    max-width: 90%;
}

.enrolment-view-header {
    background: linear-gradient(135deg, #f6f8ff 0%, #e8eefc 100%);
    border: 1px solid #dce4f5;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 6px 16px rgba(61, 87, 148, 0.12);
}

.enrolment-v2-view .enrol-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(61, 87, 148, 0.12);
    border: 1px solid #e0e7f1;
    padding: 18px 20px 14px 20px;
    margin-bottom: 18px;
}

.enrolment-v2-view .section-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #284088;
    border-bottom: 1px solid #d7deeb;
    padding-bottom: 8px;
    margin-bottom: 12px;
    margin-left: 0;
    padding-left: 0;
}

.enrolment-v2-view .enrol-field label {
    font-size: 12px;
    text-transform: uppercase;
    color: #454545;
    margin-bottom: 4px;
    font-weight: 600;
}

.enrolment-v2-view .enrol-field .value {
    font-size: 15px;
    font-weight: 400;
    color: #0f1a33;
    line-height: 1.5;
}

.enrolment-v2-view .section-gap {
    margin-top: 10px;
}

.enrolment-v2-view .card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d7deeb, transparent);
    margin: 12px 0 6px;
}

/* Enrolment v2 shared form styles */
.enrolment-hero {
    background: linear-gradient(135deg, #4c6fff, #5ac8fa);
    color: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.enrolment-card {
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(76,111,255,0.08);
}

.chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5ff;
    color: #4c6fff;
    border: 1px solid #dbe4ff;
}

.btn-gradient {
    background: linear-gradient(120deg, #4c6fff, #5ac8fa);
    border: none;
    color: #fff;
}

.enrolment-v2-view .form-control:focus,
.enrolment-v2-view .custom-select:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 0.2rem rgba(76,111,255,0.15);
}

.required-label:after {
    content: '*';
    color: #e63946;
    margin-left: 4px;
    font-weight: 700;
}
.pending-learner-page .btn-primary,
.pending-learner-page a.btn-primary,
.pending-learner-page .btn.btn-primary,
.pending-learner-page a.btn.btn-primary {
    background: #4d79f6 !important;
    border: none !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(77, 121, 246, 0.3);
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.pending-learner-page .btn-primary:hover,
.pending-learner-page a.btn-primary:hover,
.pending-learner-page .btn.btn-primary:hover,
.pending-learner-page a.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 121, 246, 0.4);
    background: #3b5bdb !important;
    color: #ffffff !important;
}

.pending-learner-page .btn-primary,
.pending-learner-page .btn-primary *,
.pending-learner-page a.btn-primary,
.pending-learner-page a.btn-primary *,
.pending-learner-page .btn.btn-primary,
.pending-learner-page .btn.btn-primary *,
.pending-learner-page a.btn.btn-primary,
.pending-learner-page a.btn.btn-primary * {
    color: #ffffff !important;
}

.pending-learner-page .header-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 20px;
}

/* Column Visibility Button - Violet Color */
.pending-learner-page .btn-column-visibility {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    color: #ffffff !important;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none !important;
}

.pending-learner-page .btn-column-visibility:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff !important;
    text-decoration: none !important;
}

.pending-learner-page .btn-column-visibility:focus {
    text-decoration: none !important;
    outline: none;
    color: #ffffff !important;
}

.pending-learner-page .btn-column-visibility i {
    margin-right: 6px;
    color: #ffffff !important;
}

/* Enhanced Table Styling */
.pending-learner-page table.dataTable {
    border-radius: 12px;
}

.pending-learner-page .table-responsive {
    overflow-x: auto;
}

.pending-learner-page table.dataTable thead th {
    background: #4d79f6 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 14px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pending-learner-page table.dataTable tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.pending-learner-page table.dataTable tbody tr:hover {
    background: linear-gradient(90deg, rgba(77, 121, 246, 0.2) 0%, rgba(77, 121, 246, 0.12) 100%);
    box-shadow: 0 2px 8px rgba(77, 121, 246, 0.2);
}

.pending-learner-page table.dataTable tbody td {
    padding: 14px;
    color: #475569;
    font-size: 14px;
    vertical-align: middle;
}

/* Page Title Enhancement */
.pending-learner-page .page-title {
    color: #4d79f6;
    font-weight: 700;
    font-size: 24px;
}

/* Dropdown Menu Enhancement - Column Visibility */
.pending-learner-page .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    background: #ffffff;
    min-width: 220px;
}

.pending-learner-page .show-col-wrapper {
    position: relative;
    z-index: 2 !important;
    isolation: isolate;
}

.pending-learner-page .show-col-wrapper .dropdown-menu {
    z-index: 10051 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 8px !important;
    background: #ffffff;
    border: 2px solid #8b5cf6;
    transform: none !important;
    display: none;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.pending-learner-page .show-col-wrapper.show .dropdown-menu,
.pending-learner-page .show-col-wrapper .dropdown-menu.show {
    display: block !important;
}

.pending-learner-page .show-col-wrapper .dropdown-header {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 14px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-bottom: none;
    border-radius: 0;
}

.pending-learner-page .show-col-wrapper .dropdown-item {
    border-radius: 0;
    padding: 10px 16px;
    transition: all 0.2s ease;
    margin: 0;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #d766fd;
}

.pending-learner-page .show-col-wrapper .dropdown-item:last-child {
    border-bottom: none;
}

.pending-learner-page .show-col-wrapper .dropdown-item:hover {
    background: #d766fd;
    color: #1e293b;
    padding-left: 20px;
    opacity: 0.9;
}

.pending-learner-page .show-col-wrapper .dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Selected columns styling - visible columns */
.pending-learner-page .show-col-wrapper .dropdown-item:not(.inactive) {
    background: #d766fd;
    color: #1e293b;
    font-weight: 600;
}

.pending-learner-page .show-col-wrapper .dropdown-item:not(.inactive):hover {
    background: #d766fd;
    opacity: 0.9;
}

/* Hidden/inactive columns styling */
.pending-learner-page .show-col-wrapper .dropdown-item.inactive {
    background: #d766fd;
    color: #94a3b8;
    opacity: 0.6;
}

.pending-learner-page .show-col-wrapper .dropdown-item.inactive:hover {
    background: #d766fd;
    color: #64748b;
    opacity: 0.8;
}

/* General dropdown styles for other dropdowns */
.pending-learner-page .dropdown-header:not(.show-col-wrapper .dropdown-header) {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 16px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(77, 121, 246, 0.2);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #4d79f6 0%, #3b5bdb 100%);
    border-radius: 8px 8px 0 0;
}

.pending-learner-page .dropdown-item:not(.show-col-wrapper .dropdown-item) {
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    margin: 2px 0;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.pending-learner-page .dropdown-item:not(.show-col-wrapper .dropdown-item):hover {
    background: linear-gradient(90deg, rgba(77, 121, 246, 0.15) 0%, rgba(77, 121, 246, 0.08) 100%);
    color: #1e293b;
}

.pending-learner-page .dropdown-item:not(.show-col-wrapper .dropdown-item) i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Filter Toggle Button - Purple Solid Button */
.pending-learner-page #toggle-filters {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pending-learner-page #toggle-filters:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.pending-learner-page #toggle-filters:focus {
    text-decoration: none !important;
    outline: none;
}

.pending-learner-page #toggle-filters i {
    margin-right: 6px;
    color: inherit;
}

/* Card Body Enhancement */
.pending-learner-page .card-body {
    padding: 24px;
}

.pending-learner-page .report-body {
    background: #ffffff;
}

/* Action Dropdown Enhancement */
.pending-learner-page .dot-list .dropdown-toggle {
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.pending-learner-page .dot-list .dropdown-toggle:hover {
    background: rgba(77, 121, 246, 0.1);
}

.pending-learner-page .dot-list .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 2px solid #cbd5e1;
    padding: 4px;
    margin-top: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-width: 180px;
}

.pending-learner-page .dot-list .dropdown-menu .dropdown-item,
.pending-learner-page .dot-list .dropdown-menu li a {
    border-radius: 6px;
    padding: 3px 14px;
    margin: 1px 0;
    transition: all 0.2s ease;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
    background: transparent;
}

.pending-learner-page .dot-list .dropdown-menu .dropdown-item:hover,
.pending-learner-page .dot-list .dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(77, 121, 246, 0.15) 0%, rgba(77, 121, 246, 0.08) 100%);
    color: #1e293b;
    text-decoration: none;
    padding: 6px 14px;
}

.pending-learner-page .dot-list .dropdown-menu .dropdown-item i,
.pending-learner-page .dot-list .dropdown-menu li a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.pending-learner-page .dot-list .dropdown-menu .dropdown-item .text-success,
.pending-learner-page .dot-list .dropdown-menu li a .text-success {
    color: #10b981 !important;
}

.pending-learner-page .dot-list .dropdown-menu .dropdown-item .text-danger,
.pending-learner-page .dot-list .dropdown-menu li a .text-danger {
    color: #ef4444 !important;
}

.pending-learner-page .dot-list .dropdown-menu li {
    list-style: none;
    margin: 0;
}

/* Breadcrumb Enhancement */
.pending-learner-page .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.pending-learner-page .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pending-learner-page .breadcrumb-item a:hover {
    color: #4d79f6;
}

.pending-learner-page .breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .pending-learner-page .filter-section {
        padding: 16px;
    }

    .pending-learner-page .status-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Approve/Reject Buttons in Table */
.pending-learner-page table.dataTable thead th:first-child {
    text-align: center !important;
}

.pending-learner-page table.dataTable tbody td:first-child {
    text-align: center !important;
    vertical-align: middle !important;
}

.pending-learner-page table.dataTable tbody td .approve-reject-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.pending-learner-page table.dataTable tbody td .approve-reject-buttons .approve-btn,
.pending-learner-page table.dataTable tbody td .approve-reject-buttons .reject-btn {
    margin: 0;
    flex-shrink: 0;
}

.pending-learner-page table.dataTable tbody td .approve-btn,
.pending-learner-page table.dataTable tbody td .reject-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.pending-learner-page table.dataTable tbody td .approve-btn i,
.pending-learner-page table.dataTable tbody td .reject-btn i {
    font-size: 10px;
    margin-right: 4px;
}

/* Disabled button styles */
.pending-learner-page table.dataTable tbody td .approve-btn:disabled,
.pending-learner-page table.dataTable tbody td .reject-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: auto;
}

.pending-learner-page table.dataTable tbody td .approve-btn:disabled:hover,
.pending-learner-page table.dataTable tbody td .reject-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    cursor: not-allowed !important;
}

/* Action Buttons - Edit and Sync */
.pending-learner-page table.dataTable tbody td .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.pending-learner-page table.dataTable tbody td .action-buttons .view-enrolment-btn,
.pending-learner-page table.dataTable tbody td .action-buttons .edit-pending-learner,
.pending-learner-page table.dataTable tbody td .action-buttons .sync-to-tpg-btn {
    margin: 0;
    flex-shrink: 0;
}

.pending-learner-page table.dataTable tbody td .view-enrolment-btn,
.pending-learner-page table.dataTable tbody td .edit-pending-learner,
.pending-learner-page table.dataTable tbody td .sync-to-tpg-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.pending-learner-page table.dataTable tbody td .view-enrolment-btn i,
.pending-learner-page table.dataTable tbody td .edit-pending-learner i,
.pending-learner-page table.dataTable tbody td .sync-to-tpg-btn i {
    font-size: 10px;
    margin-right: 4px;
}

/* View button - Secondary/Gray */
.pending-learner-page table.dataTable tbody td .view-enrolment-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
    text-decoration: none;
}

.pending-learner-page table.dataTable tbody td .view-enrolment-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

/* Edit button - Blue */
.pending-learner-page table.dataTable tbody td .edit-pending-learner {
    background: linear-gradient(135deg, #4d79f6 0%, #3b5bdb 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(77, 121, 246, 0.3);
}

.pending-learner-page table.dataTable tbody td .edit-pending-learner:hover {
    background: linear-gradient(135deg, #3b5bdb 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(77, 121, 246, 0.4);
    transform: translateY(-1px);
}

/* Sync button - Cyan/Info */
.pending-learner-page table.dataTable tbody td .sync-to-tpg-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3);
}

.pending-learner-page table.dataTable tbody td .sync-to-tpg-btn:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

.pending-learner-page table.dataTable tbody td .approve-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.pending-learner-page table.dataTable tbody td .approve-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.pending-learner-page table.dataTable tbody td .reject-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.pending-learner-page table.dataTable tbody td .reject-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Select2 in Modal - Ensure it's clickable */
.model-box .select2-container {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.model-box .select2-container--open {
    z-index: 10000 !important;
}

.model-box .select2-dropdown {
    z-index: 10000 !important;
}

.model-box #reject_reason {
    pointer-events: auto !important;
}

/* Pending Learner Filter Styles */
#status_filter + .select2-container .select2-selection--single {
    height: 38px !important;
}

#status_filter + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}

#status_filter + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

#learner_search, #company_search {
    height: 38px !important;
}

/* Three dots dropdown button for pending learners */
.dropdown-toggle-no-caret::after {
    display: none;
}

.dropdown-toggle-no-caret:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.dropdown-toggle-no-caret:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-radius: 4px;
}

/* Ensure all buttons in dropdown are same size - smaller version */
.approve-reject-dropdown .dropdown-menu {
    min-width: 160px !important;
    width: 160px !important;
    padding: 0.25rem !important;
}

.approve-reject-dropdown .dropdown-menu .btn {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.15rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 1.75rem !important;
}

.approve-reject-dropdown .dropdown-menu .btn:last-child {
    margin-bottom: 0 !important;
}

.approve-reject-dropdown .dropdown-menu .btn i {
    margin-right: 0.25rem;
    font-size: 0.75rem !important;
}

/* Ensure gradient effects apply to buttons in dropdown */
.approve-reject-dropdown .dropdown-menu .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.approve-reject-dropdown .dropdown-menu .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.approve-reject-dropdown .dropdown-menu .btn-secondary {
    background: linear-gradient(135deg, #4ac7ec 0%, #33c0ea 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(74, 199, 236, 0.3) !important;
}

.approve-reject-dropdown .dropdown-menu .btn-secondary:hover {
    background: linear-gradient(135deg, #33c0ea 0%, #1cb9e7 100%) !important;
    box-shadow: 0 6px 20px rgba(74, 199, 236, 0.4) !important;
}

.approve-reject-dropdown .dropdown-menu .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.approve-reject-dropdown .dropdown-menu .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

#search_filter {
    height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.4 !important;
}

.underline {
    text-decoration: underline !important;
}

.underline:hover,
.underline:active,
.underline:focus {
    text-decoration: underline !important;
}

/* Learner Profile View Page Styles */
.learner-profile-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.learner-profile-sidebar {
    width: 25%;
    flex-shrink: 0;
}

.learner-profile-content {
    width: 75%;
    flex-grow: 1;
}

.profile-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.profile-info h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.profile-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.key-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.key-info-item:last-child {
    border-bottom: none;
}

.key-info-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.key-info-value {
    color: #333;
    font-size: 14px;
    text-align: right;
}

/* Learner Profile View only: prevent long text (e.g. Billing Address) from overflowing the card */
.page-learner-profile-view .learner-profile-sidebar .key-info-item {
    min-width: 0;
}
.page-learner-profile-view .learner-profile-sidebar .key-info-value {
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
    max-width: 100%;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #4a90e2;
}

.action-btn i {
    color: #666;
}

.content-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.main-tabs {
    background: #fff;
    padding: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
}

.main-tabs-header {
    justify-content: flex-start;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-left: 0;
    padding-left: 0;
}

.profile-card .main-tabs-header {
    margin-left: 0;
    padding-left: 0;
}

.profile-card .d-flex .main-tabs-header {
    flex: 1;
    margin-left: 160px;
    padding-left: 0;
}

@media (max-width: 1200px) {
    .profile-card .d-flex .main-tabs-header {
        margin-left: 140px;
    }
}

.profile-card .d-flex {
    padding: 0;
}

.content-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    position: relative;
    transition: all 0.3s;
}

.content-tab:hover {
    color: #4a90e2;
}

.content-tab.active {
    color: #4a90e2;
    font-weight: 600;
}

.content-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a90e2;
}

/* Main Tab Content - Only for learner profile module */
.learner-profile-content .main-tab-content {
    display: none;
}

.learner-profile-content .main-tab-content.active {
    display: block;
}

/* Sub Tabs Styling - Only for learner profile module */
.learner-profile-content .sub-tabs {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.learner-profile-content .sub-tab {
    padding: 10px 20px;
    font-size: 13px;
}

.learner-profile-content .sub-tab.active {
    color: #4a90e2;
    font-weight: 600;
}

.learner-profile-content .sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #4a90e2;
}

/* Sub Tab Content - Only for learner profile module */
.learner-profile-content .sub-tab-content {
    display: none;
}

.learner-profile-content .sub-tab-content.active {
    display: block;
}

.learner-profile-content .content-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a90e2;
}

/* Tab content styles - only apply to learner profile module, not Bootstrap tabs */
.learner-profile-content .tab-content {
    display: none;
}

.learner-profile-content .tab-content.active {
    display: block;
}

.activity-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.activity-item {
    padding: 15px;
    border-left: 3px solid #4a90e2;
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-type {
    font-weight: 600;
    color: #333;
}

.activity-date {
    color: #999;
    font-size: 12px;
}

.activity-body {
    color: #666;
    font-size: 14px;
}

/* Approve Status Badge Styles - Improved Visibility */
.activity-body .badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    text-transform: capitalize;
}

.activity-body .badge.badge-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border: 1px solid #059669;
}

.activity-body .badge.badge-danger {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626;
}

.activity-body .badge.badge-warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    border: 1px solid #d97706;
}

.course-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.course-item h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.course-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Tab Action Button Style - Blue background matching Add New button in pending learner list */
button.btn.btn-tab-action,
a.btn.btn-tab-action,
.btn-tab-action {
    background: #4d79f6 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(77, 121, 246, 0.3) !important;
    color: #ffffff !important;
}

button.btn.btn-tab-action:hover,
button.btn.btn-tab-action:focus,
button.btn.btn-tab-action:active,
a.btn.btn-tab-action:hover,
a.btn.btn-tab-action:focus,
a.btn.btn-tab-action:active,
.btn-tab-action:hover,
.btn-tab-action:focus,
.btn-tab-action:active {
    background: #3b5bdb !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(77, 121, 246, 0.4) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

button.btn.btn-tab-action i,
a.btn.btn-tab-action i,
.btn-tab-action i {
    color: #ffffff !important;
    margin-right: 6px;
}

button.btn.btn-tab-action:hover i,
button.btn.btn-tab-action:focus i,
button.btn.btn-tab-action:active i,
a.btn.btn-tab-action:hover i,
a.btn.btn-tab-action:focus i,
a.btn.btn-tab-action:active i,
.btn-tab-action:hover i,
.btn-tab-action:focus i,
.btn-tab-action:active i {
    color: #ffffff !important;
}

/* Primary Blue Button - For learner profile modals submit buttons */
.btn-primary-blue,
button.btn-primary-blue,
a.btn-primary-blue {
    background: #4d79f6 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(77, 121, 246, 0.3) !important;
    color: #ffffff !important;
}

.btn-primary-blue:hover,
.btn-primary-blue:focus,
.btn-primary-blue:active,
button.btn-primary-blue:hover,
button.btn-primary-blue:focus,
button.btn-primary-blue:active,
a.btn-primary-blue:hover,
a.btn-primary-blue:focus,
a.btn-primary-blue:active {
    background: #3b5bdb !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(77, 121, 246, 0.4) !important;
    text-decoration: none !important;
}

.btn-primary-blue.btn-rounded {
    border-radius: 4px !important;
}

.btn-primary-blue i {
    color: #ffffff !important;
    margin-right: 6px;
}

.btn-primary-blue:hover i,
.btn-primary-blue:focus i,
.btn-primary-blue:active i {
    color: #ffffff !important;
}

/* Activity Assigned To Field Style */
.activity-assigned-field {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #f5f5f5;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    opacity: 0.7;
    cursor: not-allowed;
    box-sizing: border-box;
    height: calc(1.5em + 0.75rem + 2px);
}

.activity-assigned-field .assigned-name {
    color: #333;
    font-weight: 600;
}

.activity-assigned-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Modal Footer Buttons - Same Size */
.btn-modal-action {
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-width: 100px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* Payment chaser button (Trainee List) */
.btn-payment-chaser {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background-color: #556ee6;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-payment-chaser--processing {
    color: #333;
    background-color: rgb(220, 172, 29);
    cursor: not-allowed;
}
.btn-payment-chaser--disabled {
    color: #999;
    background-color: #e9ecef;
    cursor: not-allowed;
}
