/*we can write custom css as needed*/

/* Square course action buttons with icon only */
.course-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    padding: 0;
    text-decoration: none;
    border: 1px solid #e5e7eb; /* neutral border for all */
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.course-action-btn i {
    font-size: 0.75rem;  /* try 0.75–0.8rem instead of 0.85rem */
}

.course-action-btn + .course-action-btn {
    margin-left: 0.15rem;
}

.course-action-btn:hover {
    transform: translateY(-1px);
}

/* Override global DataTables padding-right override for action column */
.courses-module table.dataTable tbody tr td:last-child {
    padding-right: 12px !important;
}

/* Course action button color variants */
.course-action-btn-ghost,
.course-action-btn-primary,
.course-action-btn-outline,
.course-action-btn-danger {
    background-color: #ffffff;
}

/* Only delete uses a strong red; others inherit table text color */
.course-action-btn-danger,
.course-action-btn-danger i {
    color: #dc2626;
}

/* 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;
}

.course-run-select-modal .modal-content {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(61, 87, 148, 0.18);
    overflow: hidden;
}

.course-run-select-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fb;
}

.course-run-select-modal .modal-body {
    background: #ffffff;
}

.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,
.pending-learner-page table.dataTable tbody td .action-buttons .btn-action-compact {
    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 - shared by Pending Learners, Assessment, Post Training modules */
.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;
}

/* Trigger button: no border/shadow (replaces inline style) */
.three-dot-menu-trigger {
    border: none !important;
    box-shadow: none !important;
}

/* Ellipsis icon size (replaces inline style) */
.three-dot-menu-icon {
    font-size: 0.875rem;
}

/* 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-primary {
    background: linear-gradient(135deg, #4d79f6 0%, #3b5bdb 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(77, 121, 246, 0.3) !important;
}

.approve-reject-dropdown .dropdown-menu .btn-primary:hover {
    background: linear-gradient(135deg, #3b5bdb 0%, #2d4ac7 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(77, 121, 246, 0.4) !important;
}

.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;
}

/* ==========================================================================
   Assessment Setting Module Styles
   ========================================================================== */

/* Assessment Setting Card - shared by create, edit, add_questions, student_assess_review */
.assessment-setting-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    border: none;
}

.assessment-setting-card .form-section-title {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Create/Edit Assessment - repeater items */
.repeater-item-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
}

.assessment-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.assessment-detail-row .assessment-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.assessment-detail-row .assessment-field label.control-label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.assessment-detail-row .assessment-field .form-control {
    height: calc(2.25rem + 2px);
    flex-shrink: 0;
    box-sizing: border-box;
}

.assessment-detail-row .assessment-field .select2-container,
.assessment-detail-row .assessment-field .select2-container--default {
    height: calc(2.25rem + 2px) !important;
    max-height: calc(2.25rem + 2px) !important;
    flex-shrink: 0;
}

.assessment-detail-row .assessment-field .select2-container .select2-selection--single,
.assessment-detail-row .assessment-field .select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    min-height: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.assessment-detail-row .assessment-field .select2-container .select2-selection__rendered {
    line-height: 1;
    padding-left: 0.75rem;
}

