:root {
  /* --primary-color: #3e2f91; */
  --primary-color: #304577;
  --secondary-color: #00bbcf;
  --white-color: #fff;
  --black-color: #000000;
  --calander-background: #ced4da;
  --admin-background: #f1ebdf;
  --red-color: #ff0000;
  --table-border: #b2bfbd;
}

/*hamburger*/
.sidebar-arrow {
  display: flex;
  color: var(--primary-color);
  position: fixed;
  font-size: 25px;
  left: 245px;
  top: 52px;
  z-index: 55;
  background: #fff;
  height: 35px;
  width: 35px;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 3px rgb(192, 192, 192);
}

.wrapper.active .sidebar-arrow {
  left: 5px;
}

/*table*/

.table-action-group {
  display: inline-block;
  white-space: nowrap;
  overflow: auto;
}

.table .table-action {
  min-width: 75px;
}

.btn .btn-own-admin .table-action {
  cursor: pointer;
}

.table-action-group .table-action {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}

/* .override {
  padding-left: 6rem !important;
} */
.quiz-btn {
  background-color: var(--secondary-color);
  width: 50px;
  height: 10px !important;
}

/*admin form */
/* .admin-form .admin-form-group, */
.form-own .form-own-group {
  min-height: 85px;
}

.form-own-label {
  color: var(--primary-color);
}

/*logout*/
.logout-wrapper {
  position: absolute;
  bottom: 0px;
  left: 0;
  transition: margin-left 0.2s ease-in-out, left 0.2s ease-in-out,
    margin-right 0.2s ease-in-out, right 0.2s ease-in-out;
  width: 260px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.logout-wrapper.logout-admin {
  /* bottom: -12px; */
  border-top: none;
}

.logout-wrapper .sidebar-link {
  font-size: 1.1rem;
}

.logout-wrapper .sidebar-link:hover {
  color: var(--white-color);
}

.logout-wrapper.collapsed {
  margin-left: -260px;
}

/*Logo Upload*/

.show-icon-wrapper {
  pointer-events: none;
}

.show-icon-wrapper img {
  width: 150px;
}

/*toggle switch*/
.toggle-input {
  height: 0;
  width: 0;
  visibility: hidden;
}

.toggle-label {
  cursor: pointer;
  text-indent: -9999px;
  width: 50px;
  height: 25px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

.toggle-label::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 90px;
  transition: 0.5s;
}

.toggle-input:checked+.toggle-label {
  background: var(--primary-color);
}

.toggle-input:checked+.toggle-label::after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

.toggle-label:active::after {
  width: 20px;
}

/*admin video*/
.admin-modal .video-wrapper .video-name {
  background: var(--primary-color);
  color: var(--white-color);
}

/*dropdown menu*/
.user-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 15px);
  background: var(--primary-color);
  color: #f7f7f7;
  box-shadow: 0 3px 7px 1px rgba(0, 0, 0, 0.4);
  z-index: 55;
  min-width: 240px;
  font-size: 14px;
}

.user-profile-dropdown:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--primary-color);
  right: 20px;
  top: -8px;
}

.profile-dropdown-list>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-dropdown-list>li .menu-list-txt {
  display: block;
  padding: 10px 15px;
}

.profile-dropdown-list>li a,
.profile-dropdown-list>li:hover,
.profile-dropdown-list>li:focus {
  color: var(--primary-color);
  background-color: var(--white-color);
}

.profile-dropdown-list>li:last-child {
  border-bottom: none;
}

.user-details .user-name-text {
  position: relative;
  padding-right: 20px;
  color: var(--primary-color);
}

.user-details .user-name-text:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

.password-helper .helper-list {
  color: var(--red-color);
}

.password-helper .helper-list .active {
  color: green;
}

.form-img-wrapper {
  position: absolute;
  top: 42px;
  right: 10px;
  color: var(--primary-color);
}

.form-img-wrapper.login {
  top: 11px;
}

.form-group .login-password {
  position: absolute;
  bottom: 40px;
  right: 15px;
  color: var(--white-color);
}

.form-report {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
}

.form-report .form-report-group {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

/* Date range pickers (react-date-picker) */
.form-report .form-report-group.date-picker-class {
  width: 200px;
  flex: 0 0 auto;
  padding: 0 6px;
}

/* User Zone (MUI select) sits beside the date pickers, not full-width */
.form-report .form-report-group.show-item-page {
  width: 220px;
  flex: 0 0 auto;
}

.form-report .form-report-group.show-item-page .MuiFormControl-root {
  width: 100%;
}

.form-report .form-report-group.date-picker-class>label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.datepicker-report .react-date-picker {
  width: 100%;
  z-index: 5;
}

/* react-date-picker flags empty segments as :invalid with a red tint — drop it */
.datepicker-report .react-date-picker__inputGroup__input:invalid {
  background: transparent;
}

.datepicker-report .react-date-picker--open {
  z-index: 6;
}

.datepicker-report .react-date-picker__wrapper {
  background: #fff;
  border: 1.5px solid #dde1ed;
  border-radius: 8px;
  padding: 0 10px;
  height: 40px;
  min-width: 160px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.datepicker-report .react-date-picker--open .react-date-picker__wrapper,
.datepicker-report .react-date-picker__wrapper:hover {
  border-color: var(--primary-color);
}

.datepicker-report .react-date-picker__inputGroup {
  padding: 0;
  font-size: 13px;
  color: #1f2a44;
  min-width: auto;
}

.datepicker-report .react-date-picker__inputGroup__input {
  border: none;
  outline: none;
  color: #1f2a44;
}

.datepicker-report .react-date-picker__inputGroup__input::placeholder,
.datepicker-report .react-date-picker__inputGroup__divider {
  color: #9aa1b2;
}

.datepicker-report .react-date-picker__button {
  padding: 4px 2px;
}

.datepicker-report .react-date-picker__button:enabled:hover svg,
.datepicker-report .react-date-picker__button:enabled:focus svg {
  stroke: var(--primary-color);
}

.datepicker-report .react-date-picker__button svg {
  width: 15px;
  height: 15px;
  stroke: #8a92a6;
}

/* Calendar popup */
.react-calendar {
  border: 1px solid #eceef5;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(48, 69, 119, 0.14);
  font-family: inherit;
  padding: 6px;
  overflow: hidden;
}

.react-calendar__tile {
  border-radius: 8px;
}

.react-calendar__tile--now {
  background: #eef0fb;
}

.react-calendar__tile--active,
.react-calendar__tile--active:enabled:hover,
.react-calendar__tile--active:enabled:focus {
  background: var(--primary-color);
  color: #fff;
}

.react-calendar__tile:enabled:hover,
.react-calendar__navigation button:enabled:hover {
  background: #f3f5fd;
  border-radius: 8px;
}

/*reports tables*/
.report-wrapper {
  display: flex;
  padding-top: 0.5rem;
  padding-left: 15px;
  padding-right: 15px;
}

.report-wrapper .report-table-wrapper {
  width: 100%;
  padding-right: 20px;
}

.report-wrapper .report-table-wrapper .report-type,
.reports-stats-wrapper .report-type {
  font-size: 20px;
}

.report-wrapper .reports-stats-wrapper {
  padding-left: 50px;
}

.reports-stats-wrapper .reports-stats {
  width: 200px;
}

.reports-stats .list-unstyled .report-data {
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
}

.report-wrapper.user-data-wrapper {
  padding-left: 25px;
  padding-right: 1px;
}

/*dashboard*/
.dashboard-menu {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-menu.web-menu {
  width: 100%;
}

.dashboard-menu .dashboard-logo {
  width: 35px;
}

.dashboard-menu .dashboard-label {
  /* padding-top: 15px; */
}

/* ─────────────────────────  ESHS LMS module  ───────────────────────── */

/* Stat cards — icon badge + value, subtle elevation and hover lift */
.lms-stat-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 8px;
  padding: 18px 18px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.lms-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(48, 69, 119, 0.12);
}

.lms-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.lms-stat-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: var(--primary-color);
}

.lms-stat-body {
  min-width: 0;
}

.lms-stat-card .lms-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #1f2a44;
  line-height: 1.05;
}

.lms-stat-card .lms-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #5a6276;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lms-stat-card .lms-stat-sub {
  font-size: 11.5px;
  color: #9aa1b2;
  margin-top: 3px;
}

/* per-card tones */
.lms-stat-card.tone-indigo::before {
  background: #4554a8;
}

.lms-stat-card.tone-indigo .lms-stat-icon {
  background: linear-gradient(135deg, #4554a8, #5b6cd6);
}

.lms-stat-card.tone-teal::before {
  background: #1aa7b8;
}

.lms-stat-card.tone-teal .lms-stat-icon {
  background: linear-gradient(135deg, #12a6b8, #28c2c9);
}

.lms-stat-card.tone-green::before {
  background: #2e9e57;
}

.lms-stat-card.tone-green .lms-stat-icon {
  background: linear-gradient(135deg, #2e9e57, #4cc27a);
}

.lms-stat-card.tone-amber::before {
  background: #e0a116;
}

.lms-stat-card.tone-amber .lms-stat-icon {
  background: linear-gradient(135deg, #eaa61c, #f4c64a);
}

.lms-stat-card.tone-blue::before {
  background: #315c8f;
}

.lms-stat-card.tone-blue .lms-stat-icon {
  background: linear-gradient(135deg, #315c8f, #4d83bd);
}

/* Badges with a leading dot */
.lms-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.lms-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.lms-badge.badge-green {
  background: #e8f7ee;
  color: #2e7d32;
}

.lms-badge.badge-amber {
  background: #fff6e2;
  color: #d98b00;
}

.lms-badge.badge-red {
  background: #fdecec;
  color: #d33;
}

.lms-badge.badge-gray {
  background: #eef0f4;
  color: #6b7280;
}

.lms-badge.badge-blue {
  background: #eaf2fb;
  color: #315c8f;
}

.lms-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 0;
}

.lms-dashboard-meta {
  display: block;
  color: #6d7484;
  font-size: 13px;
}

.lms-dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.lms-period-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lms-period-control select {
  appearance: none;
  width: 178px;
  height: 42px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #30456f 50%),
    linear-gradient(135deg, #30456f 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #263044;
  font-size: 15px;
  font-weight: 800;
  padding: 0 42px 0 16px;
  outline: none;
  box-shadow: 0 2px 8px rgba(48, 69, 119, 0.05);
  cursor: pointer;
}

.lms-period-control select:focus {
  border-color: #12a6b8;
  box-shadow: 0 0 0 3px rgba(18, 166, 184, 0.12);
}

.lms-refresh-btn {
  min-width: 132px !important;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.lms-refresh-btn i {
  font-size: 16px;
  line-height: 1;
}

.lms-refresh-btn span {
  display: inline-block;
  margin-left: 10px;
}

.lms-dashboard {
  color: #263044;
}

.lms-progress-line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf1f7;
  margin-top: 9px;
}

.lms-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #12a6b8;
}

.lms-dashboard-panel {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.05);
  height: 100%;
  min-height: 100%;
}

.lms-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lms-dashboard-panel-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #30456f;
}

.lms-dashboard-panel-head .btn {
  min-width: auto;
  padding: 7px 18px;
}

.lms-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f6;
}

.lms-queue-item:last-child {
  border-bottom: 0;
}

.lms-queue-item span,
.lms-segment-row span,
.lms-activity-row strong {
  color: #263044;
  font-weight: 700;
}

.lms-queue-item small,
.lms-activity-row span,
.lms-activity-row small {
  display: block;
  color: #748093;
  font-size: 12px;
  margin-top: 3px;
}

.lms-queue-item strong {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.lms-queue-item.tone-amber strong {
  background: #e0a116;
}

.lms-queue-item.tone-red strong {
  background: #cf3d4a;
}

.lms-queue-item.tone-blue strong {
  background: #315c8f;
}

.lms-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lms-funnel-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  min-height: 112px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.05);
}

.lms-funnel-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: var(--primary-color);
  grid-row: span 2;
}

.lms-funnel-step.tone-teal .lms-funnel-icon {
  background: linear-gradient(135deg, #12a6b8, #28c2c9);
}

.lms-funnel-step.tone-blue .lms-funnel-icon {
  background: linear-gradient(135deg, #315c8f, #4d83bd);
}

.lms-funnel-step.tone-green .lms-funnel-icon {
  background: linear-gradient(135deg, #2e9e57, #4cc27a);
}

.lms-funnel-step.tone-amber .lms-funnel-icon {
  background: linear-gradient(135deg, #eaa61c, #f4c64a);
}

.lms-funnel-head {
  min-height: 54px;
}

.lms-funnel-head span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.lms-funnel-head strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
  color: #1f2a44;
}

.lms-funnel-step small {
  color: #748093;
  font-size: 12px;
  font-weight: 700;
  display: block;
  grid-column: 2;
  margin-top: 0;
  line-height: 1.3;
}

.lms-dashboard-table {
  border-radius: 8px;
  overflow: hidden;
}

.lms-dashboard-table .table-admin {
  min-width: 1060px;
}

.lms-dashboard-table .table-admin th {
  white-space: nowrap;
}

.lms-dashboard-table .table-admin td {
  vertical-align: middle;
}

.lms-course-cell strong,
.lms-course-cell span {
  display: block;
}

.lms-course-cell strong {
  max-width: 420px;
  white-space: normal;
}

.lms-course-cell span {
  color: #7b8496;
  font-size: 12px;
  margin-top: 2px;
}

.lms-metric-bar {
  min-width: 128px;
}

.lms-metric-bar span {
  display: block;
  font-weight: 800;
  color: #30456f;
  margin-bottom: 2px;
}

.lms-metric-bar .lms-progress-line {
  margin-top: 0;
}

.lms-segment-block+.lms-segment-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f6;
}

.lms-segment-block h4 {
  margin: 0 0 10px;
  color: #30456f;
  font-size: 14px;
  font-weight: 800;
}

.lms-segment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f6;
}

.lms-segment-row:last-child {
  border-bottom: 0;
}

.lms-segment-row strong {
  color: #1aa7b8;
}

.lms-trend-row {
  padding: 10px 0 12px;
  border-bottom: 1px solid #edf0f6;
}

.lms-trend-row:last-child {
  border-bottom: 0;
}

.lms-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lms-trend-head span {
  color: #30456f;
  font-size: 13px;
  font-weight: 800;
}

.lms-trend-head strong {
  color: #1f2a44;
  font-size: 18px;
  line-height: 1;
}

.lms-trend-bars,
.lms-trend-empty {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  padding: 6px 0 0;
}

.lms-trend-bars span {
  flex: 1 1 0;
  min-width: 4px;
  border-radius: 4px 4px 0 0;
  background: #12a6b8;
}

.lms-trend-empty {
  border: 1px dashed #d8dde8;
  border-radius: 8px;
  background: #fafbfe;
}

.lms-activity-list {
  display: grid;
  gap: 10px;
}

.lms-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f6;
}

.lms-activity-row:last-child {
  border-bottom: 0;
}

.lms-activity-aside {
  flex: 0 0 auto;
  color: #30456f;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.lms-dashboard-empty {
  padding: 22px 8px;
  color: #8b94a5;
  font-size: 13px;
  text-align: center;
  border: 1px dashed #d8dde8;
  border-radius: 8px;
  background: #fafbfe;
}

.lms-attention-course-list {
  display: grid;
  gap: 10px;
}

.lms-attention-course {
  appearance: none;
  width: 100%;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  background: #fafbfe;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.lms-attention-course:hover {
  border-color: #12a6b8;
  background: #f5fcfd;
}

.lms-attention-course strong,
.lms-attention-course span {
  display: block;
}

.lms-attention-course strong {
  color: #263044;
  font-size: 14px;
}

.lms-attention-course span {
  color: #748093;
  font-size: 12px;
  margin-top: 3px;
}

.lms-attention-course em {
  flex: 0 0 auto;
  min-width: 52px;
  border-radius: 8px;
  background: #fff6e2;
  color: #d98b00;
  font-style: normal;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
}

.lms-recent-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.lms-recent-completions {
  border-left: 1px solid #edf0f6;
  padding-left: 18px;
}

.lms-recent-completions h4 {
  margin: 0 0 10px;
  color: #30456f;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .lms-funnel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .lms-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .lms-funnel {
    grid-template-columns: 1fr;
  }

  .lms-recent-split {
    grid-template-columns: 1fr;
  }

  .lms-recent-completions {
    border-left: 0;
    border-top: 1px solid #edf0f6;
    padding-left: 0;
    padding-top: 16px;
  }
}

/* Breadcrumb */
.lms-breadcrumb {
  font-size: 13px;
  color: #98a0b0;
  display: flex;
  align-items: center;
}

