/* Shared styles for the Apprentice Practice Quiz and the Workshop Safety Checklist (mc-uk-learn). */
.x-small { font-size: 0.75rem; }
.ul-panel { background: #fcfcfc; border: 1px solid #eee; border-radius: 12px; }
[data-bs-theme="dark"] .ul-panel { background: var(--bs-tertiary-bg); border-color: var(--bs-border-color); }
.ul-engine { font-size: 0.68rem; font-weight: 600; }
.ul-indep { font-size: 0.8rem; }

/* Quiz */
.qz-topic { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qz-topic .form-check-label { font-size: .9rem; }
.qz-count { font-size: .72rem; color: var(--bs-secondary-color); white-space: nowrap; }
.qz-card { min-height: 380px; }
.qz-prompt { font-size: 1.08rem; font-weight: 600; line-height: 1.5; }
.qz-opt { display: flex; width: 100%; text-align: left; gap: .75rem; align-items: flex-start; padding: .7rem .9rem; margin-bottom: .55rem;
  border: 1px solid var(--bs-border-color); border-radius: 10px; background: var(--bs-body-bg); color: var(--bs-body-color); line-height: 1.4; }
.qz-opt:hover { border-color: var(--bs-primary); }
.qz-opt:focus-visible { outline: 3px solid rgba(13, 110, 253, .35); outline-offset: 1px; }
.qz-opt .qz-letter { flex: 0 0 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; background: var(--bs-secondary-bg); }
.qz-opt.sel { border-color: var(--bs-primary); box-shadow: 0 0 0 2px rgba(13, 110, 253, .2); }
.qz-opt.sel .qz-letter { background: var(--bs-primary); color: #fff; }
.qz-opt.right { border-color: #198754; background: rgba(25, 135, 84, .09); }
.qz-opt.right .qz-letter { background: #198754; color: #fff; }
.qz-opt.wrong { border-color: #dc3545; background: rgba(220, 53, 69, .08); }
.qz-opt.wrong .qz-letter { background: #dc3545; color: #fff; }
.qz-opt[disabled] { opacity: 1; cursor: default; }
.qz-explain { border-left: 4px solid var(--bs-primary); background: var(--bs-tertiary-bg); border-radius: 8px; padding: .75rem 1rem; font-size: .92rem; }
.qz-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.qz-dot { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--bs-border-color); font-size: .7rem; display: inline-flex;
  align-items: center; justify-content: center; background: var(--bs-body-bg); color: var(--bs-body-color); padding: 0; }
.qz-dot.ans { background: var(--bs-secondary-bg); }
.qz-dot.cur { border-color: var(--bs-primary); border-width: 2px; }
.qz-dot.ok { background: rgba(25, 135, 84, .2); border-color: #198754; }
.qz-dot.no { background: rgba(220, 53, 69, .18); border-color: #dc3545; }
.qz-timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.qz-timer.low { color: #dc3545; }
.qz-bar { height: 8px; border-radius: 4px; background: var(--bs-secondary-bg); overflow: hidden; }
.qz-bar > span { display: block; height: 100%; background: var(--bs-primary); }
.qz-score { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.qz-review-item { border: 1px solid var(--bs-border-color); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .6rem; }
.qz-review-item.ok { border-left: 5px solid #198754; }
.qz-review-item.no { border-left: 5px solid #dc3545; }

/* Worksheet (print only) */
#qzSheet, #scSheet { display: none; }
.ws-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
.ws-fields span { display: inline-block; min-width: 160px; border-bottom: 1px solid #000; margin-left: 4px; }
.ws-q { break-inside: avoid; margin-bottom: 10px; }
.ws-q ol { list-style: upper-alpha; margin: 2px 0 0 0; padding-left: 1.6rem; }
.ws-answers { break-before: page; }
.ws-answers table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.ws-answers td, .ws-answers th { border: 1px solid #999; padding: 3px 5px; vertical-align: top; }

/* Safety checklist */
.sc-machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.sc-mach { border: 1px solid var(--bs-border-color); border-radius: 10px; background: var(--bs-body-bg); color: var(--bs-body-color); padding: .6rem .5rem;
  text-align: center; font-size: .85rem; font-weight: 600; line-height: 1.25; }
.sc-mach i { display: block; font-size: 1.4rem; margin-bottom: .25rem; color: var(--bs-primary); }
.sc-mach.sel { border-color: var(--bs-primary); box-shadow: 0 0 0 2px rgba(13, 110, 253, .25); background: rgba(13, 110, 253, .06); }
.sc-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; margin: 1rem 0 .4rem; }
.sc-item { border: 1px solid var(--bs-border-color); border-radius: 10px; padding: .6rem .75rem; margin-bottom: .45rem; }
.sc-item.pass { border-left: 5px solid #198754; }
.sc-item.fail { border-left: 5px solid #dc3545; background: rgba(220, 53, 69, .05); }
.sc-item.na { border-left: 5px solid #adb5bd; }
.sc-item-row { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sc-item-text { flex: 1 1 220px; font-size: .92rem; }
.sc-crit { font-size: .65rem; font-weight: 700; color: #b02a37; text-transform: uppercase; margin-left: .3rem; white-space: nowrap; }
[data-bs-theme="dark"] .sc-crit { color: #f1aeb5; }
.sc-btns .btn { font-size: .78rem; padding: .2rem .55rem; }
.sc-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-photo { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--bs-border-color); }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; }
.sc-photo button { position: absolute; top: 2px; right: 2px; padding: 0 5px; line-height: 1.2; font-size: .8rem; }
.sc-verdict { border-radius: 10px; padding: .75rem 1rem; font-weight: 600; }
.sc-verdict.pass { background: rgba(25, 135, 84, .12); color: #146c43; }
.sc-verdict.advisory { background: rgba(255, 193, 7, .18); color: #7a5b00; }
.sc-verdict.fail { background: rgba(220, 53, 69, .12); color: #b02a37; }
.sc-verdict.incomplete { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
[data-bs-theme="dark"] .sc-verdict.pass { color: #75b798; }
[data-bs-theme="dark"] .sc-verdict.advisory { color: #ffda6a; }
[data-bs-theme="dark"] .sc-verdict.fail { color: #ea868f; }
.sc-msg { border-radius: 8px; padding: .5rem .75rem; margin-bottom: .4rem; font-size: .9rem; border-left: 4px solid; background: var(--bs-tertiary-bg); }
.sc-msg.good { border-color: #198754; } .sc-msg.warn { border-color: #ffc107; } .sc-msg.bad { border-color: #dc3545; } .sc-msg.info { border-color: #0dcaf0; }
.sc-due.overdue { color: #dc3545; font-weight: 700; } .sc-due.soon { color: #b58105; font-weight: 700; }
[data-bs-theme="dark"] .sc-due.soon { color: #ffda6a; }
.sc-table td, .sc-table th { font-size: .85rem; vertical-align: middle; }
.sc-big { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

@media print {
  #sidebar-container, #sidebar, .top-navbar, .no-print, #related-tools, #tool-guide, footer, .site-footer, ins.adsbygoogle, .breadcrumb { display: none !important; }
  #content, .dashboard-content { margin: 0 !important; padding: 0 !important; width: 100% !important; }
  body.ul-printing .dashboard-content > *:not(.ul-print-target) { display: none !important; }
  body.ul-printing #qzSheet.ul-print-target, body.ul-printing #scSheet.ul-print-target { display: block !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .sc-photo { width: 120px; height: 120px; }
  @page { margin: 12mm; }
}