.assessment-detail-row .assessment-field .select2-container .select2-selection__arrow {
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.assessment-delete-col {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 0;
    min-height: calc(2.25rem + 2px + 0.4rem + 1.25em);
}

.assessment-delete-col .btn {
    height: calc(2.25rem + 2px);
    width: calc(2.25rem + 2px);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assessment-delete-col [data-repeater-delete] {
    color: #dc3545;
    border-color: #dc3545;
    background: transparent;
}

.assessment-delete-col [data-repeater-delete]:hover {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-add-assessment {
    border-style: dashed;
    border-width: 2px;
    padding: 0.5rem 1rem;
}

/* Edit Assessment - trainee checkbox */
.assessment-checkbox-wrap {
    height: calc(2.25rem + 2px);
    min-height: calc(2.25rem + 2px);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.assessment-setting-card .trainee-checkbox-wrap .custom-control-input {
    cursor: pointer;
}

.assessment-setting-card .trainee-checkbox-wrap .custom-control-label {
    cursor: pointer;
    padding-left: 0.5rem;
    font-weight: normal;
    color: #495057;
}

.assessment-setting-card .trainee-checkbox-wrap .custom-control-label::before,
.assessment-setting-card .trainee-checkbox-wrap .custom-control-label::after {
    top: 0.2rem;
}

/* View Trainees - Review Assessment button */
.btn-review-assessment {
    color: #667eea;
    border-color: #667eea;
    background: transparent;
}

.btn-review-assessment:hover {
    color: #fff !important;
    background-color: #667eea !important;
    border-color: #667eea !important;
}

/* Add Questions page */
.ck-editor__editable_inline {
    min-height: 280px;
}

.question-stem-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.question-stem-section .ck-editor__editable_inline {
    min-height: 180px;
}

.question-stem-section label.font-weight-600 {
    font-weight: 600;
}

.question-wrapper .list-group .list-group-item {
    padding: 0.75rem 1.25rem;
}

.thumb-image {
    float: left;
    width: 100px;
    position: relative;
    padding: 5px;
}

.btn.close-icon-style {
    height: 18px;
    width: 18px;
    position: absolute;
    top: 2px;
    right: 14px;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    background-color: red;
    color: #FFFFFF !important;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

#question-list .list-group-item .collapse-module h5 {
    width: 75%;
}

#question-list .list-group-item .collapse-module .btn.btn-success,
#question-list .list-group-item .collapse-module .btn.btn-danger {
    height: 44px;
    width: 40px;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}

.question-item-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.question-item-card .question-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.question-item-card .question-actions .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btn-add-question {
    border-style: dashed;
    border-width: 2px;
    padding: 0.5rem 1rem;
}

.question-item-card .question-header-wrap {
    flex: 1;
    min-width: 0;
}

.question-item-card .question-header-wrap .question-preview {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Formatted HTML preview - preserves bullets, lists, line breaks */
.question-item-card .question-header-wrap .question-preview-wrapper {
    margin-top: 0.15rem;
    min-width: 0;
}

.question-item-card .question-header-wrap .question-preview-html {
    font-size: 0.8125rem;
    color: #495057;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.question-item-card .question-header-wrap .question-preview-html ul,
.question-item-card .question-header-wrap .question-preview-html ol {
    margin: 0.15em 0 0 0;
    padding-left: 1.1em;
}

.question-item-card .question-header-wrap .question-preview-html li {
    margin: 0.1em 0;
}

.question-item-card .question-header-wrap .question-preview-html p {
    margin: 0 0 0.2em 0;
}

.question-item-card .question-header-wrap .question-preview-html p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Assessment Course Run List Page - Filter & Table UI
   ========================================================================== */

.assessment-course-run-page .assessment-course-run-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.assessment-course-run-page .assessment-course-run-header .header-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.assessment-course-run-page .assessment-course-run-header .header-subtitle {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #64748b !important;
}

.assessment-course-run-page .assessment-course-run-filter-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 40px;
    font-size: 0.9375rem;
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-control:focus {
    border-color: #4d79f6;
    box-shadow: 0 0 0 3px rgba(77, 121, 246, 0.12);
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-group.d-flex {
    gap: 0.75rem;
}

.assessment-course-run-page .btn-search-filter {
    min-width: 110px;
    height: 40px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.assessment-course-run-page .btn-search-filter:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.assessment-course-run-page .btn-export-excel {
    min-width: 130px;
    height: 40px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.assessment-course-run-page .btn-export-excel:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.assessment-course-run-page .assessment-course-run-table-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_length,
.assessment-course-run-page .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_length label,
.assessment-course-run-page .dataTables_wrapper .dataTables_filter label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 28px 6px 12px;
    margin: 0 6px;
    font-size: 0.875rem;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    min-width: 220px;
    font-size: 0.875rem;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #4d79f6;
    box-shadow: 0 0 0 2px rgba(77, 121, 246, 0.1);
}

@media (max-width: 767px) {
    .assessment-course-run-page .assessment-course-run-filter-bar {
        padding: 1rem;
    }
    .assessment-course-run-page .btn-search-filter,
    .assessment-course-run-page .btn-export-excel {
        width: 100%;
        min-width: 100%;
    }
}

/* Course Run page - dropdown styling */
.assessment-course-run-actions .dropdown-toggle-no-caret {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.assessment-course-run-actions .dropdown-toggle-no-caret:hover {
    background-color: #e9ecef;
}

.assessment-course-run-dropdown {
    min-width: 12.5rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.assessment-course-run-dropdown .dropdown-item {
    font-size: 0.875rem;
    white-space: normal;
    display: flex;
    align-items: center;
}

.assessment-course-run-dropdown .assessment-action-icon {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
    color: #6c757d;
    flex-shrink: 0;
}

.assessment-course-run-dropdown .dropdown-item:hover .assessment-action-icon {
    color: inherit;
}

.assessment-course-run-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.assessment-dropdown-status {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 6px;
    margin: 0.5rem 0.75rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.assessment-course-run-dropdown .dropdown-divider {
    border-top-color: #e9ecef;
}

/* Student Assessment Review (Grade Assessment) page */
.grade-assessment-page {
    --accent: #667eea;
    --accent-dark: #764ba2;
    --surface: #f8fafc;
}

.grade-assessment-page .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.grade-assessment-page .assessment-setting-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.grade-assessment-page .assessment-setting-card .card-header {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
}

.grade-assessment-page .assessment-setting-card .card-body {
    padding: 1.5rem 2rem;
    background: var(--surface);
}

.grade-assessment-page .assessment-setting-card .card-header .btn-header-action {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.grade-assessment-page .assessment-setting-card .card-header .header-action-btns .btn-header-action {
    margin-right: 1rem;
}

.grade-assessment-page .assessment-setting-card .card-header .header-action-btns .btn-header-action:last-child {
    margin-right: 0;
}

.grade-assessment-page .assessment-setting-card .card-header .btn-header-action:hover {
    background: #fff;
    border-color: #fff;
    color: #667eea;
    text-decoration: none;
}

.grade-assessment-page .assessment-setting-card .card-header .btn-header-action i {
    color: inherit;
}

.student-info-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.student-info-banner .student-info-main {
    flex-shrink: 0;
}

.student-info-banner .student-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-right: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.student-info-banner .student-info-details {
    min-width: 0;
}

.student-info-banner .student-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.student-info-banner .student-nric {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.student-info-banner .student-info-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.student-info-banner .info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    max-width: 100%;
}

.student-info-banner .info-badge i {
    color: #64748b;
    flex-shrink: 0;
}

.student-info-banner .info-badge .info-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-info-banner .info-badge {
    max-width: 100%;
}

.student-info-banner .info-badge-course {
    flex: 1;
    min-width: 0;
}

.student-info-banner .info-badge-course .info-badge-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.progress-toolbar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.progress-toolbar-expand-only {
    flex-direction: row;
    justify-content: flex-end;
}

.progress-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.progress-summary .summary-badge {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.progress-summary .summary-badge.reviewed {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.progress-summary .summary-badge.passed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.progress-summary .summary-badge.failed {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.grade-assessment-page .btn-expand-all,
.grade-assessment-page .quick-actions .btn-expand-all,
.grade-assessment-page .progress-toolbar .btn-expand-all {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #667eea;
    background: #f5f3ff;
    color: #5b21b6;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.grade-assessment-page .btn-expand-all:hover,
.grade-assessment-page .quick-actions .btn-expand-all:hover,
.grade-assessment-page .progress-toolbar .btn-expand-all:hover {
    border-color: #5b21b6;
    background: #ede9fe;
    color: #4c1d95;
}

.grade-assessment-page .btn-expand-all:focus,
.grade-assessment-page .quick-actions .btn-expand-all:focus,
.grade-assessment-page .progress-toolbar .btn-expand-all:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.quick-actions .all-pass-fail-group {
    gap: 0.75rem;
}

.grade-assessment-page .question-wrapper .question-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.grade-assessment-page .question-wrapper .question-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.grade-assessment-page .question-wrapper .question-card .exam-collaps {
    align-items: flex-start;
}

.grade-assessment-page .question-indicator-group {
    display: flex;
    align-items: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    padding: 4px 0;
    border-left: 3px solid #667eea;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.06) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}

.grade-assessment-page .question-indicator-group .customcheck {
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.grade-assessment-page .question-indicator-group .question-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: #667eea;
    min-width: 24px;
}

.grade-assessment-page .question-wrapper .question-card .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    min-width: 20px;
    min-height: 20px;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.grade-assessment-page .question-wrapper .question-card .customcheck:hover .checkmark {
    border-color: #667eea;
    background: #f5f3ff;
}

.grade-assessment-page .question-wrapper .question-card .customcheck input:checked ~ .checkmark {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
}

.grade-assessment-page .question-wrapper .question-card .exam-collaps .customcheck .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-width: 0 2px 2px 0;
}

.grade-assessment-page .question-wrapper .question-card .question-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand {
    min-width: auto;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand .btn-expand-text {
    white-space: nowrap;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand i {
    font-size: 0.9rem;
    display: inline-block;
    color: inherit !important;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand:hover {
    transform: scale(1.05);
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
}


.grade-assessment-page .pass-fail-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.grade-assessment-page .pass-fail-group .pass-fail-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all 0.2s;
}

.grade-assessment-page .pass-fail-group .pass-fail-btn.active-pass {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}

.grade-assessment-page .pass-fail-group .pass-fail-btn.active-fail {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 1px rgba(239,68,68,0.2);
}

.grade-assessment-page .pass-fail-group .pass-fail-btn:hover:not(.active-pass):not(.active-fail) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.grade-assessment-page .question-wrapper .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
}

.grade-assessment-page .question-wrapper .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.review-actions-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.review-actions-bar .row {
    align-items: flex-end;
    gap: 1.25rem;
}

.review-actions-bar .action-field label {
    margin-bottom: 0.4rem;
}

.review-actions-bar .mark-all-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.review-actions-bar .mark-all-control:hover .mark-all-checkbox {
    border-color: #667eea;
    background: #f5f3ff;
}

.review-actions-bar .mark-all-control .mark-all-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}

.review-actions-bar .mark-all-control input:checked + .mark-all-checkbox {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
}

.review-actions-bar .mark-all-control input:checked + .mark-all-checkbox::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.review-actions-bar .mark-all-control .mark-all-label {
    font-weight: 600;
    color: #495057;
    margin: 0;
    font-size: 1rem;
}

.review-actions-bar .form-control-sm {
    min-height: 31px;
}

.review-actions-bar .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
}

.review-actions-bar .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.attachment-link {
    color: var(--accent);
    font-weight: 500;
}

.attachment-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Answer Section - Grade Assessment */
.grade-assessment-page .answer-section {
    margin-top: 0.5rem;
}

.grade-assessment-page .answer-section-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.grade-assessment-page .answer-section-label i {
    color: #667eea;
}

.grade-assessment-page .answer-content {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 100px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.grade-assessment-page .answer-content:empty::before {
    content: "No answer provided";
    color: #94a3b8;
    font-style: italic;
}

.grade-assessment-page .answer-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.grade-assessment-page .answer-content table td,
.grade-assessment-page .answer-content table th {
    border: 1px solid #e9ecef;
    padding: 0.6rem 0.9rem;
    text-align: left;
}

.grade-assessment-page .answer-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.grade-assessment-page .answer-content h4 {
    margin: 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.grade-assessment-page .answer-content p {
    margin-bottom: 0.75rem;
}

.grade-assessment-page .answer-content a {
    color: #667eea;
    font-weight: 500;
}

.grade-assessment-page .answer-content a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Fallback for answer-content outside grade-assessment-page */
.answer-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    min-height: 120px;
    overflow: auto;
}

.btn-save-assessment {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border: none !important;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

.btn-save-assessment:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    transition: all 0.2s ease;
}

.btn-save-assessment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.grade-assessment-page .question-wrapper .question-card .d-flex.align-items-start .question-num {
    flex-shrink: 0;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #94a3b8;
}

/* Back to Trainees button - empty state */
.btn-back-to-trainees {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-back-to-trainees i {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 1em;
    flex-shrink: 0;
    transform: translateY(2px);
}


.btn-back-to-trainees:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   Assessment Setting Module Styles
   ========================================================================== */

/* Assessment Setting Card - shared by create, edit, add_questions, student_assess_review */
.assessment-setting-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    border: none;
}

.assessment-setting-card .form-section-title {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Create/Edit Assessment - repeater items */
.repeater-item-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
}

.assessment-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.assessment-detail-row .assessment-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.assessment-detail-row .assessment-field label.control-label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.assessment-detail-row .assessment-field .form-control {
    height: calc(2.25rem + 2px);
    flex-shrink: 0;
    box-sizing: border-box;
}

.assessment-detail-row .assessment-field .select2-container,
.assessment-detail-row .assessment-field .select2-container--default {
    height: calc(2.25rem + 2px) !important;
    max-height: calc(2.25rem + 2px) !important;
    flex-shrink: 0;
}

.assessment-detail-row .assessment-field .select2-container .select2-selection--single,
.assessment-detail-row .assessment-field .select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    min-height: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.assessment-detail-row .assessment-field .select2-container .select2-selection__rendered {
    line-height: 1;
    padding-left: 0.75rem;
}

.assessment-detail-row .assessment-field .select2-container .select2-selection__arrow {
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.assessment-delete-col {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 0;
    min-height: calc(2.25rem + 2px + 0.4rem + 1.25em);
}

.assessment-delete-col .btn {
    height: calc(2.25rem + 2px);
    width: calc(2.25rem + 2px);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assessment-delete-col [data-repeater-delete] {
    color: #dc3545;
    border-color: #dc3545;
    background: transparent;
}

.assessment-delete-col [data-repeater-delete]:hover {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-add-assessment {
    border-style: dashed;
    border-width: 2px;
    padding: 0.5rem 1rem;
}

/* Edit Assessment - trainee checkbox */
.assessment-checkbox-wrap {
    height: calc(2.25rem + 2px);
    min-height: calc(2.25rem + 2px);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.assessment-setting-card .trainee-checkbox-wrap .custom-control-input {
    cursor: pointer;
}

.assessment-setting-card .trainee-checkbox-wrap .custom-control-label {
    cursor: pointer;
    padding-left: 0.5rem;
    font-weight: normal;
    color: #495057;
}

.assessment-setting-card .trainee-checkbox-wrap .custom-control-label::before,
.assessment-setting-card .trainee-checkbox-wrap .custom-control-label::after {
    top: 0.2rem;
}

/* View Trainees - Review Assessment button */
.btn-review-assessment {
    color: #667eea;
    border-color: #667eea;
    background: transparent;
}

.btn-review-assessment:hover {
    color: #fff !important;
    background-color: #667eea !important;
    border-color: #667eea !important;
}

/* Add Questions page */
.ck-editor__editable_inline {
    min-height: 280px;
}

.question-stem-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.question-stem-section .ck-editor__editable_inline {
    min-height: 180px;
}

.question-stem-section label.font-weight-600 {
    font-weight: 600;
}

.question-wrapper .list-group .list-group-item {
    padding: 0.75rem 1.25rem;
}

.thumb-image {
    float: left;
    width: 100px;
    position: relative;
    padding: 5px;
}

.btn.close-icon-style {
    height: 18px;
    width: 18px;
    position: absolute;
    top: 2px;
    right: 14px;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    background-color: red;
    color: #FFFFFF !important;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

#question-list .list-group-item .collapse-module h5 {
    width: 75%;
}

#question-list .list-group-item .collapse-module .btn.btn-success,
#question-list .list-group-item .collapse-module .btn.btn-danger {
    height: 44px;
    width: 40px;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}

.question-item-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.question-item-card .question-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.question-item-card .question-actions .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btn-add-question {
    border-style: dashed;
    border-width: 2px;
    padding: 0.5rem 1rem;
}

.question-item-card .question-header-wrap {
    flex: 1;
    min-width: 0;
}

.question-item-card .question-header-wrap .question-preview {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Formatted HTML preview - preserves bullets, lists, line breaks */
.question-item-card .question-header-wrap .question-preview-wrapper {
    margin-top: 0.15rem;
    min-width: 0;
}

.question-item-card .question-header-wrap .question-preview-html {
    font-size: 0.8125rem;
    color: #495057;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.question-item-card .question-header-wrap .question-preview-html ul,
.question-item-card .question-header-wrap .question-preview-html ol {
    margin: 0.15em 0 0 0;
    padding-left: 1.1em;
}

.question-item-card .question-header-wrap .question-preview-html li {
    margin: 0.1em 0;
}

.question-item-card .question-header-wrap .question-preview-html p {
    margin: 0 0 0.2em 0;
}

.question-item-card .question-header-wrap .question-preview-html p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Assessment Course Run List Page - Filter & Table UI
   ========================================================================== */

.assessment-course-run-page .assessment-course-run-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.assessment-course-run-page .assessment-course-run-header .header-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.assessment-course-run-page .assessment-course-run-header .header-subtitle {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #64748b !important;
}

.assessment-course-run-page .assessment-course-run-filter-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 40px;
    font-size: 0.9375rem;
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-control:focus {
    border-color: #4d79f6;
    box-shadow: 0 0 0 3px rgba(77, 121, 246, 0.12);
}

.assessment-course-run-page .assessment-course-run-filter-bar .form-group.d-flex {
    gap: 0.75rem;
}

.assessment-course-run-page .btn-search-filter {
    min-width: 110px;
    height: 40px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.assessment-course-run-page .btn-search-filter:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.assessment-course-run-page .btn-export-excel {
    min-width: 130px;
    height: 40px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.assessment-course-run-page .btn-export-excel:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.assessment-course-run-page .assessment-course-run-table-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_length,
.assessment-course-run-page .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_length label,
.assessment-course-run-page .dataTables_wrapper .dataTables_filter label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 28px 6px 12px;
    margin: 0 6px;
    font-size: 0.875rem;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    min-width: 220px;
    font-size: 0.875rem;
}

.assessment-course-run-page .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #4d79f6;
    box-shadow: 0 0 0 2px rgba(77, 121, 246, 0.1);
}

@media (max-width: 767px) {
    .assessment-course-run-page .assessment-course-run-filter-bar {
        padding: 1rem;
    }
    .assessment-course-run-page .btn-search-filter,
    .assessment-course-run-page .btn-export-excel {
        width: 100%;
        min-width: 100%;
    }
}

/* Course Run page - dropdown styling */
.assessment-course-run-actions .dropdown-toggle-no-caret {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.assessment-course-run-actions .dropdown-toggle-no-caret:hover {
    background-color: #e9ecef;
}

.assessment-course-run-dropdown {
    min-width: 12.5rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.assessment-course-run-dropdown .dropdown-item {
    font-size: 0.875rem;
    white-space: normal;
    display: flex;
    align-items: center;
}

.assessment-course-run-dropdown .assessment-action-icon {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
    color: #6c757d;
    flex-shrink: 0;
}

.assessment-course-run-dropdown .dropdown-item:hover .assessment-action-icon {
    color: inherit;
}

.assessment-course-run-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.assessment-dropdown-status {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 6px;
    margin: 0.5rem 0.75rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.assessment-course-run-dropdown .dropdown-divider {
    border-top-color: #e9ecef;
}

/* Student Assessment Review (Grade Assessment) page */
.grade-assessment-page {
    --accent: #667eea;
    --accent-dark: #764ba2;
    --surface: #f8fafc;
}

.grade-assessment-page .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.grade-assessment-page .assessment-setting-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.grade-assessment-page .assessment-setting-card .card-header {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
}

.grade-assessment-page .assessment-setting-card .card-body {
    padding: 1.5rem 2rem;
    background: var(--surface);
}

.grade-assessment-page .assessment-setting-card .card-header .btn-header-action {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.grade-assessment-page .assessment-setting-card .card-header .header-action-btns .btn-header-action {
    margin-right: 1rem;
}

.grade-assessment-page .assessment-setting-card .card-header .header-action-btns .btn-header-action:last-child {
    margin-right: 0;
}

.grade-assessment-page .assessment-setting-card .card-header .btn-header-action:hover {
    background: #fff;
    border-color: #fff;
    color: #667eea;
    text-decoration: none;
}

.grade-assessment-page .assessment-setting-card .card-header .btn-header-action i {
    color: inherit;
}

.student-info-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.student-info-banner .student-info-main {
    flex-shrink: 0;
}

.student-info-banner .student-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-right: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.student-info-banner .student-info-details {
    min-width: 0;
}

.student-info-banner .student-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.student-info-banner .student-nric {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.student-info-banner .student-info-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.student-info-banner .info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    max-width: 100%;
}

.student-info-banner .info-badge i {
    color: #64748b;
    flex-shrink: 0;
}

.student-info-banner .info-badge .info-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-info-banner .info-badge {
    max-width: 100%;
}

.student-info-banner .info-badge-course {
    flex: 1;
    min-width: 0;
}

.student-info-banner .info-badge-course .info-badge-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.progress-toolbar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.progress-toolbar.progress-toolbar-expand-only {
    justify-content: flex-end;
}

.progress-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.progress-summary .summary-badge {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.progress-summary .summary-badge.reviewed {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.progress-summary .summary-badge.passed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.progress-summary .summary-badge.failed {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.grade-assessment-page .quick-actions .btn-expand-all {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #667eea;
    background: #f5f3ff;
    color: #5b21b6;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.grade-assessment-page .quick-actions .btn-expand-all:hover {
    border-color: #5b21b6;
    background: #ede9fe;
    color: #4c1d95;
}

.grade-assessment-page .quick-actions .btn-expand-all:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.quick-actions .all-pass-fail-group {
    gap: 0.75rem;
}

.grade-assessment-page .question-wrapper .question-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.grade-assessment-page .question-wrapper .question-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.grade-assessment-page .question-wrapper .question-card .exam-collaps {
    align-items: flex-start;
}

.grade-assessment-page .question-indicator-group {
    display: flex;
    align-items: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    padding: 4px 0;
    border-left: 3px solid #667eea;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.06) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}

.grade-assessment-page .question-indicator-group .customcheck {
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.grade-assessment-page .question-indicator-group .question-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: #667eea;
    min-width: 24px;
}

.grade-assessment-page .question-wrapper .question-card .checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    min-width: 20px;
    min-height: 20px;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.grade-assessment-page .question-wrapper .question-card .customcheck:hover .checkmark {
    border-color: #667eea;
    background: #f5f3ff;
}

.grade-assessment-page .question-wrapper .question-card .customcheck input:checked ~ .checkmark {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
}

.grade-assessment-page .question-wrapper .question-card .exam-collaps .customcheck .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-width: 0 2px 2px 0;
}

.grade-assessment-page .question-wrapper .question-card .question-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand {
    min-width: auto;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand .btn-expand-text {
    white-space: nowrap;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand i {
    font-size: 0.9rem;
    display: inline-block;
    color: inherit !important;
}

.grade-assessment-page .question-wrapper .question-card .btn-expand:hover {
    transform: scale(1.05);
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
}


.grade-assessment-page .pass-fail-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.grade-assessment-page .pass-fail-group .pass-fail-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all 0.2s;
}

.grade-assessment-page .pass-fail-group .pass-fail-btn.active-pass {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}

.grade-assessment-page .pass-fail-group .pass-fail-btn.active-fail {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 1px rgba(239,68,68,0.2);
}

.grade-assessment-page .pass-fail-group .pass-fail-btn:hover:not(.active-pass):not(.active-fail) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.grade-assessment-page .question-wrapper .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
}

.grade-assessment-page .question-wrapper .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.review-actions-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.review-actions-bar .row {
    align-items: flex-end;
    gap: 1.25rem;
}

.review-actions-bar .action-field label {
    margin-bottom: 0.4rem;
}

.review-actions-bar .mark-all-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.review-actions-bar .mark-all-control:hover .mark-all-checkbox {
    border-color: #667eea;
    background: #f5f3ff;
}

.review-actions-bar .mark-all-control .mark-all-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}

.review-actions-bar .mark-all-control input:checked + .mark-all-checkbox {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
}

.review-actions-bar .mark-all-control input:checked + .mark-all-checkbox::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.review-actions-bar .mark-all-control .mark-all-label {
    font-weight: 600;
    color: #495057;
    margin: 0;
    font-size: 1rem;
}

.review-actions-bar .form-control-sm {
    min-height: 31px;
}

.review-actions-bar .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
}

.review-actions-bar .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.attachment-link {
    color: var(--accent);
    font-weight: 500;
}

.attachment-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Answer Section - Grade Assessment */
.grade-assessment-page .answer-section {
    margin-top: 0.5rem;
}

.grade-assessment-page .answer-section-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.grade-assessment-page .answer-section-label i {
    color: #667eea;
}

.grade-assessment-page .answer-content {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 100px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.grade-assessment-page .answer-content:empty::before {
    content: "No answer provided";
    color: #94a3b8;
    font-style: italic;
}

.grade-assessment-page .answer-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.grade-assessment-page .answer-content table td,
.grade-assessment-page .answer-content table th {
    border: 1px solid #e9ecef;
    padding: 0.6rem 0.9rem;
    text-align: left;
}

.grade-assessment-page .answer-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.grade-assessment-page .answer-content h4 {
    margin: 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.grade-assessment-page .answer-content p {
    margin-bottom: 0.75rem;
}

.grade-assessment-page .answer-content a {
    color: #667eea;
    font-weight: 500;
}

.grade-assessment-page .answer-content a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Fallback for answer-content outside grade-assessment-page */
.answer-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    min-height: 120px;
    overflow: auto;
}

.btn-save-assessment {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border: none !important;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

.btn-save-assessment:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    transition: all 0.2s ease;
}

.btn-save-assessment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.grade-assessment-page .question-wrapper .question-card .d-flex.align-items-start .question-num {
    flex-shrink: 0;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #94a3b8;
}

/* Back to Trainees button - empty state */
.btn-back-to-trainees {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-back-to-trainees i {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 1em;
    flex-shrink: 0;
    transform: translateY(2px);
}


.btn-back-to-trainees:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 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;
}

/* Student feedback page (TRAQOM & learning experience) */
.feedback-qr-wrap {
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feedback-qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}
.ea-student-portal .card .card-title {
    font-size: 18px;
    color: #23365F;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.ea-student-portal .btn-traqom {
    font-size: 13px;
    background-color: rgb(247, 199, 126);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 5px 120px;
}
.ea-student-portal .btn-traqom:hover {
    background-color: #d8960c;
}

.container-fluid.ssg-grants-page {
    min-width: 0;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
.page-content:has(.ssg-grants-page) {
    overflow-x: hidden;
}
.ssg-grants-page .row .col-12 {
    min-width: 0;
}
.ssg-grants-page .card {
    overflow: visible;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}
.ssg-grants-page .card-body {
    overflow: visible;
}
.ssg-grants-page .filter-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    align-items: flex-end; 
}
.ssg-grants-page .filter-buttons .btn { 
    flex-shrink: 0; 
}

/* Filter card */
.ssg-grants-page .filter-collapse-btn {
    color: #2b63d2;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px 8px;
    overflow: visible;
}
.ssg-grants-page .filter-collapse-btn .filter-toggle-label {
    font-size: 0.9rem;
}
.ssg-grants-page .filter-collapse-btn:hover {
    color: #1f2937;
}
.ssg-grants-page .filter-collapse-btn .filter-chevron {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}
.ssg-grants-page .filter-card.filter-expanded .filter-collapse-btn .filter-chevron {
    transform: rotate(180deg);
}
.ssg-grants-page .filter-heading-row {
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
}
.ssg-grants-page .filter-heading-row .filter-heading {
    min-width: min-content;
    overflow: visible;
}
/* Summary card */
.ssg-grants-page .summary-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.ssg-grants-page .summary-card .card-body {
    padding: 0;
}
.ssg-grants-page .summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.6rem 1.5rem;
}
.ssg-grants-page .summary-item-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
}
.ssg-grants-page .summary-item + .summary-item {
    border-left: 1px solid #e5e7eb;
}
.ssg-grants-page .summary-item i {
    font-size: 1rem;
}
.ssg-grants-page .summary-label {
    font-size: 0.85rem;
    color: #111827;
}
.ssg-grants-page .summary-value {
    font-size: 1rem;
    font-weight: 600;
}
.ssg-grants-page .summary-item-completed i { color: #10b981; }
.ssg-grants-page .summary-item-completed .summary-value { color: #065f46; }
.ssg-grants-page .summary-item-processing i { color: #f59e0b; }
.ssg-grants-page .summary-item-processing .summary-value { color: #92400e; }
.ssg-grants-page .summary-item-cancelled i { color: #ef4444; }
.ssg-grants-page .summary-item-cancelled .summary-value { color: #7f1d1d; }

.ssg-grants-page .filter-card {
    background: #fff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 1rem;
}
.ssg-grants-page .filter-card .card-body {
    background: #fff !important;
    border: none !important;
    padding: 6px 1.5rem;
    overflow: visible;
    border-radius: 12px;
}
.ssg-grants-page .filter-card.filter-expanded .card-body {
    padding-bottom: 1.25rem;
}
.ssg-grants-page .filter-card .filter-expand-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}
.ssg-grants-page .filter-card.filter-expanded .filter-expand-body {
    max-height: 500px;
    overflow: visible;
}
.ssg-grants-page .filter-card .filter-expand-body .filter-form-inner {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.75rem;
    opacity: 1;
    transition: opacity 0.15s ease;
}
.ssg-grants-page .filter-card:not(.filter-expanded) .filter-form-inner {
    opacity: 0;
}
.ssg-grants-page .filter-card .filter-form-inner .form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}
.ssg-grants-page .filter-form-inner .form-control {
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    height: 38px;
}
.ssg-grants-page .filter-form-inner .form-group {
    margin-bottom: 0.75rem;
}
.ssg-grants-page .filter-form-inner .form-group:last-child {
    margin-bottom: 0;
}
.ssg-grants-page .filter-form-inner .form-control:focus {
    border-color: #4d79f6;
    box-shadow: 0 0 0 2px rgba(77, 121, 246, 0.2);
}
.ssg-grants-page .page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.ssg-grants-page .page-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}
.ssg-grants-page .actions-gap {
    gap: 16px;
}
.ssg-grants-page .btn-secondary {
    background: #6b7280;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
}
.ssg-grants-page .btn-secondary:hover,
.ssg-grants-page .btn-secondary:focus,
.ssg-grants-page .btn-secondary:active {
    background: #374151 !important;
    color: #fff;
}
.ssg-grants-page .btn-primary,
.ssg-grants-page a.btn-primary {
    background: #4d79f6;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
}
.ssg-grants-page .btn-primary:hover,
.ssg-grants-page a.btn-primary:hover {
    background: #3b5bdb;
    color: #fff;
}
.ssg-grants-page .btn-success {
    background: #059669;
    border: none;
    color: #fff;
    border-radius: 6px;
}
.ssg-grants-page .btn-success:hover {
    background: #047857;
    color: #fff;
}
.ssg-grants-page .filter-form-inner .filter-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}
.ssg-grants-page .filter-form-inner .filter-buttons-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    flex-shrink: 0;
}
.ssg-grants-page .filter-form-inner .filter-buttons .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    width: 85px;
    min-width: 85px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ssg-grants-page .filter-form-inner .filter-buttons .btn:hover {
    transform: none;
}
.ssg-grants-page .filter-form-inner .filter-buttons .btn-primary {
    background: #4d79f6 !important;
    border: none !important;
    color: #fff !important;
}
.ssg-grants-page .filter-form-inner .filter-buttons .btn-primary:hover {
    background: #3b5bdb !important;
    color: #fff !important;
    border: none !important;
}
.ssg-grants-page .filter-form-inner .filter-buttons .btn-secondary {
    background: #6b7280 !important;
    border: none !important;
    color: #fff !important;
    text-decoration: none;
}
.ssg-grants-page .filter-form-inner .filter-buttons .btn-secondary:hover {
    background: #374151 !important;
    color: #fff !important;
}
.ssg-grants-page .filter-form-inner .date-ico {
    position: relative;
    display: block;
}
.ssg-grants-page .filter-form-inner .date-ico .form-control {
    padding-right: 36px;
}
.ssg-grants-page .filter-form-inner .date-ico:after {
    content: "" !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("../../images/calendar.png");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}
.ssg-grants-page .filter-form-inner .select2-container {
    width: 100% !important;
}

.ssg-grants-page .filter-form-inner .select2-container--default .select2-selection--single {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff !important;
    display: flex;
    align-items: center;
    padding: 0;
}

.ssg-grants-page .filter-form-inner .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;  /* Match the container height minus borders */
    padding-left: 12px !important;
    padding-right: 30px !important; /* Space for the arrow */
    text-align: left;
    color: #374151;
    font-size: 0.9rem;
}

.ssg-grants-page .filter-form-inner .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.ssg-grants-page .filter-form-inner .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
}
/* Table actions bar */
.ssg-grants-page .table-actions-bar {
    gap: 12px;
}
.ssg-grants-page .table-actions-bar > * {
    margin: 0;
}
.ssg-grants-page .table-actions-bar form {
    display: inline-flex;
}
.ssg-grants-page .table-actions-bar .btn {
    height: 38px;
    padding: 6px 14px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}
.ssg-grants-page .table-actions-bar .btn:hover {
    transform: none;
}
.ssg-grants-page .table-search-divider {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
    flex-shrink: 0;
}
.ssg-grants-page .btn-column-visibility {
    background: #4d79f6;
    color: #fff;
    border: none;
    font-size: 0.8rem;
    padding: 6px 14px;
    height: 38px;
    display: inline-flex;
    align-items: center;
}
.ssg-grants-page .btn-column-visibility:hover,
.ssg-grants-page .btn-column-visibility:focus {
    background: #3b5bdb;
    color: #fff;
    border: none;
}
.ssg-grants-page .btn-column-visibility::after {
    border-top-color: #fff;
}
.ssg-grants-page .column-visibility-menu {
    padding: 0.5rem 0;
    min-width: 380px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}
.ssg-grants-page .column-visibility-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.ssg-grants-page .column-visibility-menu .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ssg-grants-page .column-visibility-menu .dropdown-item:hover {
    background-color: #f3f4f6;
}
.ssg-grants-page .column-visibility-menu .dropdown-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4d79f6;
    cursor: pointer;
    flex-shrink: 0;
}
.ssg-grants-page .table-responsive { 
    overflow-x: visible; 
    min-height: 0; 
}
.ssg-grants-page .table-horizontal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ssg-grants-page .ssg-course-table {
    margin-bottom: 0;
    font-size: 0.9rem;
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.ssg-grants-page .ssg-course-table thead th {
    background: #3f79ed;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 12px 12px;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}
.ssg-grants-page .ssg-course-table tbody tr {
    border-bottom: 1px solid #585c60;
}
.ssg-grants-page .ssg-course-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(77, 121, 246, 0.2) 0%, rgba(77, 121, 246, 0.1) 100%);
}
.ssg-grants-page .ssg-course-table tbody td {
    padding: 12px;
    color: #394454;
    font-size: 13px;
    vertical-align: middle;
}
.ssg-grants-page .ssg-course-table tbody td:not(.action-cell) {
    overflow: hidden;
    text-overflow: ellipsis;
}
.ssg-grants-page .ssg-course-table .amount-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.ssg-grants-page .ssg-course-table .count-processing { 
    background: transparent; 
    color: #b45309; 
    font-weight: 700; 
}
.ssg-grants-page .ssg-course-table .count-completed { 
    background: transparent; 
    color: #047857; 
    font-weight: 700; 
}
.ssg-grants-page .ssg-course-table .count-cancelled { 
    background: transparent; 
    color: #b91c1c; 
    font-weight: 700; 
}
.ssg-grants-page .ssg-course-table td:has(.count-badge) {
    text-align: center;
}
.ssg-grants-page .ssg-course-table .action-cell {
    padding: 6px;
    overflow: visible;
    text-align: center;
}
.ssg-grants-page .ssg-course-table .action-cell .btn {
    padding: 8px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    line-height: 1.2;
    width: fit-content;
    min-width: unset;
}
.ssg-grants-page .ssg-course-table .action-cell .btn:hover,
.ssg-grants-page .ssg-course-table .action-cell .btn:focus {
    background: #3b5bdb !important;
    color: #fff !important;
    border: none;
}
.ssg-grants-page .ssg-course-table .action-cell .btn.btn-fetch-details:hover,
.ssg-grants-page .ssg-course-table .action-cell .btn.btn-fetch-details:focus {
    background: #0aa2c0 !important;
    color: #fff;
}
.ssg-grants-page .ssg-course-table .empty-state td {
    padding: 48px 24px;
    color: #718096;
    font-size: 0.9rem;
}
/* DataTables sorting indicator overrides for SSG Grants */
.ssg-grants-page .ssg-course-table thead .sorting:before,
.ssg-grants-page .ssg-course-table thead .sorting:after,
.ssg-grants-page .ssg-course-table thead .sorting_asc:before,
.ssg-grants-page .ssg-course-table thead .sorting_asc:after,
.ssg-grants-page .ssg-course-table thead .sorting_desc:before,
.ssg-grants-page .ssg-course-table thead .sorting_desc:after {
    color: #ffffff !important;
    opacity: 0.5;
}
.ssg-grants-page .ssg-course-table thead .sorting_asc:before,
.ssg-grants-page .ssg-course-table thead .sorting_desc:after {
    opacity: 1 !important;
}
.ssg-grants-page .ssg-course-table thead .sorting_asc:after,
.ssg-grants-page .ssg-course-table thead .sorting_desc:before {
    opacity: 0.2;
}
/* DataTables wrapper overrides */
.ssg-grants-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}
.ssg-grants-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4d79f6;
    border-color: #4d79f6;
    color: #fff !important;
}
.ssg-grants-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff !important;
}
.ssg-grants-page .dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: #6b7280;
}
.ssg-grants-page .dataTables_wrapper .dataTables_length select {
    font-size: 0.85rem;
}
.ssg-grants-page .dataTables_wrapper .dataTables_filter input {
    font-size: 0.85rem;
}
/* Fetch Details button in action column */
.ssg-grants-page .btn-fetch-details {
    background: #0dcaf0;
    border: none;
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Add Course V2 styles */
.courses-module .add-header {
    /* background: linear-gradient(135deg, #4299e1, #2b6cb0); */
    color: #2b6cb0;
    padding: 2px 12px;
    /* border-radius: 10px; */
    margin-bottom: 1rem;
    border-bottom: 1px solid #4299e1;
    font-size: 1.1rem;
    letter-spacing: 0.015em;
    font-weight: 600;
    /* box-shadow: 0 6px 18px rgba(119, 162, 201, 0.25); */
    text-transform: uppercase;
}
.courses-module .card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.courses-module .card-header {
    display: block;
    font-size: 0.9rem;
    color: #3182ce;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    padding: 12px 0px;
    margin: 0px 16px;
    border-bottom: 1px solid #d9e2e9;
}
.courses-module .card-header.no-border {
    border-bottom: none;
}
.courses-module .card .card-body {
    padding: 14px 18px;
}
.courses-module .card .form-card-body {
    padding: 14px 8px;
}
.courses-module .card .card-body .row {
    margin-left: 0px;
    margin-right: 0px;
}
.courses-module .col-md-6, 
.courses-module .col-lg-3,
.courses-module .col-md-4,
.courses-module .col-md-5 {
    padding-left: 10px;
    padding-right: 10px;
}
.collapsing {
    transition: none !important;
}
.courses-module select.form-control {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23394454' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.courses-module .filter-card .filter-collapse-btn {
    color: #2b6cb0 !important;
}
.courses-module .filter-card .filter-collapse-btn:hover {
    color: #1e4d8c !important;
}
.courses-module .filter-card .filter-collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.courses-module.course-view-page {
    background: #f5f7fb;
}

.courses-module.courses-module-run-layout {
    overflow: visible;
    max-width: 100%;
}

.courses-module.courses-module-run-layout .col-12 {
    min-width: 0;
}

.courses-module.courses-module-run-layout .tab-content {
    overflow: visible;
    max-width: 100%;
}

.courses-module.courses-module-run-layout .table-responsive {
    max-width: 100%;
}

.courses-module.courses-module-run-layout .table-responsive .dataTables_wrapper {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.courses-module.courses-module-run-layout .table-responsive .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.courses-module.courses-module-run-layout .table-responsive .dataTables_wrapper .row > [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
}
.courses-module .course-view-card {
    border-radius: 18px;
    border: 1px solid #e0e7f1;
    box-shadow: 0 10px 28px rgba(61, 87, 148, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}
.courses-module .course-view-section-title {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #284088;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.courses-module .course-view-group {
    margin-bottom: 1.5rem;
}
.courses-module .course-view-label {
    font-size: 0.75rem;
    font-weight: 500;    
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: #6b7279;
    margin-bottom: 0.25rem;
}
.courses-module .course-view-value {
    font-size: 0.90rem;
    color: #1f2023;
    font-weight: 500;
}
.courses-module .event-related-courses-list > li:not(:last-child) {
    margin-bottom: 0.35rem;
}
.courses-module .form-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #373f4d;
}
.courses-module .form-text.text-danger {
    font-size: 0.75rem;
    font-weight: 500;
}
.courses-module .actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 4px 2px;
}
.courses-module .btn {
    color: #fff;
    border: none;
    padding: 4px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.015em;
    border-radius: 0.375rem;
}
.courses-module .btn-save {
    background-color: #3f79ed;
}

/* Active state for v2 course run view action buttons */
.courses-module .btn-save.active-tab {
    background-color: #396dd5;
    box-shadow: 0 0 0 3px rgba(57, 109, 213, 0.25);
}
.courses-module .btn-save:hover {
    background-color: #396dd5;
    color: #fff;
}
.courses-module .btn-close {
    background:rgb(91, 99, 106);
}
.courses-module .btn-close:hover {
    background: #4a5568;
    color: #fff;
}

.courses-module.course-view-page .course-run-tabs {
    border: none;
    border-radius: 8px;
    background: #f5f7fb;
    padding: 8px 0 0;
    gap: 0.45rem;
    margin-bottom: 1rem;
    box-shadow: none;
    position: relative;
}

.courses-module.course-view-page .course-run-tabs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #d4ddea;
    border-radius: 99px;
    z-index: 0;
}

.courses-module.course-view-page .course-run-tabs .nav-item {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.courses-module.course-view-page .course-run-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    color: #677386;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.62rem 1rem;
    background: transparent;
    transition: color 0.2s ease;
}

.courses-module.course-view-page .course-run-tabs .nav-link i {
    opacity: 0.8;
}

.courses-module.course-view-page .course-run-tabs .nav-link:hover {
    color: #3f4958;
    background: transparent;
    border-color: transparent;
}

.courses-module.course-view-page .course-run-tabs .nav-link.active {
    color: #2f5fc6;
    background: #ffffff;
    border-color: #dbe3f1;
    border-bottom-color: #ffffff;
    box-shadow: none;
    position: relative;
}

.courses-module.course-view-page .course-run-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    border-radius: 99px;
    background: #5b86f7;
}

.courses-module.course-view-page .course-run-header-actions .course-run-header-actions__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #dbe3f1;
    border-radius: 6px;
    background: #ffffff;
    color: #3f4958;
}

.courses-module.course-view-page .course-run-header-actions .course-run-header-actions__toggle:hover,
.courses-module.course-view-page .course-run-header-actions .course-run-header-actions__toggle:focus {
    background: #f5f7fb;
    border-color: #c5d0e6;
    color: #2f5fc6;
    text-decoration: none;
}

.courses-module.course-view-page .course-run-header-actions .course-run-header-actions__toggle .three-dot-menu-icon {
    font-size: 1rem;
    line-height: 1;
}
.courses-module.course-view-page .card-header .dropdown-menu,
.courses-module.course-view-page .card-header .dropdown-menu a {
    text-transform: none;
}
.courses-module .table-horizontal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.courses-module #learner-datatable_wrapper .dataTables_scrollBody {
    overflow-y: auto !important;
}
.courses-module .learner-table-scroll {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
}
.courses-module .date-ico {
    position: relative;
    display: block;
}
.courses-module .date-ico .form-control {
    padding-right: 36px;
}
.courses-module .date-ico:after {
    content: "" !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("../../images/calendar.png");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}
.courses-module .time-ico {
    position: relative;
    display: block;
    overflow: hidden;
}
.courses-module .time-ico .form-control {
    padding-right: 40px;
}
.courses-module .time-ico input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
.courses-module .time-ico:after {
    content: "\f017" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: block !important;
    font-size: 14px !important;
    color: #3182ce !important;
    pointer-events: none;
}
.courses-module .btn-add {
    background: #16a34a;
}
.courses-module .btn-add:hover {
    background: #15803d;
    color: #fff;
}
.courses-module .btn-primary {
    background: #3182ce;
}
.courses-module .btn-primary:hover {
    background: #2b6cb0;
    color: #fff;
}
.courses-module .courses-input-suffix {
    position: relative;
    display: block;
}
.courses-module .courses-input-suffix .form-control {
    padding-right: 3rem;
}
.courses-module .courses-input-suffix .suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
}
/* form inputs and Select2 */
.add-new-form .form-control,
.add-new-form .select2-container--default .select2-selection--single,
.add-new-form .select2-container--default .select2-selection--multiple {
    border: 1px solid #d2d7db;
    border-radius: 4px;
    padding: 0.2rem 0.75rem;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 1.4;
    font-size: 0.9rem;
    color: #2d3748;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
}
.add-new-form .form-control:hover,
.add-new-form .select2-container--default .select2-selection--single:hover,
.add-new-form .select2-container--default .select2-selection--multiple:hover {
    border-color: #82868e;
}
.add-new-form .form-control:focus,
.add-new-form .select2-container--default.select2-container--focus .select2-selection--single,
.add-new-form .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3182ce;
    box-shadow: none;
    outline: none;
}
.add-new-form .form-control.is-invalid {
    background-image: none;
    padding-right: 0.75rem;
}
.courses-module .add-new-form select.form-control.is-invalid {
    padding-right: 2rem;
}
.add-new-form .select2-container { width: 100% !important; }
.add-new-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.add-new-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    line-height: 38px;
    display: flex;
    align-items: center;
    color: #2d3748;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}
.add-new-form .select2-container--default .select2-selection__rendered .select2-selection__placeholder,
.add-new-form .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #6b7280 !important;
}
.add-new-form .select2-container--default .select2-selection--single,
.add-new-form .select2-container--default .select2-selection--multiple,
.add-new-form .select2-container--default .select2-selection--multiple .select2-search--inline
 {
    display: flex !important;
    align-items: center !important;
}
.add-new-form .select2-container--default .select2-selection--multiple .select2-search__field {
    line-height: 1.4;
    margin: 0;
    padding: 0;
}
.add-new-form .select2-container--default .select2-selection--multiple {
    height: auto !important;
    min-height: 40px !important;
}
.add-new-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    flex-wrap: wrap;
    align-content: center;
    gap: 4px 8px;
}
.add-new-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-new-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: absolute !important;
    top: 50%;
    left: 50%;
    margin: 0 !important;
    transform: translate(-50%, -50%) rotate(45deg);
}
.add-new-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(49, 130, 206, 0.1) !important;
    border: 1px solid #3182ce !important;
    border-radius: 16px !important;
    padding: 1px 12px !important;
    color: #000 !important;
    font-size: 0.85rem;
    margin: 2px 1px 2px 1px !important;
    vertical-align: middle;
}
.add-new-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #000 !important;
}
.add-new-form .form-control:-webkit-autofill {
    box-shadow: 0 0 0 30px #fff inset !important;
}
/* Course/Event list table */
.courses-module .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.courses-module .list-table {
    margin-bottom: 0;
    font-size: 0.9rem;
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

/* Course run show: dropdown menus extend past the table box; overflow hidden clips them. */
.courses-module.courses-module-run-layout .list-table {
    overflow: visible;
}
.courses-module .list-table thead th {
    background: #2f6df3;
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 12px 12px;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    border-right: 1px solid #3f79ed;
    text-transform: none;
}
.courses-module .list-table tbody tr {
    border-bottom: 1px solid #585c60;
}
.courses-module .list-table tbody tr:hover {
    background: rgba(49, 130, 206, 0.18);
}
.courses-module .list-table tbody td {
    padding: 12px;
    color: #394454;
    font-size: 0.80rem;
    vertical-align: middle;
}
.courses-module .list-table tbody td:not(:last-child) {
    overflow: hidden;
    text-overflow: ellipsis;
}
.courses-module .list-table tbody td:last-child .btn {
    padding: 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    line-height: 1.2;
}
.courses-module .list-table tbody td:last-child .btn:hover,
.courses-module .list-table tbody td:last-child .btn:focus {
    background: #3b5bdb !important;
    color: #fff !important;
    border: none;
}
.courses-module .list-table thead .sorting:before,
.courses-module .list-table thead .sorting:after,
.courses-module .list-table thead .sorting_asc:before,
.courses-module .list-table thead .sorting_asc:after,
.courses-module .list-table thead .sorting_desc:before,
.courses-module .list-table thead .sorting_desc:after {
    color: #ffffff !important;
    opacity: 0.5;
    top: 38%;
    transform: translateY(-72%);
}
.courses-module .list-table thead .sorting_asc:before,
.courses-module .list-table thead .sorting_desc:after {
    opacity: 1 !important;
}
.courses-module .list-table thead .sorting_asc:after,
.courses-module .list-table thead .sorting_desc:before {
    opacity: 0.2;
}

/* end sorting overrides */
.courses-module .list-table tbody td:last-child {
    display: table-cell;
    padding: 12px;
    overflow: visible;
    text-align: center;
    vertical-align: middle;
}
.courses-module .list-table tbody td:last-child .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    text-decoration: none;
    color: inherit;
    border-left: 1px solid #dee2e6;
}
.courses-module .list-table tbody td:last-child .action-icon:hover {
    opacity: 0.8;
}
/* Course run show: sessions table uses list-table styling without an actions column */
.courses-module .list-table.course-sessions-table tbody td:last-child {
    text-align: left;
}
.courses-module .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}
.courses-module .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4d79f6;
    border-color: #4d79f6;
    color: #fff !important;
}
.courses-module .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff !important;
}
.courses-module .dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: #6b7280;
}
.courses-module .dataTables_wrapper .dataTables_length select {
    font-size: 0.85rem;
}
.courses-module .dataTables_wrapper .dataTables_filter input {
    font-size: 0.85rem;
}