.lms-breadcrumb a {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.lms-breadcrumb a:hover {
  text-decoration: underline;
}

/* Section / form cards */
.lms-form-card {
  border: 1px solid #eceef5;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.06);
}

.lms-form-card .card-body {
  padding: 22px 24px;
}

.lms-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef0f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lms-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--primary-color);
}

/* Course wizard Step 1 */
.lms-course-info-card {
  border-color: #edf1f7;
  border-radius: 10px;
}

.lms-course-info-card .card-body {
  padding: 20px 24px 18px;
}

.lms-course-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 20px;
  align-items: start;
}

.lms-course-info-main {
  min-width: 0;
}

.lms-form-field {
  margin-bottom: 22px;
}

.lms-field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.lms-field-label-row .form-own-label {
  margin-bottom: 0;
  font-weight: 700;
}

.lms-char-count,
.lms-description-count {
  color: #74809a;
  font-size: 12px;
  font-weight: 600;
}

.lms-course-title-input {
  height: 44px;
  border: 1.5px solid #dfe5ef;
  border-radius: 7px;
  color: #16254b;
  font-size: 14px;
  padding: 0 16px;
}

.lms-course-title-input::placeholder,
.lms-description-input::placeholder {
  color: #a1abbd;
}

.lms-course-title-input:focus,
.lms-description-input:focus {
  border-color: #b9c7e6;
  box-shadow: 0 0 0 3px rgba(48, 69, 119, 0.08);
}

.lms-rich-text-shell {
  border: 1.5px solid #dfe5ef;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.lms-rich-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid #e5eaf2;
  color: #1d2945;
}

.lms-rich-toolbar button {
  border: none;
  background: transparent;
  min-width: 30px;
  min-height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d2945;
  cursor: default;
  font-size: 14px;
}

.lms-rich-toolbar button:hover {
  background: #f4f7fb;
}

.lms-rich-toolbar .lms-rich-style {
  min-width: 104px;
  justify-content: space-between;
  padding: 0 10px;
  font-weight: 500;
}

.lms-description-wrap {
  position: relative;
}

.lms-description-input {
  border: none;
  border-radius: 0;
  height: 112px;
  min-height: 96px;
  resize: vertical;
  padding: 14px 18px 32px;
  color: #16254b;
  font-size: 14px;
  box-shadow: none !important;
}

.lms-description-count {
  position: absolute;
  right: 16px;
  bottom: 12px;
}

.lms-course-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #cfe1fb;
  border-radius: 8px;
  background: #f1f7ff;
  color: #183a77;
  padding: 14px 16px;
}

.lms-course-tip>i {
  color: #2474ff;
  font-size: 18px;
  margin-top: 2px;
}

.lms-course-tip strong,
.lms-course-tip span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.lms-course-tip strong {
  margin-bottom: 3px;
}

.lms-thumbnail-card {
  border: 1px solid #e5e9f1;
  border-radius: 10px;
  background: #fff;
  /* box-shadow: 0 6px 18px rgba(16, 30, 58, 0.08); */
  padding: 18px 20px;
}

.lms-thumbnail-card h4 {
  color: #07154c;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}

.lms-thumbnail-card p {
  color: #3d4a6b;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.lms-thumbnail-dropzone {
  height: 230px;
  min-height: 0;
  border: 1.5px dashed #b9cbef;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  padding: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lms-thumbnail-dropzone:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 8px 22px rgba(48, 69, 119, 0.08);
}

.lms-thumbnail-dropzone.has-preview {
  padding: 0;
}

.lms-thumbnail-dropzone>img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.lms-thumbnail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #3a4669;
}

.lms-thumbnail-icon-wrap {
  position: relative;
  width: 68px;
  height: 60px;
  border-radius: 10px;
  background: #ddd9ff;
  color: #6f75e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}

.lms-thumbnail-icon-wrap span {
  position: absolute;
  right: -12px;
  bottom: -9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dcd8ff;
  color: #244eff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.lms-thumbnail-empty strong {
  color: #2f3c63;
  font-size: 16px;
  margin-bottom: 6px;
}

.lms-thumbnail-empty em {
  color: #4f5c7b;
  font-style: normal;
  font-size: 13px;
  margin-bottom: 12px;
}

.lms-thumbnail-empty small {
  color: #596783;
  font-size: 12px;
  line-height: 1.5;
}

.btn.lms-thumbnail-upload-btn {
  margin-top: 16px;
  min-width: 190px !important;
  height: 42px;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  justify-content: center;
}

.lms-thumbnail-actions {
  display: flex;
  margin-top: 14px;
}

.lms-thumbnail-actions .btn {
  min-width: auto !important;
}

.lms-wizard-footer {
  border: 1px solid #edf1f7;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
  padding: 24px 28px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.05);
}

.lms-course-wizard-page {
  padding-bottom: 132px;
}

.lms-course-wizard-page .lms-wizard-footer {
  bottom: 0;
  left: 260px;
  margin-bottom: 0 !important;
  position: fixed;
  right: 0;
  z-index: 1040;
}

.wrapper.active .lms-course-wizard-page .lms-wizard-footer {
  left: 15px;
}

@media (max-width: 1199.98px) {
  .lms-course-wizard-page .lms-wizard-footer {
    left: 16px;
    right: 16px;
  }

  .lms-course-info-layout {
    grid-template-columns: 1fr;
  }

  .lms-thumbnail-card {
    max-width: 420px;
  }
}

/* Module rows in the course builder */
.lms-module-row {
  border: 1px solid #eceef5;
  border-radius: 12px;
  background: #fbfbfe;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.lms-module-row:hover {
  border-color: #d7dcec;
  box-shadow: 0 4px 12px rgba(48, 69, 119, 0.07);
}

.lms-module-reorder .btn-link {
  color: var(--primary-color);
  line-height: 1;
}

.lms-module-reorder .btn-link:disabled {
  color: #c4c4c4;
}

/* Quiz builder */
.lms-quiz-builder {
  background: #f6f7fc;
  border: 1px solid #eceef5;
  border-radius: 12px;
}

.lms-quiz-q {
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(48, 69, 119, 0.05);
}

.lms-module-modal {
  max-width: 780px;
  width: 92vw;
}

.lms-add-module-modal .modal-dialog {
  max-width: 560px;
}

.lms-add-module-modal .modal-content {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(9, 18, 43, 0.24);
  overflow: hidden;
}

.lms-add-module-modal .modal-header,
.lms-add-module-modal .modal-footer {
  border-color: #edf1f7;
  padding: 18px 22px;
}

.lms-add-module-modal .modal-body {
  padding: 22px;
}

.lms-add-module-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lms-add-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3ff;
  color: #304577;
  font-size: 20px;
  flex: 0 0 auto;
}

.lms-add-module-title-wrap h3 {
  margin: 0;
  color: #16254b;
  font-size: 20px;
  font-weight: 800;
}

.lms-add-module-title-wrap p {
  margin: 4px 0 0;
  color: #687188;
  font-size: 13px;
  line-height: 1.4;
}

.lms-add-module-label {
  display: block;
  margin-bottom: 8px;
  color: #07154c;
  font-size: 14px;
  font-weight: 800;
}

.lms-add-module-input {
  height: 50px;
  border: 1.5px solid #dfe5ef;
  border-radius: 8px;
  color: #16254b;
  font-size: 15px;
  padding: 0 16px;
}

.lms-add-module-input:focus {
  border-color: #b9c7e6;
  box-shadow: 0 0 0 3px rgba(48, 69, 119, 0.08);
}

.lms-add-module-count {
  display: block;
  margin-top: 6px;
  color: #64708b;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.lms-add-module-modal .modal-footer {
  gap: 12px;
}

.lms-add-module-modal .modal-footer .btn {
  min-width: 120px;
  min-height: 40px;
  justify-content: center;
}

.lms-learning-status-modal .modal-dialog {
  max-width: 660px;
}

.lms-learning-status-modal .modal-content {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(9, 18, 43, 0.24);
  overflow: hidden;
}

.lms-learning-status-modal .modal-header,
.lms-learning-status-modal .modal-footer {
  border-color: #edf1f7;
  padding: 18px 22px;
}

.lms-learning-status-modal .modal-body {
  padding: 22px;
}

.lms-learning-status-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lms-learning-status-title h5 {
  color: #16254b;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.lms-learning-status-title p {
  color: #687188;
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.lms-learning-status-icon {
  align-items: center;
  background: #eef3ff;
  border-radius: 8px;
  color: #304577;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.lms-learning-status-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.lms-learning-status-card {
  background: #f8fbff;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  padding: 12px;
}

.lms-learning-status-card strong {
  color: #1f2a44;
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 7px;
}

.lms-learning-status-card span {
  color: #687188;
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.lms-learning-status-list {
  border-top: 1px solid #e6ebf2;
  max-height: 280px;
  overflow: auto;
  padding-top: 14px;
}

.lms-learning-status-list h6 {
  color: #16254b;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
}

.lms-learning-status-module {
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.lms-learning-status-module strong {
  color: #273f78;
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}

.lms-learning-status-module ul {
  color: #68758a;
  font-size: 13px;
  margin: 0;
  padding-left: 18px;
}

.lms-learning-status-complete {
  align-items: center;
  background: #eefaf2;
  border: 1px solid #d9f1e1;
  border-radius: 8px;
  color: #2f8f46;
  display: flex;
  font-weight: 800;
  gap: 10px;
  padding: 14px;
}

.lms-learning-status-modal .modal-footer {
  gap: 12px;
}

.lms-learning-status-modal .modal-footer .btn {
  justify-content: center;
  min-height: 40px;
  min-width: 130px;
}

/* Inline action buttons in tables */
.lms-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lms-actions .btn {
  white-space: nowrap;
}

/* Table polish for LMS lists */
.lms-table-card {
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.06);
  overflow: hidden;
}

.lms-table-card .table-admin {
  margin-bottom: 0;
}

.lms-table-card .table-admin tbody tr {
  transition: background 0.12s ease;
}

/* Toolbar that groups search + filters + primary action on one line */
.lms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.lms-toolbar .lms-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ── LMS toolbar height consistency (all elements = 40px) ── */

/* Search bar: icon + input as one pill unit */
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lms-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
  max-width: 240px;
}

.lms-search-icon {
  position: absolute;
  left: 11px;
  color: #9aa1b2;
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}

.lms-search-input {
  padding-left: 32px !important;
  height: 40px;
  border-radius: 21px 0 0 20px !important;
  border: 1.5px solid #dde1ed !important;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.lms-search-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(48, 69, 119, 0.1) !important;
  outline: none;
}

.lms-search-input::placeholder {
  color: #b0b8cc;
  font-size: 13px;
}

.lms-district-filter-input {
  padding-left: 14px !important;
  border-radius: 20px !important;
}

/* All toolbar action buttons: same 40px height, no enforced min-width */
.lms-toolbar-btn {
  height: 40px !important;
  min-width: auto !important;
  /* overrides global secondary-btn min-width: 161px */
  padding: 0 18px !important;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border-radius: 8px !important;
}

/* Status select: match 40px height, no floating label */
.lms-status-select {
  min-width: 140px;
}

.lms-status-select .MuiOutlinedInput-root {
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
}

.lms-status-select .MuiSelect-select {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  color: #4b5675;
}

.lms-status-select .MuiOutlinedInput-notchedOutline {
  border-color: #dde1ed;
}

.lms-status-select:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--primary-color);
}

/* Strip bottom margin so MUI fields sit flush in the toolbar */
.lms-toolbar .MuiFormControl-root {
  margin-bottom: 0 !important;
}

.lms-course-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.04);
}

.lms-course-status-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
}

.lms-course-status-tabs button strong {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f8;
  color: #30456f;
  font-size: 12px;
}

.lms-course-status-tabs button.active {
  background: #304577;
  color: #fff;
}

.lms-course-status-tabs button.active strong {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lms-courses-table-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.05);
}

.lms-courses-table {
  min-width: 1120px;
  margin-bottom: 0;
}

.lms-courses-table thead th {
  white-space: nowrap;
  color: #1f2a44;
}

.lms-courses-table tbody td {
  vertical-align: middle;
}

.lms-course-list-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 360px;
}

.lms-course-list-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf3fb;
  color: #30456f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}

.lms-course-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lms-course-list-identity strong,
.lms-course-list-identity span {
  display: block;
}

.lms-course-list-identity strong {
  color: #1f2a44;
  font-size: 15px;
  line-height: 1.25;
}

.lms-course-list-identity span {
  color: #748093;
  font-size: 12px;
  margin-top: 4px;
}

.lms-course-learner-stats {
  min-width: 110px;
  color: #1f2a44;
}

.lms-course-learner-stats strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.lms-course-action-btn {
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 6px !important;
}

/* Pagination row below toolbar — compact */
.own-paagination-wrapper .show-item-page {
  min-width: 120px;
  max-width: 150px;
}

.own-paagination-wrapper .show-item-page .MuiOutlinedInput-root,
.own-paagination-wrapper .show-item-page .MuiSelect-select {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  font-size: 13px;
}

.own-paagination-wrapper .show-item-page .MuiInputLabel-root {
  font-size: 13px;
  top: -3px;
}

.own-paagination-wrapper .show-item-page .MuiInputLabel-shrink {
  top: 0;
}

/* ─────────────────  LMS course authoring (wizard + workspace)  ───────────────── */

/* Wizard stepper */
.lms-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.06);
}

.lms-wizard-step {
  flex: 1 1 0;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.lms-wizard-step:hover:not(:disabled) {
  background: #f4f6fc;
}

.lms-wizard-step.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.lms-wizard-step-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #eef0f6;
  color: #8a92a6;
  transition: all 0.15s ease;
}

.lms-wizard-step.active .lms-wizard-step-icon {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(48, 69, 119, 0.25);
}

.lms-wizard-step.done .lms-wizard-step-icon {
  background: #2e9e57;
  color: #fff;
}

.lms-wizard-step-label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: #3a4257;
  line-height: 1.25;
}

.lms-wizard-step-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lms-wizard-step-n {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1b2;
}

.lms-wizard-step.active .lms-wizard-step-n {
  color: var(--primary-color);
}

.lms-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lms-optional-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 9px;
  background: #eef2f7;
  color: #667085;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Rules grid + toggles */
.lms-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 24px;
  margin-top: 6px;
}

.lms-toggle-field {
  padding: 4px 0;
}

.lms-toggle-hint {
  margin-left: 26px;
  margin-top: 2px;
}

.lms-course-certificate-panel {
  border: 1px solid #e5ebf6;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px 16px;
  margin-top: 16px;
}

.lms-certificate-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e5ebf6;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px 16px;
  margin-bottom: 0;
  cursor: pointer;
}

.lms-certificate-toggle-row>span:first-child {
  min-width: 0;
}

.lms-certificate-toggle-row strong {
  display: block;
  color: #20285c;
  font-size: 14px;
  font-weight: 800;
}

.lms-certificate-toggle-row small {
  display: block;
  color: #6d7690;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

/* Progress chips */
.lms-progress-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lms-progress-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #eef0f6;
  color: #51597a;
}

.lms-progress-chip.chip-green {
  background: #e8f7ee;
  color: #2e7d32;
}

.lms-progress-chip.chip-amber {
  background: #fff6e2;
  color: #d98b00;
}

/* Module drag affordance */
.lms-module-row[draggable="true"] {
  cursor: grab;
}

.lms-module-row.is-dragging {
  opacity: 0.5;
  border-style: dashed;
}

.lms-drag-handle {
  color: #b8bfd0;
  cursor: grab;
}

.lms-module-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Readiness ring + checklist */
.lms-readiness {
  gap: 8px;
}

.lms-readiness-ring {
  flex: 0 0 auto;
}

.lms-readiness-row {
  padding: 5px 0;
  font-size: 13.5px;
  color: #3a4257;
}

.lms-checklist {
  background: #f8f9fd;
  border-radius: 12px;
  padding: 14px 16px;
}

/* Publish actions */
.lms-publish-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.lms-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lms-schedule .form-control {
  width: auto;
  height: 40px;
  border-radius: 8px;
}

.lms-review-publish-card .card-body {
  padding: 24px;
}

.lms-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e9edf6;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.lms-review-subtitle {
  color: #69728c;
  font-size: 14px;
}

.lms-review-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.lms-review-status.is-ready {
  background: #e7f7ee;
  color: #16844c;
}

.lms-review-status.is-blocked {
  background: #fff4d8;
  color: #b97800;
}

.lms-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  margin-bottom: 18px;
}

