﻿/**
 * App global styles (extracted from inline blocks: manage profile, admin courses/categories, category add, admin course view).
 * Loaded via includes/platform_links.php (common_files/main) and auth/manage_profile.php.
 */

/* Material Symbols (font loaded in platform_links head) — stable metrics while painting */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined", sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ========== Admin: courses ========== */

/* Full-page curriculum editor (header + back to list) */
.admin-course-curriculum-page {
    width: 100%;   
    margin: 0 auto;
}
.crs-curriculum-page-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
  /*  background: #ebedf0;
    border-radius: 8px;
    border: 1px solid #e8ecef;*/
}
.crs-curriculum-page-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.crs-curriculum-page-topbar__book-icon {
    color: #545454;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex-shrink: 0;
}
.crs-curriculum-page-topbar__title {
    font-weight: 600;
    color: #545454;
    font-size: 1.25rem;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crs-curriculum-page-topbar__title strong {
    font-weight: 700;
}
/* Admin course view: “Back to courses” — outline pill (border-only ghost), same family as .btn-cat-outline */
.crs-curriculum-back-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    border: 1px solid #2aa3d6;
    color: #2aa3d6;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.25;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.crs-curriculum-back-pill:hover {
    color: #fff;
    border-color: #2aa3d6;
    background: #2aa3d6;
    text-decoration: none;
}

.crs-curriculum-back-pill:focus-visible {
    outline: 2px solid rgba(42, 163, 214, 0.45);
    outline-offset: 2px;
}
.crs-curriculum-page-body {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Full-page course view: public course block embedded in admin (same markup as preview-frame) */
.admin-course-view-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.crs-course-view-embed-container {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.main-page .page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.main-page .courses-page-title {
    color: #545454;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.main-page .courses-page-title .material-symbols-outlined {
    font-size: 26px;
    color: #545454;
}
.main-page .btn-crs-outline, .btn-cat-outline {
    border: 1px solid #2aa3d6;
    color: #2aa3d6;
    background: transparent;
    border-radius: 2rem;
    padding: 8px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.main-page .btn-crs-outline:hover ,.btn-cat-outline:hover{
    background:#27aae1 ;
    color: #fff;
}
.main-page button.btn-crs-outline {
    font-family: inherit;
    cursor: pointer;
}
/* Match admin/contract.php table: white card, soft shadow, horizontal rules only */
.main-page .crs-contract-table-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.main-page .crs-contract-table-card .card-body {
    padding: 1.25rem 1.25rem 1rem;
}
.main-page .crs-contract-table-card .dataTables_wrapper .dataTables_length,
.main-page .crs-contract-table-card .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}
.main-page .crs-contract-table-card .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    margin-left: 0.5rem;
}
.main-page .crs-contract-table-card .dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.3rem 1.75rem 0.3rem 0.5rem;
    margin: 0 0.35rem;
}

/* Courses DataTables pagination: < > arrows + grey number pills + blue active circle */
.main-page .crs-contract-table-card .dataTables_wrapper .pagination {
    margin-bottom: 0;
    justify-content: flex-end;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-link {
    border: none !important;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.previous .page-link,
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.next .page-link {
    background: transparent !important;
    color: #333!important;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.previous .page-link:hover,
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.next .page-link:hover {
    color: #212529 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.previous.disabled .page-link,
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.next.disabled .page-link {
    color: #333 !important;
    background: transparent !important;
    cursor: not-allowed;
    opacity: 0.7;
    font-size:16px;
    font-weight:600;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item:not(.previous):not(.next):not(.disabled) .page-link {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #27aae1 !important;
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 500;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item:not(.previous):not(.next):not(.disabled) .page-link:hover {
    background: #27aae1 !important;
    color: #fff !important;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.active .page-link {
    background: #2aa3d6 !important;
    color: #fff !important;
    box-shadow: none;
}
.main-page .crs-contract-table-card .dataTables_wrapper .page-item.active .page-link:hover {
    background: #2596c0 !important;
    color: #fff !important;
}

.main-page #main-dt,
.main-page #rej-dt {
    border-collapse: separate;
    border-spacing: 0;
}
.main-page #main-dt thead th,
.main-page #rej-dt thead th {
    background: #fff;
    color: #212529;
    font-weight: 600;
    font-size: 0.875rem;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    padding: 14px 14px;
    vertical-align: middle;
}
.main-page #main-dt tbody td,
.main-page #rej-dt tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9375rem;
}
.main-page .action-cell {
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}
.main-page .action-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.main-page .action-row .crs-delete-form,
.main-page .action-row .crs-curriculum-open-form,
.main-page .action-row .crs-course-view-open-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-shrink: 0;
}
.main-page .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2aa3d6;
    padding: 6px;
    margin: 0 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-family: inherit;
    vertical-align: middle;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}
.main-page .action-icon:hover {
    color: #1f8fc0;
}
.main-page .action-icon--danger {
    color: #dc3545;
}
.main-page .action-icon--danger:hover {
    color: #b02a37;
}
.main-page .crs-delete-form {
    display: inline;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}
.main-page .crs-curriculum-open-form {
    display: inline;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}
.main-page .crs-curriculum-open-form button.action-icon {
    font-family: inherit;
    cursor: pointer;
}
/* Delete confirm â€” SweetAlert2 at top-center (same as admin categories) */
.swal2-container.cat-swal-del-container {
    z-index: 11050 !important;
    padding: 20px 12px 2rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
}
.cat-swal-del-popup {
    border-radius: 14px !important;
    padding: 1.75rem 1.5rem 1.35rem !important;
    width: 320px !important;
    max-width: calc(100vw - 24px) !important;
    margin-top: 0 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18) !important;
}
.cat-swal-del-popup .swal2-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.cat-swal-del-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
.cat-swal-del-inner {
    text-align: center;
}
.cat-swal-del__icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #5eb8e8;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    line-height: 25px;
    margin: 0 auto 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: 0 4px 14px rgba(94, 184, 232, 0.45);
}
.cat-swal-del__text {
    color: #6c757d;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}
.cat-swal-del-popup .cat-swal-del-actions {
    margin: 1.35rem auto 0 !important;
    gap: 14px !important;
    width: 100% !important;
    justify-content: center !important;
}
.cat-swal-del-confirm {
    border: 1px solid #fb5d78;
    color: #fb5d78;
    background: transparent;
    border-radius: 1rem;
    padding: 5px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-swal-del-confirm:hover {
    background: #e84d68 !important;
    color: #fff !important;
}
.cat-swal-del-cancel {
    border: 1px solid #2aa3d6;
    color: #2aa3d6;
    background: transparent;
    border-radius: 1rem;
    padding: 5px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.cat-swal-del-cancel:hover {
    background: #27aae1;
    color: #fff;
}
.main-page #main-dt.table-hover tbody tr:hover,
.main-page #rej-dt.table-hover tbody tr:hover {
    background: #f8f9fa;
}
.main-page .crs-title-link {
    color: #2aa3d6;
    font-weight: 600;
    text-decoration: none;
}
.main-page .crs-title-link:hover {
    color: #1f8fc0;
    text-decoration: underline;
}
.main-page .crs-course-public-link {
    color: #2aa3d6;
    font-weight: 500;
    text-decoration: none;
}
.main-page .crs-course-public-link:hover {
    color: #1f8fc0;
    text-decoration: underline;
}
.main-page button.crs-course-public-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.crs-course-preview-wrap {
    padding: 1rem 1.25rem 1.5rem;
    background: #f1f7f8;
}
.main-page button.crs-title-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.main-page .crs-cat-badge {
    display: inline-block;
    background: #5b9bd6;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}
.main-page .crs-meta-line {
    display: block;
    color: #868e96;
    font-size: 0.8125rem;
    line-height: 1.45;
}
.main-page .crs-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.main-page .crs-pill--active {
    background: #1dbf73;
    color: #fff;
}
.main-page .crs-pill--pending {
    background: #f59e0b;
    color: #fff;
}
.main-page .crs-pill--draft {
    background: #868e96;
    color: #fff;
}
.main-page .crs-pill--inactive {
    background: #e9ecef;
    color: #495057;
}
.main-page .crs-pill--other {
    background: #e7f3ff;
    color: #0b5ed7;
}
.main-page .crs-empty {
    color: #6c757d;
    padding: 1.5rem;
}

dialog.plt-form-dialog {
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 0;
    max-width: 720px;
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    box-sizing: border-box;
}
/* Reparented into open <dialog> via epmMountMpFlashNode (custom.js) so it stays in the modal top layer above ::backdrop. */
.mp-flash.mp-flash--in-modal {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 1.25rem;
    z-index: 2147483646;
    width: min(440px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin: 0;
}
/* Select2 lists append to these dialogs (dropdownParent); overflow:hidden clips options */
#dlg-add-category.plt-form-dialog,
#dlg-add-sub-category.plt-form-dialog,
#dlg-edit-category.plt-form-dialog {
    overflow: visible;
}
dialog.plt-form-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}
dialog.plt-form-dialog.plt-form-dialog--narrow {
    max-width: 440px;
    width: calc(100vw - 2rem);
}
dialog.plt-form-dialog.plt-form-dialog--move {
    max-width: 480px;
}
#dlg-move-curriculum .crs-move-modal-body {
    max-height: min(320px, 45vh);
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 0.25rem;
}
.crs-move-modal-pick {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #545454;
    font-weight: 500;
}
.crs-move-modal-pick input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}
#dlg-move-curriculum .crs-move-modal-tree-node {
    margin-bottom: 0.35rem;
}
#dlg-move-curriculum .crs-move-modal-tree-node:last-child {
    margin-bottom: 0;
}
#dlg-move-curriculum .crs-move-modal-tree-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}
#dlg-move-curriculum .crs-move-modal-tree-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
}
#dlg-move-curriculum .crs-move-modal-tree-toggle:hover {
    background: rgba(42, 163, 214, 0.1);
    color: #2aa3d6;
}
#dlg-move-curriculum .crs-move-modal-tree-arrow {
    font-size: 22px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
