/* Screen styles for admin people, insights and system (Worker E): A5 Assessment, A7 Users,
   A8 Roles, A9 Reports, A10 Audit, A11 Settings, A12 Candidate profile, A14 Impact,
   A15 Mentoring, A16 Interview prep. Values copied from Sterling Connect Admin.dc.html.
   Every class is prefixed ap- because all screen files load on every page. */

.ap-screen { display: flex; flex-direction: column; gap: 20px; }
.ap-screen a.ap-plain, .ap-screen a.ap-row { color: inherit; text-decoration: none; }
.ap-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/16px 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #127A00; }
.ap-eyebrow > span { width: 20px; height: 3px; background: #31FE01; flex: none; }
.ap-h1 { margin: 10px 0 6px; font: 800 36px/44px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: #01204E; }
.ap-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.ap-card { background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 24px; }
.ap-hover:hover { background: #F7F8FA !important; }
.ap-row { cursor: pointer; }
.ap-row:hover { background: #F7F8FA !important; }
.ap-row[aria-current="true"]:hover { background: #F2F5FA !important; }
.ap-side-item:hover { background: #F2F5FA !important; }
.ap-side-item[aria-current="true"]:hover { background: #EEF2F8 !important; }
.ap-screen form { margin: 0; }
.ap-inline { display: inline-flex; margin: 0; }

/* Buttons (design values) */
.ap-btn { height: 44px; padding: 0 20px; border: none; border-radius: 999px; background: #01204E; color: #FFFFFF; font: 600 15px/20px 'DM Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ap-btn:hover { background: #0D2F63; color: #FFFFFF; text-decoration: none; }
.ap-btn[disabled], .ap-btn.is-off, .ap-btn.is-off:hover { background: #DFE3EA; color: #6B7485; cursor: not-allowed; }
.ap-btn-outline { height: 44px; padding: 0 18px; border: 1.5px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 15px/20px 'DM Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ap-btn-outline:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.ap-btn-ghost { height: 40px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: #01204E; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ap-btn-ghost:hover { background: #F2F5FA; text-decoration: none; }
.ap-btn-danger { border: none; border-radius: 999px; background: transparent; color: #9E2A21; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; }
.ap-btn-danger:hover { background: #FDECEA; }
.ap-sm { height: 40px; padding: 0 16px; font-size: 14px; line-height: 18px; }
.ap-xs { height: 32px; padding: 0 12px; font-size: 12px; line-height: 16px; }
.ap-icon-btn { width: 36px; height: 36px; border: none; border-radius: 999px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.ap-icon-btn:hover { background: #FDECEA; }

/* Underline tabs (design: inactive #3A4352 500, active #01204E 600 with inset bar) */
.ap-tabs { display: flex; gap: 24px; border-bottom: 1px solid #E6EAF0; overflow-x: auto; scrollbar-width: none; }
.ap-tabs::-webkit-scrollbar { display: none; }
.ap-tab { padding: 12px 0; border: none; background: transparent; color: #3A4352; font: 500 15px/20px 'DM Sans', sans-serif; box-shadow: none; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ap-tab:hover { color: #01204E; text-decoration: none; }
.ap-tab[aria-current="page"], .ap-tab[aria-selected="true"] { color: #01204E; font-weight: 600; box-shadow: inset 0 -2px 0 #01204E; }

/* Filter chips (navy when on) */
.ap-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-chip { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #E6EAF0; background: #FFFFFF; color: #01204E; font: 600 14px/38px 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block; }
.ap-chip:hover { text-decoration: none; border-color: #01204E; color: #01204E; }
.ap-chip[aria-current="true"], .ap-chip[aria-pressed="true"] { background: #01204E; color: #FFFFFF; border-color: #01204E; }
.ap-chip-36 { height: 36px; font-size: 13px; line-height: 34px; }

/* Course mapping toggles: <label class="ap-map"><input type="checkbox"><span>…</span></label> */
.ap-map { position: relative; display: inline-flex; }
.ap-map input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ap-map > span { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #DFE3EA; background: #FFFFFF; color: #3A4352; font: 600 12px/28px 'DM Sans', sans-serif; white-space: nowrap; }
.ap-map input:checked + span { background: #01204E; color: #FFFFFF; border-color: #01204E; }
.ap-map input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }
.ap-map input:disabled { cursor: default; }

/* Inputs */
.ap-input { height: 48px; padding: 0 14px; border: 1px solid #C5CBD5; border-radius: 14px; font: 400 16px/20px 'DM Sans', sans-serif; color: #121826; outline: none; background: #FFFFFF; width: 100%; min-width: 0; }
.ap-input:focus, .ap-textarea:focus, .ap-select:focus, .ap-input-44:focus { border-color: #01204E; }
.ap-input-44 { height: 44px; padding: 0 12px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; outline: none; background: #FFFFFF; width: 100%; min-width: 0; }
.ap-textarea { padding: 10px 12px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/22px 'DM Sans', sans-serif; color: #121826; resize: vertical; outline: none; width: 100%; background: #FFFFFF; }
.ap-select-wrap { position: relative; }
.ap-select { width: 100%; height: 44px; padding: 0 40px 0 12px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; background: #FFFFFF; appearance: none; -webkit-appearance: none; }
.ap-select-48 { height: 48px; padding: 0 40px 0 14px; border-radius: 14px; font-size: 16px; }
.ap-select-wrap > .ic { position: absolute; right: 12px; top: 12px; pointer-events: none; }
.ap-select-wrap.ap-48 > .ic { right: 14px; top: 14px; }
.ap-stmt { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; outline: none; background: #FFFFFF; }
.ap-stmt:focus { border-color: #01204E; }
.ap-stmt.is-changed { border-color: #01204E; background: #F2F5FA; }
.ap-stmt.is-empty { border-color: #A15C00; background: #FFF8EA; }

/* Switch: <label class="ap-switch"><input type="checkbox"><i></i></label> */
.ap-switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #C5CBD5; flex: none; display: inline-block; }
.ap-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.ap-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 32, 78, .3); transition: left .2s; }
.ap-switch:has(input:checked) { background: #01204E; }
.ap-switch:has(input:checked) i { left: 21px; }
.ap-switch:has(input:focus-visible) { outline: 3px solid #31FE01; outline-offset: 2px; }
.ap-toggle-row { display: flex; gap: 16px; align-items: center; cursor: pointer; }

/* Permission tick: <label class="ap-perm"><input type="checkbox"><span class="ap-box">✓</span>…</label> */
.ap-perm { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; position: relative; }
.ap-perm input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; left: 0; top: 7px; cursor: pointer; }
.ap-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #01204E; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: transparent; font: 700 13px/13px 'DM Sans', sans-serif; flex: none; margin-top: 1px; }
.ap-perm input:checked + .ap-box { background: #01204E; color: #31FE01; }
.ap-perm input:focus-visible + .ap-box { outline: 3px solid #31FE01; outline-offset: 2px; }
.ap-perm.is-locked { cursor: default; }
.ap-perm.is-locked .ap-box { border-color: #C5CBD5; }
.ap-perm.is-locked input { cursor: default; }

/* Availability grid cells */
.ap-cell { position: relative; display: block; }
.ap-cell input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ap-cell span { display: block; height: 36px; border-radius: 10px; border: 1px solid #DFE3EA; background: #FFFFFF; color: #6B7485; font: 600 12px/34px 'DM Sans', sans-serif; text-align: center; }
.ap-cell input:checked + span { border-color: #01204E; background: #01204E; color: #FFFFFF; }
.ap-cell input:checked + span::after { content: 'Open'; }
.ap-cell input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }

/* Collapsible assessment areas */
.ap-area > summary { list-style: none; }
.ap-area > summary::-webkit-details-marker { display: none; }
.ap-area > summary:hover { background: #F7F8FA !important; }
.ap-area[open] > summary .ap-caret { transform: rotate(180deg); }
.ap-area[open] > summary { border-bottom: 1px solid #EEF0F4; }

/* Pagination (not in the design; same tokens) */
.ap-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; font-size: 13px; line-height: 18px; color: #6B7485; flex-wrap: wrap; }

/* Range sliders */
.ap-range { width: 100%; accent-color: #01204E; }
.ap-weight-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 52px; gap: 16px; align-items: center; }
@media (max-width: 640px) { .ap-weight-row { grid-template-columns: minmax(0, 1fr) 52px; gap: 6px 16px; } .ap-weight-row > label { grid-column: 1 / -1; } }

details.ap-more > summary { cursor: pointer; list-style: none; }
details.ap-more > summary::-webkit-details-marker { display: none; }

@media (max-width: 760px) {
  .ap-h1 { font-size: 30px; line-height: 38px; }
}

/* Printable sponsor report */
@media print {
  .admin .topbar, .admin .sidebar, .admin .scrim, .ap-no-print, .toast-host, .skip-link { display: none !important; }
  .admin .main { padding: 0 !important; }
  .admin .shell { display: block !important; }
  .ap-print-card { break-inside: avoid; border-color: #C5CBD5 !important; }
  body { background: #FFFFFF !important; }
}

.ap-confirm:not([hidden]) { display: flex; }
@media (max-width: 760px) {
  .ap-roles-list { max-width: 100% !important; }
  .ap-field-row { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- December update (builder S): Settings tabs, Modules, Providers, maintenance banner ---------- */
.ap-set-card { background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 24px; }
.ap-fld-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 20px; }
.ap-fld-input { height: 44px; padding: 0 14px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; outline: none; width: 100%; min-width: 0; background: #FFFFFF; }
.ap-fld-select { width: 100%; height: 44px; padding: 0 40px 0 14px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans', sans-serif; color: #121826; background: #FFFFFF; appearance: none; -webkit-appearance: none; }
.ap-fld-input:focus, .ap-fld-select:focus { border-color: #01204E; }
.ap-fld-select + span > .ic, .ap-fld-select + span > svg { display: block; }
/* Design swRow(): whole row toggles; the real checkbox sits over the switch. */
.ap-swrow { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #EEF0F4; cursor: pointer; }
.ap-swrow .ap-switch { transition: background .2s; }
.ap-switch.is-blocked:has(input:checked) { background: #7189B8; }
.ap-switch:has(input:disabled) input { cursor: default; }
[data-autosave] [data-save-row][hidden], [data-save-row][hidden] { display: none !important; }
.ap-btn-del { height: 40px; padding: 0 16px; border: none; border-radius: 999px; background: #9E2A21; color: #FFFFFF; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ap-btn-del:hover { background: #82211A; color: #FFFFFF; text-decoration: none; }
.ap-btn-del[disabled], .ap-btn-del.is-off, .ap-btn-del.is-off:hover { background: #DFE3EA; color: #6B7485; cursor: not-allowed; }

/* A20 Modules: segmented "Check in every" control */
.ap-seg { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: #EEF0F4; margin: 0; border: none; min-width: 0; }
.ap-seg label { position: relative; display: block; }
.ap-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ap-seg span { display: block; height: 32px; padding: 0 12px; border-radius: 999px; background: transparent; color: #01204E; font: 600 13px/32px 'DM Sans', sans-serif; white-space: nowrap; }
.ap-seg input:checked + span { background: #FFFFFF; color: #01204E; box-shadow: 0 1px 3px rgba(1, 32, 78, .12); }
.ap-seg input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }
.ap-mod-card { background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ap-mod-card.is-on { border-color: #01204E; }
.ap-mod-toggle { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.ap-mod-new { height: 20px; padding: 0 7px; border-radius: 6px; background: #31FE01; color: #01204E; font: 700 10px/20px 'DM Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; }

/* Learner maintenance banner (design: "Shows a message at the top of every learner page") */
.ap-maint { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: #FFF3DC; color: #7A4600; font: 500 14px/20px 'DM Sans', sans-serif; }
.ap-maint > .ic, .ap-maint > svg { flex: none; }