.lms-review-panel {
  border: 1px solid #e5ebf6;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.lms-review-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lms-review-panel-head h4 {
  color: #20285c;
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.lms-review-panel-head p {
  color: #7c859d;
  font-size: 12px;
  font-weight: 700;
  margin: 2px 0 0;
}

.lms-review-panel-icon,
.lms-publish-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef4ff;
  color: #2e4b89;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.lms-review-ring-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.lms-review-readiness-list .lms-section-title {
  font-size: 15px;
}

.lms-review-checklist {
  display: grid;
  gap: 10px;
}

.lms-review-check-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #edf0f7;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fafbff;
}

.lms-review-check-item>i {
  margin-top: 2px;
}

.lms-review-check-item.is-ok>i {
  color: #16844c;
}

.lms-review-check-item.is-missing>i {
  color: #dc3545;
}

.lms-review-check-item strong {
  display: block;
  color: #20285c;
  font-size: 13.5px;
  font-weight: 800;
}

.lms-review-check-item span {
  display: block;
  color: #6d7690;
  font-size: 12.5px;
  margin-top: 2px;
}

.lms-publish-now-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lms-publish-options {
  display: grid;
  gap: 12px;
}

.lms-publish-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.lms-publish-action-copy,
.lms-publish-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lms-publish-action-copy {
  min-width: 240px;
}

.lms-publish-action-buttons {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.lms-publish-action-buttons-top {
  margin-left: auto;
}

.lms-publish-action-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
}

.lms-publish-action-buttons .lms-publish-now-btn {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.lms-publish-action-buttons .lms-publish-now-btn:hover,
.lms-publish-action-buttons .lms-publish-now-btn:focus {
  color: #fff;
  filter: brightness(0.94);
}

.lms-publish-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5ebf6;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.lms-publish-option.is-primary {
  border-color: #bdeef4;
  background: #f2fdff;
}

.lms-publish-option-body strong {
  display: block;
  color: #20285c;
  font-size: 14px;
  font-weight: 800;
}

.lms-publish-option-body small {
  display: block;
  color: #7c859d;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.lms-publish-option .form-control {
  width: 260px;
  height: 42px;
  border-radius: 8px;
}

.lms-publish-option .btn {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .lms-review-grid {
    grid-template-columns: 1fr;
  }

  .lms-publish-action-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lms-publish-action-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .lms-publish-option {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .lms-publish-option .form-control,
  .lms-publish-option .btn {
    grid-column: 2;
    width: 100%;
  }
}

@media (max-width: 575.98px) {

  .lms-review-header,
  .lms-review-ring-row {
    display: flex;
    flex-direction: column;
  }

  .lms-review-status {
    align-self: flex-start;
  }
}

/* Workspace header */
.lms-workspace-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.06);
  margin-bottom: 14px;
}

.lms-workspace-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1f2a44;
  margin: 0 0 6px;
}

.lms-workspace-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #8a92a6;
}

.lms-detail-header {
  align-items: center;
}

.lms-detail-header .lms-actions {
  align-items: center;
  flex-wrap: nowrap;
}

.lms-editor-header {
  align-items: center;
}

.lms-editor-header .lms-actions .lms-editor-nav-action {
  background: #fff;
  border-color: #d7deeb;
  color: var(--primary-color);
}

.lms-editor-header .lms-actions .lms-editor-nav-action:hover {
  background: #f4f7fb;
  border-color: #b9c5da;
  color: #263a69;
}

.lms-detail-header .lms-actions .btn-own-grey.secondary-btn {
  background: #fff;
  color: var(--primary-color);
  border-color: #dfe5f0;
}

.lms-detail-header .lms-actions .lms-preview-action:hover {
  background: #f4f7fb;
  border-color: #b9c5da;
  color: #263a69;
}

.lms-detail-header .lms-actions .lms-edit-action {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.lms-detail-header .lms-actions .lms-edit-action:hover {
  background: #263a69;
  border-color: #263a69;
  color: #fff;
}

.lms-detail-header .lms-actions .lms-publish-action {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.lms-detail-header .lms-actions .lms-publish-action:hover {
  filter: brightness(0.92);
  color: #fff;
}

.lms-detail-header .lms-actions .lms-archive-action {
  background: #fff;
  color: #b42318 !important;
  border-color: #f0c9c5 !important;
}

.lms-detail-header .lms-actions .lms-archive-action:hover {
  color: #8f1c13 !important;
  border-color: #e8aaa4 !important;
  background: #fff7f6 !important;
}

/* Workspace tabs */
.lms-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #eceef5;
  margin-bottom: 16px;
}

.lms-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7287;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lms-tab:hover {
  color: var(--primary-color);
}

.lms-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Course detail overview */
.lms-detail-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lms-course-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lms-course-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid #e4e9f3;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  box-shadow: 0 5px 14px rgba(48, 69, 119, 0.045);
}

.lms-course-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef3fb;
  color: var(--primary-color);
  font-size: 15px;
}

.lms-course-stat>div {
  min-width: 0;
}

.lms-course-stat strong,
.lms-course-stat>div>span {
  display: block;
}

.lms-course-stat strong {
  color: #1f2a44;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-course-stat>div>span {
  margin-top: 4px;
  color: #687188;
  font-size: 12px;
  font-weight: 600;
}

.lms-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 16px;
  align-items: start;
}

.lms-overview-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.lms-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lms-card-head .lms-section-title {
  flex: 1;
  min-width: 0;
}

.lms-course-description {
  border-bottom: 1px solid #edf1f7;
  margin-bottom: 14px;
  padding: 0 2px 14px;
}

.lms-course-description span {
  display: block;
  color: #687188;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.lms-course-description p {
  color: #2a3242;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.lms-summary-table {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  overflow: hidden;
}

.lms-summary-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.lms-summary-row:nth-child(odd) {
  background: #fbfcff;
}

.lms-summary-row:last-child {
  border-bottom: none;
}

.lms-summary-row span {
  color: #687188;
  font-size: 13px;
  font-weight: 700;
}

.lms-summary-row strong {
  color: #2a3242;
  font-size: 13.5px;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}

.lms-curriculum-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lms-curriculum-counts span {
  border: 1px solid #e5ebf4;
  border-radius: 999px;
  background: #f8fafd;
  color: #526075;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.lms-curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lms-curriculum-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7ecf5;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.lms-curriculum-index {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary-color);
  font-weight: 800;
  font-size: 13px;
}

.lms-curriculum-copy {
  flex: 1;
  min-width: 0;
}

.lms-curriculum-copy strong,
.lms-curriculum-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-curriculum-copy strong {
  color: #1f2a44;
  font-size: 14px;
}

.lms-curriculum-copy span {
  margin-top: 3px;
  color: #687188;
  font-size: 12.5px;
}

.lms-content-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lms-content-summary span {
  border: 1px solid #e7ecf5;
  border-radius: 999px;
  background: #f8fbff;
  color: #65708a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.lms-content-summary strong {
  color: #1f2a44;
  margin-right: 4px;
}

.lms-content-tree {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
}

.lms-content-node {
  position: relative;
}

.lms-content-node+.lms-content-node {
  margin-top: 8px;
}

.lms-content-node-main {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6ebf4;
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
}

.lms-content-node.depth-0>.lms-content-node-main {
  background: #fbfcff;
  border-color: #dfe7f3;
}

.lms-content-node.type-course>.lms-content-node-main {
  border-color: #cfd9eb;
  background: #f7faff;
}

.lms-content-node.type-module>.lms-content-node-main {
  border-color: #d8e1f0;
  background: #fbfcff;
}

.lms-content-node.type-parts>.lms-content-node-main,
.lms-content-node.type-part>.lms-content-node-main {
  background: #f8fbff;
}

.lms-content-collapse-btn,
.lms-content-collapse-spacer {
  width: 22px;
  height: 22px;
}

.lms-content-collapse-btn {
  border: 0;
  border-radius: 6px;
  color: #6e7b93;
  background: #f1f5fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lms-content-collapse-btn:hover,
.lms-content-collapse-btn:focus {
  color: var(--primary-color);
  background: #e7eefb;
  outline: none;
}

.lms-content-collapse-btn i {
  font-size: 11px;
}

.lms-content-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: #eef4ff;
}

.lms-content-node.depth-0>.lms-content-node-main .lms-content-node-icon {
  color: #fff;
  background: var(--primary-color);
}

.lms-content-node-copy {
  min-width: 0;
}

.lms-content-node-copy strong,
.lms-content-node-copy em,
.lms-content-node-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-content-node-copy strong {
  color: #1f2a44;
  font-size: 14px;
}

.lms-content-node.type-course>.lms-content-node-main .lms-content-node-copy strong,
.lms-content-node.type-module>.lms-content-node-main .lms-content-node-copy strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.25;
}

.lms-content-node-copy em {
  color: #4f5b72;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  margin-top: 1px;
}

.lms-content-node-copy .lms-content-node-label {
  color: #7a8599;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 1px;
  text-transform: uppercase;
}

.lms-content-node-copy span {
  color: #718097;
  font-size: 12px;
  margin-top: 2px;
}

.lms-content-children {
  margin: 8px 0 0 18px;
  padding-left: 16px;
  border-left: 2px solid #edf1f7;
}

.lms-content-status {
  border-radius: 999px;
  background: #eef2f7;
  color: #687188;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lms-content-status.status-ready,
.lms-content-status.status-published {
  background: #e8f7ee;
  color: #2e7d32;
}

.lms-content-status.status-draft {
  background: #fff6df;
  color: #df8f00;
}

.lms-content-status.status-missing {
  background: #ffecef;
  color: #d94848;
}

.lms-readiness-card {
  position: sticky;
  top: 12px;
}

.lms-readiness-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lms-readiness-score strong {
  color: #1f2a44;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.lms-readiness-score span {
  color: #687188;
  font-size: 12.5px;
  text-align: right;
}

.lms-readiness-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
  margin-bottom: 16px;
}

.lms-readiness-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e9e57, #19b9c9);
}

.lms-readiness-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lms-readiness-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.lms-readiness-item>i {
  font-size: 15px;
}

.lms-readiness-item.is-ok>i {
  color: #2e9e57;
}

.lms-readiness-item.is-missing>i {
  color: #d94848;
}

.lms-readiness-item strong {
  display: block;
  color: #2a3242;
  font-size: 13px;
  line-height: 1.25;
}

.lms-readiness-item small {
  display: block;
  color: #8a92a6;
  font-size: 11.5px;
  margin-top: 2px;
}

.lms-readiness-item .btn-link {
  padding: 0;
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.lms-empty-inline {
  border: 1px dashed #d8dfef;
  border-radius: 8px;
  color: #687188;
  padding: 16px;
  background: #fbfcff;
}

.lms-assessment-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  align-items: stretch;
}