#dlg-move-curriculum .crs-move-modal-tree-parent-title {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
#dlg-move-curriculum .crs-move-modal-tree-children {
    margin: 0.35rem 0 0.5rem 0;
    padding-left: 0.25rem;
}
#dlg-move-curriculum .crs-move-modal-tree-children[hidden] {
    display: none !important;
}
.crs-move-modal-pick--indented {
    padding-left: 0.35rem;
}
#crs-curriculum-page .crs-curr-move-cb-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}
#crs-curriculum-page .crs-curr-move-cb {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2aa3d6;
}
.plt-add-dialog__head {
  text-align: left;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8ecef;
    font-weight: 600;
    color: #545454;
    font-size: 1.05rem;
}
.plt-add-dialog__head--with-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.crs-dlg-icon-close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin: 0;
    font-family: inherit;
}
.crs-dlg-icon-close:hover {
    color: #545454;
}
.plt-add-dialog__body {
  text-align: left;
    padding: 1.25rem;
    overflow: auto;
    max-height: calc(100vh - 11rem);
    box-sizing: border-box;
}
.plt-add-dialog__body .form-group label {
    color: #545454;
    font-weight: 600;
    font-size: 0.875rem;
}
.plt-add-dialog__body .plt-form-req-star {
    color: #dc3545;
    font-weight: 600;
}
.plt-add-dialog__body .crs-dlg-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #6c757d;
}
.form-dialog__foot {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #e8ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    background: #fafbfc;
}
.form-dialog__foot .btn-plt-submit {
    background: #1dbf73;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.form-dialog__foot .btn-plt-submit:hover {
    background: #18a862;
    color: #fff;
}
@keyframes crs-lesson-submit-spin {
    to {
        transform: rotate(360deg);
    }
}
#dlg-lesson #crs-lesson-submit-btn.crs-lesson-submit--loading {
    position: relative;
    padding-left: 2.35rem;
    cursor: wait;
    opacity: 0.95;
}
#dlg-lesson #crs-lesson-submit-btn.crs-lesson-submit--loading::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: -0.475rem;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: crs-lesson-submit-spin 0.65s linear infinite;
}
.form-dialog__foot .btn-crs-danger {
    background: #fb5d78;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 0.45rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.form-dialog__foot .btn-crs-danger:hover {
    background: #e84d68;
    color: #fff;
}
.form-dialog__foot .btn-plt-cancel {
    background: #fff;
    border: 1px solid #ced4da;
    color: #545454;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    cursor: pointer;
}
#crs-curriculum-page .crs-curriculum-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}
#crs-curriculum-page .crs-curr-btn {
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.25;
}
#crs-curriculum-page .crs-curr-btn--outline {
    background: #fff;
    border-color: #2aa3d6;
    color: #2aa3d6;
}
#crs-curriculum-page .crs-curr-btn--outline:hover {
    background: #2aa3d6;
    color: #fff;
}
#crs-curriculum-page .crs-curr-btn--primary {
    background: #2aa3d6;
    border-color: #2aa3d6;
    color: #fff;
}
#crs-curriculum-page .crs-curr-btn--primary:hover:not(:disabled) {
    background: #2389b8;
    border-color: #2389b8;
    color: #fff;
}
#crs-curriculum-page .crs-curr-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
#crs-curriculum-page .crs-curriculum-placeholder {
    margin: 0;
    padding: 1rem 0;
    color: #868e96;
    font-size: 0.875rem;
}
#crs-curriculum-page .crs-curriculum-course-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    line-height: 1.35;
}
#crs-curriculum-page .crs-curriculum-course-heading .crs-curriculum-course-icon {
    flex-shrink: 0;
    color: #2aa3d6;
    font-size: 1.25rem;
}
#crs-curriculum-page .crs-curriculum-course-name {
    font-weight: 600;
    color: #545454;
    font-size: 0.9375rem;
    margin: 0;
}
#crs-curriculum-page .crs-curriculum-tree {
    min-height: 2rem;
}
#crs-curriculum-page .crs-curr-branch {
    margin-bottom: 12px;
}
#crs-curriculum-page .crs-curr-branch:last-child {
    margin-bottom: 0;
}
#crs-curriculum-page .crs-curr-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
}
#crs-curriculum-page .crs-curr-row--module {
    font-weight: 500;
}
#crs-curriculum-page .crs-curr-row--lesson {
    border-left: 4px solid #2aa3d6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
#crs-curriculum-page .crs-curr-expand-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #8a97a6;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
#crs-curriculum-page .crs-curr-expand-btn:hover {
    color: #2aa3d6;
    background: rgba(42, 163, 214, 0.08);
}
#crs-curriculum-page .crs-curr-expand-btn .material-symbols-outlined {
    font-size: 22px;
}
#crs-curriculum-page .crs-curr-expand-spacer {
    width: 28px;
    flex-shrink: 0;
}
#crs-curriculum-page .crs-curr-drag-handle {
    width: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b5c0cb;
    font-size: 20px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
#crs-curriculum-page .crs-curr-drag-handle:active {
    cursor: grabbing;
}
#crs-curriculum-page .crs-curr-draggable {
    -webkit-user-drag: element;
}
#crs-curriculum-page .crs-curr-is-dragging {
    opacity: 0.55;
}
#crs-curriculum-page .crs-curr-lesson-nest--empty {
    min-height: 40px;
    border: 1px dashed #d8dee6;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
}
#crs-curriculum-page .crs-curr-children--section-empty {
    min-height: 44px;
    border: 1px dashed #d8dee6;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
}
#crs-curriculum-page .crs-curr-row-icon {
    color: #9aa5b1;
    font-size: 22px;
    flex-shrink: 0;
}
#crs-curriculum-page .crs-curr-row-name {
    flex: 1;
    min-width: 0;
    color: #545454;
    font-size: 0.9375rem;
    font-weight: 500;
}

#crs-curriculum-page .crs-curr-badge {
    background: #27aae1;
    color: #ffffff;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}
#crs-curriculum-page .crs-curr-badge--muted {
    visibility: hidden;
    min-width: 2.25rem;
}
#crs-curriculum-page .crs-curr-children {
    margin-left: 1.25rem;
    margin-top: 8px;
    padding: 10px 12px 12px;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    background: #fafbfc;
}
#crs-curriculum-page .crs-curr-subbranch {
    margin-bottom: 10px;
}
#crs-curriculum-page .crs-curr-subbranch:last-child {
    margin-bottom: 0;
}
#crs-curriculum-page .crs-curr-lesson-nest {
    margin-left: 1rem;
    margin-top: 8px;
    padding: 6px 0 2px;
    border: none;
    background: transparent;
}
/* Lesson dialog: course name under title in header */
#dlg-lesson .plt-add-dialog__head--with-close .crs-lesson-dlg-headline {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}
#dlg-lesson .crs-lesson-dlg-course-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
    line-height: 1.35;
    max-width: 100%;
}
#dlg-lesson .crs-lesson-dlg-course-strip[hidden] {
    display: none !important;
}
#dlg-lesson .crs-lesson-dlg-course-icon {
    flex-shrink: 0;
    color: #2aa3d6;
    font-size: 1.25rem;
}
#dlg-lesson .crs-lesson-dlg-course-name {
    font-weight: 600;
    color: #545454;
    font-size: 0.9375rem;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#dlg-lesson .crs-lesson-invalid-feedback {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #dc3545;
}
#dlg-lesson .crs-lesson-invalid-feedback.is-visible {
    display: block;
}
#dlg-lesson .crs-lesson-invalid-feedback--banner {
    margin-top: 0;
    margin-bottom: 0.75rem;
}
#dlg-lesson .crs-lesson-styled-box.crs-is-invalid {
    border-color: #dc3545;
}
/* Lesson dialog: ZIP upload + duration use the same control chrome */
#dlg-lesson .crs-lesson-styled-box {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
#dlg-lesson .crs-lesson-upload-faux {
    position: relative;
    align-items: center;
    padding: 0;
}
#dlg-lesson .crs-lesson-upload-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0 16px;
    min-height: 44px;
    border: none;
    border-right: 1px solid #ced4da;
    background: #e9ecef;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
