/* ==========================================================================
   /learning-management-system/ only: the compliance training cards
   (sections/lms/compliance.php). Loaded by that page, not by style.css.
   Every size inside .lmc__art is in cqw, so each drawn screen scales as one
   piece with its card.
   ========================================================================== */

.lmc {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 800px) {
  .lmc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

.lmc__card { min-width: 0; }

/* The coloured ground each screen sits on. */
.lmc__art {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 16px;
  color: #1B2333;
  font-family: 'Inter', system-ui, sans-serif;
}

.lmc__art--library { background: linear-gradient(160deg, #C7D2FE 0%, #8B9CF0 55%, #6D5BD0 100%); }
.lmc__art--assign  { background: linear-gradient(160deg, #FDE2CF 0%, #F3B39A 55%, #D9826B 100%); }
.lmc__art--report  { background: linear-gradient(160deg, #D1F0DC 0%, #8FD3B0 55%, #3E9E86 100%); }

.lmc__sheet {
  position: absolute;
  border-radius: 2.6cqw;
  background-color: #FFFFFF;
  box-shadow: 0 2.4cqw 6cqw -2cqw rgba(16, 24, 48, 0.35);
}

.lmc__sheet b, .lmc__toast b { font-weight: 700; }

/* ---- Card 1: the course library ---- */

.lmc__tiles {
  position: absolute;
  inset: 7% 8% auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6cqw;
}

.lmc__tile {
  display: grid;
  place-items: center;
  height: 11cqw;
  padding: 0 2cqw;
  border-radius: 2.4cqw;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1.2cqw 3cqw -1.5cqw rgba(16, 24, 48, 0.35);
  font-size: 3.1cqw;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.lmc__tile--a { color: #4F46E5; }
.lmc__tile--b { color: #EA580C; }
.lmc__tile--c { color: #2563EB; }
.lmc__tile--d { color: #DC2626; }
.lmc__tile--e { color: #0F766E; }
.lmc__tile--f { color: #9333EA; }

.lmc__course {
  left: 6%;
  right: 6%;
  bottom: 8%;
  display: flex;
  gap: 4cqw;
  align-items: center;
  padding: 3.6cqw;
}

.lmc__thumb {
  flex: none;
  display: grid;
  place-content: center;
  width: 26cqw;
  height: 19cqw;
  border-radius: 2cqw;
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
  color: #3730A3;
  text-align: center;
  line-height: 1.1;
}

.lmc__thumb b { font-size: 5.4cqw; }
.lmc__thumb small { font-size: 2.8cqw; font-weight: 600; }

.lmc__coursetext { display: grid; gap: 1.2cqw; min-width: 0; }
.lmc__coursetext b { font-size: 4.4cqw; }
.lmc__coursetext small { font-size: 3.1cqw; color: #7A8598; }

.lmc__coursetext em {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  font-size: 3cqw;
  font-style: normal;
  font-weight: 600;
  color: #15803D;
}

.lmc__coursetext em svg { width: 3.4cqw; height: 3.4cqw; }

/* ---- Card 2: assigning a course ---- */

.lmc__form {
  inset: 7% 8% auto;
  display: grid;
  gap: 2.6cqw;
  padding: 4cqw;
}

.lmc__formtitle { font-size: 3.9cqw; }

.lmc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.lmc__fields--3 { grid-template-columns: repeat(3, 1fr); gap: 2cqw; }

.lmc__field { display: grid; gap: 1cqw; min-width: 0; }
.lmc__field small, .lmc__sub { font-size: 2.7cqw; color: #7A8598; }

.lmc__field i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6cqw 2cqw;
  border: 1px solid rgba(16, 24, 48, 0.12);
  border-radius: 1.4cqw;
  font-size: 3cqw;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.lmc__field i svg { width: 2.8cqw; height: 2.8cqw; flex: none; color: #7A8598; }

.lmc__pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2cqw 2.4cqw;
  border-radius: 1.6cqw;
  background-color: #F4F6FB;
  font-size: 3cqw;
  font-weight: 500;
}

.lmc__pick i {
  display: grid;
  place-items: center;
  width: 3.8cqw;
  height: 3.8cqw;
  border-radius: 0.9cqw;
  background-color: #6D5BD0;
  color: #FFFFFF;
}

.lmc__pick i svg { width: 2.8cqw; height: 2.8cqw; }

.lmc__pick--off { color: #9AA3B5; }
.lmc__pick--off i { background-color: #FFFFFF; border: 1px solid #CBD2DF; }

.lmc__toast {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 3cqw 3.6cqw;
  border-radius: 2.4cqw;
  background-color: #FFFFFF;
  box-shadow: 0 2.4cqw 6cqw -2cqw rgba(16, 24, 48, 0.4);
  transform: rotate(-1.5deg);
}

.lmc__alarm {
  flex: none;
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border-radius: 2cqw;
  background-color: #FDECEC;
  color: #DC2626;
}

.lmc__alarm svg { width: 5.4cqw; height: 5.4cqw; }

.lmc__toast span { display: grid; gap: 0.8cqw; }
.lmc__toast b { font-size: 3.9cqw; }
.lmc__toast small { font-size: 2.9cqw; color: #7A8598; }

/* ---- Card 3: the audit report ---- */

.lmc__report {
  inset: 6% 6% auto;
  display: grid;
  gap: 2.8cqw;
  padding: 3.8cqw;
}

.lmc__rephead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2cqw;
}

.lmc__rephead span { display: grid; gap: 0.6cqw; }
.lmc__rephead b { font-size: 3.6cqw; }
.lmc__rephead small { font-size: 2.6cqw; color: #7A8598; }

.lmc__ready {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.2cqw 2cqw;
  border-radius: 99px;
  background-color: #E7F6EE;
  color: #15803D;
  font-size: 2.6cqw;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.lmc__ready i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background-color: currentColor; }

.lmc__rows { display: grid; }

.lmc__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 2cqw;
  padding: 2.2cqw 0;
  border-top: 1px solid rgba(16, 24, 48, 0.08);
  font-size: 2.9cqw;
}

.lmc__row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmc__row small { font-size: 2.7cqw; color: #7A8598; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lmc__pct {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  font-weight: 600;
  color: #475069;
}

/* A progress ring drawn with a conic gradient and a white hole. */
.lmc__ring {
  width: 4cqw;
  height: 4cqw;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #FFFFFF 62%, transparent 64%),
    conic-gradient(#16A34A calc(var(--p) * 1%), #E3E8F0 0);
}

.lmc__pdf {
  position: absolute;
  right: 6%;
  bottom: 7%;
  display: inline-flex;
  align-items: center;
  gap: 1.8cqw;
  padding: 2.4cqw 3.4cqw;
  border: 0.4cqw solid #6D5BD0;
  border-radius: 2cqw;
  background-color: #FFFFFF;
  box-shadow: 0 2cqw 5cqw -2cqw rgba(16, 24, 48, 0.4);
  color: #4C3DB5;
  font-size: 3.9cqw;
  font-weight: 700;
}

.lmc__pdf svg { width: 4.6cqw; height: 4.6cqw; }

/* ---- Under each screen ---- */

.lmc__name {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #0F172A;
}

.lmc__text {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #5B6475;
}