.lms-assessment-summary>div {
  border: 1px solid #e7ecf5;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.lms-assessment-summary span,
.lms-assessment-summary strong {
  display: block;
}

.lms-assessment-summary span {
  color: #687188;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lms-assessment-summary strong {
  margin-top: 8px;
  color: #1f2a44;
  font-size: 15px;
}

.lms-course-detail-shell {
  height: calc(100vh - 98px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lms-course-detail-container {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lms-course-detail-shell .lms-breadcrumb {
  flex: 0 0 auto;
  margin-bottom: 6px !important;
  padding-top: 8px;
}

.lms-course-detail-shell .lms-workspace-header {
  flex: 0 0 auto;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
}

.lms-course-detail-shell .lms-workspace-title h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.lms-course-detail-shell .lms-workspace-meta {
  gap: 10px;
}

.lms-course-detail-shell .lms-detail-header .lms-actions {
  gap: 8px;
}

.lms-course-detail-shell .lms-detail-header .lms-actions .btn {
  min-height: 36px;
  padding: 8px 14px;
}

.lms-course-detail-shell .lms-workspace-tabs {
  flex: 0 0 auto;
  margin-bottom: 10px;
  border-bottom: 0;
  background: #fff;
  border: 1px solid #e3e9f4;
  border-radius: 8px;
  padding: 5px;
  gap: 5px;
}

.lms-course-detail-shell .lms-tab {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 6px;
  border-bottom: 0;
  color: #65708a;
}

.lms-course-detail-shell .lms-tab.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 14px rgba(48, 69, 119, 0.14);
}

.lms-course-detail-shell .lms-workspace-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lms-course-detail-shell .lms-workspace-body>.lms-form-card {
  height: 100%;
  overflow: hidden;
}

.lms-course-detail-shell .lms-workspace-body>.lms-form-card>.card-body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lms-course-detail-shell .lms-detail-overview {
  height: 100%;
  min-height: 0;
}

.lms-course-detail-shell .lms-overview-grid {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 10px;
}

.lms-course-detail-shell .lms-overview-grid>* {
  min-height: 0;
  height: 100%;
}

.lms-course-detail-shell .lms-overview-main {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.lms-course-detail-shell .lms-overview-main>.lms-form-card {
  flex: 1;
  overflow: hidden;
}

.lms-course-detail-shell .lms-form-card {
  min-height: 0;
  border-radius: 8px;
}

.lms-course-detail-shell .lms-detail-overview .lms-form-card .card-body {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
}

.lms-course-detail-shell .lms-card-head {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.lms-course-detail-shell .lms-section-title {
  font-size: 17px;
}

.lms-course-detail-shell .lms-course-description {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.lms-course-detail-shell .lms-course-description p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lms-course-detail-shell .lms-summary-table {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.lms-course-detail-shell .lms-summary-row {
  padding: 9px 12px;
}

.lms-course-detail-shell .lms-curriculum-list,
.lms-course-detail-shell .lms-readiness-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.lms-course-detail-shell .lms-curriculum-row {
  padding: 9px 10px;
}

.lms-course-detail-shell .lms-readiness-card {
  position: static;
  align-self: start;
  height: auto;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.lms-course-detail-shell .lms-readiness-item {
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .lms-course-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lms-overview-grid {
    grid-template-columns: 1fr;
  }

  .lms-readiness-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .lms-workspace-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .lms-tab {
    white-space: nowrap;
  }

  .lms-assessment-summary {
    grid-template-columns: 1fr;
  }

  .lms-course-stats {
    grid-template-columns: 1fr;
  }

  .lms-summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Mini stats (reports tab) */
.lms-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lms-mini-stat {
  min-width: 110px;
  background: #f8f9fd;
  border: 1px solid #eceef5;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

.lms-mini-val {
  font-size: 24px;
  font-weight: 800;
  color: #1f2a44;
}

.lms-mini-label {
  font-size: 12px;
  color: #8a92a6;
  text-transform: capitalize;
}

/* Quiz builder modal extras */
.lms-quiz-modal {
  max-width: 820px;
  width: 94vw;
}

.lms-quiz-context {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
}

.lms-published-warning {
  display: flex;
  align-items: center;
  background: #fff6e2;
  color: #b9770b;
  border: 1px solid #f6e2b8;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.lms-quiz-option .lms-hint-input {
  font-size: 12px;
  background: #fafbff;
}

.flex-1 {
  flex: 1;
}

/* Version modal */
.lms-version-modal {
  max-width: 460px;
  width: 92vw;
}

.lms-version-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eef0fb;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* ─────────────  Learning content — module list rows  ───────────── */
/* Rows shared by the tree column's module dropzone (.lms-mtree-modzone). */
.lms-mq-item {
  border: 1px solid #eceef5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  background: #fbfbfe;
}

.lms-mq-item:hover {
  border-color: #d7dcec;
}

.lms-mq-item.active {
  border-color: var(--primary-color);
  background: #f3f5fd;
  box-shadow: 0 0 0 1px var(--primary-color) inset;
}

.lms-mq-item.is-dragging {
  opacity: 0.5;
  border-style: dashed;
}

.lms-mq-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.lms-mq-order {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-mq-text {
  min-width: 0;
}

.lms-modnode-content {
  min-width: 0;
  flex: 1 1 auto;
}

.lms-modnode-title {
  display: block;
  width: 100%;
  color: #1f2a44;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-mq-title {
  display: block;
  font-weight: 600;
  color: #1f2a44;
  font-size: 13.5px;
  word-break: break-word;
}

.lms-mq-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.lms-drag-handle {
  color: #c2c8d6;
  cursor: grab;
  width: 14px;
  text-align: center;
}

.btn.btn-xs {
  min-width: auto !important;
  padding: 3px 7px !important;
  font-size: 12px;
  line-height: 1;
  background: transparent;
  color: #6b7287;
  border-radius: 6px;
}

.btn.btn-xs:hover:not(:disabled) {
  background: #eef0f6;
  color: var(--primary-color);
}

.btn.btn-xs:disabled {
  opacity: 0.35;
}

.lms-mq-reorder {
  margin-left: auto;
  display: flex;
}

.lms-empty-right {
  text-align: center;
  color: #9aa1b2;
  padding: 48px 16px;
}

.lms-empty-right i {
  font-size: 28px;
  display: block;
}

/* Inline quiz form */
.lms-quiz-form {}

.lms-quiz-settings {
  margin-bottom: 8px;
}

.lms-save-state {
  font-size: 12px;
  font-weight: 600;
}

.lms-save-state-saved {
  color: #2e9e57;
}

.lms-save-state-saving {
  color: #8a92a6;
}

.lms-save-state-dirty {
  color: #d98b00;
}

/* Question accordion cards */
.lms-q-card {
  border: 1px solid #eceef5;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.lms-q-card.open {
  border-color: #d7dcec;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.08);
}

.lms-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.lms-q-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.lms-q-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-q-preview {
  font-weight: 600;
  color: #1f2a44;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46ch;
}

.lms-q-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lms-q-chip {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.lms-q-body {
  padding: 4px 14px 16px;
  border-top: 1px solid #eef0f6;
}

.lms-q-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.lms-q-action-btn {
  width: 42px;
  height: 42px;
  min-width: 42px !important;
  min-height: 42px;
  padding: 0;
  border: 1px solid #cfd8e8;
  border-radius: 10px;
  background: #f8fafc;
  color: #6b7287;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.lms-q-action-btn:hover:not(:disabled),
.lms-q-action-btn:focus:not(:disabled) {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.lms-q-action-btn:disabled {
  opacity: 0.45;
  background: #f8fafc;
  color: #a8b0c0;
}

.lms-q-action-btn.is-danger {
  color: #df2f3f;
  border-color: #f3c7cd;
}

.lms-q-action-btn.is-danger:hover:not(:disabled),
.lms-q-action-btn.is-danger:focus:not(:disabled) {
  color: #fff;
  background: #df2f3f;
  border-color: #df2f3f;
}

.lms-q-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
}

.lms-q-toggle-input {
  flex: 0 0 auto;
  margin: 0;
}

.lms-q-toggle-label {
  line-height: 1.4;
}

.lms-q-input {
  margin-left: 0 !important;
}

.lms-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lms-quiz-option-rail {
  width: 28px;
  min-width: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
}

.lms-quiz-option-content {
  flex: 1 1 auto;
  min-width: 0;
}

.lms-quiz-option-control {
  flex: 0 0 auto;
  margin: 0;
}

.lms-q-option-remove-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px !important;
  min-height: 32px;
  padding: 0;
  border: 1px solid #f3c7cd;
  border-radius: 7px;
  background: #fff;
  color: #df2f3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.lms-q-option-remove-btn:hover,
.lms-q-option-remove-btn:focus {
  color: #fff;
  background: #df2f3f;
  border-color: #df2f3f;
}

.lms-q-add-option-btn,
.lms-q-marks-col {
  margin-left: 28px;
}

.lms-q-save-row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 0;
}

.lms-q-save-btn {
  min-width: 138px !important;
  min-height: 38px;
  justify-content: center;
}

/* ─────────────  Asset-based content (sections / assets)  ───────────── */

/* Module sub-tabs (Details / Sections / Completion / Support) */
.lms-module-workspace .lms-mw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lms-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #eceef5;
  margin-bottom: 14px;
}

.lms-subtab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7287;
  cursor: pointer;
}

.lms-subtab:hover {
  color: var(--primary-color);
}

.lms-subtab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.lms-subsection-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 8px 0 8px;
}

/* Asset cards */
.lms-asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lms-asset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eceef5;
  border-radius: 10px;
  background: #fbfbfe;
  padding: 10px 12px;
}

.lms-asset-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0fb;
  color: var(--primary-color);
  font-size: 15px;
}

.lms-asset-main {
  flex: 1;
  min-width: 0;
}

.lms-asset-title {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: #1f2a44;
  word-break: break-word;
}

.lms-asset-meta {
  display: block;
  font-size: 11.5px;
  color: #8a92a6;
  text-transform: capitalize;
  margin-top: 1px;
}

.lms-asset-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.lms-asset-upload-btn {
  min-width: auto !important;
}

/* Audience / area fixed slots */
.lms-course-media-row {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 6px;
}

.lms-course-media-row-single {
  grid-template-columns: minmax(260px, 340px);
}

.lms-course-intro-step {
  margin-top: 14px;
}

.lms-course-intro-step .lms-audience-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.lms-intro-step-card {
  border-color: #edf1f7;
  border-radius: 10px;
}

.lms-intro-step-card .card-body {
  padding: 18px 18px 20px;
}

.lms-intro-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.lms-intro-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eeeaff;
  color: #3217db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.lms-intro-step-header h3 {
  color: #07154c;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 4px;
}

.lms-intro-step-header p {
  color: #445173;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.lms-intro-why-box,
.lms-intro-best-practice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 8px;
  padding: 14px 16px;
}

.lms-intro-why-box {
  border: 1px solid #cfe1fb;
  background: #f1f7ff;
  color: #183a77;
}

.lms-intro-best-practice {
  border: 1px solid #d5f0ef;
  background: #f1fbfa;
  color: #173f51;
  margin-top: 18px;
}

.lms-intro-why-box>i {
  color: #2474ff;
  font-size: 18px;
  margin-top: 2px;
}

.lms-intro-best-practice>i {
  color: #19b98b;
  font-size: 18px;
  margin-top: 2px;
}

.lms-intro-why-box strong,
.lms-intro-why-box span,
.lms-intro-best-practice strong,
.lms-intro-best-practice span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.lms-intro-why-box strong,
.lms-intro-best-practice strong {
  color: #07154c;
  margin-bottom: 3px;
}

.lms-intro-video-grid {
  gap: 16px;
}

.lms-intro-video-card {
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-width: 0;
}

.lms-intro-video-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.lms-intro-video-number {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #ebe7ff;
  color: #3217db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.lms-intro-video-title-wrap {
  min-width: 0;
  flex: 1;
}

.lms-intro-video-title {
  color: #07154c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 5px;
}

.lms-intro-video-desc {
  color: #4b5878;
  font-size: 12px;
  line-height: 1.35;
}

.lms-required-badge,
.lms-uploaded-badge {
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
}

.lms-required-badge {
  color: #de3646;
  background: #fff0f2;
}

.lms-uploaded-badge {
  color: #1b9d5b;
  background: #e8f8ef;
  margin-left: auto;
}

.lms-intro-video-preview,
.lms-intro-video-empty {
  aspect-ratio: 16 / 9;
  border: 1px solid #dde5f2;
  border-radius: 7px 7px 0 0;
  background: #eef5fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-intro-video-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111923;
}

.lms-intro-video-empty {
  border-radius: 7px;
  border-style: dashed;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
}

.lms-intro-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e1e7f2;
  border-top: none;
  border-radius: 0 0 7px 7px;
  background: #fff;
  padding: 10px 12px;
}

.lms-intro-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: #172752;
  font-size: 12px;
  font-weight: 700;
}

.lms-intro-file-name i {
  color: #3217db;
  flex: 0 0 auto;
}

.lms-intro-file-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lms-intro-title-input {
  width: 100%;
  max-width: 520px;
  min-height: 30px;
  font-size: 12px;
  font-weight: 700;
}

.lms-intro-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526075;
  font-size: 12px;
  flex: 0 0 auto;
}

.lms-intro-edit-btn,
.lms-intro-save-btn,
.lms-intro-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lms-intro-edit-btn {
  border: 1px solid #dde5f2;
  background: #f8faff;
}

.lms-intro-save-btn {
  border: 1px solid #cdebd9;
  background: #f0fbf5;
  color: #1b9d5b !important;
}

.lms-intro-delete-btn {
  border: 1px solid #ffd9dc;
  background: #fff7f8;
}

.lms-intro-video-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #6c7790;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 12px;
}

.lms-intro-video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lms-intro-video-meta span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  background: #d9e0ee;
  margin-left: 7px;
}

.lms-course-media-panel {
  border: 1px solid #e1e6f1;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

.lms-course-thumbnail-panel {
  max-width: 340px;
}

.lms-course-media-head .lms-section-title {
  margin-bottom: 14px;
}

.lms-file-input {
  display: none;
}

.lms-thumb-uploader {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 16 / 9;
  border: 1px dashed #cfd8ec;
  border-radius: 8px;
  background: #fbfbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lms-thumb-uploader:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 6px 18px rgba(48, 69, 119, 0.08);
}

.lms-thumb-uploader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lms-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #687188;
  text-align: center;
  line-height: 1.35;
}

.lms-upload-placeholder i {
  color: var(--primary-color);
  font-size: 26px;
}

.lms-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 300px;
  margin-top: 12px;
}

.lms-course-media-panel .lms-upload-actions .btn {
  min-width: auto !important;
  flex: 1 1 150px;
}

.lms-upload-file {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #526075;
  font-size: 13px;
  word-break: break-word;
}

.lms-upload-file i {
  color: #299b58;
}

.lms-thumb-modal-img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: contain;
}

.lms-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.lms-audience-slot {
  border: 1px dashed #d7dcec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfe;
  min-width: 0;
}

.lms-audience-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: capitalize;
  margin-bottom: 8px;
}

.lms-audience-preview-card {
  border: 1px solid #e6eaf4;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.lms-audience-preview-media {
  aspect-ratio: 16 / 9;
  background: #111923;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-audience-preview-media video,
.lms-audience-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lms-audience-preview-media .lms-asset-icon {
  width: 54px;
  height: 54px;
}

.lms-audience-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.lms-audience-preview-footer .lms-asset-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lms-audience-preview-footer .lms-asset-actions {
  gap: 6px;
}

.lms-audience-upload-empty {
  min-height: 118px;
  border: 1px dashed #d7dcec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.lms-local-support-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid #bfe7df;
  border-radius: 8px;
  background: #f4fbf9;
  color: #264b55;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.lms-local-support-info i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #008da2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: 0 0 auto;
}

.lms-local-support-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.lms-local-support-card {
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

.lms-local-support-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lms-local-support-number {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e7f5f7;
  color: #00798c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex: 0 0 auto;
}

.lms-local-support-title-wrap {
  min-width: 0;
  flex: 1;
}

.lms-local-support-title {
  color: #07154c;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 5px;
}

.lms-local-support-desc {
  color: #56627a;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.lms-local-support-badge {
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
}

.lms-local-support-badge.is-uploaded {
  color: #18764c;
  background: #e8f8ef;
}

.lms-local-support-badge.is-needed {
  color: #9b5d13;
  background: #fff6e8;
}

.lms-local-support-file {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid #e2e8f3;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
  min-width: 0;
}

.lms-local-support-file-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fff1f1;
  color: #d33f49;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
}

.lms-local-support-file-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.lms-local-support-file-main strong {
  color: #14234f;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-local-support-file-main span {
  color: #67738d;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.lms-local-support-title-input {
  min-height: 31px;
  font-size: 12px;
  font-weight: 700;
}

.lms-local-support-file-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.lms-local-support-action-btn,
.lms-local-support-save-btn,
.lms-local-support-delete-btn {
  width: 31px;
  height: 31px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lms-local-support-action-btn {
  border: 1px solid #dce4f0;
  background: #fff;
  color: #314166;
}

.lms-local-support-save-btn {
  border: 1px solid #cdebd9;
  background: #f0fbf5;
  color: #1b9d5b !important;
}

.lms-local-support-delete-btn {
  border: 1px solid #ffd9dc;
  background: #fff7f8;
}

.lms-local-support-empty {
  min-height: 172px;
  border: 1.5px dashed #cbd6e7;
  border-radius: 8px;
  background: #fbfcff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
}

.lms-local-support-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #eef7f8;
  color: #008da2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.lms-local-support-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lms-local-support-empty-copy strong {
  color: #14234f;
  font-size: 14px;
  font-weight: 900;
}

.lms-local-support-empty-copy span {
  color: #6a748b;
  font-size: 12px;
  font-weight: 700;
}

.lms-local-support-empty .lms-asset-upload-btn {
  width: auto;
  min-width: 172px !important;
  min-height: 42px;
  border: none;
  border-radius: 7px;
  background: var(--secondary-color);
  color: #fff;
  font-weight: 800;
  text-transform: none;
}

.lms-local-support-empty .lms-asset-upload-btn:hover {
  color: #fff;
  background: var(--secondary-color);
}

.lms-key-tips-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lms-key-tips-card {
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

.lms-key-tips-card .lms-local-support-file {
  max-width: 720px;
}

.lms-key-tips-card-wrap .lms-part-asset-actions {
  margin-top: 0;
}

.lms-intro-locked {
  border: 1px dashed #d7dcec;
  border-radius: 8px;
  padding: 20px 16px;
  background: #fbfbfe;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 991.98px) {
  .lms-course-media-row {
    grid-template-columns: 1fr;
  }
}

/* Section accordions */
.lms-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lms-section-card {
  border: 1px solid #eceef5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.lms-section-card.open {
  border-color: #d7dcec;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.08);
}

.lms-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.lms-section-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lms-part-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary-color);
  border-radius: 6px;
  padding: 3px 9px;
}

.lms-section-title-txt {
  font-weight: 600;
  font-size: 13.5px;
  color: #1f2a44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38ch;
}

.lms-section-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lms-section-body {
  padding: 4px 14px 16px;
  border-top: 1px solid #eef0f6;
}

.lms-section-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 6px;
}

/* ─────────────  Learner preview  ───────────── */
.lms-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff6e2;
  color: #8a5a00;
  border: 1px solid #f3e2b8;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.lms-preview-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lms-preview-persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #eadfbf;
  border-radius: 20px;
  padding: 2px 6px 2px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6b5414;
}

.lms-preview-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.lms-preview-progress-bar {
  flex: 1;
  height: 8px;
  background: #eef0f6;
  border-radius: 6px;
  overflow: hidden;
}

.lms-preview-progress-bar>span {
  display: block;
  height: 100%;
  background: var(--primary-color);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.lms-preview-progress-label {
  font-size: 12.5px;
  color: #5a6276;
  white-space: nowrap;
}

.lms-preview-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1000px) {
  .lms-preview-shell {
    grid-template-columns: 1fr;
  }

  .lms-preview-tree {
    max-height: none;
    position: static;
  }

  .lms-preview-tree-head {
    position: static;
  }
}

/* Content tree */
.lms-preview-tree {
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(48, 69, 119, 0.06);
  max-height: calc(100vh - 190px);
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  top: 12px;
  scrollbar-gutter: stable;
}

.lms-preview-tree-head {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 1px solid #eef0f6;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.lms-preview-tree-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #9aa1b2;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.lms-preview-tree-module:hover,
.lms-preview-tree-module.is-open {
  color: #758094;
}

.lms-preview-module-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-preview-module-chevron {
  flex: 0 0 auto;
  color: #a4acbc;
  font-size: 10px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lms-preview-tree-module.is-open .lms-preview-module-chevron {
  color: #758094;
  transform: rotate(180deg);
}

.lms-preview-module-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.lms-preview-tree-module-group.is-open .lms-preview-module-panel {
  grid-template-rows: 1fr;
}

.lms-preview-module-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.lms-preview-tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 14px 8px 22px;
  font-size: 13px;
  color: #3a4257;
  cursor: pointer;
}

.lms-preview-part-header {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) 12px;
}

.lms-preview-part-chevron {
  color: #a4acbc;
  font-size: 10px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lms-preview-part-group.is-open .lms-preview-part-chevron {
  color: #758094;
  transform: rotate(180deg);
}

.lms-preview-part-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.lms-preview-part-group.is-open .lms-preview-part-panel {
  grid-template-rows: 1fr;
}

.lms-preview-part-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.lms-preview-resource-node {
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 14px 6px 48px;
  color: #5f697c;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  text-align: left;
}

.lms-preview-resource-node:hover {
  background: #f4f6fc;
}

.lms-preview-resource-node.active {
  color: var(--primary-color);
  background: #f8f9fe;
}

.lms-preview-resource-rail {
  width: 1px;
  height: 100%;
  min-height: 18px;
  background: #dbe2ef;
  justify-self: center;
}

.lms-preview-resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a92a6;
  font-size: 11px;
}

.lms-preview-resource-node.active .lms-preview-resource-icon {
  color: var(--primary-color);
}

.lms-preview-resource-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-preview-tree-node.standalone {
  padding-left: 14px;
  font-weight: 600;
}

.lms-preview-tree-node:hover {
  background: #f4f6fc;
}

.lms-preview-tree-node.active {
  background: #eef0fb;
  color: var(--primary-color);
  font-weight: 600;
}

.lms-preview-tick {
  flex: 0 0 auto;
  font-size: 13px;
}

.lms-preview-dot {
  color: #cfd5e3;
  font-size: 8px;
}

.lms-preview-node-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stage */
.lms-preview-stage {
  min-width: 0;
}

.lms-preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Asset rendering */
.lms-preview-asset {
  margin-bottom: 18px;
}