#dlg-lesson .crs-lesson-upload-btn:hover {
    background: #dee2e6;
}
#dlg-lesson .crs-lesson-upload-name {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Real file input stays in DOM for submit / .click(); keep out of layout so native UI does not show */
#dlg-lesson .crs-lesson-upload-faux .crs-lesson-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    pointer-events: none;
}
#dlg-lesson .crs-lesson-duration-faux {
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    flex-wrap: wrap;
}
#dlg-lesson .crs-lesson-dur-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
#dlg-lesson .crs-lesson-dur-arrow {
    border: none;
    background: transparent;
    color: #5eb8e8;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#dlg-lesson .crs-lesson-dur-arrow:hover {
    color: #2aa3d6;
}
#dlg-lesson .crs-lesson-dur-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #5eb8e8;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(94, 184, 232, 0.35);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#dlg-lesson .crs-lesson-dur-sep {
    font-weight: 600;
    color: #545454;
    font-size: 1.1rem;
    padding: 0 2px;
    line-height: 38px;
}
.crs-dyn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
/* Leader row = green + only; following rows = red − only */
.crs-dyn-row input[type="text"] {
    flex: 1;
    min-width: 0;
}
.crs-dyn-add {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #1dbf73;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.crs-dyn-add:hover {
    background: #18a862;
    color: #fff;
}
.crs-dyn-add .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}
.crs-dyn-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #fa5c7c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.crs-dyn-remove:hover {
    background: #e8486a;
    color: #fff;
}
.crs-dyn-remove .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}
#dlg-add-course .select2-container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
#dlg-add-course .select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    background: #fff;
    display: flex;
    align-items: center;
}
#dlg-add-course .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    padding-right: 0;
    color: #545454;
    width: 100%;
}
#dlg-add-course .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: auto;
    top: 50%;
    transform: translateY(-50%);
}
.select2-dropdown.select2-crs-modal-dd .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 6px;
}
.crs-thumb-field {
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.crs-thumb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
.crs-thumb-inline-label {
    margin: 0;
    flex: 0 0 auto;
    min-width: 8.5rem;
    font-weight: 500;
    color: #545454;
    font-size: 0.875rem;
}
.crs-thumb-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dee2e6;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crs-thumb-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.crs-thumb-preview.has-image .crs-thumb-preview-img {
    display: block;
}
.crs-thumb-pick {
    flex: 1 1 200px;
    min-width: 0;
    position: relative;
}
.crs-thumb-file-input {
    position: absolute;
    width: 0.01px;
    height: 0.01px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.crs-thumb-faux {
    display: flex;
    align-items: stretch;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.crs-thumb-filename {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    font-size: 0.9375rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crs-thumb-browse {
    flex-shrink: 0;
    border: none;
    border-left: 1px solid #ced4da;
    background: #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
.crs-thumb-browse:hover {
    background: #dee2e6;
    color: #343a40;
}

/* ========== Admin: categories ========== */

/* Native <dialog showModal()> + Select2: dropdown parent is the open dialog. */
#dlg-add-category,
#dlg-edit-category,
#dlg-add-sub-category {
    position: relative;
}
#dlg-add-category > span.select2-container,
#dlg-edit-category > span.select2-container,
#dlg-add-sub-category > span.select2-container {
    z-index: 4;
}
.admin-categories-page .categories-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.admin-categories-page .categories-page-title {
    color: #545454;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.admin-categories-page .categories-page-title .material-symbols-outlined {
    font-size: 26px;
    color: #545454;
}
/*
.admin-categories-page .btn-cat-outline {
    border: 1px solid #2aa3d6;
    color: #2aa3d6;
    background: #fff;
    border-radius: 2rem;
    padding: 8px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    font-family: inherit;
}
.admin-categories-page .btn-cat-outline:hover {
    background: rgba(42, 163, 214, 0.08);
    color: #2aa3d6;
}*/
/* Same toast flashes as manage_profile (fixed top-center) */


.admin-categories-page .cat-branch {
    margin-bottom: 16px;
}
.admin-categories-page .cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.admin-categories-page .cat-row-parent {
    margin-bottom: 0;
}
.admin-categories-page .cat-expand-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #8a97a6;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-categories-page .cat-expand-btn .material-symbols-outlined {
    font-size: 22px;
}
.admin-categories-page .cat-expand-spacer {
    width: 22px;
    flex-shrink: 0;
}
.admin-categories-page .cat-row-icon {
    color: #9aa5b1;
    font-size: 22px;
    flex-shrink: 0;
}
.admin-categories-page .cat-row-name {
    flex: 1;
    min-width: 0;
    color: #545454;
    font-size: 0.9375rem;
    font-weight: 500;
}
.admin-categories-page .cat-count-badge, .cat-count-badge {
    background: #27aae1;
    color: #ffffff;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}
.admin-categories-page .cat-children {
    margin-left: 1.25rem;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 10px 12px 12px;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    background: #fafbfc;
}
.admin-categories-page .cat-row-child {
    margin-bottom: 8px;
    justify-content: flex-start;
}
.admin-categories-page .cat-row-child:last-child {
    margin-bottom: 0;
}
.admin-categories-page .cat-subbranch {
    margin-bottom: 10px;
}
.admin-categories-page .cat-subbranch:last-child {
    margin-bottom: 0;
}
.admin-categories-page .cat-course-nest {
    margin-left: 1.25rem;
    margin-top: 6px;
    padding: 8px 0 4px;
    border: none;
    background: transparent;
}
.admin-categories-page .cat-row-course {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-left: 4px solid #2aa3d6;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.admin-categories-page .cat-row-course:last-child {
    margin-bottom: 0;
}
.admin-categories-page .cat-row-course .cat-row-name {
    font-weight: 500;
}
.admin-categories-page .cat-child-spacer {
    width: 22px;
    flex-shrink: 0;
}

.admin-categories-page .cat-action-link,
.admin-course-curriculum-page .cat-action-link {
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    -webkit-appearance: none;
    appearance: none;

}
.admin-categories-page .cat-action-ico,
.admin-course-curriculum-page .cat-action-ico {
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}
/*
.admin-categories-page .cat-action-ico--edit,
.admin-course-curriculum-page .cat-action-ico--edit {
    color: #5b9bd5;
}
.admin-categories-page .cat-action-link:hover:not(.cat-action-link--disabled) .cat-action-ico--edit,
.admin-course-curriculum-page .cat-action-link:hover:not(.cat-action-link--disabled) .cat-action-ico--edit {
    color: #3d7ab8;
}
.admin-categories-page .cat-action-ico--delete,
.admin-course-curriculum-page .cat-action-ico--delete {
    color: #dc3545;
}
.admin-categories-page .cat-action-link--delete:hover .cat-action-ico--delete,
.admin-course-curriculum-page .cat-action-link--delete:hover .cat-action-ico--delete {
    color: #b02a37;
}*/
.admin-categories-page .cat-action-link:focus,
.admin-course-curriculum-page .cat-action-link:focus {
    outline: none;
}
.admin-categories-page .cat-action-link:focus-visible,
.admin-course-curriculum-page .cat-action-link:focus-visible {
    outline: 1px solid #333333;
    outline-offset: 2px;
}
.admin-categories-page .cat-action-link--disabled,
.admin-course-curriculum-page .cat-action-link--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.85;
}
.admin-categories-page .cat-action-link--disabled .cat-action-ico--edit,
.admin-course-curriculum-page .cat-action-link--disabled .cat-action-ico--edit {
    color: #a8c8e6;
}
.admin-categories-page .cat-actions,
.admin-course-curriculum-page .cat-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-shrink: 0;
}
.admin-categories-page .cat-actions form.cat-action-inline {
    display: inline-flex;
    margin: 0;
    padding: 0;
    align-items: center;
}
.admin-categories-page .cat-empty {
    color: #8a97a6;
    font-size: 0.9375rem;
    padding: 2rem 1rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
}
dialog.cat-dialog {
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: calc(100vw - 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: visible;
    box-sizing: border-box;
}
dialog.cat-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}
.cat-dialog__head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8ecef;
    font-weight: 600;
    color: #545454;
    font-size: 1.05rem;
}
.cat-dialog__body {
    padding: 1.25rem;
    overflow: visible;
    box-sizing: border-box;
}
dialog.cat-dialog form {
    overflow: visible;
    max-width: 100%;
}
.cat-dialog__body .cat-dlg-hint {
    display: block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    background: #e7f3ff;
    color: #0b5ed7;
    border: 1px solid #b6daff;
}
.cat-dialog__body .required-asterisk {
    color: #5b9bd5;
    font-weight: 600;
}
/* Select2 â€” parent field; dropdownParent = dialog (inside top layer) */
#dlg-add-category .select2-container,
#dlg-edit-category .select2-container,
#dlg-add-sub-category .select2-container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
#dlg-add-category .select2-container--default .select2-selection--single,
#dlg-edit-category .select2-container--default .select2-selection--single,
#dlg-add-sub-category .select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    background: #fff;
    display: flex;
    align-items: center;
}
#dlg-add-category .select2-container--default .select2-selection--single .select2-selection__rendered,
#dlg-edit-category .select2-container--default .select2-selection--single .select2-selection__rendered,
#dlg-add-sub-category .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    padding-right: 0;
    color: #545454;
    width: 100%;
}
#dlg-add-category .select2-container--default .select2-selection--single .select2-selection__arrow,
#dlg-edit-category .select2-container--default .select2-selection--single .select2-selection__arrow,
#dlg-add-sub-category .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: auto;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
}
#dlg-add-category .select2-container--default .select2-selection--single .select2-selection__arrow b,
#dlg-edit-category .select2-container--default .select2-selection--single .select2-selection__arrow b,
#dlg-add-sub-category .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-left: -4px;
    margin-top: -2px;
}
#dlg-add-category .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
#dlg-edit-category .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
#dlg-add-sub-category .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px;
    margin-top: -3px;
}
#dlg-add-category .select2-container--default.select2-container--focus .select2-selection--single,
#dlg-add-category .select2-container--default.select2-container--open .select2-selection--single,
#dlg-edit-category .select2-container--default.select2-container--focus .select2-selection--single,
#dlg-edit-category .select2-container--default.select2-container--open .select2-selection--single,
#dlg-add-sub-category .select2-container--default.select2-container--focus .select2-selection--single,
#dlg-add-sub-category .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
/* Dropdown panel (class added in JS; stays inside dialog) */
.select2-dropdown.select2-cat-modal-dd {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
}
.select2-cat-modal-dd .select2-search--dropdown {
    padding: 8px;
    box-sizing: border-box;
}
.select2-cat-modal-dd .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
    line-height: 1.4;
}
.select2-cat-modal-dd .select2-results__options {
    max-height: 220px;
}
.select2-cat-modal-dd .select2-results__option {
    padding: 10px 12px;
    line-height: 1.4;
    word-wrap: break-word;
}
.select2-cat-modal-dd .select2-results__option .select2-results__group {
    padding: 6px 12px;
}
.cat-dialog__foot {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.cat-dlg-btn-cancel {
    background: #fff;
    color: #212529;
    border: 1px solid #212529;
    border-radius: 999px;
    padding: 8px 22px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}
.cat-dlg-btn-cancel:hover {
    background: #f8f9fa;
    color: #212529;
}
.cat-dlg-btn-submit {
    background: linear-gradient(180deg, #20c997 0%, #17a673 100%);
    border: none;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 24px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(23, 166, 115, 0.35);
    cursor: pointer;
    line-height: 1.2;
}
.cat-dlg-btn-submit:hover {
    color: #fff;
    filter: brightness(1.05);
}
.cat-dialog__body .icon-picker-trigger {
    cursor: pointer;
}
/* Delete confirm â€” SweetAlert2 at top-center (same band as mp-flash success toasts) */
.swal2-container.cat-swal-del-container {
    z-index: 11050 !important;
    padding: 20px 12px 2rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
}
.cat-swal-del-popup {
    border-radius: 14px !important;
    padding: 1.75rem 1.5rem 1.35rem !important;
    width: 26em !important;
    max-width: calc(100vw - 24px) !important;
    margin-top: 0 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18) !important;
}
.cat-swal-del-popup .swal2-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.cat-swal-del-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
.cat-swal-del-inner {
    text-align: center;
}
.cat-swal-del__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #5eb8e8;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    line-height: 52px;
    margin: 0 auto 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: 0 4px 14px rgba(94, 184, 232, 0.45);
}
.cat-swal-del__text {
    color: #6c757d;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}
.cat-swal-del-popup .cat-swal-del-actions {
    margin: 1.35rem auto 0 !important;
    gap: 14px !important;
    width: 100% !important;
    justify-content: center !important;
}
.cat-swal-del-cancel {
    border-radius: 8px !important;
    background: #4bbad8 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1.35rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    min-width: 6.5rem !important;
    box-shadow: 0 2px 8px rgba(75, 186, 216, 0.35) !important;
}
.cat-swal-del-cancel:hover {
    background: #3aa6c4 !important;
    color: #fff !important;
}
.cat-swal-del-confirm {
    border-radius: 8px !important;
    background: #fb5d78 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1.35rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    min-width: 6.5rem !important;
    box-shadow: 0 2px 8px rgba(251, 93, 120, 0.35) !important;
}
.cat-swal-del-confirm:hover {
    background: #e84d68 !important;
    color: #fff !important;
}

/* ========== Admin: category_add ========== */

.admin-category-add-page .page-title-add-cat {
    color: #545454;
    font-size: 1.25rem;
    font-weight: 600;
}
.admin-category-add-page .card {
    border-radius: 8px;
    border: 1px solid #e8ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.admin-category-add-page .card-body {
    padding: 1.5rem;
}
.admin-category-add-page .form-label {
    color: #545454;
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.admin-category-add-page .required-asterisk {
    color: #5b9bd5;
    font-weight: 600;
}
.admin-category-add-page .cat-parent-hint {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    background: #e7f3ff;
    color: #0b5ed7;
    border: 1px solid #b6daff;
}
.admin-category-add-page .btn-submit-cat {
    background: linear-gradient(180deg, #20c997 0%, #17a673 100%);
    border: none;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(23, 166, 115, 0.35);
}
.admin-category-add-page .btn-submit-cat:hover {
    color: #fff;
    filter: brightness(1.05);
}
.admin-category-add-page .btn-back-cat {
    border-radius: 999px;
}
.admin-category-add-page .cat-flash-err {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.admin-category-add-page .select2-container {
    width: 100% !important;
}
.admin-category-add-page .select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    background: #fff;
}
.admin-category-add-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: #545454;
}
.admin-category-add-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 6px;
}
.admin-category-add-page .select2-container--default.select2-container--focus .select2-selection--single,
.admin-category-add-page .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.admin-category-add-page .select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.admin-category-add-page .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
}

