/* ==========================================================================
   Wisdom Ledger — admin module
   37 School overview (.wl-ad-school) · 38 Students (.wl-ad-students) · 39 Student detail (.wl-ad-detail)
   40 Team (.wl-ad-team) · 41 Roles (.wl-ad-roles) · 51 Notifications (.wl-ad-notif) · popups 54/55/56/61 (.wl-ad-form)
   Shared components live in portal.css / theme.css; only page-specific rules here.
   ========================================================================== */

/* ---------------------------------------------------------------- Shared bits */
.wl-ad .wl-status.bad { color: #A9412E; }
.wl-ad .wl-status.bad::before { background: #A9412E; }
.wl-ad .wl-status.navy { color: #0B1E3B; }
.wl-ad .wl-status.navy::before { background: #0B1E3B; }
.wl-ad .wl-status { justify-content: flex-start; }
.wl-ad .is-ok { color: #1F7A6D; }
.wl-ad .is-bad { color: #A9412E; }
.wl-ad .is-gold { color: #8F6F27; }
.wl-ad .is-right { margin-left: auto; }
.wl-ad .is-faint { color: #CFCCC2; }
.wl-ad-crumb { font-size: 13px; color: #7C8696; margin-bottom: -14px; }
.wl-ad-crumb .wl-link { font-weight: 500; }
.wl-ad-sechead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid #E3E1DA; }
.wl-ad-sechead .wl-h4 { margin: 0; font-size: 20px; }
.wl-ad-counter { white-space: nowrap; }
.wl-ad-filters { gap: 14px; }
.wl-ad-filters .wl-search.is-round { border-radius: 999px; height: 36px; border-color: #E3E1DA; min-width: 240px; max-width: 300px; }
.wl-ad .wl-kpi.is-warn strong { color: #8F6F27; }
.wl-ad .wl-kpi-bar i.is-gold { background: #B8923E; }
.wl-ad .wl-kpi-bar i.is-navy { background: #0B1E3B; }
.wl-ad a.wl-kpi:hover { border-color: #0B1E3B; }
.wl-ad-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wl-ad-kpis-lang { grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr; }
.wl-ad-langbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-top: 6px; }
.wl-ad-langbar i { display: block; height: 100%; }
.wl-ad-langbar i.is-navy { background: #0B1E3B; }
.wl-ad-langbar i.is-gold { background: #B8923E; }
.wl-ad-langlegend { display: flex; justify-content: space-between; font-size: 12px; color: #4A5567; }
.wl-ad-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; border: 1px solid #E3E1DA; color: #4A5567; background: #fff; white-space: nowrap; }
.wl-ad-tag.is-owner { background: #FBF5E6; border-color: #E9D9B5; color: #8F6F27; }
.wl-ad-tag.is-navy { background: #0B1E3B; border-color: #0B1E3B; color: #fff; }
.wl-ad-tag.is-muted { color: #7C8696; background: #F6F5F1; }
.wl-ad-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.wl-ad-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.wl-ad-act { height: 30px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; border: 1px solid #CFCCC2; background: #fff; color: #14213D; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.wl-ad-act:hover { border-color: #0B1E3B; }
.wl-ad-act.is-danger { color: #A9412E; border-color: #E7CFC9; }
.wl-ad-act:disabled { opacity: .45; cursor: not-allowed; }
.wl-ad .wl-btn.is-danger { color: #A9412E; border-color: #E7CFC9; }
.wl-ad .wl-btn.is-danger:hover { border-color: #A9412E; }
.wl-ad-linkbtn { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.wl-ad-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #A9412E; color: #fff; font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.wl-ad-count.is-zero { background: #EFECE4; color: #7C8696; }
.wl-ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wl-ad-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.wl-ad-grid3 > div { display: flex; flex-direction: column; gap: 4px; }
.wl-ad-grid3 b { font-size: 14.5px; }
.wl-ad-inline { display: contents; }

/* Kebab menu (details/summary, no JS needed) */
.wl-ad-more { position: relative; }
.wl-ad-more summary { list-style: none; width: 30px; height: 30px; border: 1px solid #E3E1DA; border-radius: 8px; background: #fff; color: #4A5567; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: .05em; }
.wl-ad-more summary::-webkit-details-marker { display: none; }
.wl-ad-more[open] summary { border-color: #0B1E3B; color: #0B1E3B; }
.wl-ad-menu { position: absolute; right: 0; top: 36px; z-index: 30; min-width: 220px; background: #fff; border: 1px solid #E3E1DA; border-radius: 10px; box-shadow: 0 18px 40px -20px rgba(11, 30, 59, .35); padding: 6px; display: flex; flex-direction: column; text-align: left; }
.wl-ad-menu a, .wl-ad-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: 7px; font: inherit; font-size: 13.5px; font-weight: 500; color: #14213D; cursor: pointer; text-decoration: none; }
.wl-ad-menu a:hover, .wl-ad-menu button:hover { background: #FBFAF7; }
.wl-ad-menu .is-danger { color: #A9412E; }

/* Checkboxes */
.wl-ad-cb { width: 16px; height: 16px; margin: 0; accent-color: #0B1E3B; cursor: pointer; vertical-align: middle; }
.wl-ad-row.is-selected { background: #FBF5E6; }
.wl-ad-row.is-hidden { display: none; }

/* ---------------------------------------------------------------- 37 · School overview */
.wl-ad-chart { display: flex; flex-direction: column; gap: 16px; }
.wl-ad-chart .wl-panel-head { align-items: center; margin-bottom: 0; }
.wl-ad-seg { display: inline-flex; border: 1px solid #CFCCC2; border-radius: 8px; overflow: hidden; }
.wl-ad-seg a, .wl-ad-seg button { border: 0; background: #fff; color: #4A5567; font: inherit; font-size: 13px; font-weight: 600; height: 32px; padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.wl-ad-seg a + a, .wl-ad-seg button + button { border-left: 1px solid #CFCCC2; }
.wl-ad-seg [aria-pressed="true"] { background: #0B1E3B; color: #fff; }
.wl-ad-bars { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.wl-ad-bars-axis { display: flex; flex-direction: column; justify-content: space-between; height: 180px; font-size: 11px; color: #7C8696; text-align: right; }
.wl-ad-bars-plot { position: relative; height: 180px; border-bottom: 1px solid #CFCCC2; background-image: linear-gradient(#EEECE6 1px, transparent 1px); background-size: 100% 90px; display: flex; align-items: flex-end; gap: 22px; padding: 0 8px; }
.wl-ad-bars.is-12 .wl-ad-bars-plot { gap: 10px; }
.wl-ad-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; position: relative; min-width: 0; }
.wl-ad-bar > span { font-size: 12px; font-weight: 600; color: #7C8696; }
.wl-ad-bar i { display: block; width: 100%; max-width: 64px; background: #C5CDDA; border-radius: 5px 5px 0 0; min-height: 2px; }
.wl-ad-bar small { position: absolute; bottom: -22px; font-size: 12px; color: #7C8696; }
.wl-ad-bar.is-last > span, .wl-ad-bar.is-last small { color: #0B1E3B; }
.wl-ad-bar.is-last i { background: #0B1E3B; }
.wl-ad-chart-foot { display: flex; gap: 24px; font-size: 13px; color: #4A5567; border-top: 1px solid #EEECE6; padding-top: 12px; margin-top: 16px; flex-wrap: wrap; }
.wl-ad-attn { display: flex; flex-direction: column; }
.wl-ad-attn-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px 90px; gap: 16px; align-items: center; padding: 12px 8px; border-bottom: 1px solid #EEECE6; font-size: 14.5px; color: #14213D; }
.wl-ad-attn-row:hover { background: #FBFAF7; }
.wl-ad-attn-n { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--tutor-font-family-heading); font-size: 18px; font-weight: 600; background: #EFECE4; color: #14213D; }
.wl-ad-attn-n.is-gold { background: #FBF5E6; color: #8F6F27; }
.wl-ad-attn-n.is-red { background: #FCF6F4; color: #A9412E; }
.wl-ad-attn-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-ad-attn-txt b { font-weight: 600; }
.wl-ad-attn-txt .wl-small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-ad-attn-row .wl-status { font-size: 12.5px; }
.wl-ad-attn-row .wl-link { font-size: 13.5px; justify-self: end; }
.wl-ad-attn .wl-log-row { grid-template-columns: 110px 1fr auto; }
.wl-ad-recent .wl-tr { grid-template-columns: 1fr; }
.wl-ad-recent .wl-tr.is-head.is-between { display: flex; justify-content: space-between; align-items: baseline; }
.wl-ad-recent .wl-tr.is-head .wl-link { text-transform: none; letter-spacing: 0; font-size: 13px; }
.wl-ad-recent-row { display: flex !important; align-items: center; gap: 12px; padding: 11px 18px; }
.wl-ad-recent-row .wl-status { font-size: 12px; margin-left: auto; }
.wl-ad-recent-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wl-ad-recent-txt b { font-weight: 600; }
.wl-ad-recent-txt .wl-small { font-size: 12.5px; }
.wl-ad-qa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E3E1DA; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: #14213D; background: #fff; cursor: pointer; text-decoration: none; width: 100%; text-align: left; }
.wl-ad-qa:hover { border-color: #0B1E3B; background: #FBFAF7; }
.wl-ad-qa > span:last-child { margin-left: auto; color: #7C8696; }
.wl-ad-qa .wl-ad-count { margin-left: 0; }
.wl-ad-qa .wl-ad-count + span { margin-left: auto; }
.wl-ad-schoolcard { font-size: 13.5px; color: #4A5567; gap: 6px !important; }

/* ---------------------------------------------------------------- 38 · Students */
.wl-ad-table .wl-tr { grid-template-columns: 32px 2.2fr 1fr 1.6fr 1.3fr 1.3fr 1fr 130px; }
.wl-ad-table .wl-tr.is-muted .wl-person b, .wl-ad-table .wl-tr.is-muted .wl-person a { color: #7C8696; }
.wl-ad-table .wl-prog b.is-muted { background: #CFCCC2; }
.wl-ad-lang { font-size: 13px; }
.wl-ad-course { font-size: 14px; }
.wl-ad .wl-tfoot { background: #FBFAF7; }
.wl-ad .wl-pager a, .wl-ad .wl-pager span { border: 1px solid #E3E1DA; background: #fff; }
.wl-ad .wl-pager [aria-disabled="true"] { color: #CFCCC2; }
.wl-ad .wl-pager [aria-current="page"] { border-color: #0B1E3B; }

/* ---------------------------------------------------------------- 39 · Student detail */
.wl-ad-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.wl-ad-dhead-who { display: flex; align-items: center; gap: 18px; }
.wl-ad-dhead-who .wl-avatar-ini { font-family: var(--tutor-font-family-heading); background: #E6F2EF; color: #1F7A6D; font-size: 18px !important; }
.wl-ad-dhead-name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wl-ad-dhead-name .wl-ph-title { font-size: 32px; }
.wl-ad-dhead-meta { margin-top: 8px; gap: 18px; font-size: 13.5px; }
.wl-ad-detail-cols { margin-top: 4px; }
.wl-ad-detail .wl-tabs button { padding: 10px 14px 12px; }
.wl-ad-detail .wl-panel .wl-panel-head { margin-bottom: 8px; }
.wl-ad-detail .wl-dl dd .wl-status { justify-content: flex-end; }
.wl-ad-learn .wl-tr { grid-template-columns: 56px 1fr 110px 190px; }
.wl-ad-learn .wl-tr .r .wl-status, .wl-ad-learn .wl-tr .r { justify-content: flex-end; display: flex; }
.wl-ad-learn .wl-ad-mod.is-on { font-weight: 600; }
.wl-ad-learn .wl-ad-mod.is-on .wl-mono { color: #B8923E; }
.wl-ad-learn .wl-ad-lesson { background: #FBFAF7; padding: 9px 20px 9px 56px; font-size: 13.5px; color: #4A5567; }
.wl-ad-list { display: flex; flex-direction: column; }
.wl-ad-list-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #E3E1DA; font-size: 14.5px; align-items: center; }
.wl-ad-list-row.is-sub { padding-left: 24px; background: #FBFAF7; font-size: 13.5px; }
.wl-ad-list-txt { display: flex; flex-direction: column; gap: 2px; }
.wl-ad-list .wl-note { margin-top: 14px; }
.wl-ad-list .wl-empty { text-align: left; padding: 14px 4px; }
.wl-ad-reqs { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 0; font-size: 14px; }
.wl-ad-bill .wl-tr { grid-template-columns: 90px 1fr 110px 90px 160px; }
.wl-ad-bill .wl-mono.is-ink { color: #14213D; font-weight: 500; }
.wl-ad-activity .wl-log-row { grid-template-columns: 110px 1fr 150px; }
.wl-ad-activity .wl-log-row > .wl-small:last-child { text-align: right; }
.wl-ad-activity > .wl-link { margin-top: 14px; align-self: flex-start; }
.wl-ad-ring { padding: 18px 20px; gap: 14px !important; }
.wl-ad-ring-top { display: flex; align-items: center; gap: 16px; }
.wl-ad-ring-top > div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.wl-ad-ring-mods { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #EEECE6; padding-top: 12px; font-size: 13px; }
.wl-ad-ring-mod { display: grid; grid-template-columns: 26px 1fr 44px; gap: 10px; align-items: center; color: #4A5567; }
.wl-ad-ring-mod .wl-mono { font-size: 12px; color: #7C8696; }
.wl-ad-ring-mod i { display: block; height: 5px; border-radius: 3px; background: #EFECE4; overflow: hidden; }
.wl-ad-ring-mod i b { display: block; height: 100%; background: #B8923E; border-radius: 3px; }
.wl-ad-ring-mod.is-done i b { background: #1F7A6D; }
.wl-ad-ring-mod.is-current .wl-mono { color: #B8923E; }
.wl-ad-ring-mod.is-locked { color: #7C8696; }
.wl-ad-ring-mod > .wl-num:last-child { text-align: right; }
.wl-ad-ring-dl { border-top: 1px solid #EEECE6; padding-top: 12px; font-size: 13.5px; }
.wl-ad-order { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13.5px; align-items: center; padding: 8px 0; border-top: 1px solid #EEECE6; }
.wl-ad-order .wl-status { justify-content: flex-end; }
.wl-ad-order .wl-small { grid-column: span 2; }
.wl-ad-mini-log { display: flex; flex-direction: column; font-size: 13.5px; }
.wl-ad-mini-log > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EEECE6; }
.wl-ad-note { padding: 14px 16px; border: 1px solid #E9D9B5; border-radius: 12px; background: #FBF5E6; gap: 10px !important; }
.wl-ad-note label { font-size: 13.5px; font-weight: 600; color: #14213D; }
.wl-ad-note-eye { font-size: 11.5px; color: #8F6F27; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.wl-ad-note textarea.wl-field { min-height: 84px; font-size: 13.5px; background: #fff; }
.wl-ad-note .wl-btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.wl-ad-note-item { border-top: 1px solid #E9D9B5; padding-top: 8px; font-size: 13.5px; color: #4A5567; display: flex; flex-direction: column; gap: 2px; }
.wl-ad-note-item p { color: #14213D; }

/* ---------------------------------------------------------------- 40 · Team */
.wl-ad-teamtable .wl-tr { grid-template-columns: 2.3fr 1.9fr 1.5fr 1.7fr 1.1fr 170px; }
.wl-ad-teamtable .wl-tr.is-pending .wl-avatar-ini { background: #fff; border: 1px dashed #CFCCC2; color: #7C8696; }
.wl-ad-teamtable .wl-tr.is-pending .wl-person b { font-style: italic; font-weight: 500; }
.wl-ad-tstatus { display: flex; flex-direction: column; line-height: 1.25; }
.wl-ad-tstatus small { font-size: 12px; color: #7C8696; padding-left: 14px; }
.wl-ad-owner { border-color: #E9D9B5; background: #FBF5E6; gap: 12px !important; }
.wl-ad-roledl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; font-size: 13.5px; color: #4A5567; }
.wl-ad-roledl dt, .wl-ad-roledl dd { margin: 0; line-height: 1.45; }

/* ---------------------------------------------------------------- 41 · Roles */
.wl-ad-roles-form { display: grid; }
.wl-ad-matrix .wl-tr { grid-template-columns: 2.6fr repeat(5, 1fr); gap: 10px; min-height: 46px; padding-top: 0; padding-bottom: 0; }
.wl-ad-matrix .wl-tr.is-head { padding-top: 11px; padding-bottom: 11px; }
.wl-ad-matrix .c { display: flex; justify-content: center; text-align: center; }
.wl-ad-matrix .is-head .c.is-gold { color: #8F6F27; }
.wl-ad-matrix .wl-tr.is-hi { background: #FBF5E6; }
.wl-ad-matrix .wl-tr.is-hi .wl-ad-cap { font-weight: 600; }
.wl-ad-matrix .wl-tr.is-owner .wl-ad-cap { color: #8F6F27; }
.wl-ad-cell { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.wl-ad-cell.is-view { color: #7C8696; background: #F6F5F1; }
.wl-ad-cell.is-grant { color: #8F6F27; background: #FBF5E6; }
.wl-ad-cell.is-no { color: #CFCCC2; padding: 0; }
.wl-ad-mcell { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; border-radius: 8px; cursor: pointer; }
.wl-ad-mcell:hover { background: #F6F5F1; }
.wl-ad-mcell input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wl-ad-mcell input:focus-visible + .wl-ad-mcell-on, .wl-ad-mcell input:focus-visible ~ .wl-ad-mcell-off { outline: 2px solid #B8923E; outline-offset: 2px; border-radius: 6px; }
.wl-ad-mcell .wl-ad-mcell-on, .wl-ad-mcell .wl-ad-mcell-off { display: none; align-items: center; }
.wl-ad-mcell input:checked ~ .wl-ad-mcell-on { display: inline-flex; }
.wl-ad-mcell input:not(:checked) ~ .wl-ad-mcell-off { display: inline-flex; }
.wl-ad-legend { display: flex; gap: 22px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.wl-ad-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wl-ad-legend-no { width: 10px; height: 1.5px; background: #CFCCC2; display: inline-block; }
.wl-ad-grants { gap: 16px !important; box-shadow: 0 8px 24px rgba(11, 30, 59, .04); display: flex; flex-direction: column; }
.wl-ad-grants .wl-h4 { margin: 0 0 4px; font-size: 20px; }
.wl-ad-grant { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #EEECE6; cursor: pointer; }
.wl-ad-grant > span { display: flex; flex-direction: column; gap: 3px; }
.wl-ad-grant b { font-size: 14.5px; font-weight: 600; }
.wl-ad-switch { appearance: none; -webkit-appearance: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: #CFCCC2; border: 0; margin: 0; cursor: pointer; flex: none; transition: background .2s; }
.wl-ad-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.wl-ad-switch:checked { background: #1F7A6D; }
.wl-ad-switch:checked::after { transform: translateX(18px); }
.wl-ad-switch:focus-visible { outline: 2px solid #B8923E; outline-offset: 2px; }
.wl-ad-audit { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #FBFAF7; border-radius: 10px; font-size: 12.5px; color: #4A5567; }
.wl-ad-audit .wl-label { font-size: 11px; }
.wl-ad-holders .wl-person.is-empty { color: #7C8696; }
.wl-avatar-ini.is-dashed { width: 30px; height: 30px; background: #fff; border: 1px dashed #CFCCC2; color: #7C8696; }

/* ---------------------------------------------------------------- 51 · Notifications */
.wl-ad-ntabs { align-items: center; }
.wl-ad-ntabs a { display: inline-flex; align-items: center; gap: 6px; }
.wl-ad-tabn { color: #7C8696; font-weight: 500; }
.wl-ad-nlist { display: flex; flex-direction: column; }
.wl-ad-nrow { display: grid; grid-template-columns: 22px 1fr 160px; gap: 16px; align-items: start; padding: 18px 8px; border-bottom: 1px solid #EEECE6; }
.wl-ad-nrow:hover { background: #FBFAF7; }
.wl-ad-nrow.is-unread { background: #FFFDF8; }
.wl-ad-ndot { width: 9px; height: 9px; border-radius: 50%; background: #CFCCC2; margin: 7px 0 0 6px; display: block; }
.wl-ad-ndot.is-gold { background: #B8923E; }
.wl-ad-ndot.is-red { background: #A9412E; }
.wl-ad-ndot.is-teal { background: #1F7A6D; }
.wl-ad-ndot.is-navy { background: #0B1E3B; }
.wl-ad-ntxt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wl-ad-ntitle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15.5px; }
.wl-ad-new { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8F6F27; background: #FBF5E6; padding: 2px 7px; border-radius: 999px; }
.wl-ad-nbody { font-size: 14px; line-height: 1.5; color: #4A5567; }
.wl-ad-nside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wl-ad-templates { gap: 16px !important; display: flex; flex-direction: column; }
.wl-ad-templates .wl-h4 { margin: 0 0 4px; font-size: 20px; }
.wl-ad-tlist { border-top: 1px solid #E3E1DA; display: flex; flex-direction: column; }
.wl-ad-trow { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px; border-bottom: 1px solid #EEECE6; font-size: 14px; }
.wl-ad-queue { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 10px; background: #FBFAF7; }
.wl-ad-queue-n { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wl-ad-queue-n > div { display: flex; flex-direction: column; gap: 2px; }
.wl-ad-queue-n b { font-family: var(--tutor-font-family-heading); font-size: 24px; font-weight: 600; color: #0B1E3B; }

/* ---------------------------------------------------------------- Popups 54 / 55 / 56 / 61 */
.wl-ad-form { gap: 16px; }
.wl-ad-form .wl-fieldset { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: #14213D; }
.wl-ad-form .wl-fieldset > span:first-child { font-size: 13px; }
.wl-ad-form .wl-field { min-height: 42px; font-size: 14px; }
.wl-ad-form .wl-ad-grid2 { gap: 12px; }
.wl-ad-form .wl-ad-grid2.is-email { grid-template-columns: 1fr 150px; }
.wl-ad-seg { display: flex; padding: 3px; border: 1px solid #CFCCC2; border-radius: 10px; background: #fff; height: 42px; box-sizing: border-box; }
.wl-ad-form .wl-ad-seg label { flex: 1; position: relative; }
.wl-ad-form .wl-ad-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.wl-ad-form .wl-ad-seg span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 7px; font-size: 14px; font-weight: 600; color: #4A5567; cursor: pointer; }
.wl-ad-form .wl-ad-seg input:checked + span { background: #0B1E3B; color: #fff; }
.wl-ad-form .wl-ad-seg input:focus-visible + span { outline: 2px solid #B8923E; outline-offset: 2px; }
.wl-ad-pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wl-ad-pill { position: relative; }
.wl-ad-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.wl-ad-pill span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #E3E1DA; background: #fff; font-size: 13.5px; font-weight: 600; color: #4A5567; cursor: pointer; }
.wl-ad-pill:hover span { border-color: #0B1E3B; color: #0B1E3B; }
.wl-ad-pill input:checked + span { background: #0B1E3B; color: #fff; border-color: #0B1E3B; }
.wl-ad-pill input:focus-visible + span { outline: 2px solid #B8923E; outline-offset: 2px; }
.wl-ad-pill.is-tag span { border-radius: 8px; height: 30px; font-size: 13px; }
.wl-ad-pills .wl-small { font-weight: 400; margin-left: 4px; }
.wl-ad-waived { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border: 1px solid #E9D9B5; border-radius: 12px; background: #FBF5E6; }
.wl-ad-waived .wl-fieldset > span:first-child { color: #8F6F27; }
.wl-ad-toggle-row { border: 1px solid #E3E1DA; border-radius: 12px; padding: 12px 14px; align-items: flex-start; }
.wl-ad-toggle-row > span { display: flex; flex-direction: column; gap: 2px; }
.wl-ad-toggle-row b { font-size: 14px; font-weight: 600; color: #14213D; }
.wl-ad-toggle-row .wl-small { font-size: 12.5px; }
.wl-ad-info { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; background: #F6F5F1; font-size: 13px; line-height: 1.5; color: #4A5567; }
.wl-ad-info svg { flex: none; margin-top: 2px; }
.wl-ad-adminnote { padding: 11px 14px; border-radius: 10px; background: #FBF5E6; border: 1px solid #E9D9B5; font-size: 13px; line-height: 1.5; color: #8F6F27; margin-top: 4px; }
.wl-ad-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; font-size: 13.5px; padding: 12px 14px; border-radius: 10px; background: #FBFAF7; border: 1px solid #E3E1DA; color: #4A5567; }
.wl-ad-facts span { display: flex; align-items: center; gap: 8px; }
.wl-ad-req { color: #A9412E; font-style: normal; }
.wl-ad-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-ad-opt { position: relative; }
.wl-ad-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.wl-ad-opt span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #E3E1DA; border-radius: 10px; font-size: 14px; font-weight: 500; color: #14213D; cursor: pointer; background: #fff; }
.wl-ad-opt span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #CFCCC2; flex: none; box-sizing: border-box; }
.wl-ad-opt input:checked + span { border-color: #0B1E3B; background: #FBFAF7; }
.wl-ad-opt input:checked + span::before { border: 5px solid #0B1E3B; }
.wl-ad-opt input:focus-visible + span { outline: 2px solid #B8923E; outline-offset: 2px; }
.wl-ad-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid #E3E1DA; border-radius: 12px; font-size: 13.5px; }
.wl-ad-box.is-cream { background: #FBFAF7; }
.wl-ad-box .wl-status { color: #14213D; }
.wl-ad-dl-left dd { text-align: left !important; }
.wl-ad-ack { border: 1px solid #CFCCC2; border-radius: 12px; padding: 12px 16px; }
.wl-ad-ack:has(input:checked) { border-color: #A9412E; background: #FCF6F4; }
.wl-ad-ack input { accent-color: #A9412E; }
.wl-ad-ack > span { display: flex; flex-direction: column; gap: 2px; }
.wl-ad-ack b { font-size: 14.5px; font-weight: 600; color: #14213D; }
.wl-modal-foot.is-between { justify-content: space-between; align-items: center; margin: 4px -26px -24px; padding: 16px 26px 22px; border-top: 1px solid #EEECE6; background: #FBFAF7; border-radius: 0 0 16px 16px; }
.wl-modal-foot.is-between .wl-row { gap: 10px; }
.wl-modal-card:has(.wl-ad-form) { max-width: 620px; }
.wl-modal.is-danger .wl-modal-card::before { content: ""; display: block; height: 6px; background: #A9412E; border-radius: 16px 16px 0 0; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
	.wl-ad-kpis-5, .wl-ad-kpis-lang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wl-ad-langkpi { grid-column: span 2; }
	.wl-ad-attn-row { grid-template-columns: 40px minmax(0, 1fr) 90px; }
	.wl-ad-attn-row .wl-status { display: none; }
	.wl-ad-dhead { flex-direction: column; }
	.wl-ad-grid2, .wl-ad-grid3 { grid-template-columns: 1fr; }
	.wl-ad-detail .wl-tabs { overflow-x: auto; }
	.wl-ad-detail .wl-tabs button { white-space: nowrap; }
	.wl-ad-matrix .wl-tr { grid-template-columns: 1.6fr repeat(5, 1fr); font-size: 13px; }
}
@media (max-width: 640px) {
	.wl-ad-kpis-5, .wl-ad-kpis-lang { grid-template-columns: 1fr; }
	.wl-ad-langkpi { grid-column: auto; }
	.wl-ad-filters { flex-direction: column; align-items: stretch; }
	.wl-ad-table .wl-tr > span:first-child { display: none; }
	.wl-ad-table .wl-tr.is-head { display: none; }
	.wl-ad-actions { justify-content: flex-start; }
	.wl-ad-form .wl-ad-grid2.is-email, .wl-ad-waived, .wl-ad-opts, .wl-ad-facts { grid-template-columns: 1fr; }
	.wl-ad-nrow { grid-template-columns: 22px 1fr; }
	.wl-ad-nside { grid-column: 2; align-items: flex-start; flex-direction: row; }
	.wl-ad-matrix .wl-tr { grid-template-columns: 1fr repeat(5, 40px) !important; gap: 4px; padding: 8px 10px; font-size: 12px; }
	.wl-ad-matrix .wl-tr.is-head { display: grid; font-size: 9px; }
	.wl-ad-bars-plot { gap: 6px; }
	.wl-ad-bar small { font-size: 10px; }
	.wl-modal-foot.is-between { flex-direction: column; align-items: stretch; gap: 10px; }
	.wl-modal-foot.is-between .wl-row { justify-content: flex-end; }
}