.lms-preview-asset-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lms-preview-video,
.lms-preview-image {
  width: 100%;
  max-height: 460px;
  border-radius: 10px;
  background: #000;
}

.lms-preview-image {
  object-fit: contain;
  background: #f4f6fc;
}

.lms-pdf-viewer-shell {
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #f7f9fc;
  overflow: hidden;
}

.lms-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid #e4eaf3;
}

.lms-pdf-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lms-pdf-toolbar-title>div {
  min-width: 0;
}

.lms-pdf-toolbar-title strong,
.lms-pdf-toolbar-title .modal-title {
  display: block;
  margin: 0;
  color: #17243c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-pdf-toolbar-title span:not(.lms-pdf-toolbar-icon) {
  display: block;
  margin-top: 2px;
  color: #687386;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.lms-pdf-toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffd7d2;
  border-radius: 9px;
  font-size: 14px;
}

.lms-pdf-toolbar-actions,
.lms-preview-pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lms-pdf-tool-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d9e1ee;
  border-radius: 7px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.lms-pdf-tool-btn:hover,
.lms-pdf-tool-btn:focus {
  color: var(--primary-color);
  background: #f3f5fd;
  border-color: #cdd5e5;
  outline: none;
  text-decoration: none;
}

.lms-pdf-tool-btn.disabled,
.lms-pdf-tool-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.lms-pdf-tool-btn-fullscreen {
  color: var(--primary-color);
  border-color: #cdd5e5;
  background: #f3f5fd;
}

.lms-pdf-tool-btn-fullscreen:hover,
.lms-pdf-tool-btn-fullscreen:focus {
  color: #ffffff;
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.lms-pdf-embed-container {
  width: 100%;
  height: clamp(520px, 72vh, 820px);
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background: #e9eef6;
}

.lms-pdf-embed-container iframe,
.lms-preview-pdf-modal-body iframe {
  display: block;
  border: 0;
}

.lms-pdf-embed-container .lms-preview-missing {
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-preview-pdf {
  width: 100%;
  height: 520px;
  border: 1px solid #eceef5;
  border-radius: 10px;
}

.lms-preview-doc-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.lms-preview-pdf-modal {
  display: block;
  background: rgba(15, 23, 42, 0.78);
  z-index: 1050;
  backdrop-filter: blur(4px);
}

.lms-preview-pdf-dialog {
  max-width: min(1180px, 96vw);
  height: 92vh;
}

.lms-preview-pdf-content {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.lms-preview-pdf-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e4eaf3;
}

.lms-preview-pdf-modal-body {
  height: calc(100% - 59px);
  background: #e9eef6;
}

.lms-preview-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #d9e1ee;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
}

.lms-preview-modal-close:hover {
  color: #1d2939;
  background: #eef2f7;
}

.lms-preview-missing {
  padding: 24px;
  text-align: center;
  color: #9aa1b2;
  background: #f4f6fc;
  border-radius: 10px;
}

/* .lms-preview-section-quiz {
  border-top: 1px dashed #eceef5;
  padding-top: 12px;
} */

/* Preview quiz runner */
.lms-preview-qcount {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
}

.lms-preview-qtext {
  font-size: 16px;
  font-weight: 600;
  color: #1f2a44;
  margin: 4px 0 6px;
}

.lms-preview-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lms-preview-option {
  display: flex;
  align-items: center;
  border: 1.5px solid #dde1ed;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}

.lms-preview-option:hover {
  border-color: #c2c8da;
}

.lms-preview-option.selected {
  border-color: var(--primary-color);
  background: #f3f5fd;
}

.lms-preview-result {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.lms-preview-result.pass {
  background: #e8f7ee;
}

.lms-preview-result.fail {
  background: #fdecec;
}

.lms-preview-result-score {
  font-size: 32px;
  font-weight: 800;
  color: #1f2a44;
}

.lms-preview-result-label {
  font-weight: 700;
  color: #1f2a44;
}

.lms-preview-result-sub {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
}

.lms-preview-feedback-row {
  display: flex;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13.5px;
}

.lms-preview-fq {
  color: #3a4257;
}

/* Persona modal */
.lms-persona-modal {
  max-width: 520px;
  width: min(92vw, 520px);
}

.lms-persona-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lms-persona-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  min-height: 84px;
  border: 1.5px solid #d7deef;
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.lms-persona-option:hover {
  border-color: #b9c7e8;
  background: #f8faff;
}

.lms-persona-option input {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--primary-color);
}

.lms-persona-option-label {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: inherit;
}

.lms-persona-option.selected {
  border-color: var(--primary-color);
  background: #f3f6ff;
  color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(61, 84, 148, 0.08);
}

/* ───────────────────── Super-admin — Learning feature fields ───────────────────── */
.lms-org-fields {
  margin-top: 4px;
}

.lms-org-fields-inner {
  border: 1px solid #e6eef1;
  border-radius: 8px;
  padding: 12px 12px 4px;
  margin-top: 6px;
  background: #fafcfd;
}

.lms-org-preview {
  font-size: 12px;
  color: #7a8a93;
  margin-top: 4px;
  word-break: break-all;
}

.lms-org-preview .ok {
  color: #1c8c5b;
  font-weight: 600;
}

/* approved-domains chips */
.lms-chip-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  height: auto;
  padding: 6px 8px;
}

.lms-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf6fb;
  color: #0b5e73;
  border-radius: 14px;
  padding: 2px 6px 2px 10px;
  font-size: 12px;
  line-height: 1.6;
}

.lms-chip-x {
  border: none;
  background: transparent;
  color: #0b5e73;
  cursor: pointer;
  padding: 0 2px;
  font-size: 11px;
}

.lms-chip-field {
  border: none;
  outline: none;
  flex: 1 1 120px;
  min-width: 120px;
  background: transparent;
  font-size: 13px;
}

/* org-list badge + learner-url link */
.lms-badge {
  display: inline-block;
  background: #1c8c5b;
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.lms-org-link {
  font-size: 11px;
  color: #2c7fb8;
  margin-top: 2px;
}

/* Inline toggle rows: text label on the left, switch on the right (org forms).
   These sit inside a Bootstrap `.row` (a flex container); force each to a full
   row so they always stack (never collapse to content-width side-by-side). */
.toggle-row {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.toggle-row .form-own-label {
  margin-bottom: 0;
}

.toggle-row .toggle-label {
  flex: 0 0 auto;
}

/* course workspace — thumbnail preview in Settings/details */
.lms-thumb-preview {
  display: block;
  max-width: 100%;
  max-height: 90px;
  border-radius: 6px;
  border: 1px solid #e6eef1;
  object-fit: cover;
}

/* LMS Settings — district management */
.lms-district-add {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lms-district-add .form-control {
  flex: 1 1 160px;
  height: 42px;
}

.lms-district-add .btn {
  flex: 0 0 auto;
}

.lms-district-filter {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.lms-district-del {
  color: #c0392b;
  background: transparent;
  border: none;
}

.lms-district-del:hover {
  color: #922b21;
}

/* asset list — preview thumbnails */
.lms-asset-thumb {
  position: relative;
  width: 74px;
  height: 48px;
  flex: 0 0 74px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1720;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-asset-thumb img,
.lms-asset-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lms-asset-thumb-play {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ── tree-wise module editor ── */
.lms-mtree {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.lms-mtree.is-empty {
  align-items: stretch;
}

.lms-mtree-nav {
  flex: 0 0 340px;
  width: 340px;
  background: #fff;
  border: 1px solid #e4e9f3;
  border-radius: 8px;
  padding: 16px;
  align-self: stretch;
  box-shadow: 0 8px 22px rgba(48, 69, 119, 0.06);
}

.lms-mtree:not(.is-empty) .lms-mtree-nav {
  flex-basis: 300px;
  width: 300px;
  border-radius: 8px;
  padding: 20px 16px;
}

.lms-mtree.is-empty .lms-mtree-nav {
  flex-basis: 360px;
  width: 360px;
  border-radius: 10px;
  padding: 26px;
}

/* In the narrow tree panel, let a squeezed asset row wrap its action cluster
   below the title instead of crushing the title to a few pixels. */
.lms-mtree-panel .lms-asset-card {
  flex-wrap: wrap;
}

.lms-mtree-panel .lms-asset-main {
  flex: 1 1 140px;
}

/* Module switcher at the top of the tree column */
.lms-mtree-modhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 14px;
}

.lms-mtree-modhead-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.lms-mtree-modhead-icon {
  color: var(--primary-color);
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.lms-mtree-modhead-label {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #23188a;
  text-transform: none;
  letter-spacing: 0;
}

.lms-mtree-modhead-count {
  display: block;
  margin-top: 10px;
  color: #66708f;
  font-size: 13px;
  font-weight: 600;
}

/* Module drag-and-drop reorder zone — each module expands to reveal its
   element sequence nested inside its own card. */
.lms-mtree-modzone {
  padding: 8px;
  margin-bottom: 4px;
  border: 1px dashed #d8dfef;
  border-radius: 8px;
  background: #fbfcff;
  transition: border-color 0.15s, background 0.15s;
}

.lms-mtree:not(.is-empty) .lms-mtree-modzone {
  padding: 8px;
  border-color: #b8c7f0;
  background: #fff;
}

.lms-mtree.is-empty .lms-mtree-modzone {
  border: none;
  border-top: 1px dashed #d8dfef;
  border-radius: 0;
  background: transparent;
  padding: 28px 0 0;
  margin-top: 6px;
}

.lms-module-empty-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #0b1045;
  padding: 10px 8px 28px;
}

.lms-module-empty-illustration {
  position: relative;
  width: 250px;
  max-width: 100%;
  height: 150px;
  margin: 0 auto 18px;
  color: #6c56ee;
}

.lms-module-empty-illustration::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: #9a8dff;
}

.lms-module-empty-illustration::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 32px;
  bottom: 18px;
  height: 76px;
  background:
    radial-gradient(circle at 14% 18%, #cfc7ff 0 4px, transparent 5px),
    radial-gradient(circle at 92% 8%, #cfc7ff 0 5px, transparent 6px),
    linear-gradient(135deg, rgba(102, 86, 238, 0.13), rgba(15, 180, 194, 0.08));
  border-radius: 44px 44px 18px 18px;
}

.lms-module-empty-doc {
  position: absolute;
  z-index: 1;
  left: 82px;
  bottom: 24px;
  width: 80px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  color: #b7acef;
  box-shadow: 0 14px 28px rgba(79, 60, 183, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}

.lms-module-empty-doc::after {
  content: "";
  position: absolute;
  left: 25px;
  right: 22px;
  top: 43px;
  height: 18px;
  border-top: 3px solid #cfc7ff;
  border-bottom: 3px solid #cfc7ff;
}

.lms-module-empty-plus {
  position: absolute;
  z-index: 2;
  right: 46px;
  bottom: 16px;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7358f4, #4d35df);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 14px 24px rgba(77, 53, 223, 0.24);
}

.lms-module-empty-side h4 {
  color: #090d45;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

.lms-module-empty-side p {
  color: #10184f;
  font-size: 15px;
  line-height: 1.5;
  max-width: 270px;
  margin: 0 auto 24px;
}

.lms-module-empty-create {
  min-width: 210px !important;
  background: #fff;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  justify-content: center;
}

.lms-draft-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #145bff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 14px;
}

.lms-panel-draft-pill {
  margin-left: auto;
}

.lms-panel-draft-pill i {
  font-size: 8px;
}

.lms-module-more-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 14px 30px;
}

.lms-module-more-illustration {
  position: relative;
  width: 250px;
  max-width: 100%;
  height: 170px;
  margin: 0 auto 18px;
}

.lms-module-more-illustration::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 3px;
  border-radius: 999px;
  background: #9eb4f8;
}

.lms-module-more-illustration::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 18px;
  bottom: 22px;
  height: 100px;
  border-radius: 60px 60px 18px 18px;
  background:
    radial-gradient(circle at 12% 58%, #cce0ff 0 10px, transparent 11px),
    linear-gradient(135deg, rgba(82, 140, 243, 0.14), rgba(15, 180, 194, 0.08));
}

.lms-module-more-book {
  position: absolute;
  z-index: 1;
  left: 62px;
  bottom: 28px;
  width: 72px;
  height: 88px;
  border-radius: 8px;
  background: #fff;
  color: #7d8df7;
  box-shadow: 0 12px 28px rgba(67, 92, 170, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.lms-module-more-lines {
  position: absolute;
  z-index: 1;
  right: 54px;
  bottom: 28px;
  width: 72px;
  height: 92px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(67, 92, 170, 0.14);
}

.lms-module-more-lines::before,
.lms-module-more-lines::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 14px;
  height: 3px;
  border-radius: 999px;
  background: #bdc9ff;
}

.lms-module-more-lines::before {
  top: 28px;
  box-shadow: 0 16px 0 #bdc9ff;
}

.lms-module-more-lines::after {
  top: 60px;
  right: 26px;
}

.lms-module-more-side h4 {
  color: #090d45;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.lms-module-more-side p {
  color: #25305d;
  font-size: 16px;
  line-height: 1.45;
  max-width: 270px;
  margin: 0;
}

.lms-mtree-modzone.is-dragging {
  border-color: var(--secondary-color);
  background: #f0fbfd;
}

.lms-mtree-modzone .lms-mq-item {
  padding: 0;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 8px;
}

.lms-mtree-modzone .lms-mq-item:last-of-type {
  margin-bottom: 0;
}

/* Insertion indicator on the card a dragged module will drop onto */
.lms-mtree-modzone .lms-mq-item.is-over {
  border-color: var(--secondary-color);
  box-shadow: 0 -2px 0 var(--secondary-color) inset;
}

.lms-mtree-modzone-hint {
  margin: 8px 2px 2px;
  font-size: 10.5px;
  color: #9aa3b2;
  text-align: center;
  user-select: none;
}

/* Module card header (draggable, selects the module) */
.lms-modnode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 14px;
  cursor: pointer;
}

.lms-modnode.active>.lms-modnode-head {
  border-bottom: 1px solid #e4e9f5;
  background: #f5f7ff;
}

.lms-mtree:not(.is-empty) .lms-modnode.active {
  border: 1.5px solid #2b5bd7;
  box-shadow: 0 8px 18px rgba(43, 91, 215, 0.1);
}

.lms-mtree:not(.is-empty) .lms-modnode.active>.lms-modnode-head {
  background: #f8fbff;
  border-bottom: 1px solid #dfe7f8;
  padding: 14px;
}

.lms-modnode-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

.lms-mtree:not(.is-empty) .lms-modnode.active .lms-mq-order {
  background: #273f78;
  color: #fff;
}

.lms-mtree:not(.is-empty) .lms-modnode-tools .btn.btn-xs {
  width: 28px;
  height: 28px;
  border: 1px solid #cfd8e8;
  border-radius: 7px;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lms-mtree:not(.is-empty) .lms-modnode-tools .btn.text-danger {
  border: none;
  background: transparent;
}

/* Nested element sequence inside the selected module */
.lms-mtree-modbody {
  padding: 10px 10px 12px;
  background: #fff;
  cursor: default;
}

.lms-mtree:not(.is-empty) .lms-mtree-modbody {
  padding: 10px 10px 12px;
}

.lms-mtree-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #43525d;
  margin: 3px 0;
}

.lms-mtree-item:hover {
  background: #f1f5f7;
}

.lms-mtree-item.active {
  background: #eaf1fb;
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--primary-color);
}

.lms-mtree:not(.is-empty) .lms-mtree-item.active {
  background: #e8eef8;
  color: #203c79;
  box-shadow: inset 4px 0 0 #273f78;
}

.lms-mtree-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7edf1;
  color: #5c6b78;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lms-mtree-item.active .lms-mtree-num {
  background: var(--primary-color);
  color: #fff;
}

.lms-mtree:not(.is-empty) .lms-mtree-item.active .lms-mtree-num {
  background: #273f78;
}

.lms-mtree-icon {
  font-size: 13px;
  color: #9fb0bb;
  width: 16px;
  text-align: center;
}

.lms-mtree-item.active .lms-mtree-icon {
  color: var(--primary-color);
}

.lms-mtree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-tree-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  line-height: 1;
}

.lms-tree-status.is-ok {
  color: #2fa363;
}

.lms-tree-status.is-warning {
  color: #e49b0f;
}

.lms-mtree-item-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--secondary-color);
  border-radius: 6px;
  background: #fff;
  color: #0b8fa2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
}

.lms-mtree-item-action:hover {
  background: #effcff;
}

.lms-mtree-caret {
  font-size: 10px;
  color: #aab4bd;
  padding: 3px;
}