/* ========== Auth: manage_profile ========== */

.manage-profile-page .page-title-row h4 {
    color: #545454;
}
.manage-profile-page .profile-field {
    background: #f4f6f8;
    border: none;
    border-radius: 8px;
}
.manage-profile-page .pwd-field {
    border-radius: 8px;
}
.manage-profile-page .avatar-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}
.manage-profile-page .image-previewer {
    height: 50px;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    display: flex;
    border-radius: 50%;
    border: 1px solid #ddd;
    overflow: hidden;
    background: #f0f0f0;
}
.manage-profile-page .image-previewer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* New Password â€” bright cyan circle, white lowercase â€œiâ€ (hover reference) */
.manage-profile-page .mp-pw-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: #2dc3e6;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    font-style: normal;
    cursor: help;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.manage-profile-page .mp-pw-info-badge .mp-pw-info-letter {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(0.5px);
}
.manage-profile-page .mp-pw-info-badge:focus {
    outline: 2px solid rgba(45, 195, 230, 0.55);
    outline-offset: 2px;
}
/*
 * Custom hover/focus tooltip (no Bootstrap JS on auth layout â€” native title was wrong).
 * Match ref: #454d55 panel, white centered text, downward tail to the cyan â€œiâ€ badge.
 */
.manage-profile-page .mp-pw-tooltip-wrap {
    position: relative;
}
.manage-profile-page .mp-pw-tooltip-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    position: absolute;
    z-index: 1080;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    box-sizing: border-box;
    min-width: 260px;
    max-width: min(360px, calc(100vw - 40px));
    padding: 16px 20px;
    background: #454d55;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.manage-profile-page .mp-pw-tooltip-panel::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: #454d55;
}
.manage-profile-page .mp-pw-tooltip-wrap:hover .mp-pw-tooltip-panel,
.manage-profile-page .mp-pw-tooltip-wrap:focus .mp-pw-tooltip-panel,
.manage-profile-page .mp-pw-tooltip-wrap:focus-within .mp-pw-tooltip-panel {
    visibility: visible;
    opacity: 1;
}
.manage-profile-page .weak-password { color: #dc3545; font-size: 0.9rem; }
.manage-profile-page .medium-password { color: #fd7e14; font-size: 0.9rem; }
.manage-profile-page .strong-password { color: #198754; font-size: 0.9rem; }
.manage-profile-page .delete-photo-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 3;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border-radius: 50%;
    color: #dc3545;
    font-size: 14px;
    line-height: 1;
    border: 1px solid rgba(220, 53, 69, 0.35);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.manage-profile-page .delete-photo-btn.is-visible {
    display: flex;
}
.manage-profile-page .delete-photo-btn:hover {
    color: #b02a37;
    border-color: #dc3545;
}
.manage-profile-page .mp-photo-file-group .mp-photo-file-display {
    background: #fff;
    color: #6c757d;
    border: 1px solid #ced4da;
    font-size: 0.9375rem;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.manage-profile-page .mp-photo-file-group .mp-photo-browse {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}
.manage-profile-page .mp-photo-file-group .mp-photo-browse:hover {
    background: #dee2e6;
    color: #212529;
}
.manage-profile-page .mp-pw-toggle {
    cursor: pointer;
    color: #545454;
    border: 1px solid #ced4da;
    line-height: 1;
}
.manage-profile-page .mp-pw-toggle:focus {
    box-shadow: none;
}
.manage-profile-page .mp-pw-toggle i {
    pointer-events: none;
}
.manage-profile-page .profile-field:disabled {
    opacity: 1;
    cursor: not-allowed;
}
/* Toast overlay (jq-toast style): fixed top-center, does not affect document flow */
.mp-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    width: 300px;
    max-width: calc(100vw - 24px);
    min-height: 60px;
    padding: 12px 36px 12px 12px;
    border-radius: 6px;
    margin: 0;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
}
.mp-flash__icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    color: #fff;
}
.mp-flash__body {
    flex: 1;
    min-width: 0;
}
.mp-flash__title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.mp-flash__text {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.35;
    opacity: 0.98;
}
.mp-flash--error {
    background-color: #fa5c7c;
    border-color: #fa5c7c;
    color: #fff;
}
/* jq-toast-style error icon (white circle + exclamation), no extra <i> */
.mp-flash.mp-flash--has-exclaim {
    padding-left: 44px;
}
.mp-flash.mp-flash--has-exclaim::before {
    content: "!";
    position: absolute;
    left: 12px;
    top: 50%;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: #fa5c7c;
    font-weight: 800;
    font-size: 13px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
}
.mp-flash--success {
    background-color: #1dbf73;
    border-color: #1dbf73;
    color: #fff;
}
/* LMS notice (same toast shell as success flash; white panel for enrollment / neutral notices) */
.mp-flash--neutral {
    background-color: #fff;
    border: 1px solid #e8ecef;
    color: #212529;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.mp-flash--neutral .mp-flash__close {
    background: #e9ecef;
    color: #212529;
    box-shadow: none;
}
.mp-flash--neutral .mp-flash__close:hover {
    background: #dee2e6;
}
/* Course player: learner not assigned / playback locked notice */
.mp-flash.mp-flash--lms-enrollment {
    background-color: #f08e13 !important;
    border-color: #e07805 !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.mp-flash--lms-enrollment .mp-flash__close {
    background: rgba(255, 255, 255, 0.35);
    color: #1a1a1a;
    box-shadow: none;
}
.mp-flash--lms-enrollment .mp-flash__close:hover {
    background: rgba(255, 255, 255, 0.55);
}
.mp-flash__close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #2b2b2b;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.mp-flash__close:hover {
    background: #1a1a1a;
}
.manage-profile-page .btn-update-profile {
    background: #1dbf73 !important;
    border-color: #1dbf73 !important;
    color: #fff;
    border-radius: 2em !important;
    box-shadow: 0 2px 6px 0 rgba(114, 124, 245, 0.5);
}
.manage-profile-page .btn-update-profile:hover {
    background: #19a862 !important;
    border-color: #19a862 !important;
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(114, 124, 245, 0.55);
}
.manage-profile-page .btn-update-password {
    border-radius: 2em;
    background-color: #39afd1;
    border-color: #39afd1;
    color: #fff;
    box-shadow: 0 2px 6px 0 rgba(57, 175, 209, 0.5);
}
@media (max-width: 400px) {
    .manage-profile-page .custom-file-label {
        font-size: 13px !important;
        padding-right: 60px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Crop modal + Cropper.js â€“ solid blue frame, square handles, dimmed outside (ref. image 1) */
#cropModal .modal-dialog {
    max-width: min(920px, 96vw);
}
#cropModal .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
#cropModal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 14px 18px;
}
#cropModal .modal-title {
    font-weight: 600;
    color: #545454;
}
#cropModal .modal-body {
    padding: 16px;
    background: #eceff1;
    min-height: min(380px, 52vh);
    max-height: min(72vh, 640px);
    overflow: auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*
 * Fixed 200Ã—200 viewport: constrain the *wrapper* only. Never force .cropper-container
 * with !important â€” it desyncs Cropperâ€™s canvas math (huge translateX, image off-box).
 */
