/* =========================================================
   PilotMetrics for Flight Schools: the School pages, School settings, joining, invoices,
   and the school's panel on a student's page (with instructor.css)
   ========================================================= */

.link-btn { padding: 0 4px; background: none; border: 0; box-shadow: none; color: var(--cyan); font-size: 12px; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; background: none; }
.sch-inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.span-wide { flex: 2 1 280px; }

/* Gates and notices */
.sch-gate-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sch-create { max-width: 460px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sch-notice { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; font-size: 12px; line-height: 1.5; border: 1px solid var(--line-light); background: var(--inset); }
.sch-notice.info { border-color: rgba(59, 130, 246, 0.45); background: var(--blue-light); }
.sch-notice.warn { border-color: rgba(245, 158, 11, 0.45); background: var(--amber-light); color: #fde68a; }
.sch-notice a { color: var(--cyan); font-weight: 700; }

/* The school's name, logo and switcher in the page head */
.sch-switcher { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--inset); font-size: 12px; }
.sch-switcher img { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; }
.sch-switcher select { padding: 2px 6px; font-size: 12px; }

/* Filters: one row above the charts */
.sch-filter-card { padding: 10px 12px; }
.sch-filters, .ins-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ins-filters { margin: 0 0 10px; }
.ins-filters:empty { display: none; }
.sch-filters select, .sch-filters input, .ins-filters select { width: auto; max-width: 220px; padding: 5px 8px; font-size: 12px; }
.sch-filters input[type=search] { min-width: 180px; }
.sch-dates { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.sch-dates button[aria-pressed="true"] { border-color: var(--cyan); color: #fff; }

/* Headline figures */
.sch-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sch-mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.sch-kpis .stat.attention b { color: var(--danger-text); }
.sch-kpis .stat.watch b { color: var(--alert-soon); }

/* Who needs attention */
.sch-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.sch-person { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); text-decoration: none; font-size: 12px; }
.sch-person:hover { border-color: var(--line-light); }
.sch-person.attention { box-shadow: inset 3px 0 0 var(--danger); }
.sch-person.watch, .sch-person.ok { box-shadow: inset 3px 0 0 var(--amber); }
.sch-person-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sch-person-meta, .sch-person-figs { color: var(--muted); font-size: 12px; margin-top: 3px; }
.sch-person ul { margin: 6px 0 0; padding-left: 16px; }
.sch-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 12px; font-weight: 800; text-align: center; }
.sch-count.attention { background: var(--danger-light); color: var(--danger-text); }
.sch-count.watch { background: var(--amber-light); color: var(--alert-soon); }

/* Tags */
.sch-tag { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.sch-tag-toggle { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; font-size: 12px; cursor: pointer; }

/* Charts: single-series bars, a tooltip on each (thin marks, rounded data ends, recessive axis) */
.sch-columns { display: flex; align-items: flex-end; gap: 2px; padding-top: 10px; border-bottom: 1px solid var(--line-light); }
.sch-col { position: relative; flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; outline: none; }
.sch-col-fill { background: var(--blue); border-radius: 4px 4px 0 0; }
.sch-col:hover .sch-col-fill, .sch-col:focus .sch-col-fill { filter: brightness(1.3); }
.sch-col-label { position: absolute; bottom: -16px; left: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sch-columns + * { margin-top: 22px; }
.sch-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; min-width: 150px; padding: 8px 10px;
  border-radius: 8px; background: #0b1220; border: 1px solid var(--line-light); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); font-size: 12px; white-space: nowrap; pointer-events: none; }
.sch-tip b, .sch-tip span { display: block; }
.sch-tip span { color: var(--muted); }
.sch-col:first-child .sch-tip, .sch-col:nth-child(2) .sch-tip { left: 0; transform: none; }
.sch-col:last-child .sch-tip, .sch-col:nth-last-child(2) .sch-tip { left: auto; right: 0; transform: none; }
.sch-col:hover .sch-tip, .sch-col:focus .sch-tip { display: block; }
.sch-bars { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.sch-bars li { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: 8px; align-items: center; padding: 4px 0; }
.sch-bars small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin-top: -2px; }
.sch-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-bar-track { height: 8px; border-radius: 4px; background: var(--inset); overflow: hidden; }
.sch-bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--blue); }
.sch-table-view { margin-top: 10px; font-size: 12px; }
.sch-table-view summary { cursor: pointer; color: var(--muted); }

.sch-simple { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.sch-simple li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sch-simple li:last-child { border-bottom: 0; }
.sch-simple small { color: var(--muted); margin-left: 4px; }

/* All Students */
.sch-roster-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sch-sort { padding: 0; background: none; border: 0; box-shadow: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.sch-roster td a { color: var(--text); text-decoration: none; }
.sch-roster td a:hover { text-decoration: underline; }
/* Long student lists scroll inside their card, with their headings kept in view */
.sch-scroll { max-height: 560px; overflow-y: auto; }
.sch-scroll thead th { position: sticky; top: 0; z-index: 1; }
.sch-list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sch-list-tools input[type=search] { width: auto; min-width: 200px; padding: 5px 8px; font-size: 12px; }
.sch-report-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.sch-subhead { margin: 14px 0 6px; font-size: 12px; font-weight: 800; color: var(--muted); }

/* A student's school panel (instructor-student) */
.sch-panel .card-header h2 { font-size: 15px; }
.sch-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sch-facts > div, .sch-compare > div { padding: 8px 10px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line); font-size: 12px; }
.sch-facts span, .sch-compare span { display: block; color: var(--muted); font-size: 12px; }
.sch-facts b, .sch-compare b { display: block; font-size: 14px; margin-top: 2px; }
.sch-facts small, .sch-compare small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sch-compare { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sch-late { display: block; color: var(--danger-text); font-size: 12px; font-weight: 700; }
.sch-early { display: block; color: var(--green-text); font-size: 12px; font-weight: 700; }
.sch-current { font-style: normal; font-size: 12px; font-weight: 800; color: var(--cyan); margin-left: 4px; }
.sch-section { margin-top: 16px; }
.sch-section h3 { margin: 0 0 8px; font-size: 13px; }
.sch-section h3 small { font-weight: 500; color: var(--muted); font-size: 12px; }
.sch-minimums { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.sch-minimums li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.sch-minimums small { color: var(--muted); margin-left: 4px; }
.sch-note-form { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.sch-note-form textarea { flex: 1; }
.sch-notes { list-style: none; margin: 0; padding: 0; font-size: 12px; max-height: 300px; overflow-y: auto; }
.sch-notes li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sch-notes small { color: var(--muted); }
.sch-manage, .sch-form.sch-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sch-manage .field { flex: 1 1 150px; }
.sch-assign { margin-top: 12px; font-size: 12px; }
.sch-assign ul { margin: 6px 0 10px; padding-left: 16px; }
.sch-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
label.btn.sch-file, label.sch-file { display: inline-flex; align-items: center; cursor: pointer; }
.sch-file { padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-light); background: var(--inset); color: var(--text); }

/* School settings */
.sch-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sch-tab { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-light); background: var(--inset); color: var(--muted); font-size: 12px; font-weight: 700; box-shadow: none; }
.sch-tab.active { color: #fff; border-color: var(--cyan); background: var(--cyan-light); }
.sch-dot { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 12px; text-align: center; margin-left: 4px; }
.sch-form { display: flex; flex-direction: column; gap: 10px; }
.sch-form.sch-row .field { flex: 1 1 160px; }
.sch-form.sch-row .field.span-wide { flex: 2 1 280px; }
.sch-thresholds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: end; }
.sch-thresholds .field small { color: var(--muted); }
.sch-invite { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.sch-invite .field { flex: 1 1 160px; }
.sch-logo-row { display: flex; gap: 10px; align-items: center; }
.sch-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: var(--inset); border: 1px solid var(--line); }
.sch-logo.empty { display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.sch-copy { display: flex; gap: 8px; margin-bottom: 10px; }
.sch-copy input { flex: 1; }
.sch-highlight { border-color: rgba(245, 158, 11, 0.5); }

/* Sponsors: School settings > People, and the sponsor's own page (/sponsor) */
.sch-sponsor { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(15, 23, 42, 0.4); }
.sch-sponsor-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sch-sponsor-head small { color: var(--muted); }
.sch-sponsor-head .link-btn { margin-left: auto; }
.sch-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sch-chips:empty { display: none; }
.sch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 12px;
            background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.4); }
.sch-chip button { padding: 0 6px; font-size: 12px; line-height: 18px; background: transparent; color: inherit; border: 0; }
.sch-sponsor-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 10px; }
.sp-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sp-student { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-student-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sp-student-head small, .sp-student .sp-meta { color: var(--muted); font-size: 12px; }
.sp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sp-figs div { font-size: 12px; color: var(--muted); }
.sp-figs b { display: block; font-size: 16px; color: var(--text); }
.sp-finish { font-size: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(148, 163, 184, 0.08); }
.sp-stages { list-style: none; margin: 0; padding: 0; font-size: 12px; display: grid; gap: 3px; }
.sp-stages li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 44px; gap: 6px; align-items: center; }
.sp-stages span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .sp-students { grid-template-columns: 1fr; } }
.sch-check { display: inline-flex; align-items: center; gap: 5px; margin: 2px 10px 2px 0; font-size: 12px; }
.sch-checks { display: flex; flex-wrap: wrap; }
.sch-perms { max-width: 440px; }
.sch-perms .sch-check { display: flex; margin: 6px 0; }
.sch-quote { margin: 8px 0; }
.sch-quote b { font-size: 26px; }
.sch-quote span { color: var(--muted); font-size: 12px; }