.lms-mtree-children {
  margin: 2px 0 6px 24px;
  padding-left: 12px;
  border-left: 1px solid #eef2f4;
}

.lms-mtree-child {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12px;
  color: #6a7681;
}

.lms-mtree-child:hover {
  background: #f4f7f8;
  color: #43525d;
}

.lms-mtree-child.active {
  background: #eaf1fb;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary-color);
}

.lms-mtree-child.active .lms-mtree-child-icon,
.lms-mtree-child.active .lms-mtree-child-num {
  color: var(--primary-color);
}

.lms-mtree-child-num {
  font-size: 10px;
  color: #aab4bd;
  font-weight: 600;
  flex: 0 0 auto;
}

.lms-mtree-child-icon {
  font-size: 11px;
  color: #b3bec8;
  width: 14px;
  text-align: center;
}

.lms-mtree-child-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-mtree-add {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.lms-mtree:not(.is-empty) .lms-mtree-add {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  min-height: 42px;
}

.lms-mtree-panel {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4e9f3;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(48, 69, 119, 0.06);
}

.lms-mtree-panel.is-module-introduction {
  padding: 22px 24px 24px;
  min-height: 430px;
}

.lms-mtree.is-empty .lms-mtree-panel {
  border-radius: 10px;
  padding: 32px;
  min-height: 515px;
}

.lms-module-empty-stage {
  min-height: 455px;
  border: 1px dashed #cbd5e8;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}

.lms-module-empty-stage-inner {
  max-width: 590px;
  color: #0b1045;
}

.lms-module-empty-stage-icon {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #ebe7ff;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 18px;
}

.lms-module-empty-stage h3 {
  color: #090d45;
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 12px;
}

.lms-module-empty-stage p {
  color: #202b5c;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 auto 24px;
  max-width: 600px;
}

.lms-module-empty-stage-btn {
  min-width: 180px !important;
  min-height: 48px;
  justify-content: center;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.lms-module-empty-stage-hint {
  position: relative;
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  color: #31415f;
  font-size: 13px;
}

.lms-module-empty-stage-hint::before {
  content: "\f062";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: -36px;
  top: -30px;
  color: #159bb4;
  font-size: 24px;
  transform: rotate(-34deg);
}

.lms-mtree-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eef2f4;
}

.lms-mtree-panel-head.is-module-header {
  align-items: center;
  gap: 18px;
  padding: 18px 0 20px;
}

.lms-mtree-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.lms-mtree-panel-heading>div {
  min-width: 0;
}

.lms-mtree-panel-head.is-module-header .lms-mtree-panel-heading {
  align-items: center;
}

.lms-mtree-panel-head.is-module-header .lms-mtree-panel-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 18px;
}

.lms-mtree-panel-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3fb;
  color: var(--primary-color);
  font-size: 16px;
}

.lms-mtree-panel.is-module-introduction .lms-mtree-panel-icon {
  background: #edf3ff;
  color: #273f78;
}

.lms-mtree-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lms-mtree-panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.lms-module-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.lms-module-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d9e2f0;
  border-radius: 7px;
  background: #fff;
  color: #304577;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 13px;
}

.lms-module-header-action:hover,
.lms-module-header-action:focus {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.lms-module-header-action.is-danger {
  color: #df2f3f;
  border-color: #f3c7cd;
}

.lms-module-header-action.is-danger:hover,
.lms-module-header-action.is-danger:focus {
  color: #fff;
  background: #df2f3f;
  border-color: #df2f3f;
}

.lms-panel-title-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  min-width: 30px !important;
  min-height: 30px;
  border: 1px solid #d9e2f0;
  border-radius: 7px;
  background: #fff;
  color: #304577;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  line-height: 1;
}

.lms-panel-title-edit-btn:hover,
.lms-panel-title-edit-btn:focus {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.lms-panel-title-delete-btn {
  width: 34px;
  height: 34px;
  min-width: 34px !important;
  min-height: 34px;
  border-radius: 10px;
  color: #d63b4b;
  border-color: #f1c4cb;
  background: #fff6f7;
  box-shadow: 0 1px 2px rgba(214, 59, 75, 0.08);
}

.lms-panel-title-delete-btn:hover,
.lms-panel-title-delete-btn:focus {
  color: #fff;
  background: #d63b4b;
  border-color: #d63b4b;
  box-shadow: 0 6px 14px rgba(214, 59, 75, 0.2);
}

.lms-mtree-panel.is-module-introduction .lms-mtree-panel-title {
  color: #273f78;
  font-size: 18px;
  font-weight: 800;
}

.lms-mtree-panel-subtitle {
  margin: 4px 0 0;
  color: #687188;
  font-size: 13px;
  line-height: 1.4;
}

.lms-module-editor .row.form-own {
  margin-left: 0;
  margin-right: 0;
}

.lms-module-editor .form-own-group {
  padding-left: 0;
  padding-right: 0;
}

.lms-module-editor-field {
  position: relative;
}

.lms-module-editor-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lms-module-editor-label-row .form-own-label {
  margin-bottom: 0;
  color: #07154c;
  font-size: 15px;
  font-weight: 800;
}

.lms-module-editor-label-row .fa-info-circle {
  color: #7c879d;
  font-size: 13px;
}

.lms-module-editor-input {
  height: 54px;
  border: 1.5px solid #dfe5ef;
  border-radius: 14px;
  color: #16254b;
  font-size: 15px;
  padding: 0 18px;
}

.lms-module-editor.is-edit .lms-module-editor-input {
  height: 46px;
  border-radius: 24px;
}

.lms-module-editor-input::placeholder {
  color: #8c97ad;
}

.lms-module-editor-input:focus {
  border-color: #b9c7e6;
  box-shadow: 0 0 0 3px rgba(48, 69, 119, 0.08);
}

.lms-module-editor-count {
  display: block;
  text-align: right;
  color: #64708b;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.lms-module-editor .form-own-group {
  margin-bottom: 14px;
}

.lms-module-editor-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.lms-module-editor.is-new .lms-module-editor-actions {
  margin-top: 16px;
}

.lms-module-editor.is-new .secondary-btn {
  min-width: 180px;
  min-height: 46px;
  justify-content: center;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.lms-module-editor.is-edit .lms-module-save-btn {
  min-width: 150px !important;
  min-height: 40px;
  justify-content: center;
  /* background: var(--secondary-color); */
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.lms-module-editor.is-edit .lms-module-next-btn {
  min-width: 245px !important;
  min-height: 40px;
  justify-content: center;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.lms-mtree-toolbar {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.lms-mtree-toolbar .btn.btn-xs {
  width: 32px;
  height: 32px;
  border: 1px solid #e1e6f0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lms-mtree-toolbar .btn.btn-xs:hover:not(:disabled) {
  background: #eef4fb;
}

.lms-mtree-panel .lms-subsection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  color: var(--primary-color);
  font-size: 14px;
}

.lms-mtree-panel .lms-subsection-title:first-child {
  margin-top: 0;
}

.lms-mtree-panel .lms-asset-list,
.lms-mtree-panel .lms-quiz-settings {
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
}

.lms-mtree-panel .lms-asset-list .text-muted {
  margin: 0;
  padding: 10px 0;
}

.lms-mtree-panel .lms-asset-upload-btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
}

.lms-part-asset-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lms-part-asset-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: -72px;
  min-height: 52px;
}

.lms-part-asset-actions .lms-asset-upload-btn,
.lms-part-asset-empty .lms-asset-upload-btn {
  width: auto;
  min-width: 174px !important;
  min-height: 44px;
  border: none;
  border-radius: 7px;
  background: var(--secondary-color);
  color: #fff;
  /* box-shadow: 0 8px 18px rgba(0, 141, 162, 0.18); */
  font-weight: 800;
  text-transform: none;
}

.lms-part-asset-actions .lms-asset-upload-btn:hover,
.lms-part-asset-empty .lms-asset-upload-btn:hover {
  color: #fff;
  background: var(--secondary-color);
}

.lms-part-reorder-btn {
  min-width: 122px;
  min-height: 44px;
  border: 1px solid #bcd5ff;
  border-radius: 7px;
  background: #fff;
  color: #1b67d1;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(34, 76, 150, 0.06);
}

.lms-part-reorder-btn:disabled {
  opacity: 1;
  color: #1b67d1;
  background: #fff;
}

.lms-part-asset-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border: 1px solid #a9cafe;
  border-radius: 7px;
  background: #f8fbff;
  color: #2d3c76;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
}

.lms-part-asset-info i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2b74e4;
  font-size: 12px;
  flex: 0 0 auto;
}

.lms-part-asset-empty {
  min-height: 390px;
  border: 1.5px dashed #c7d2e7;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  color: #10164d;
}

.lms-part-empty-art {
  position: relative;
  width: 208px;
  height: 132px;
  margin-bottom: 16px;
}

.lms-part-empty-art::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ada7ef;
}

.lms-part-empty-art::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 36px;
  bottom: 16px;
  height: 92px;
  border-radius: 48px 48px 18px 18px;
  background:
    radial-gradient(circle at 8% 28%, #9b8ff0 0 4px, transparent 5px),
    radial-gradient(circle at 92% 14%, #c5bcff 0 5px, transparent 6px),
    linear-gradient(135deg, rgba(130, 111, 239, 0.14), rgba(0, 187, 207, 0.06));
}

.lms-part-empty-cloud {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 76px;
  width: 58px;
  height: 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, #9f8cf2, #7765e9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 18px rgba(99, 78, 221, 0.22);
}

.lms-part-empty-frame {
  position: absolute;
  z-index: 2;
  left: 60px;
  bottom: 18px;
  width: 72px;
  height: 58px;
  border: 6px solid #9c8def;
  border-top-width: 10px;
  background: #f7f5ff;
  color: #7e6deb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.lms-part-empty-plant {
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 18px;
  width: 34px;
  height: 76px;
  border-bottom: 2px solid #a49aed;
}

.lms-part-empty-plant::before,
.lms-part-empty-plant::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 26px;
  border-radius: 14px 14px 2px 14px;
  background: #b6adf1;
}

.lms-part-empty-plant::before {
  right: 16px;
  top: 20px;
  transform: rotate(-38deg);
}

.lms-part-empty-plant::after {
  right: 0;
  top: 38px;
  transform: rotate(38deg);
}

.lms-part-asset-empty h4 {
  color: #10164d;
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 8px;
}

.lms-part-asset-empty p {
  color: #5f668d;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 22px;
}

.lms-part-asset-empty small {
  color: #687092;
  font-size: 12px;
  font-weight: 800;
  margin-top: 18px;
}

.lms-part-asset-cards {
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lms-part-asset-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lms-part-upload-success {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border: 1px solid #b8dfc8;
  border-radius: 7px;
  background: #fbfffc;
  color: #0d633a;
  padding: 12px 16px;
}

.lms-part-upload-success>i {
  color: #21975b;
  font-size: 18px;
  flex: 0 0 auto;
}

.lms-part-upload-success>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.lms-part-upload-success strong {
  font-size: 13px;
  font-weight: 900;
}

.lms-part-upload-success span {
  color: #285c48;
  font-size: 12px;
  font-weight: 700;
}

.lms-part-upload-success-close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: #4c556f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lms-part-upload-count {
  color: #10164d;
  font-size: 14px;
  font-weight: 900;
  margin: 2px 0 -4px;
}

.lms-part-asset-table {
  overflow-x: auto;
  border-top: 1px solid #e6ebf5;
}

.lms-part-asset-table-head,
.lms-part-asset-table-row {
  display: grid;
  grid-template-columns: 44px 104px minmax(260px, 1fr) 128px 96px;
  align-items: center;
  column-gap: 12px;
  min-width: 690px;
  padding: 13px 4px;
}

.lms-part-asset-table-head {
  min-height: 42px;
  color: #4d557b;
  font-size: 11px;
  font-weight: 900;
  border-bottom: 1px solid #e6ebf5;
}

.lms-part-asset-table-row {
  min-height: 78px;
  color: #172052;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #edf1f7;
}

.lms-part-asset-table-row[draggable="true"] {
  cursor: grab;
}

.lms-part-asset-table-row.is-dragging {
  background: #f4f8ff;
  opacity: 0.72;
}

.lms-part-row-order {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #172052;
}

.lms-part-row-order i {
  color: #8f9abb;
  font-size: 13px;
}

.lms-part-row-thumb {
  position: relative;
  width: 88px;
  height: 52px;
  border-radius: 5px;
  overflow: hidden;
  background: #eef1f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4034bf;
  font-size: 22px;
}

.lms-part-row-thumb video,
.lms-part-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lms-part-thumb-duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  border-radius: 3px;
  background: rgba(6, 11, 34, 0.82);
  color: #fff;
  padding: 2px 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.lms-part-row-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lms-part-row-title strong {
  color: #10164d;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-part-row-title small {
  color: #536083;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-part-title-input {
  border-color: #dbe3ef;
  color: #10164d;
  font-size: 12px;
  font-weight: 800;
  min-height: 36px;
}

.lms-part-title-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(8, 187, 207, 0.12);
}

.lms-part-row-date {
  white-space: pre-line;
  line-height: 1.5;
}

.lms-part-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  border-radius: 999px;
  background: #def5e6;
  color: #08763c;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
}

.lms-part-status-pill i {
  font-size: 7px;
}

.lms-part-row-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.lms-part-row-actions .btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid #c5b9ff;
  border-radius: 6px;
  background: #fff;
  color: #4333ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lms-part-row-actions .text-danger {
  border-color: #ffb7c7;
  color: #e74b66 !important;
}

.lms-part-row-actions .lms-part-save-btn {
  border-color: #cdebd9;
  background: #f0fbf5;
  color: #1b9d5b;
}

.lms-part-row-actions .lms-part-edit-btn {
  border-color: #dbe3ef;
  background: #f8faff;
}

.lms-upload-progress {
  background: #e8eef7;
  border-radius: 999px;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  width: 100%;
}

.lms-upload-progress span {
  background: var(--secondary-color);
  display: block;
  height: 100%;
  transition: width 0.18s ease;
}

.lms-part-drag-hint {
  color: #5d668a;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .lms-part-asset-actions {
    margin-top: 0;
    justify-content: stretch;
  }

  .lms-part-asset-actions .btn,
  .lms-part-asset-actions .lms-asset-upload,
  .lms-part-asset-actions .lms-asset-upload-btn {
    width: 100%;
  }
}

.lms-module-introduction-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lms-module-intro-upload {
  min-height: 325px;
  border: 1px solid #e1e8f3;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 24px;
  color: #0b1045;
}

.lms-module-intro-empty-art {
  position: relative;
  width: 170px;
  height: 92px;
  margin-bottom: 18px;
}

.lms-module-intro-empty-art::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: #b5acf4;
}

.lms-module-intro-film {
  position: absolute;
  inset: 2px 26px 8px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 9px, transparent 9px calc(100% - 9px), rgba(255, 255, 255, 0.55) calc(100% - 9px)),
    linear-gradient(135deg, #c8c0ff, #8176ee);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 14px 24px rgba(91, 72, 232, 0.16);
}

.lms-module-intro-film::before,
.lms-module-intro-film::after {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  width: 5px;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.9) 0 8px,
      transparent 8px 16px);
}

.lms-module-intro-film::before {
  left: 9px;
}

.lms-module-intro-film::after {
  right: 9px;
}