#cropModal .mp-crop-stage {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
}
#cropModal .mp-crop-stage #imageToCrop {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
#cropModal .cropper-modal {
    background: rgba(0, 0, 0, 0.52) !important;
}
#cropModal .cropper-view-box {
    outline: 2px solid #2d8cff !important;
    outline-offset: 0;
}
#cropModal .cropper-face {
    background-color: rgba(255, 255, 255, 0.04);
}
#cropModal .cropper-line {
    background-color: #2d8cff !important;
    opacity: 1 !important;
}
#cropModal .cropper-point {
    width: 9px !important;
    height: 9px !important;
    background-color: #2d8cff !important;
    opacity: 1 !important;
    border-radius: 1px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#cropModal .cropper-dashed,
#cropModal .cropper-center {
    display: none !important;
}
#cropModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 12px 18px;
    justify-content: flex-end;
}
#cropModal .btn-crop-save {
    background: #1dbf73 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 28px;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(29, 191, 115, 0.45);
}
#cropModal .btn-crop-save:hover {
    background: #19a862 !important;
    color: #fff !important;
}
#cropModal .btn-crop-save:focus {
    box-shadow: 0 0 0 3px rgba(29, 191, 115, 0.35);
}

/* ========== Admin: /course view — split player + curriculum (LMS) ========== */
/* (was course-view-admin.css) */

.crs-cv-lms {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 1.5rem;
    box-sizing: border-box;
}

.crs-cv-lms__toprow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 0.15rem;
}

.crs-cv-lms__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.crs-cv-lms__head-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    min-width: 0;
}

.crs-cv-lms__head-sep {
    color: #d1d5db;
    flex-shrink: 0;
    font-weight: 300;
    user-select: none;
}

.crs-cv-lms__head-ico {
    font-size: 1.75rem;
    color: #4a6cf7;
    flex-shrink: 0;
}

.crs-cv-lms__crumb {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.crs-cv-lms__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}

.crs-cv-lms__actions {
    flex-shrink: 0;
}

/* Page stack: top row, then split — heights follow content, not the viewport. */
.crs-cv-lms--full {
    display: block;
}

/* align-items: stretch + light split bg: avoids a “void” of dark #0f172a in the
   left track when the sidebar is taller (flex-start left only painted top band). */
.crs-cv-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #e5e7eb;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: visible;
    border: 1px solid #e5e7eb;
    position: relative;
}

/* Collapsible curriculum panel: hidden by default (.crs-cv-split--sidebar-hidden on #crs-cv-split) */
.crs-cv-split--sidebar-hidden .crs-cv-sidebar-col {
    flex: 0 0 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    padding: 0;
    margin: 0;
    border-left-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.crs-cv-sidebar-open-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.4rem 0.45rem;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f3f4f6;
    cursor: pointer;
    line-height: 1.2;
    position: relative;
    z-index: 110;
    pointer-events: auto;
    cursor: pointer;
}

/* Font Awesome sets pointer-events:none on icons; clicks must hit the button, not pass through to the iframe */
.crs-cv-sidebar-open-btn .fa {
    pointer-events: none;
}

.crs-cv-sidebar-open-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.crs-cv-sidebar-open-btn__ico {
    font-size: 1rem;
}

.crs-cv-split.crs-cv-split--sidebar-hidden .crs-cv-sidebar-open-btn {
    display: inline-flex;
}

.crs-cv-split:not(.crs-cv-split--sidebar-hidden) .crs-cv-sidebar-open-btn {
    display: none !important;
}