/* Joining a school */
.sch-join { max-width: 640px; }
.sch-join-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sch-join-head h2 { margin: 2px 0; font-size: 20px; }

/* An invoice, to print */
.sch-invoice-page { background: #f1f5f9; color: var(--inset); }
.sch-invoice-tools { max-width: 760px; margin: 20px auto 0; text-align: right; }
.sch-invoice { max-width: 760px; margin: 12px auto 40px; padding: 40px; background: #fff; color: var(--inset); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.sch-invoice h1, .sch-invoice h2, .sch-invoice h3 { color: var(--inset); }
.sch-inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sch-inv-head h1 { display: inline; font-size: 20px; margin-left: 8px; vertical-align: middle; }
.sch-inv-head p, .sch-inv-to p { margin: 6px 0 0; color: #475569; }
.sch-inv-meta { text-align: right; }
.sch-inv-meta h2 { margin: 0; font-size: 22px; }
.sch-inv-to h3 { margin: 0; font-size: 12px; color: #64748b; }
.sch-inv-lines { width: 100%; border-collapse: collapse; margin: 16px 0; }
.sch-inv-lines th, .sch-inv-lines td { padding: 8px 6px; border-bottom: 1px solid #e2e8f0; text-align: left; color: var(--inset); background: none; }
.sch-inv-lines .num { text-align: right; white-space: nowrap; }
.sch-inv-lines tfoot td { border-bottom: 0; color: #475569; }
.sch-inv-lines tfoot .total td { font-weight: 800; font-size: 15px; color: var(--inset); border-top: 2px solid var(--inset); }
.sch-inv-note { color: #475569; font-size: 12px; }
@media print {
  .sch-invoice-tools { display: none; }
  .sch-invoice-page { background: #fff; }
  .sch-invoice { margin: 0; padding: 0; max-width: none; }
  .sch-scroll { max-height: none; overflow: visible; }
}

@media (max-width: 900px) {
  .sch-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sch-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sch-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sch-kpis, .sch-mini-stats, .sch-facts, .sch-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-filters select, .sch-filters input { max-width: 100%; min-width: 0; flex: 1 1 140px; }
  .sch-list-tools, .sch-list-tools input[type=search] { flex: 1 1 100%; min-width: 0; }
  .sch-invoice { padding: 20px; }
  .sch-inv-head { flex-direction: column; }
  .sch-inv-meta { text-align: left; }
}

/* Scheduling (school-scheduling.html, scripts/school-scheduling.js): currency dates, recency and solo bookings */
.sc-show { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sc-show button[aria-pressed="true"] { border-color: var(--cyan); color: #fff; }
/* Holds the Record column's sr-only heading inside the table's scroll area: positioned from the page, it widened the page on a phone */
.sc-table th { position: relative; }
.sc-table td { vertical-align: top; }
.sc-cell b { display: block; }
.sc-chip { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 9px; font-size: 12px; font-weight: 800; white-space: nowrap;
  border: 1px solid var(--line-light); color: var(--muted); }
.sc-chip.ok { background: var(--green-light); color: var(--green-text); border-color: rgba(16, 185, 129, 0.35); }
.sc-chip.soon { background: var(--amber-light); color: var(--alert-soon); border-color: rgba(245, 158, 11, 0.4); }
.sc-chip.expired { background: var(--danger-light); color: var(--danger-text); border-color: rgba(239, 68, 68, 0.45); }
.sc-chip.missing { background: transparent; }
.sc-long { color: var(--alert-soon); }
.sc-checks { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.sc-checks li { padding: 1px 0 1px 14px; position: relative; }
.sc-checks li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.sc-checks li.expired { color: var(--danger-text); }
.sc-checks li.expired::before { background: var(--danger); }
.sc-checks li.missing { color: var(--alert-soon); }
.sc-checks li.missing::before { background: var(--amber); }
.sc-checks li.dark { color: var(--text-soft); }
.sc-checks li.dark::before { background: var(--line-light); }
.sc-checks li.info { color: var(--muted); }
.sc-edit td { background: rgba(15, 23, 42, 0.6); }
.sc-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 6px 0; }
.sc-record h3 { margin: 0 0 4px; font-size: 13px; }
.sc-record .desc { margin: 0 0 8px; }
.sc-record-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-record-row input[type=date] { width: auto; max-width: 180px; padding: 5px 8px; font-size: 12px; }
.sc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sc-record-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) {
  .sc-record-grid { grid-template-columns: 1fr; }
}

/* The Forecast (school-forecast.js) */
.fc-cohorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.fc-cohort { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--inset); font-size: 12px; }
.fc-cohort.late { border-color: rgba(239, 68, 68, 0.45); }
.fc-cohort.watch { border-color: rgba(245, 158, 11, 0.45); }
.fc-cohort-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.fc-cohort-head small { color: var(--muted); width: 100%; }
.fc-cohort .sch-facts { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.fc-cohort small.finish.late, .fc-chip.late b { color: var(--danger-text); }
.fc-cohort small.finish.early, .fc-cohort small.finish.on { color: var(--green-text); }
.fc-cohort small.below { color: var(--alert-soon); }
.fc-reasons { margin: 8px 0; padding-left: 18px; color: #fde68a; }
.fc-reasons li { margin: 2px 0; }
.ins-badge.ok { background: var(--green-light); color: var(--green-text); }
.fc-phase-table th small { display: block; color: var(--muted); font-weight: 600; }
.fc-phase { white-space: nowrap; }
.fc-phase.done { color: var(--green-text); font-weight: 800; }
.fc-phase.late { color: var(--danger-text); }
.fc-resources tr[data-resource] { cursor: pointer; }
.fc-resources tr.picked td { background: rgba(59, 130, 246, 0.08); }
.fc-meter { display: inline-block; width: 70px; height: 7px; margin-right: 6px; border-radius: 4px; background: var(--line); vertical-align: middle; overflow: hidden; }
.fc-meter span { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.fc-meter.near span { background: var(--amber); }
.fc-meter.over span { background: var(--danger); }
.fc-chart { width: 100%; height: auto; display: block; }
.fc-chart .grid { stroke: var(--line); stroke-width: 1; }
.fc-chart .axis { fill: var(--muted); font-size: 12px; }
.fc-chart .bar { fill: var(--blue); }
.fc-chart .bar.over { fill: var(--amber); }
.fc-chart g:hover .bar { filter: brightness(1.3); }
.fc-chart .cap { stroke: var(--danger-text); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fc-chart .cap-label { fill: var(--danger-text); font-size: 12px; font-weight: 700; }
/* Phase Completion Times */
.fc-phase-times tr[data-pt-phase] { cursor: pointer; }
.fc-phase-times tr.picked td { background: rgba(59, 130, 246, 0.08); }
.fc-change { font-weight: 700; white-space: nowrap; }
.fc-change.quicker { color: var(--green-text); }
.fc-change.longer { color: var(--alert-soon); }
.fc-spark { display: block; overflow: visible; }
.fc-spark path { stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; }
.fc-spark circle { fill: var(--blue); }
.fc-pt-chart .line { stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.fc-pt-chart .dot { fill: var(--blue); stroke: var(--card, #111827); stroke-width: 2; }
.fc-pt-chart .hit { fill: transparent; }
.fc-pt-chart g:hover .hit { fill: rgba(148, 163, 184, 0.08); }
.fc-pt-chart .avg { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.fc-pt-chart .avg-label { fill: var(--muted); font-size: 12px; font-weight: 700; }
#fcPtRange input[type=date] { width: auto; max-width: 150px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fc-chip { padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--inset); font-size: 12px; color: var(--muted); white-space: nowrap; }
.fc-chip b { color: var(--text); }
.fc-chip.late { border-color: rgba(239, 68, 68, 0.45); }
.fc-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 10px; }
.fc-settings small { display: block; margin-top: 3px; }

/* The Cohort Tracker (school.js) */
.trk-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.trk-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 2fr) 44px minmax(110px, 1fr) minmax(100px, 1fr) 80px; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text); text-decoration: none; font-size: 12px; }
.trk-row:hover { border-color: var(--line-light); }
.trk-row small { display: block; color: var(--muted); font-size: 12px; }
.trk-bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.trk-fill { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.trk-row.ahead .trk-fill { background: var(--green); }
.trk-row.behind .trk-fill { background: var(--amber); }
.trk-avg { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: #fff; border-radius: 1px; }
.trk-pct { font-weight: 800; text-align: right; }
.trk-state { font-weight: 700; }
.trk-state.ahead { color: var(--green-text); }
.trk-state.behind { color: var(--alert-soon); }
.trk-finish small.late { color: var(--danger-text); }
@media (max-width: 760px) {
  .trk-row { grid-template-columns: 1fr 52px; }
  .trk-bar { grid-column: 1 / -1; order: 3; }
  .trk-state, .trk-finish, .trk-pace { grid-column: span 1; }
}

/* The Reports card's section picker (school-report.js) */
.sch-report-sections { margin: 10px 0; font-size: 12px; }
.sch-report-sections summary { cursor: pointer; color: var(--muted); }
.sch-report-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; margin-top: 8px; }
.fc-how { margin: 6px 0 0; }
.fc-edit td { background: rgba(15, 23, 42, 0.6); }
.fc-edit-grid { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; align-items: start; padding: 6px 0; }
.fc-edit-grid .field { margin: 0; }
.fc-edit-grid .sch-inline input[type=date] { width: auto; max-width: 160px; }
.fc-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 600px) {
  .fc-edit-grid { grid-template-columns: 1fr; }
}

/* Scheduling's gear (Instructors' aircraft) and its dialog */
.sc-gear { min-width: 40px; min-height: 40px; padding: 0 10px; font-size: 18px; line-height: 1; }
.modal.sc-limits { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; }
.sc-limits .card-header { margin-bottom: 8px; }