.lms-module-intro-upload h4 {
  color: #090d45;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}

.lms-module-intro-upload p {
  color: #455278;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 22px;
}

.lms-module-intro-upload .lms-asset-upload-btn {
  width: min(100%, 340px);
  min-height: 44px;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  justify-content: center;
  font-size: 15px;
}

.lms-module-intro-upload small {
  color: #7a829b;
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
}

.lms-module-intro-video-wrap {
  display: flex;
  justify-content: center;
}

.lms-module-intro-video-card {
  width: min(100%, 620px);
}

.lms-asset-list.is-module-intro {
  border: 1px solid #e1e8f3;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.lms-mtree-panel .lms-quiz-form {
  margin-top: 6px;
}

.lms-mtree-panel .lms-quiz-settings .lms-section-title {
  font-size: 15px;
}

.lms-mtree-panel .lms-quiz-form>.text-muted {
  margin: 14px 0;
  color: #687188 !important;
}

.lms-mtree-panel .lms-quiz-form>.btn,
.lms-mtree-panel .lms-quiz-form>.d-flex .btn {
  min-height: 42px;
}

@media (max-width: 900px) {
  .lms-mtree {
    flex-direction: column;
  }

  .lms-mtree-nav {
    width: 100%;
    flex: 1 1 auto;
  }

  .lms-mtree.is-empty .lms-mtree-nav {
    width: 100%;
    flex-basis: auto;
  }

  .lms-mtree-panel-head {
    flex-direction: column;
  }

  .lms-mtree.is-empty .lms-mtree-panel {
    min-height: auto;
    padding: 18px;
  }

  .lms-module-empty-stage {
    min-height: 360px;
  }

}

/* ── LMS learners table: Actions cell ── */
.lms-learner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Override the global .secondary-btn min-width:161px so three actions fit. */
.lms-learner-actions .btn.lms-action-btn {
  min-width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.1;
}

.lms-learner-actions .btn.lms-action-btn i {
  font-size: 12px;
}

/* Deactivate = amber warn, Activate = green ok (distinct from the teal resend) */
.lms-learner-actions .btn.lms-action-warn {
  background-color: #f4a52621;
  color: #a76a00;
  border: 1px solid #f4a52655;
}

.lms-learner-actions .btn.lms-action-warn:hover {
  background-color: #f4a52633;
  color: #8a5900;
}

.lms-learner-actions .btn.lms-action-ok {
  background-color: #1c8c5b18;
  color: #157a4d;
  border: 1px solid #1c8c5b40;
}

.lms-learner-actions .btn.lms-action-ok:hover {
  background-color: #1c8c5b28;
  color: #10643e;
}

.lms-learner-actions .btn.btn-danger.lms-action-btn {
  background-color: #e4534d;
  border-color: #e4534d;
  color: #fff;
}

.lms-learner-actions .btn.btn-danger.lms-action-btn:hover {
  background-color: #d13c36;
}

.lms-learner-actions.dropdown {
  display: inline-flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.lms-action-menu-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  color: #33405c;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0;
  width: 34px;
}

.lms-action-menu-btn:hover,
.lms-action-menu-btn:focus {
  background: #f4f8fb;
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.lms-action-menu {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 42, 68, 0.14);
  min-width: 210px;
  padding: 6px;
}

.lms-action-menu .dropdown-item {
  align-items: center;
  border-radius: 6px;
  color: #34405a;
  display: grid;
  font-size: 12.5px;
  font-weight: 600;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  justify-items: start;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.lms-action-menu .dropdown-item i {
  font-size: 12px;
  justify-self: center;
  width: 18px;
}

.lms-action-menu .dropdown-item span {
  justify-self: start;
  white-space: nowrap;
}

.lms-action-menu .dropdown-item:hover,
.lms-action-menu .dropdown-item:focus {
  background: #f3f7fb;
  color: var(--primary-color);
}

/* ── LMS learner lifecycle workspace ── */
.lms-learners-page {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: 28px;
}

.lms-learners-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.lms-learners-heading h1 {
  color: #1f2a44;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.lms-learners-heading p {
  color: #687188;
  font-size: 13.5px;
  margin: 5px 0 0;
}

.lms-learners-primary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lms-learners-primary-actions .btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  height: 40px;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
}

.lms-newsletter-export-btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  height: 40px;
  justify-content: center;
  min-width: 136px;
  padding: 0 16px;
  white-space: nowrap;
}

.lms-secondary-action {
  background: #fff;
  border: 1px solid #d7deeb;
  color: var(--primary-color);
}

.lms-secondary-action:hover {
  background: #f4f7fb;
  color: #263a69;
}

.lms-learner-status-tabs {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(48, 69, 119, 0.05);
  display: flex;
  margin-bottom: 14px;
  min-height: 52px;
  padding: 5px;
}

.lms-learner-status-tabs>button,
.lms-status-more>button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #5d667b;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-width: 0;
  padding: 8px 12px;
  white-space: nowrap;
}

.lms-learner-status-tabs>button:hover,
.lms-status-more>button:hover {
  background: #f5f7fb;
  color: var(--primary-color);
}

.lms-learner-status-tabs button.active {
  background: var(--primary-color);
  box-shadow: 0 4px 10px rgba(48, 69, 119, 0.18);
  color: #fff;
}

.lms-learner-status-tabs button strong {
  align-items: center;
  background: #e6eaf1;
  border-radius: 999px;
  color: #566078;
  display: inline-flex;
  font-size: 11px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.lms-learner-status-tabs button.active strong {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lms-status-more {
  display: flex;
  flex: 1 1 auto;
  position: relative;
}

.lms-status-more>button {
  width: 100%;
}

.lms-status-more-menu {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(48, 69, 119, 0.16);
  min-width: 190px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 30;
}

.lms-status-more-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #3a4257;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  padding: 9px 10px;
  width: 100%;
}

.lms-status-more-menu button:hover {
  background: #f4f7fb;
  color: var(--primary-color);
}

.lms-status-more-menu strong {
  background: #e9edf4;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 7px;
}

.lms-learner-filters {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(48, 69, 119, 0.05);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(135px, 0.8fr)) auto;
  margin-bottom: 14px;
  padding: 10px;
}

.lms-learner-filters .form-control {
  background: #fff;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  color: #3a4257;
  font-size: 12.5px;
  height: 42px;
  min-width: 0;
  padding: 0 11px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lms-learner-filters .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(8, 187, 207, 0.12);
  outline: 0;
}

.lms-learner-search {
  min-width: 0;
  position: relative;
}

.lms-learner-search i {
  color: #77849a;
  font-size: 13px;
  left: 14px;
  position: absolute;
  top: 15px;
}

.lms-learner-search .form-control {
  padding-left: 38px;
  width: 100%;
}

.lms-filter-select {
  min-width: 0;
  position: relative;
}

.lms-filter-select .form-control {
  appearance: none;
  cursor: pointer;
  padding-left: 36px;
  padding-right: 32px;
  width: 100%;
}

.lms-filter-select-icon,
.lms-filter-select-arrow {
  color: #78859b;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.lms-filter-select-icon {
  font-size: 12px;
  left: 13px;
  top: 15px;
}

.lms-filter-select-arrow {
  font-size: 10px;
  right: 13px;
  top: 16px;
}

.lms-filter-select:focus-within .lms-filter-select-icon,
.lms-filter-select:focus-within .lms-filter-select-arrow {
  color: var(--secondary-color);
}

.lms-filter-apply,
.lms-filter-reset {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 12.5px;
  height: 42px;
  justify-content: center;
  min-width: 72px;
  padding: 0 13px;
}

.lms-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 164px;
}

.lms-filter-actions .btn {
  gap: 6px;
}

.lms-filter-reset {
  background: #f5f7fb;
  border: 1px solid #dce2ec;
  color: var(--primary-color);
}

.lms-filter-reset:hover {
  background: #f6f8fc;
  color: var(--primary-color);
}

.lms-learner-list-card {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(48, 69, 119, 0.06);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.lms-learner-list-card .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.lms-learner-table {
  margin: 0;
  min-width: 800px;
  table-layout: fixed;
  width: 100%;
}

.lms-learner-table th:nth-child(1) {
  width: 190px;
}

.lms-learner-table th:nth-child(2) {
  width: 120px;
}

.lms-learner-table th:nth-child(3) {
  width: 90px;
}

.lms-learner-table th:nth-child(4) {
  width: 110px;
}

.lms-learner-table th:nth-child(5) {
  width: 120px;
}

.lms-learner-table th:nth-child(6) {
  width: 80px;
}

.lms-learner-table thead th {
  background: #f1f5fa;
  border-bottom: 1px solid #dfe5ee;
  color: #59647a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 11px 10px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.lms-learner-table tbody td {
  border-top: 1px solid #edf0f5;
  color: #3a4257;
  font-size: 12.5px;
  padding: 12px 10px;
  vertical-align: middle;
}

.lms-learner-table.table-hover tbody tr:hover {
  background-color: #f8fbfd;
}

.lms-learner-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lms-learner-row-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf0fb;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lms-learner-identity-text {
  min-width: 0;
}

.lms-learner-identity-text strong,
.lms-learner-identity-text span {
  display: block;
}

.lms-learner-identity-text strong {
  color: #25314c;
  font-size: 13.5px;
}

/* Inline row actions: View + status action + overflow (⋮) */
.lms-learner-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.lms-learner-row-actions .btn.lms-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.1;
}

.lms-row-btn.lms-row-view {
  background: #eef2fb;
  color: var(--primary-color);
  border-color: #dbe4f5;
}

.lms-row-btn.lms-row-view:hover {
  background: #e2ebfb;
}

.lms-row-btn.lms-row-approve {
  background: #e6f7ef;
  color: #157a4d;
  border-color: #c7ead9;
}

.lms-row-btn.lms-row-approve:hover {
  background: #d7f1e5;
  color: #10643e;
}

.lms-row-btn.lms-row-warn {
  background: #fdf3e2;
  color: #a76a00;
  border-color: #f3ddb2;
}

.lms-row-btn.lms-row-warn:hover {
  background: #fbebcf;
  color: #8a5900;
}

