/* JLS participant dashboard table refinements — Beta 10. */
body.jls-ce-participant-dashboard-ui .jls-ce-course-table-wrap{width:100%;overflow-x:auto;margin:18px 0 14px;-webkit-overflow-scrolling:touch}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #d9dee3;border-radius:8px;overflow:hidden;box-shadow:none}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table thead th{padding:11px 14px;background:#063f58;color:#fff;font-size:15px;font-weight:700;line-height:1.25;text-align:left;white-space:nowrap;border:0}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td{padding:13px 14px;border:0;border-top:1px solid #e8ecef;vertical-align:middle;font-size:15px;line-height:1.35;color:#3c434a;background:#fff}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr:first-child td{border-top:0}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr:hover td{background:#fafbfc}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb-heading{width:82px;text-align:center}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb{width:82px;text-align:center;padding-left:10px;padding-right:10px}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb a{display:inline-flex;align-items:center;justify-content:center;width:60px;height:44px;border-radius:5px;overflow:hidden;background:#f1f3f5;text-decoration:none}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumbnail-image{display:block;width:60px;height:44px;object-fit:cover;margin:0}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumbnail-placeholder{display:block;width:60px;height:44px;background:#eef1f4}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name{min-width:240px;font-weight:600}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name a{text-decoration:none}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-fee{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table th:nth-child(5){text-align:right}
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef2f4;color:#3c434a;font-size:12px;font-weight:700;line-height:1.25;white-space:nowrap}
body.jls-ce-participant-dashboard-ui .jls-ce-status-paid{background:#eaf7ef;color:#176b35}
body.jls-ce-participant-dashboard-ui .jls-ce-payment-action{display:inline-block;padding:5px 10px;border-radius:5px;background:#d63638;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;line-height:1.25}
body.jls-ce-participant-dashboard-ui .jls-ce-payment-action:hover{filter:brightness(.94)}
/* Resume activity control: style common button/input/link variants without changing its behavior. */
body.jls-ce-participant-dashboard-ui .jls-ce-resume-activity,
body.jls-ce-participant-dashboard-ui input.jls-ce-resume-activity,
body.jls-ce-participant-dashboard-ui button.jls-ce-resume-activity,
body.jls-ce-participant-dashboard-ui a.jls-ce-resume-activity{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 16px!important;border:0!important;border-radius:5px!important;background:#0b6f9f!important;color:#fff!important;text-decoration:none!important;font:inherit!important;font-size:14px!important;font-weight:700!important;line-height:1.2!important;box-shadow:none!important;cursor:pointer}
body.jls-ce-participant-dashboard-ui .jls-ce-resume-activity:hover{filter:brightness(.94)}
@media(max-width:782px){body.jls-ce-participant-dashboard-ui #wdm_offender_course_table{min-width:680px}}

body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-empty{text-align:center}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-status{text-align:center;white-space:nowrap}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-empty{display:inline-block;min-width:44px;text-align:center}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-paid{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:6px 12px;border-radius:6px;background:#238636;color:#fff;font-size:12px;font-weight:800;line-height:1.2;letter-spacing:.02em;cursor:default;user-select:none}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-cell{text-align:center}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#0b6f9f;text-decoration:none!important}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download svg{display:block;width:20px;height:20px;fill:#fff}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download:hover{filter:brightness(.93)}

/* Beta 45 — Participant dashboard visual system. */
body.jls-ce-participant-dashboard-ui{
  --jls-ui-primary:#0b6f9f;
  --jls-ui-primary-dark:#075778;
  --jls-ui-border:#dfe5e9;
  --jls-ui-border-soft:#edf1f3;
  --jls-ui-surface:#fff;
  --jls-ui-surface-soft:#f7f9fa;
  --jls-ui-text:#25313a;
  --jls-ui-muted:#66737c;
}
body.jls-ce-participant-dashboard-ui .offender-info,
body.jls-ce-participant-dashboard-ui .offender-courses{margin:24px 0 10px}
body.jls-ce-participant-dashboard-ui .offender-info h3,
body.jls-ce-participant-dashboard-ui .offender-courses h3{
  margin:0!important;
  color:var(--jls-ui-text);
  font-size:22px;
  font-weight:700;
  line-height:1.25;
}
body.jls-ce-participant-dashboard-ui #offender_info_table{
  width:100%;
  margin:0 0 30px;
  border:1px solid var(--jls-ui-border);
  border-collapse:separate;
  border-spacing:0;
  border-radius:10px;
  overflow:hidden;
  background:var(--jls-ui-surface);
  box-shadow:0 1px 2px rgba(20,35,45,.04);
}
body.jls-ce-participant-dashboard-ui #offender_info_table thead th{
  padding:10px 14px;
  border:0;
  background:var(--jls-ui-surface-soft);
  color:var(--jls-ui-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.025em;
  line-height:1.25;
  text-transform:uppercase;
  white-space:nowrap;
}
body.jls-ce-participant-dashboard-ui #offender_info_table tbody td{
  padding:14px;
  border:0;
  border-top:1px solid var(--jls-ui-border-soft);
  background:#fff;
  color:var(--jls-ui-text);
  font-size:15px;
  font-weight:500;
  line-height:1.35;
}
body.jls-ce-participant-dashboard-ui .jls-ce-course-table-wrap{
  margin-top:0;
  border-radius:10px;
  box-shadow:0 1px 2px rgba(20,35,45,.04);
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table{
  border-color:var(--jls-ui-border);
  border-radius:10px;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table thead th{
  padding:12px 14px;
  background:var(--jls-ui-primary);
  font-size:13px;
  letter-spacing:.01em;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td{padding:14px}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb-heading{width:76px;font-size:0}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb-heading:after{content:'Image';font-size:13px}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb a{
  width:64px;height:48px;border-radius:7px;border:1px solid var(--jls-ui-border);background:var(--jls-ui-surface-soft)
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumbnail-image,
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumbnail-placeholder{width:64px;height:48px}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name{font-size:15px;font-weight:700;line-height:1.35}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name a{color:var(--jls-ui-text)!important}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name a:hover{color:var(--jls-ui-primary)!important}
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge{
  padding:6px 10px;border:1px solid #d6e1e6;background:#f3f6f8;color:#45545e;font-size:12px;font-weight:700
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-fee{font-weight:700;color:var(--jls-ui-text)}
body.jls-ce-participant-dashboard-ui .jls-ce-payment-action{
  min-width:82px;padding:7px 12px;border-radius:6px;background:var(--jls-ui-primary);text-align:center
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-paid{min-width:82px;padding:7px 12px;border-radius:6px}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download{
  width:36px;height:36px;background:var(--jls-ui-primary);box-shadow:none
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download:hover{background:var(--jls-ui-primary-dark);filter:none}
body.jls-ce-participant-dashboard-ui .jls-ce-notice{
  padding:12px 14px;border:1px solid #c8dfe9;border-radius:8px;background:#f0f8fb;color:#274d60
}
@media(max-width:900px){
  body.jls-ce-participant-dashboard-ui #offender_info_table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table{min-width:720px}
}
@media(max-width:600px){
  body.jls-ce-participant-dashboard-ui .offender-info h3,
  body.jls-ce-participant-dashboard-ui .offender-courses h3{font-size:20px}
  body.jls-ce-participant-dashboard-ui #offender_info_table{font-size:14px}
}

/* Beta 46 status colors. */
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge.jls-ce-status-progress{background:#fff1b8!important;border-color:#f0d36d!important;color:#6f5200!important}
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge.jls-ce-status-complete{background:#dff3e5!important;border-color:#b9dec5!important;color:#176b35!important}

/* Beta 47 — participant course table hierarchy/status refinements. */
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name a{
  color:#0b6f9f!important;
  font-weight:700!important;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name a:hover{color:#075778!important}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr+tr td{
  border-top:2px solid #dfe5e9!important;
}
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge{
  background:#eef1f3!important;
  border-color:#d8dde1!important;
  color:#4b5962!important;
}
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge.jls-ce-status-progress{
  background:#fff1b8!important;
  border-color:#f0d36d!important;
  color:#6f5200!important;
}
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge.jls-ce-status-complete{
  background:#dff3e5!important;
  border-color:#b9dec5!important;
  color:#176b35!important;
}


/* beta.69 participant mobile-first refinements. */
@media (max-width: 760px){
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table{min-width:0!important;width:100%!important;border:0!important;background:transparent!important}
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table thead{display:none!important}
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody,
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tr,
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table td{display:block!important;width:100%!important;box-sizing:border-box!important}
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tr{margin:0 0 14px!important;padding:12px!important;border:1px solid #dfe5e9!important;border-radius:12px!important;background:#fff!important;box-shadow:0 1px 3px rgba(20,35,45,.06)}
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table td{border:0!important;padding:6px 4px!important;text-align:left!important}
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-thumb{float:left;width:76px!important;margin-right:10px}
  body.jls-ce-participant-dashboard-ui .jls-ce-payment-action,
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-paid,
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download{min-height:44px!important}
  body.jls-ce-participant-dashboard-ui .jls-ce-payment-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:124px!important}
}

/* Beta 109: Passed is blue; only Not Started is neutral gray. */
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge.jls-ce-status-passed,
body.jls-ce-participant-dashboard-ui .jls-ce-status-badge.jls-ce-status-passed-unpaid{background:#dceeff!important;border-color:#a9d4f5!important;color:#0b4f78!important}

/* Beta 134: paid indicator shares Completed pill treatment; download is a simple blue icon. */
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-paid{
  display:inline-block!important;min-width:0!important;padding:6px 10px!important;
  border:1px solid #b9dec5!important;border-radius:999px!important;
  background:#dff3e5!important;color:#176b35!important;
  font-size:12px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:normal!important;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download,
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download:hover{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:36px!important;height:36px!important;min-height:36px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;filter:none!important;text-decoration:none!important;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download svg{
  width:24px!important;height:24px!important;fill:#0b6f9f!important;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-certificate-download:hover svg{fill:#075778!important}

/* Beta 137.11: An unpaid, passed $0 course needs a red Incomplete action.
   Override both the shared blue payment-action styling and theme button styles. */
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table a.wdm-pay-btn.jls-ce-payment-action.jls-ce-free-incomplete,
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table a.wdm-pay-btn.jls-ce-payment-action.jls-ce-free-incomplete:visited{
  background:#c62828!important;
  background-color:#c62828!important;
  border-color:#b71c1c!important;
  color:#fff!important;
}
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table a.wdm-pay-btn.jls-ce-payment-action.jls-ce-free-incomplete:hover,
body.jls-ce-participant-dashboard-ui #wdm_offender_course_table a.wdm-pay-btn.jls-ce-payment-action.jls-ce-free-incomplete:focus{
  background:#a91f1f!important;
  background-color:#a91f1f!important;
  border-color:#941b1b!important;
  color:#fff!important;
}

/* RC4.10 — readable, consistently divided participant course cards on mobile.
   Preserve the existing certificate/payment eligibility rules. */
@media (max-width:760px) {
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr {
    display:flow-root!important;
    overflow:hidden!important;
    padding:12px 14px!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td.jls-ce-course-thumb,
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td.jls-ce-course-name {
    border-top:0!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td.jls-ce-course-name {
    min-height:54px;
    padding-top:10px!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td[data-label] {
    clear:both;
    display:flex!important;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:8px 14px;
    min-height:42px;
    padding:10px 4px!important;
    text-align:right!important;
    border-top:1px solid #e1e7ec!important;
    overflow-wrap:anywhere;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td[data-label]::before {
    content:attr(data-label);
    display:block;
    flex:0 0 auto;
    max-width:48%;
    color:#425466;
    font-size:13px;
    font-weight:700;
    text-align:left;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td.jls-ce-certificate-empty {
    text-align:right!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-action {
    min-width:0!important;
  }
}

/* RC4.10.1: subtle blue mobile cards, clearer titles and oval paid badges. */
@media (max-width:760px) {
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr {
    background:#f2f8fd!important;
    border-color:#cbdfe9!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td {
    background:transparent!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody td.jls-ce-course-name {
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:750!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-course-name a {
    font-size:inherit!important;
    font-weight:inherit!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-paid {
    min-width:90px!important;
    padding:8px 18px!important;
    border-radius:12px!important;
    box-sizing:border-box!important;
    text-align:center!important;
  }
}

/* RC4.10.2: subtle alternating rows inside each mobile course card.
   Keep the card's primary #f2f8fd surface and all existing labels. */
@media (max-width:760px) {
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr td[data-label]:nth-of-type(even) {
    background:#f9fcff!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr td[data-label]:nth-of-type(odd) {
    background:#edf5fc!important;
  }
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table tbody tr td[data-label] {
    border-radius:4px;
    padding-left:9px!important;
    padding-right:9px!important;
  }
}

/* RC4.11: Match Paid to Completed on mobile; avoid stretching the badge. */
@media (max-width:760px) {
  body.jls-ce-participant-dashboard-ui #wdm_offender_course_table .jls-ce-payment-paid {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:max-content!important;
    min-height:0!important;
    padding:6px 12px!important;
    border-radius:999px!important;
    font-size:inherit!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    vertical-align:middle!important;
  }
}
