/* SchoolDay v272.10: the Register's Learning View (admin-register-learning-v27210.js). A compact grid with the Graph
   options bar always on the right (~280 px); names and headings stay in view while the grid scrolls. */
.register-learning-v27210 { margin-top: .5rem; }
.lv-hidden-v27210 { display: none !important; }
.register-learning-v27210 .lv-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.register-learning-v27210 .lv-top h3 { margin: 0; font-size: 1.05rem; }
.lv-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.lv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 300px); gap: .6rem; align-items: start; }
.lv-main { min-width: 0; }
.lv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-bottom: .4rem; font-size: .85rem; }
.lv-tools label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 600; }
.lv-tools select { min-height: 0; padding: .2rem .4rem; }
.lv-tools .check-card { padding: .15rem .5rem; min-height: 0; }
.lv-cell-key { display: flex; flex-wrap: wrap; gap: .2rem .7rem; list-style: none; margin: 0; padding: 0; font-weight: 400; color: #475569; }
.lv-cell-key li { display: inline-flex; align-items: center; gap: .25rem; }
.lv-chip { width: .8rem; height: .8rem; border-radius: 3px; border: 1px solid #94a3b8; display: inline-block; }
/* The grid: its own scroll area; the pupil names (left) and the headings (top) stay put. */
.lv-scroll { overflow: auto; max-height: calc(100vh - var(--admin-header-sticky-height, 82px) - 150px); min-height: 260px; border: 1px solid #e2e8f0; border-radius: .6rem; background: #fff; }
.lv-table { border-collapse: separate; border-spacing: 0; font-size: .78rem; width: max-content; min-width: 100%; }
.lv-table th, .lv-table td { padding: 2px 3px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.lv-table thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; font-size: .74rem; font-weight: 700; color: #334155; text-align: left; padding: 4px 4px; border-bottom: 1px solid #e2e8f0; max-width: 9rem; line-height: 1.2; }
.lv-table .lv-name { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; font-weight: 600; white-space: nowrap; padding-right: .5rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
.lv-table thead .lv-name { z-index: 3; background: #f8fafc; }
.lv-cell { display: flex; align-items: stretch; min-width: 7.6rem; border-radius: 5px; border: 1px solid #e2e8f0; background: #f8fafc; }
.lv-cell.is-open { outline: 2px solid #1e3a8a; outline-offset: -1px; }
.lv-open { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; background: transparent; border: 0; color: inherit; padding: 2px 4px; min-height: 0; font: inherit; text-align: left; cursor: pointer; border-radius: 5px 0 0 5px; }
.lv-open:focus-visible, .lv-star:focus-visible { outline: 2px solid #1e3a8a; outline-offset: 1px; }
.lv-word { font-weight: 700; font-size: .74rem; line-height: 1.2; white-space: nowrap; }
.lv-word i { font-style: normal; }
.lv-fig { font-size: .68rem; color: #475569; white-space: nowrap; line-height: 1.2; }
.lv-star { background: transparent; border: 0; border-left: 1px solid rgba(15, 23, 42, .08); min-height: 0; padding: 0 5px; font-size: 1rem; line-height: 1; color: #64748b; cursor: pointer; border-radius: 0 5px 5px 0; }
.lv-star.is-on { color: #ca8a04; }
/* The cell colours (one set for every mode). */
.lv-cell.is-target, .lv-chip.is-target, .lv-cell.is-good, .lv-chip.is-good { background: #dcfce7; border-color: #86efac; }
.lv-cell.is-improving, .lv-chip.is-improving, .lv-cell.is-mid, .lv-chip.is-mid { background: #fef9c3; border-color: #fde047; }
.lv-cell.is-slower, .lv-chip.is-slower, .lv-cell.is-low, .lv-chip.is-low { background: #fee2e2; border-color: #fca5a5; }
.lv-cell.is-few, .lv-chip.is-few { background: #e0f2fe; border-color: #7dd3fc; }
.lv-cell.is-none, .lv-chip.is-none { background: #f1f5f9; border-color: #e2e8f0; color: #64748b; }
.lv-cell.is-neutral, .lv-chip.is-neutral { background: #f5f3ff; border-color: #c4b5fd; }
/* A graph opened beneath the pupil's row: as wide as the grid's visible area, graph left, widgets right. */
.lv-detail-row > td { padding: 0; background: #fff; }
.lv-detail { position: sticky; left: 0; width: var(--lv-view-w, 100%); box-sizing: border-box; padding: .5rem .6rem .7rem; border-top: 2px solid #1e3a8a; border-bottom: 2px solid #1e3a8a; background: #fff; }
.lv-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.lv-detail-head h4 { margin: 0; font-size: .9rem; }
.lv-detail-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
.lv-detail-nav button { min-height: 0; padding: .2rem .55rem; font-size: .78rem; }
.lv-detail-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(200px, 3fr); gap: .7rem; align-items: start; }
.lv-svg { width: 100%; height: auto; display: block; background: #fff; }
.lv-svg .lv-grid { stroke: #e2e8f0; stroke-width: 1; }
.lv-svg .lv-tick { font-size: 10px; fill: #475569; }
.lv-svg .lv-axis { font-size: 11px; fill: #334155; font-weight: 600; }
.lv-svg .lv-recent { fill: #fefce8; }
.lv-legend { display: flex; flex-wrap: wrap; gap: .2rem .8rem; list-style: none; margin: .3rem 0 0; padding: 0; font-size: .74rem; color: #334155; }
.lv-legend li { display: inline-flex; align-items: center; gap: .3rem; }
.lv-swatch { width: 16px; height: 0; border-top: 2px solid #000; display: inline-block; }
.lv-swatch.is-dash { border-top-style: dashed; }
.lv-swatch.is-box { height: 10px; border: 1px solid #94a3b8; }
.lv-empty { color: #64748b; font-size: .85rem; padding: 1.2rem .5rem; }
.lv-window { font-size: .76rem; color: #475569; margin: 0 0 .3rem; font-weight: 600; }
.lv-widgets { display: grid; grid-template-columns: 1fr; gap: .3rem; margin: 0; }
.lv-w { border: 1px solid #e2e8f0; border-radius: .45rem; padding: .25rem .45rem; background: #f8fafc; }
.lv-w dt { font-size: .7rem; color: #475569; font-weight: 700; text-transform: none; }
.lv-w dd { margin: 0; font-size: .9rem; font-weight: 700; color: #0f172a; }
.lv-w dd small { display: block; font-size: .7rem; font-weight: 400; color: #64748b; }
@media (max-width: 760px) { .lv-detail-body { grid-template-columns: 1fr; } }
/* The Graph options bar: always on the right, in view while the page and the grid scroll. */
.lv-bar { position: sticky; top: calc(var(--admin-header-sticky-height, 82px) + 8px); max-height: calc(100vh - var(--admin-header-sticky-height, 82px) - 16px);
  display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: .6rem; background: #fff; font-size: .8rem; overflow: hidden; }
.lv-bar h3 { margin: 0 0 .3rem; font-size: .9rem; }
.lv-bar-top { padding: .5rem .6rem; border-bottom: 1px solid #e2e8f0; flex: 0 0 auto; overflow: auto; max-height: 60vh; }
.lv-bar-top > select { width: 100%; min-height: 0; padding: .25rem .4rem; margin-bottom: .35rem; }
.lv-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; align-items: end; }
.lv-dates label { margin: 0; font-size: .72rem; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.lv-dates input { min-height: 0; padding: .15rem .25rem; font-size: .75rem; width: 100%; box-sizing: border-box; }
.lv-dates button { grid-column: 1 / -1; min-height: 0; padding: .2rem; font-size: .78rem; }
.lv-adv { margin-top: .35rem; }
.lv-adv summary { cursor: pointer; font-weight: 700; }
.lv-adv label { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin: .2rem 0; font-size: .74rem; font-weight: 600; }
.lv-adv input[type="number"], .lv-adv select { width: 6.5rem; min-height: 0; padding: .1rem .25rem; font-size: .74rem; }
.lv-adv fieldset { border: 1px solid #e2e8f0; border-radius: .4rem; padding: .2rem .4rem; margin: .3rem 0; }
.lv-adv legend { font-size: .72rem; font-weight: 700; }
.lv-adv .lv-series { justify-content: flex-start; font-weight: 400; }
.lv-adv input[type="color"] { width: 1.6rem; height: 1.2rem; padding: 0; border: 1px solid #cbd5e1; min-height: 0; }
.lv-adv button { width: 100%; min-height: 0; padding: .2rem; font-size: .75rem; margin-top: .2rem; }
.lv-bar-stars { padding: .5rem .6rem; overflow: auto; flex: 1 1 auto; min-height: 120px; }
.lv-count { display: inline-block; min-width: 1.3rem; padding: 0 .3rem; border-radius: 999px; background: #1e3a8a; color: #fff; font-size: .72rem; text-align: center; }
.lv-starlist { margin: 0 0 .4rem; padding-left: 1.2rem; }
.lv-starlist li { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin: .1rem 0; }
.lv-link { background: transparent; border: 0; padding: 0; min-height: 0; color: #1e3a8a; text-decoration: underline; text-align: left; cursor: pointer; font: inherit; }
.lv-unstar { background: transparent; border: 1px solid #e2e8f0; border-radius: 4px; min-height: 0; padding: 0 .35rem; line-height: 1.2; color: #64748b; cursor: pointer; }
.lv-bar-stars [data-lv-copy] { width: 100%; min-height: 0; padding: .3rem; }
.lv-nostars { margin: .2rem 0 .4rem; }
.lv-said { min-height: 1em; margin: .3rem 0 0; font-size: .75rem; color: #166534; }
.lv-fallback { display: block; font-size: .72rem; margin-top: .3rem; }
.lv-fallback textarea { width: 100%; box-sizing: border-box; font-size: .72rem; }
/* Prioritise: a category's names under each status. */
.lv-pri { margin-bottom: .6rem; }
.lv-pri h4 { margin: .2rem 0; font-size: .85rem; }
.lv-pri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.lv-pri-card { border: 1px solid #e2e8f0; border-radius: .5rem; padding: .3rem .45rem; background: #fff; font-size: .78rem; }
.lv-pri-card h5 { margin: 0 0 .2rem; font-size: .78rem; }
.lv-pri-card ul { margin: 0; padding-left: 1rem; }
.lv-pri.is-slower .lv-pri-card { border-color: #fca5a5; }
.lv-pri.is-target .lv-pri-card { border-color: #86efac; }
@media (max-width: 820px) { .lv-wrap { grid-template-columns: minmax(0, 1fr) min(240px, 46vw); } .lv-cell { min-width: 6.6rem; } }
/* The admin page paints every button (blue, rounded, white words): the grid's own buttons are plain. */
#registerLearningV27210 .lv-open, #registerLearningV27210 .lv-star, #registerLearningV27210 .lv-link, #registerLearningV27210 .lv-unstar {
  background: transparent !important; color: inherit !important; box-shadow: none !important; min-height: 0 !important; width: auto; font-weight: inherit; text-transform: none; letter-spacing: normal; }
#registerLearningV27210 .lv-open { border: 0 !important; border-radius: 5px 0 0 5px !important; padding: 2px 4px !important; }
#registerLearningV27210 .lv-star { border: 0 !important; border-left: 1px solid #cbd5e1 !important; border-radius: 0 5px 5px 0 !important; padding: 0 5px !important; color: #64748b !important; font-size: 1rem !important; }
#registerLearningV27210 .lv-star.is-on { color: #ca8a04 !important; }
#registerLearningV27210 .lv-link { border: 0 !important; padding: 0 !important; color: #1e3a8a !important; text-decoration: underline; border-radius: 0 !important; }
#registerLearningV27210 .lv-unstar { border: 1px solid #e2e8f0 !important; border-radius: 4px !important; padding: 0 .35rem !important; color: #64748b !important; }
#registerLearningV27210 .lv-cell .lv-word, #registerLearningV27210 .lv-cell .lv-fig { color: #0f172a; }
#registerLearningV27210 .lv-cell .lv-fig { color: #475569; }
/* While the Learning View is open, the register's own controls step aside (Back to the register brings them back). */
.is-learning-v27210 .register-toolbar-v210 label, .is-learning-v27210 #registerPointTabsV211, .is-learning-v27210 #registerStatusV210,
.is-learning-v27210 #registerUndoLineV27200, .is-learning-v27210 .register-find-v27146, .is-learning-v27210 #registerLettersV27146,
.is-learning-v27210 .register-footer-actions-v2112 { display: none !important; }
/* v272.12 (Sean: "Series for graphs, tickboxes need to be left aligned for legend"): the admin page stretches every
   input, so a tick box sat centred in a wide box. Each row: tick box, colour, words -- from the left. */
#registerLearningV27210 .lv-adv .lv-series { display: flex !important; justify-content: flex-start !important; align-items: center; gap: .4rem; text-align: left; margin: .15rem 0; }
#registerLearningV27210 .lv-adv .lv-series input[type="checkbox"] { width: auto !important; min-width: 0 !important; flex: 0 0 auto; margin: 0 !important; min-height: 0 !important; }
#registerLearningV27210 .lv-adv .lv-series input[type="color"] { flex: 0 0 auto; width: 1.6rem !important; min-width: 0 !important; height: 1.2rem; margin: 0; }
#registerLearningV27210 .lv-adv .lv-series .lv-series-name { flex: 1 1 auto; text-align: left; line-height: 1.2; }