.lms-learner-identity span {
  color: #7b8498;
  font-size: 11.5px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-learner-table tbody td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-learner-table .lms-learner-actions {
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: center;
}

.lms-learner-table .lms-learner-actions .btn.lms-action-btn {
  font-size: 11.5px;
  padding: 6px 8px;
}

.lms-learner-table .lms-learner-actions .lms-action-icon {
  align-items: center;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0;
  width: 30px;
}

.lms-action-danger {
  background: #fff0ef;
  border: 1px solid #f0c4c0;
  color: #b42318;
}

.lms-action-danger:hover {
  background: #ffe4e1;
  color: #8f1c13;
}

.lms-action-neutral {
  background: #f4f6fa;
  border: 1px solid #dfe4ed;
  color: #4f5d75;
}

.lms-action-neutral:hover {
  background: #e9eef6;
  color: var(--primary-color);
}

.lms-learner-empty {
  align-items: center;
  color: #687188;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  justify-content: center;
  padding: 35px 20px;
  text-align: center;
}

.lms-learner-empty>i {
  color: #9aa8bd;
  font-size: 30px;
  margin-bottom: 14px;
}

.lms-learner-empty strong {
  color: #2f3b55;
  font-size: 15px;
}

.lms-learner-empty p {
  font-size: 12.5px;
  margin: 6px 0 0;
}

.lms-learner-pagination {
  border-top: 1px solid #e6eaf1;
  margin-top: 12px;
  padding-top: 8px;
}

.lms-learner-detail-modal {
  background: rgba(22, 29, 45, 0.5);
  z-index: 1060;
}

.lms-learner-detail-dialog {
  max-width: 920px !important;
  width: calc(100% - 32px);
}

.lms-learner-detail-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(24, 34, 58, 0.22);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.lms-learner-detail-modal .modal-header {
  align-items: center;
  border-bottom: 1px solid #e7ebf2;
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
}

.lms-learner-detail-modal .modal-header h3 {
  color: #1f2a44;
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.lms-learner-detail-person {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.lms-learner-detail-person>div {
  min-width: 0;
}

.lms-learner-detail-person>div>span {
  color: #7a8498;
  display: block;
  font-size: 12px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-learner-avatar {
  align-items: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 14px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
}

.lms-learner-detail-person .lms-badge {
  margin-left: 6px;
}

.lms-modal-close {
  align-items: center;
  background: #f3f5f9;
  border: 0;
  border-radius: 6px;
  color: #59647a;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0;
  width: 34px;
}

.lms-modal-close:hover {
  background: #e9edf4;
  color: var(--primary-color);
}

.lms-learner-detail-body {
  background: #f6f8fb;
  max-height: calc(100vh - 142px);
  overflow-y: auto;
  padding: 18px 22px 22px;
}

.lms-learner-detail-loading {
  align-items: center;
  color: #667188;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 300px;
}

.lms-learner-detail-loading i {
  color: var(--secondary-color);
  font-size: 25px;
}

.lms-learner-detail-section {
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 17px;
}

.lms-learner-detail-section+.lms-learner-detail-section {
  margin-top: 14px;
}

.lms-learner-detail-section-title {
  align-items: center;
  border-bottom: 1px solid #e9edf3;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.lms-learner-detail-section-title>div {
  align-items: center;
  display: flex;
  gap: 9px;
}

.lms-learner-detail-section-title>div>i {
  color: var(--primary-color);
  font-size: 14px;
}

.lms-learner-detail-section-title h4 {
  color: #283653;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.lms-learner-detail-section-title>span {
  background: #edf2fa;
  border-radius: 999px;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
}

.lms-profile-readonly {
  align-items: center;
  background: #f7f9fc !important;
  border-color: #e1e7f0 !important;
  color: #27344f;
  display: flex;
  min-height: 40px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.lms-learner-detail-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lms-learner-detail-field {
  align-items: flex-start;
  background: #f7f9fc;
  border: 1px solid #e9edf3;
  border-radius: 7px;
  display: flex;
  gap: 10px;
  min-height: 68px;
  padding: 11px 12px;
}

.lms-learner-detail-field>i {
  color: #8290a7;
  font-size: 12px;
  margin-top: 3px;
  width: 14px;
}

.lms-learner-detail-field>div {
  min-width: 0;
}

.lms-learner-detail-field span,
.lms-learner-detail-field strong {
  display: block;
}

.lms-learner-detail-field span {
  color: #7a8498;
  font-size: 11px;
  text-transform: uppercase;
}

.lms-learner-detail-field strong {
  color: #2a344c;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.lms-learner-course-list {
  display: grid;
  gap: 9px;
}

.lms-learner-course-row {
  align-items: center;
  border: 1px solid #e5eaf2;
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, 1.2fr) minmax(130px, 0.8fr) minmax(210px, 1fr);
  padding: 12px;
}

.lms-learner-course-main {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.lms-learner-course-icon {
  align-items: center;
  background: #edf2fa;
  border-radius: 6px;
  color: var(--primary-color);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.lms-learner-course-main>div {
  min-width: 0;
}

.lms-learner-course-main strong,
.lms-learner-course-main>div>span {
  display: block;
}

.lms-learner-course-main strong {
  color: #293650;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lms-learner-course-main>div>span {
  color: #738097;
  font-size: 11px;
  margin-top: 4px;
}

.lms-learner-course-progress {
  align-items: center;
  display: flex;
  gap: 8px;
}

.lms-learner-course-progress>div {
  background: #e8edf4;
  border-radius: 999px;
  flex: 1 1 auto;
  height: 7px;
  overflow: hidden;
}

.lms-learner-course-progress>div>span {
  background: var(--secondary-color);
  display: block;
  height: 100%;
}

.lms-learner-course-progress strong {
  color: #4d5a70;
  font-size: 11.5px;
  min-width: 34px;
}

.lms-learner-course-meta {
  color: #69768c;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 4px;
}

.lms-learner-course-meta i {
  color: #8a97aa;
  margin-right: 5px;
  width: 12px;
}

.lms-learner-course-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #d9e1ec;
  border-radius: 7px;
  color: #8793a7;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 105px;
  padding: 20px;
}

.lms-learner-course-empty>i {
  color: #a2aec0;
  font-size: 22px;
}

.lms-learner-course-empty strong,
.lms-learner-course-empty span {
  display: block;
}

.lms-learner-course-empty strong {
  color: #42506a;
  font-size: 13px;
}

.lms-learner-course-empty span {
  font-size: 11.5px;
  margin-top: 3px;
}

.lms-learner-profile-page {
  padding-bottom: 36px;
}

.lms-profile-back-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 6px;
  color: var(--primary-color);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 13px;
}

.lms-profile-back-btn:hover,
.lms-profile-back-btn:focus {
  background: #edf2fa;
  color: var(--primary-color);
}

.lms-profile-loading {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  color: #667188;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 360px;
}

.lms-profile-loading i {
  color: var(--secondary-color);
  font-size: 26px;
}

.lms-profile-hero {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px;
}

.lms-profile-person {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.lms-profile-avatar {
  align-items: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 18px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
}

.lms-profile-person h1,
.lms-profile-person p {
  margin: 0;
  overflow-wrap: anywhere;
}

.lms-profile-person h1 {
  color: #17233c;
  font-size: 24px;
  font-weight: 800;
}

.lms-profile-person p {
  color: #6d7890;
  font-size: 13px;
  margin-top: 4px;
}

.lms-profile-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  min-width: 520px;
}

.lms-profile-summary>div {
  background: #f7f9fc;
  border: 1px solid #e6ebf3;
  border-radius: 7px;
  padding: 12px;
}

.lms-profile-summary strong,
.lms-profile-summary span {
  display: block;
}

.lms-profile-summary strong {
  color: #17233c;
  font-size: 22px;
  line-height: 1;
}

.lms-profile-summary span {
  color: #64718a;
  font-size: 11px;
  font-weight: 700;
  margin-top: 7px;
  text-transform: uppercase;
}

.lms-history-card {
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
}

.lms-history-card-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.lms-history-card-title h2,
.lms-history-card-title p {
  margin: 0;
}

.lms-history-card-title h2 {
  color: #17233c;
  font-size: 20px;
  font-weight: 800;
}

.lms-history-card-title p {
  color: #6f7b92;
  font-size: 13px;
  margin-top: 4px;
}

.lms-history-table {
  margin: 0;
  min-width: 1080px;
}

.lms-history-table thead th {
  background: #312b91;
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 14px 16px;
  vertical-align: middle;
}

.lms-history-table tbody td {
  border-color: #e1e6ef;
  color: #17233c;
  font-size: 13px;
  padding: 12px 16px;
  vertical-align: middle;
}

.lms-history-table tbody tr:nth-child(even) td {
  background: #f4f5fb;
}

.lms-history-course td {
  font-weight: 800;
}

.lms-history-course-open td {
  background: #eef3fb !important;
}

.lms-history-course-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #17233c;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: 10px;
  max-width: 100%;
  padding: 0;
  text-align: left;
}

.lms-history-course-toggle:hover,
.lms-history-course-toggle:focus {
  color: var(--primary-color);
}

.lms-history-course-toggle>i {
  color: var(--primary-color);
  flex: 0 0 12px;
  font-size: 12px;
}

.lms-history-course-toggle>span {
  overflow-wrap: anywhere;
}

.lms-history-course-toggle>small {
  background: #dfe7f4;
  border-radius: 999px;
  color: #4f5e78;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.lms-history-module td:first-child {
  color: #312b91;
  font-weight: 700;
}

.lms-history-level-2 td:first-child {
  color: #667188;
}

.lms-history-title {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.lms-history-title i {
  color: #312b91;
  font-size: 10px;
  transform: rotate(90deg);
}

.lms-history-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
}

.lms-history-badge.success {
  background: #dff6e8;
  color: #07813b;
}

.lms-history-badge.warning {
  background: #fff2cc;
  color: #9b6900;
}

.lms-history-badge.danger {
  background: #fde0e3;
  color: #b4232d;
}

.lms-history-badge.muted {
  background: #eef2f7;
  color: #667188;
}

.lms-course-learners-card {
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 35, 60, 0.07);
  overflow: hidden;
}

.lms-course-learners-head {
  align-items: center;
  background: #fff;
  color: #17233c;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 20px;
}

.lms-course-learners-head h3 {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.lms-course-learners-head span {
  color: #667188;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
}

.lms-course-export-btn {
  min-width: 140px;
  white-space: nowrap;
}

.lms-course-learner-filters {
  align-items: center;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  padding: 0 20px 16px;
}

.lms-course-learner-filters .form-control {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  color: #17233c;
  font-size: 13px;
  min-height: 42px;
}

.lms-course-learner-search {
  position: relative;
}

.lms-course-learner-search i {
  color: #78869b;
  left: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lms-course-learner-search .form-control {
  padding-left: 40px;
}

.lms-course-learners-table {
  margin: 0;
  min-width: 960px;
}

.lms-course-learners-table thead th {
  background: #312b91;
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 13px 18px;
}

.lms-course-learners-table tbody td {
  border-color: #e4e9f1;
  color: #17233c;
  font-size: 13px;
  padding: 15px 18px;
  vertical-align: middle;
}

.lms-course-learner-name strong,
.lms-course-learner-name span {
  display: block;
}

.lms-course-learner-name strong {
  color: #17233c;
  font-weight: 800;
}

.lms-course-learner-name span {
  color: #728098;
  font-size: 12px;
  margin-top: 3px;
}

.lms-course-progress-cell {
  max-width: 260px;
}

.lms-course-progress-track {
  background: #e5e8f4;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.lms-course-progress-track>span {
  background: #312b91;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.lms-course-progress-cell small {
  color: #06813a;
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.lms-course-view-learner-btn {
  background: #312b91;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  min-width: 74px;
  padding: 7px 16px;
}

.lms-course-view-learner-btn:hover,
.lms-course-view-learner-btn:focus {
  background: var(--primary-color);
  color: #fff;
}

@media (max-width: 1450px) {
  .lms-learner-filters {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .lms-course-learner-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .lms-filter-actions {
    justify-content: stretch;
  }

  .lms-filter-actions .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 767.98px) {
  .lms-course-learners-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lms-course-export-btn {
    width: 100%;
  }

  .lms-course-learner-filters {
    grid-template-columns: 1fr;
  }

  .lms-learners-heading {
    flex-direction: column;
  }

  .lms-learners-primary-actions {
    width: 100%;
  }

  .lms-learners-primary-actions .btn {
    flex: 1 1 auto;
  }

  .lms-newsletter-export-btn {
    width: 100%;
  }

  .lms-learner-status-tabs {
    overflow-x: auto;
  }

  .lms-learner-status-tabs>button,
  .lms-status-more {
    flex: 0 0 auto;
  }

  .lms-learner-filters {
    grid-template-columns: 1fr;
  }

  .lms-filter-actions {
    min-width: 0;
  }

  .lms-learner-detail-grid {
    grid-template-columns: 1fr;
  }

  .lms-learner-detail-person .lms-badge {
    display: none;
  }

  .lms-learner-course-row {
    grid-template-columns: 1fr;
  }

  .lms-learner-detail-body {
    padding: 14px;
  }

  .lms-profile-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .lms-profile-summary {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* LMS settings workspace */
.lms-settings-page {
  max-width: 1180px;
  padding-bottom: 30px;
}

.lms-settings-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lms-settings-heading h1 {
  color: #1f2a44;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.lms-settings-heading p {
  color: #687188;
  font-size: 13.5px;
  margin: 5px 0 0;
}

.lms-settings-tabs {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(48, 69, 119, 0.05);
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  padding: 5px;
}

.lms-settings-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #5e687d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 1 220px;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  height: 42px;
  justify-content: center;
  padding: 0 16px;
}

.lms-settings-tabs button:hover {
  background: #f4f7fb;
  color: var(--primary-color);
}

.lms-settings-tabs button.active {
  background: var(--primary-color);
  box-shadow: 0 4px 10px rgba(48, 69, 119, 0.18);
  color: #fff;
}

.lms-settings-tabs button strong {
  align-items: center;
  background: #e8edf4;
  border-radius: 999px;
  color: #59647a;
  display: inline-flex;
  font-size: 10px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

.lms-settings-tabs button.active strong {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lms-settings-panel {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(48, 69, 119, 0.06);
  min-height: 390px;
}

.lms-settings-district-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  /* Single full-width regions table now — districts moved into a per-region
     modal, so the old two-column region|district split is gone. */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.lms-settings-panel-body {
  max-width: 760px;
  padding: 24px;
}

.lms-settings-district-panel .lms-settings-panel-body {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(48, 69, 119, 0.06);
  max-width: none;
}

.lms-settings-district-panel .lms-settings-region-block {
  max-width: 760px;
}

.lms-region-manager-block {
  max-width: none;
}

.lms-settings-district-block {
  border-top: 0;
}

.lms-settings-panel .lms-section-title {
  border-bottom: 1px solid #e7ebf2;
  color: var(--primary-color);
  font-size: 17px;
  margin-bottom: 13px;
  padding-bottom: 13px;
}

.lms-settings-panel .text-muted {
  font-size: 12.5px;
  line-height: 1.55;
}

.lms-settings-panel .form-own-label {
  color: #35425d;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 12px;
}

.lms-settings-panel .form-control {
  border: 1px solid #dce2ec;
  border-radius: 8px;
  color: #364158;
  font-size: 13px;
  min-height: 42px;
}

.lms-settings-panel .form-control:focus,
.lms-settings-panel .lms-chip-input:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(8, 187, 207, 0.12);
  outline: 0;
}

.lms-settings-panel .lms-chip-input {
  background: #fbfcfe;
  min-height: 48px;
  padding: 7px 9px;
}

.lms-settings-panel .lms-chip {
  background: #edf2fa;
  border-radius: 6px;
  color: var(--primary-color);
  font-weight: 700;
  padding: 3px 6px 3px 9px;
}

.lms-settings-panel .lms-chip-x {
  color: #66738b;
}

.lms-settings-region-select {
  max-width: 360px;
}

.lms-settings-actions {
  border-top: 1px solid #e9edf3;
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 16px;
}

.lms-settings-save {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  height: 40px;
  justify-content: center;
  min-width: 110px;
  padding: 0 18px;
}

.lms-settings-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.lms-support-block {
  max-width: 860px;
}

.lms-support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lms-support-field {
  min-width: 0;
}

.lms-support-field-full {
  grid-column: 1 / -1;
}

.lms-support-note {
  align-items: flex-start;
  background: #f6f8fb;
  border: 1px solid #dce6f3;
  border-radius: 10px;
  color: #54627a;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.lms-support-note i {
  color: var(--primary-color);
  font-size: 15px;
  margin-top: 2px;
}

.lms-support-note strong,
.lms-support-note span {
  display: block;
}

.lms-support-note strong {
  color: #253451;
  font-size: 13px;
  margin-bottom: 3px;
}

.lms-support-note span {
  font-size: 12.5px;
  line-height: 1.6;
}

.lms-support-textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.lms-support-textarea-sm {
  min-height: 110px;
}

.lms-settings-district-panel .lms-district-add {
  background: #f6f8fb;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  margin: 16px 0;
  padding: 12px;
}

.lms-settings-district-panel .lms-district-add .btn {
  border-radius: 8px;
  min-width: 98px;
}

.lms-region-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.lms-region-toolbar .lms-section-title {
  margin-bottom: 8px;
}

.lms-region-add {
  display: flex;
  gap: 10px;
}

.lms-settings-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  white-space: nowrap;
}

.lms-icon-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  color: #304577;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.lms-icon-btn:hover {
  background: #f0f6fb;
  border-color: #b8c5d8;
  color: #1f2a44;
}

.lms-icon-btn.save {
  background: #e9f8f1;
  border-color: #b7e4ce;
  color: #168452;
}

.lms-toggle-btn {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  min-width: 92px;
  padding: 0 10px;
}

.lms-toggle-btn.deactivate {
  background: #fff7e6;
  border: 1px solid #f3d292;
  color: #a86200;
}

.lms-toggle-btn.activate {
  background: #e9f8f1;
  border: 1px solid #b7e4ce;
  color: #168452;
}

.lms-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  min-height: 24px;
  padding: 0 9px;
  text-transform: uppercase;
}

.lms-status-pill.active {
  background: #e9f8f1;
  color: #168452;
}

.lms-status-pill.inactive {
  background: #eef1f5;
  color: #667085;
}

.lms-row-muted {
  opacity: 0.72;
}

.lms-region-manager-block .table-admin tbody tr {
  cursor: pointer;
}

.lms-region-manager-block .table-admin tbody tr.lms-row-selected {
  background: #eef7fb;
  box-shadow: inset 4px 0 0 var(--secondary-color);
}

.lms-settings-district-panel .lms-district-filter {
  gap: 8px;
  justify-content: flex-end;
  margin: 4px 0 12px;
}

.lms-settings-filter-select {
  max-width: 230px;
}

.lms-settings-district-panel .table-own {
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  margin-top: 0 !important;
  overflow: hidden;
}

.lms-settings-district-panel .table-admin {
  margin-bottom: 0;
}

.lms-settings-district-panel .table-head th {
  background: #f1f5fa;
  color: #59647a;
  font-size: 11.5px;
  padding: 11px 12px;
}

.lms-settings-district-panel .table-admin td {
  font-size: 12.5px;
  padding: 11px 12px;
  vertical-align: middle;
}

.lms-settings-district-panel .lms-district-del {
  align-items: center;
  background: #fff0ef;
  border: 1px solid #f0c4c0;
  border-radius: 6px;
  color: #b42318;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

@media (max-width: 767.98px) {
  .lms-settings-tabs {
    overflow-x: auto;
  }

  .lms-settings-tabs button {
    flex: 0 0 auto;
  }

  .lms-settings-panel-body {
    padding: 16px;
  }

  .lms-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lms-settings-district-panel .lms-district-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .lms-settings-district-panel {
    grid-template-columns: 1fr;
  }

  .lms-region-toolbar,
  .lms-region-add {
    flex-direction: column;
  }

  .lms-settings-filter-select,
  .lms-settings-region-select {
    max-width: none;
    width: 100%;
  }
}


.table-admin tr.lms-row-selected,
.table-admin tr.lms-row-selected>td {
  background-color: #00B0C3 !important;
  color: white !important;
}

.table-admin tr.lms-row-selected .text-muted {
  color: #e0e0e0 !important;

}

/* ── LMS learner approval success dialog ── */
.lms-approve-success-modal {
  background: rgba(17, 25, 40, 0.55);
}

.lms-approve-success-content {
  text-align: center;
  padding: 30px 28px 26px;
  border: none;
  border-radius: 16px;
}

.lms-approve-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e6f7ef;
  color: #1c8c5b;
  font-size: 38px;
  margin: 0 auto 14px;
}

.lms-approve-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 2px;
}

.lms-approve-success-name {
  font-weight: 600;
  color: #1f2d3d;
  margin: 0 0 8px;
}

.lms-approve-success-text {
  color: #6b7684;
  font-size: 14px;
  margin: 0 0 20px;
}

.lms-approve-success-btn {
  min-width: 140px;
}

/* ── learner detail: status badge + approve in the hero ── */
.lms-profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lms-profile-approve-btn {
  margin-top: 12px;
  min-width: 170px;
}

/* ── LMS newsletter subscribers ── */
.lms-newsletter-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 16px;
}

.lms-newsletter-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: #fff;
  border: 1px solid #e6eef1;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #6b7684;
}

.lms-newsletter-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}

/* ── LMS Settings: regions single table + districts modal ── */
/* District-count pill button in the Regions table */
.lms-district-count-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dfe4ef;
  background: #f4f7fb;
  color: var(--primary-color);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lms-district-count-btn:hover {
  background: #e8eefb;
  border-color: var(--primary-color);
}

.lms-district-count-btn i {
  font-size: 11px;
  color: #7d8aa5;
}

.lms-view-districts-btn {
  white-space: nowrap;
}

/* Districts modal */
.lms-district-modal {
  background: rgba(17, 25, 40, 0.55);
  overflow-y: auto;
}

.lms-district-modal--inactive {
  z-index: 1040;
}

.lms-district-modal--inactive .modal-dialog {
  pointer-events: none;
}

.lms-district-confirm {
  position: fixed;
  inset: 0;
  z-index: 60000;
}

.lms-district-confirm__backdrop {
  position: absolute;
  inset: 0;
  z-index: 60000;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: default;
}

.lms-district-confirm__dialog {
  position: relative;
  z-index: 60001;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.lms-district-confirm__content {
  position: relative;
  z-index: 60002;
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  padding: 28px 24px;
  text-align: center;
}

.lms-district-confirm__title {
  margin: 0;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
}

.lms-district-confirm__meta {
  margin: 18px 0 0;
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 600;
}

.lms-district-confirm__description {
  margin: 12px auto 0;
  max-width: 420px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.5;
}

.lms-district-confirm__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lms-district-confirm__actions .btn {
  min-width: 140px;
}

.lms-district-modal-dialog {
  max-width: 620px;
}

.lms-district-modal .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

.lms-district-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f4;
}

.lms-district-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.lms-district-modal-body {
  padding: 18px 20px;
}

.lms-district-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #eef2f4;
  display: flex;
  justify-content: flex-end;
}

.lms-district-modal-table {
  max-height: 46vh;
  overflow-y: auto;
}

.lms-modal-close {
  background: transparent;
  border: none;
  color: #8a92a6;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.lms-modal-close:hover {
  color: var(--red-color);
}

/* ── LMS Settings: Learner portal URL tab ── */
.lms-portal-url-block {
  max-width: 820px;
}

.lms-portal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 4px;
}

.lms-portal-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f7f9fc;
  border: 1px solid #e6eef1;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 160px;
}

.lms-portal-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #97a3ad;
  font-weight: 700;
}

.lms-portal-shortname {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lms-portal-domain {
  font-size: 14px;
  color: #43525d;
  font-weight: 600;
}

.lms-portal-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  background: #eef4fb;
  border: 1px solid #d6e3f5;
  color: #3b5170;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 14px 0;
}

.lms-portal-note.warning {
  background: #fff7e8;
  border-color: #f4d9a8;
  color: #8a5900;
}

.lms-portal-url-row {
  margin-top: 16px;
}

.lms-portal-url-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.lms-portal-url-field .form-control {
  flex: 1 1 300px;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #fbfcfe;
}

.lms-portal-copy-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.lms-portal-open-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid #dfe4ef;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.lms-portal-open-btn:hover {
  background: #f1f5fb;
  color: var(--primary-color);
}

.AccountActivatebtnbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.AccountActivatebtnbox .form-group {
  min-height: auto;
}

.AccountActivatebtnbox .btn {
  width: auto;
}