.crs-cv-player-col {
    /* basis 0% + flex-grow 1: fill space beside sidebar when open; full row width when sidebar collapsed */
    flex: 1 1 0%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: #ffffff;
    /* Full column height: player + desc at top, remainder stays white (not navy). */
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

.crs-cv-main-player {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #0b0f1a;
    isolation: isolate;
}

.crs-cv-player-capbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.65rem 0.45rem 0.9rem;
    margin: 0;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.crs-cv-player-capbar .crs-cv-player-cap {
    color: #e5e7eb;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crs-cv-lesson-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.crs-cv-lesson-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.crs-cv-lesson-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.crs-cv-lesson-nav-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.crs-cv-lesson-nav-btn .fa {
    font-size: 0.7rem;
    opacity: 0.95;
}

@media (max-width: 520px) {
    .crs-cv-lesson-nav-btn__txt {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .crs-cv-lesson-nav-btn {
        padding: 0.32rem 0.45rem;
    }
}

/* Course viewer (admin + tenant share admin/course_view): fill the player column width; height follows 16:9. */
.crs-cv-lms .crs-cv-main-player__frame {
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 0;
    margin-bottom: 0;
    background: #000;
    flex: 0 0 auto;
}

/* Dedicated course player route: no app header / left nav (see common_files/course_view_main.php). */
body.crs-cv-page-body {
    margin: 0;
    background: #e5e7eb;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.crs-cv-page-body .crs-cv-page-root {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.crs-cv-page-body .admin-course-view-page.crs-cv-lms {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    box-sizing: border-box;
}

body.crs-cv-page-body .crs-cv-lms {
    padding-bottom: 0;
}

body.crs-cv-page-body .crs-cv-lms__toprow {
    flex: 0 0 auto;
    margin-bottom: 0.65rem;
}

/* Share vertical space: player grows when curriculum is hidden or visible (width only changes). */
body.crs-cv-page-body .crs-cv-split {
    flex: 1 1 0;
    min-height: 750px;
    max-width: 100%;
}

body.crs-cv-page-body .crs-cv-player-col {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

/* Do not clip Vimeo/YouTube control bar at the bottom of the iframe */
body.crs-cv-page-body .crs-cv-main-player {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
}

body.crs-cv-page-body .crs-cv-player-capbar {
    flex: 0 0 auto;
}

/* Frame height comes from flex — matches the area beside top row + description; avoids iframe being taller than parent (clipped controls). */
body.crs-cv-page-body .crs-cv-lms .crs-cv-main-player__frame {
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: unset;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    margin-bottom: 0;
    background: #000;
}

body.crs-cv-page-body .crs-cv-desc {
    flex: 0 0 auto;
    margin-top: 1.5rem;
}

body.crs-cv-page-body .crs-cv-sidebar-col {
    align-self: stretch;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

/* No inner scrollbar on the curriculum column — use page scroll instead */
body.crs-cv-page-body #crs-cv-sidebar,
body.crs-cv-page-body .crs-cv-sidebar-inner,
body.crs-cv-page-body .crs-cv-tree-wrap {
    overflow-x: hidden;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.crs-cv-page-body #crs-cv-sidebar::-webkit-scrollbar,
body.crs-cv-page-body .crs-cv-sidebar-inner::-webkit-scrollbar,
body.crs-cv-page-body .crs-cv-tree-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 1199px) {
    body.crs-cv-page-body .crs-cv-main-player {
        flex: 1 1 auto;
        min-height: 0;
    }

    body.crs-cv-page-body .crs-cv-lms .crs-cv-main-player__frame {
        flex: 1 1 auto;
        min-height: 0;
    }
}

.crs-cv-desc {
    flex: 0 0 auto;
    background: #ffffff;
    color: #374151;
    border-top: 1px solid #e5e7eb;
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.crs-cv-desc__h {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
    flex-shrink: 0;
}

.crs-cv-desc__body {
    font-size: 0.9rem;
    line-height: 1.55;
    overflow-y: visible;
    flex: 0 0 auto;
}

.crs-cv-main-player__frame .crs-cv-embedwrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #000;
}

.crs-cv-embedwrap iframe,
.crs-cv-embedwrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0;
    background: #000;
}

.crs-cv-iframe {
    display: block;
}

/* Quiz / simulation (ActivePresenter): fill frame; clip overflow — page scroll only. */
.crs-cv-iframe.crs-cv-iframe--package {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden;
}

body.crs-cv-page-body .crs-cv-lms .crs-cv-main-player__frame:has(.crs-cv-iframe--package) {
    overflow: hidden;
}

.crs-cv-main-player__frame:has(.crs-cv-iframe--package) {
    overflow: hidden;
}

body.crs-cv-page-body .crs-cv-lms .crs-cv-main-player__frame:has(.crs-cv-iframe--simulation) {
    overflow: hidden;
}

body.crs-cv-page-body .crs-cv-main-player:has(.crs-cv-iframe--simulation) {
    overflow: hidden;
}

.crs-cv-main-player__frame .crs-cv-embedwrap:has(.crs-cv-iframe--simulation) {
    overflow: hidden;
}

.crs-cv-iframe.crs-cv-iframe--simulation {
    overflow: hidden !important;
}

.crs-cv-vhtml {
    object-fit: contain;
    background: #000;
}

.crs-cv-player-msg,
.crs-cv-main-player__frame .crs-cv-player-placeholder {
    color: #9ca3af !important;
    padding: 1.5rem;
    text-align: center;
    /* Center placeholder when no video; not inside absolute embed */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.crs-cv-sidebar-col {
    flex: 0 0 34%;
    max-width: 440px;
    min-width: 280px;
    background: #f3f4f6;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Content height only — do not stretch to match the left column. */
    align-self: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.crs-cv-sidebar-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.crs-cv-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.75rem 0.65rem 0.4rem 1rem;
    background: #f3f4f6;
    flex-shrink: 0;
}

.crs-cv-sidebar-header__titles {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}

.crs-cv-sidebar-collapse-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: -0.15rem 0 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crs-cv-sidebar-collapse-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.crs-cv-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.crs-cv-sidebar-course-pct {
    text-align: right;
    line-height: 1.2;
}

.crs-cv-sidebar-course-pct__label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.crs-cv-sidebar-course-pct__value {
    font-size: 1.1rem;
    font-weight: 700;
    color:#2aa3d6 ;
}

.crs-cv-sidebar-pctbar-wrap {
    padding: 0 1rem 0.75rem;
    flex-shrink: 0;
}

.crs-cv-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.crs-cv-progress-bar--lg {
    height: 8px;
}

.crs-cv-progress-bar--sm {
    height: 4px;
    margin-top: 0.35rem;
}

.crs-cv-progress-bar__fill {
    height: 100%;
    background: #2aa3d6   ;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.crs-cv-tree-wrap {
    flex: 0 0 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0 0.35rem 0.75rem 0.15rem;
}

.crs-cv-tree {
    width: 100%;
}

.crs-cv-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crs-cv-tree-list--root {
    padding-left: 0;
}

.crs-cv-tree-node {
    margin: 0;
}

.crs-cv-tree-node--module + .crs-cv-tree-node--module {
    margin-top: 0.35rem;
}

.crs-cv-tree-row {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.45rem 0.35rem 0.45rem 0.25rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.crs-cv-tree-row--module {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.crs-cv-tree-row--section {
    margin-left: 0.25rem;
    padding-left: 0.35rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border-color: #e8ecf1;
}

.crs-cv-tree-toggle {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.crs-cv-tree-toggle:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.crs-cv-tree-toggle__ico {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
    margin-top: -0.15rem;
}

.crs-cv-tree-toggle[aria-expanded="true"] .crs-cv-tree-toggle__ico {
    transform: rotate(45deg);
    margin-top: 0;
}

.crs-cv-tree-label {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    text-align: left;
    line-height: 1.35;
}

.crs-cv-tree-label__main {
    flex: 1 1 auto;
    min-width: 0;
}

.crs-cv-tree-label--section {
    flex-wrap: wrap;
}

.crs-cv-tree-children {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0.35rem 1.15rem;
}

.crs-cv-tree-children--lessons {
    padding-left: 0.85rem;
}

.crs-cv-tree-leaf {
    margin: 0 0 0.35rem;
}

.crs-cv-tree-leaf--empty {
    padding: 0.25rem 0.35rem;
}

.crs-cv-mod-list {
    flex: 0 0 auto;
    overflow: visible;
    padding: 0 0.5rem 0.75rem 0.15rem;
}

.crs-cv-mod {
    border-radius: 6px;
    margin-bottom: 0.4rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.crs-cv-mod-head {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: #e5e7eb;
    border: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.crs-cv-mod-head__left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.crs-cv-mod-ico {
    font-size: 0.65rem;
    transition: transform 0.15s ease;
}

.crs-cv-mod-head[aria-expanded="false"] .crs-cv-mod-ico {
    transform: rotate(-90deg);
}

.crs-cv-sec {
    border-top: 1px solid #e5e7eb;
}

.crs-cv-sec-head {
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.55rem 0.4rem 0.8rem;
    background: #f9fafb;
    border: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
}

.crs-cv-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.3rem 0.5rem;
}

.crs-cv-lesson-list li {
    margin-bottom: 0.4rem;
}

.crs-cv-launch-lesson {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.crs-cv-launch-lesson:hover {
    border-color: #93c5fd;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12);
}

.crs-cv-lesson-card--active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6;
    /*background: #eff6ff !important;*/
}

.crs-cv-lesson-card__top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.crs-cv-lesson-ico {
    color: #6b7280;
    width: 1.1rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.crs-cv-lesson-card--active .crs-cv-lesson-ico {
    color: #2aa3d6;
}

.crs-cv-lesson-txt {
    flex: 1 1 auto;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #1f2937;
    min-width: 0;
}

.crs-cv-lesson-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2aa3d6;
    flex-shrink: 0;
}

.crs-cv-lesson-card__row2 {
    display: flex;
    justify-content: space-between;
    padding-left: 1.4rem;
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

@media (max-width: 1199px) {
    .crs-cv-split {
        flex-direction: column;
    }
    .crs-cv-sidebar-col {
        max-width: none;
        min-width: 0;
        border-left: 0;
        border-top: 1px solid #e5e7eb;
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }
    .crs-cv-split--sidebar-hidden .crs-cv-sidebar-col {
        max-height: 0 !important;
        overflow: hidden;
        border-top-width: 0;
    }
    .crs-cv-main-player {
        flex: 0 0 auto;
    }
}

.status-badge {
    display: inline-block;
    width: 80px;
    color: white;
    padding: 3px 15px;
    font-size: 11px;
    text-align: center;
    border-radius: 4px;
}

.status-active {
    background-color: #1DBF73;
}

.status-inactive {
    background-color: #DE3A3A;
}

.status-invited {
    background-color: #EABD23;
}


.table .action-icon {
      font-size: 1.1rem !important;
}
button.action-icon.editBtn,.editBtn,button.action-icon.managerEditBtn {
    color: #27AAE1 !important;
}
button.action-icon.editBtn :hover ,.editBtn:hover,button.action-icon.managerEditBtn:hover{
    color: #27AAE1 !important;
}

button.action-icon.permission,
a.action-icon.permission {
    color: #EABD23;
}
button.action-icon.permission :hover,
a.action-icon.permission :hover {
    color: #EABD23;
}

button.action-icon.action-icon--danger,.action-icon--danger {
    color:#DE3A3A ;
}
button.action-icon.action-icon--danger :hover,.action-icon--danger:hover {
    color: #DE3A3A;
}


button.action-icon.managersBtn{
    color: #1abc9c;
}
button.action-icon.managersBtn :hover {
    color:#1abc9c ;
}
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 22px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: .25s ease;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .25s ease;
}

.switch input:checked + .slider {
    background-color: #18a999;
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

.role-toggle {
    display: flex;
    align-items: center;   /* vertical alignment */
    gap: 12px;
    margin-top: 6px;
}

.role-label {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1;
}


.tree-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    background: #fafafa;
}

.tree-box ul {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

.tree-box li {
    margin-bottom: 6px;
}

.tree-box label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.tree-category{
    color:#545454;
    font-size: 16px;
}
.tree-container{
    margin-left:20px;
}

/* ── Tenant portal: My Courses + All Courses (same shell as User Management: page-toolbar + crs-contract-table-card) ── */
.main-page .tenant-cc .page-title-c3 {
    color: #545454;
}
.main-page .tenant-cc .category-filter-box {
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.main-page .tenant-cc .checkbox-c3 input {
    margin-right: 6px;
}
.main-page .tenant-cc .btn-layout-c3 {
    border: 1px solid #e9ecef;
}
.main-page .tenant-cc .btn-layout-c3.active {
    background-color: #27aae1 !important;
    color: #fff !important;
    border-color: #27aae1 !important;
}
.main-page .tenant-cc .course-box-wrap {
    margin-bottom: 1rem;
    padding: 5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.main-page .tenant-cc .course-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.main-page .tenant-cc .course-box:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}
.main-page .tenant-cc .course-image {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    height: 210px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e9ecef;
}
.main-page .tenant-cc .course-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}
.main-page .tenant-cc .course-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.main-page .tenant-cc .course-details .title {
    font-weight: 600;
    color: #545454;
    font-size: 1rem;
    min-height: 2.4rem;
    margin-bottom: 8px;
}
.main-page .tenant-cc .badge-level-c3,.badge-level-c3 {
    background-color: #eceb98;
    color: #5c5c4c;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
}
.main-page .tenant-cc .start-resume-btn,
.main-page.tenant-course-detail-page .start-resume-btn {
    border: 1px solid #39afd1;
    color: #39afd1 !important;
    font-weight: 500;
    padding: 2px 12px;
    background-color: #fff;
    font-size: 11px;
    text-align: center;
    border-radius: 4px;
    min-width: 90px;
    display: inline-block;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.main-page .tenant-cc .start-resume-btn:hover,
.main-page.tenant-course-detail-page .start-resume-btn:hover {
    background-color: #39afd1;
    color: #fff !important;
}
.main-page.tenant-course-detail-page .tenant-cd-resume-pause-icon {
    font-size: 14px;
    line-height: 1;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}
.main-page .tenant-cc .tenant-my-btn-completed {
    border: 1px solid #28a745;
    color: #fff !important;
    font-weight: 500;
    padding: 2px 12px;
    background-color: #28a745;
    font-size: 11px;
    text-align: center;
    border-radius: 4px;
    min-width: 90px;
    display: inline-block;
}
.main-page .tenant-cc .course-level-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-page .tenant-cc .table-c3 th,
.main-page .tenant-cc .table-c3 td {
    color: #545454;
    font-size: 14px;
    vertical-align: middle;
}
.main-page .tenant-cc a.course-link-c3 {
    color: #545454;
    font-weight: 600;
    text-decoration: none;
}
/*.main-page .tenant-cc a.course-link-c3:hover {
    text-decoration: underline;
}*/
.main-page .tenant-cc .tenant-cc-empty {
    color: #545454;
}

/* My Courses — course detail opens from thumbnail + title + meta only (progress / Resume / Completed excluded) */
.main-page .tenant-cc .course-box--my-courses .course-image {
    cursor: pointer;
}
.main-page .tenant-cc .my-courses-detail-link__body {
    padding: 15px;
    padding-bottom: 0;
}
.main-page .tenant-cc .my-courses-card-footer {
    padding: 0 15px 15px;
}
.main-page .tenant-cc .my-courses-detail-link__body .title {
    font-weight: 600;
    color: #545454;
    font-size: 1rem;
    min-height: 2.4rem;
}
.main-page .tenant-cc .my-courses-detail-link:hover .title {
    color: #27aae1;
}
.main-page .tenant-cc .my-courses-detail-link:focus-visible {
    outline: 2px solid rgba(42, 163, 214, 0.55);
    outline-offset: 2px;
}

/* Workspace learner All Courses — enroll CTAs (legacy total_courses card style) */
.main-page .tenant-cc.tenant-cc--user-catalog .course-box--user-catalog .course-image {
    cursor: pointer;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-course-detail-link__body {
    padding: 15px;
    padding-bottom: 0;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-course-card-footer {
    padding: 0 15px 15px;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-course-detail-link__body .title {
    font-weight: 600;
    color: #545454;
    font-size: 1rem;
    min-height: 2.4rem;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-course-detail-link:hover .title {
    color: #27aae1;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-course-detail-link:focus-visible {
    outline: 2px solid rgba(42, 163, 214, 0.55);
    outline-offset: 2px;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-btn-enrolled {
    font-weight: 600;
    border-radius: 8px;
    pointer-events: none;
    cursor: default;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-btn-enroll {
    font-weight: 600;
    border-radius: 8px;
    border-width: 2px;
}
.main-page .tenant-cc.tenant-cc--user-catalog .user-ac-btn-requested {
    font-weight: 600;
    border-radius: 8px;
    pointer-events: none;
    cursor: default;
}

/* All Courses: main + sticky filter tree sidebar */
.main-page .tenant-cc .tenant-ac-layout {
    width: 100%;
}
@media (min-width: 1200px) {
    .main-page .tenant-cc .tenant-ac-sidebar {
        max-width: 300px;
    }
}
.main-page .tenant-cc .tenant-ac-sidebar--sticky.sticky-xl-top {
    position: sticky;
    top: 1rem;
    z-index: 2;
}
.main-page .tenant-cc .tenant-ac-tree-parent {
    font-weight: 600;
}

/* Tenant All/My Courses: category title padding */
.main-page .tenant-ac-tree-parent {
    /* margin-left: 2.25rem; */
    padding-right: 0.5rem;
}
.main-page .tenant-ac-tree-children {
    padding-left: 0;
    margin-left: 0;
}
.main-page .tenant-ac-tree-label {
    margin-left: 0;
    padding-left: 0;
}

/* Tenant course detail: toolbar (back uses shared .crs-curriculum-back-pill in crs-cv-lms__actions) */
.main-page.tenant-course-detail-page .tenant-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.main-page.tenant-course-detail-page .tenant-cd-curriculum {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}
.main-page.tenant-course-detail-page .tenant-cd-mod-shell {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.main-page.tenant-course-detail-page .tenant-cd-mod-collapse-inner {
    padding: 0.65rem 0 0 1rem;
    margin-top: 0.35rem;
    margin-left: 0.25rem;
    border-left: 2px solid #e8ecf1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.main-page.tenant-course-detail-page .tenant-cd-sec-shell {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 0.4rem 0.65rem 0.65rem;
    margin-bottom: 0.55rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.main-page.tenant-course-detail-page .tenant-cd-sec-shell:last-child {
    margin-bottom: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-sec-shell .tenant-cd-module-row--section {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.55rem 0.35rem;
    margin-top: 0;
    background: transparent;
}
.main-page.tenant-course-detail-page .tenant-cd-sec-collapse {
    padding: 0.15rem 0 0 1.65rem;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-ul {
    padding-left: 0.15rem;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-li:last-child .tenant-cd-lesson-link {
    padding-bottom: 0.15rem;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #111827;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row:focus {
    outline: none;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row:focus-visible {
    outline: 2px solid rgba(42, 163, 214, 0.45);
    outline-offset: 2px;
}
.main-page.tenant-course-detail-page button.tenant-cd-module-row.tenant-cd-collapse-toggle {
    width: 100%;
    max-width: 100%;
    font: inherit;
    text-align: left;
    box-sizing: border-box;
}
.main-page.tenant-course-detail-page .tenant-cd-collapse-toggle.collapsed .tenant-cd-module-row__chev {
    transform: rotate(0deg);
}
.main-page.tenant-course-detail-page .tenant-cd-collapse-toggle:not(.collapsed) .tenant-cd-module-row__chev {
    transform: rotate(90deg);
}
.main-page.tenant-course-detail-page .tenant-cd-module-row__chev {
    color: #9ca3af;
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row__icon {
    font-size: 22px;
    color: #6b7280;
    flex-shrink: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row__icon--sec {
    font-size: 20px;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row__title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    font-size: 0.9375rem;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row__resume-icon {
    flex-shrink: 0;
    color: #39afd1;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0 0.15rem;
}
.main-page.tenant-course-detail-page .tenant-cd-module-row__dur {
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #9ca3af;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-ul--cards .tenant-cd-lesson-li--card:last-child {
    margin-bottom: 0 !important;
}
.main-page.tenant-course-detail-page a.crs-cv-launch-lesson.tenant-cd-detail-lesson-card {
    text-decoration: none;
    color: inherit;
}
.main-page.tenant-course-detail-page a.crs-cv-launch-lesson.tenant-cd-detail-lesson-card:hover {
    color: inherit;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-link:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-link:focus-visible {
    outline: 2px solid rgba(42, 163, 214, 0.45);
    outline-offset: 1px;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-link__icon {
    font-size: 20px;
    color: #2aa3d6;
    flex-shrink: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-lesson-link__text {
    min-width: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-layout-row {
    align-items: flex-start;
}
.main-page.tenant-course-detail-page .tenant-cd-overview-card .tenant-cd-rich ul,
.main-page.tenant-course-detail-page .tenant-cd-overview-card .tenant-cd-rich ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-overview-card .tenant-cd-rich li {
    margin-bottom: 0.35rem;
}
.main-page.tenant-course-detail-page .tenant-cd-list-chev__icon {
    color: #2aa3d6;
    font-size: 1.125rem;
    margin-right: 0.35rem;
    margin-top: 0.1rem;
    line-height: 1.25;
}
.main-page.tenant-course-detail-page .tenant-cd-list-check__icon {
    color: #2aa3d6;
    font-size: 1.125rem;
    margin-right: 0.35rem;
    margin-top: 0.05rem;
    line-height: 1.25;
}
.main-page.tenant-course-detail-page .tenant-cd-sidebar-card {
    border-radius: 8px;
}
.main-page.tenant-course-detail-page .tenant-cd-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row:focus-visible {
    outline: 2px solid rgba(42, 163, 214, 0.45);
    outline-offset: 2px;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row__thumb {
    width: 88px;
    height: 64px;
    flex-shrink: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row__thumb img {
    max-height: 64px;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row__body {
    min-width: 0;
}
.main-page.tenant-course-detail-page .tenant-cd-related-row__title {
    font-size: 0.9375rem;
    line-height: 1.35;
}
.disabled-input-fld{
    background-color: #e9ecef;
    cursor: not-allowed;
}
.padding-footer{
    padding:0 !important;
}

/* MODAL */
.assign-course-modal {
    border-radius: 12px;
    padding: 10px;
}

.assign-course-modal-title {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 10px;
}

.assign-course-modal-body {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

/* CATEGORY */
.assign-course-category {
    margin-bottom: 15px;
    padding-left: 10px;
}

.assign-course-category-title {
    font-weight: 600;
    font-size: 16px;
    color: #545454;
    margin-bottom: 6px;
}

/* SUBCATEGORY */
.assign-course-subcategory {
    margin-bottom: 8px;
    padding-left: 10px;
}

.assign-course-sub-title {
    font-size: 15px;
    font-weight: 500;
    color: #545454;
}

/* COURSES */
.assign-course-course-list {
    list-style: none;
    padding-left: 15px;
    margin: 4px 0;
}

.assign-course-course-item {
    font-size: 14px;
    color: #545454;
    position: relative;
}

.assign-course-close-btn {
    font-size: 25px !important;
    color: #000 !important;
    top: 10px !important;
    right: 12px !important;
}

.assign-course-tree-wrapper {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 6px;
}

.assign-course-tree-ul {
    list-style: none;
    padding-left: 10px;
}

.assign-course-tree-ul li {
    margin: 4px 0;
}

.assign-course-caret {
    cursor: pointer;
    font-weight: 500;
}
h2#swal2-title {
    padding: 10px;
}
/* WRAPPER */
.multiselect-dropdown {
    position: relative !important;
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: 38px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* PLACEHOLDER */
.multiselect-dropdown span {
    color: #6c757d;
    font-size: 14px;
}

/* DROPDOWN */
.multiselect-dropdown-list-wrapper {
    position: absolute;
    top: 100%;          /* ✅ pushes it below the field */
    left: 0;
    width: 100%;
    margin-top: 4px;

    max-height: 220px;
    overflow-y: auto;

    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* ITEMS */
.multiselect-dropdown-list div {
    padding: 6px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.multiselect-dropdown-list div:hover {
    background: #f1f3f5;
}

/* CHECKBOX */
.multiselect-dropdown-list input[type="checkbox"] {
    cursor: pointer;
}

/* SELECTED TEXT */
.multiselect-dropdown {
    font-size: 14px;
    color: #333;
}
#view-tree-container{
    border-left: 3px solid #2aa3d6;
}

.manager-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.manager-title i {
    font-size: 18px;
    line-height: 1;
}

.tenant-name {
    color: #2aa3d6;
    font-weight: 600;
}
#inviteBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tabs Container */
.crs-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    padding-left: 0;
    margin-bottom: 15px;
}

/* Remove default list style */
.crs-tabs li {
    list-style: none;
}

/* Tab Button */
.crs-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-weight: 500;
    color: #666;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effect */
.crs-tab:hover {
    background: #f5f7fb;
    color: #333;
}

/* Active Tab */
.crs-tab.active {
    color: #2563eb;
    background: #eef3ff;
    border-bottom: 2px solid #2563eb;
}

/* Icon size */
.crs-tab .material-symbols-outlined {
    font-size: 18px;
}

/* Base (disabled look) */
.tab-req-action-btn {
    background: none;
    border: 0;
    padding: 0;
    opacity: 0.8;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

/* Enabled state */
.tab-req-action-btn.active {
    opacity: 1;
    cursor: pointer;
    font-size:22px;
}

/* Assign active style */
.tab-req-action-btn.assign-active {
    color: #16a34a;
}

/* Reject active style */
.tab-req-action-btn.reject-active {
    color: #dc2626;
}
/* MASTER ADMIN BOX */
.master-admin-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f8ff;
    border: 2px solid #2aa3d6;
    border-radius: 10px;
    padding: 12px 16px;
}

.master-title {
    font-weight: 600;
    font-size: 15px;
    color: #2aa3d6;
}

.master-desc {
    font-size: 13px;
    color: #666;
}

.master-subtext {
    font-size: 12px;
    color: #999;
}

/* DISABLED STATE VISUAL */
.permissions-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(80%);
}
/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2aa3d6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* disabled look */
.permissions-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.con_addon-section {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
}

.con_addon-section-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.con_addon-table td {
    vertical-align: middle;
}

.con_addon-base-row {
    background: #f8f9fa;
    font-weight: 500;
}

.con_addon-topup-row td:first-child {
    padding-left: 25px;
    color: #666;
}

.con_addon-badge {
    background: #2aa3d6;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 10px;
}
.con_addon-header-row th {

    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.con_addon-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
.addon-btn {
    color: #28a745 !important;
}

/* Public marketing course detail (e.g. home/course/{slug}/{id}) — below site header */
.main-wrapper .container .website-public-course-detail.main-page {
    padding-top: 3.5rem !important;
    max-width: 100%;
}
button.action-icon.viewBtn, i.fa-regular.fa-eye.cat-action-ico,button.btn.p-0.view-message-btn{
    color:orange;
}
.viewBtn .material-symbols-outlined {
    color: orange !important;
}
.btn:focus{
    box-shadow: none !important;
}
