/* Brand: SchoolVision logo blue #376278 with IBM Plex Sans, matching fleet-ledger.com (see ../fleet-ledger-website/site/style.css).
   Plex is self-hosted (fonts/OFL.txt). */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plex-sans-700.woff2') format('woff2');
}
:root {
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  color: #16303d;
  background: #f3f6f9;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
aside {
  position: fixed;
  width: 232px;
  height: 100vh;
  background: #16303d;
  color: #fff;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand span {
  display: inline-grid;
  place-items: center;
  background: #376278;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-right: 7px;
}
.company {
  font-size: 12px;
  letter-spacing: 1.3px;
  line-height: 1.8;
  margin: 45px 5px 24px;
  color: #c4d1dc;
}
.company small {
  font-size: 13px;
  letter-spacing: 0;
  color: #95adbe;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  background: none;
  color: #b8ccd9;
  border: 0;
  padding: 13px 15px;
}
nav button.active {
  background: #2b4e60;
  color: white;
}
.aside-note {
  margin-top: auto;
  color: #97afc0;
  line-height: 1.7;
  font-size: 14px;
}
.shell {
  margin-left: 232px;
}
header {
  height: 82px;
  border-bottom: 1px solid #dce4eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 14px;
}
.demo {
  font-size: 12px;
  letter-spacing: 1px;
  color: #647a89;
}
main {
  padding: 35px 40px;
  max-width: 1500px;
  margin: auto;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 0 0 8px;
}
h2 {
  font-size: 21px;
  margin: 0 0 18px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.6;
  color: #607381;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.top p {
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #58717f;
  margin-bottom: 10px;
}
button,
.button {
  font: inherit;
  font-size: 14px;
  border: 1px solid #ccd7df;
  border-radius: 7px;
  padding: 10px 15px;
  background: white;
  color: #16303d;
  cursor: pointer;
  line-height: 1.4;
}
button:hover {
  border-color: #567487;
  background: #edf3f7;
}
button.primary {
  background: #376278;
  color: white;
  border-color: #376278;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  text-align: left;
  background: white;
  border: 1px solid #dce4eb;
  border-top: 3px solid #b7c9d5;
  padding: 20px;
}
.stat strong {
  display: block;
  font-size: 34px;
  margin: 9px 0;
}
.stat small {
  color: #647887;
}
.stat.red {
  border-top-color: #c35045;
}
.stat.amber {
  border-top-color: #c9952d;
}
.stat.purple {
  border-top-color: #8a6bb0;
}
.stat.grey {
  border-top-color: #7d8b96;
}
.panel {
  background: white;
  border: 1px solid #dce4eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panelhead h2 {
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.toolbar button.selected {
  background: #376278;
  color: white;
  border-color: #376278;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6b7e8b;
  font-weight: 600;
  background: #f7f9fb;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid #e6edf2;
}
td small {
  display: block;
  color: #6c7e8d;
  font-size: 13px;
  margin-top: 4px;
}
.link {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 650;
  color: #376278;
}
.badge {
  display: inline-block;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eaf0f4;
  white-space: nowrap;
}
.badge.Overdue,
.badge.Expired {
  color: #9a362d;
  background: #fceae6;
}
.badge.Expiring,
.badge.Upcoming {
  background: #fff2d8;
  color: #805806;
}
.badge.Missing {
  background: #f0e9fa;
  color: #704b91;
}
.badge.Recorded {
  background: #e7f3ef;
  color: #316652;
}
.badge.Stale {
  background: #eceff2;
  color: #4f5d68;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
}
.note {
  background: #eef4f8;
  border-left: 3px solid #376278;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
  color: #435e70;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 17px 0 7px;
}
input,
select,
textarea {
  font: inherit;
  font-size: 14px;
  padding: 11px;
  border: 1px solid #c9d5de;
  border-radius: 6px;
  background: #fff;
  color: #16303d;
  max-width: 100%;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
}
/* Date inputs render 2px taller; match them so side-by-side fields line up. */
input:not([type='checkbox']) {
  min-height: 43px;
}
textarea {
  min-height: 170px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
input[type='checkbox'] {
  margin-right: 9px;
}
footer {
  font-size: 12px;
  color: #6a7f8d;
  padding: 10px 40px 30px;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 34px;
  max-width: 740px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: #16303d;
  box-shadow: 0 20px 90px #102a4755;
}
dialog::backdrop {
  background: #102a4770;
}
.close {
  float: right;
  font-size: 23px;
  border: 0;
  padding: 0 7px;
}
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.empty {
  padding: 30px;
  text-align: center;
}
.mail {
  border: 1px solid #dae4eb;
  border-radius: 8px;
  overflow: hidden;
}
.mailhead {
  background: #f6f8fa;
  padding: 18px;
  font-size: 14px;
  line-height: 1.8;
}
.mailframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}
.mailbody {
  padding: 25px;
  line-height: 1.7;
  white-space: pre-line;
}
.step {
  font-size: 13px;
  color: #527184;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #376278;
  color: white;
  padding: 15px 22px;
  border-radius: 8px;
  display: none;
  z-index: 10;
}
.metric {
  font-size: 30px;
  font-weight: 700;
}
.muted {
  color: #6a7e8b;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
a {
  color: #376278;
}
li {
  line-height: 1.7;
  margin-bottom: 6px;
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
    padding: 25px 16px;
  }
  .shell {
    margin-left: 190px;
  }
  main {
    padding: 25px;
  }
  .stats {
    gap: 10px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  header {
    padding: 0 25px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    height: auto;
    padding: 18px;
  }
  .company,
  .aside-note {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px;
  }
  .shell {
    margin: 0;
  }
  header {
    height: auto;
    min-height: 60px;
    gap: 15px;
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  main {
    padding: 24px 18px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 29px;
  }
  .panel {
    padding: 17px;
  }
  .panelhead {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    padding: 15px 20px;
  }
  .demo {
    font-size: 12px;
  }
}

.sample-downloads {
  padding: 20px;
  background: #f3f7fa;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  margin: 20px 0;
}
.sample-downloads .actions {
  flex-wrap: wrap;
}
.button {
  text-decoration: none;
  display: inline-block;
}

/* Header call to action while viewing the demo workspace */
.demo button {
  margin-right: 14px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0;
}
/* Compact inputs inside tables (mileage check-in) */
td input {
  width: 130px;
}
td label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-weight: 400;
}
.ok {
  color: #316652;
}
.problem {
  color: #9a362d;
}
.hint {
  display: block;
  font-size: 13px;
  color: #647a89;
  margin-top: 6px;
}
/* "What do you track?" checkbox groups in Setup */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
fieldset label {
  font-weight: 400;
  margin: 10px 0 0;
}

/* Interaction polish: hover, focus and motion. Kept short (150–200 ms) so the app feels responsive,
   and switched off entirely for people who ask their device to reduce motion. */
button,
.button,
a,
.stat {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.button:hover {
  border-color: #567487;
  background: #edf3f7;
}
button.primary:hover,
.toolbar button.selected:hover {
  background: #2b4e60;
  border-color: #2b4e60;
}
button:disabled:hover {
  border-color: #ccd7df;
  background: white;
}
button.primary:disabled:hover {
  background: #376278;
  border-color: #376278;
}
/* Sidebar items sit on the dark panel, so they lighten instead of taking the light button hover. */
nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
nav button.active:hover {
  background: #2b4e60;
}
.link:hover {
  background: none;
  color: #2b4e60;
  text-decoration: underline;
}
/* Overview tiles are buttons; lift them slightly so they read as clickable. */
.stat:hover {
  background: white;
  /* Sides and bottom only, so each tile keeps its colored top bar. */
  border-right-color: #b8c8d4;
  border-bottom-color: #b8c8d4;
  border-left-color: #b8c8d4;
  box-shadow: 0 6px 18px rgba(22, 48, 61, 0.1);
  transform: translateY(-2px);
}
:focus-visible {
  outline: 3px solid #376278;
  outline-offset: 2px;
}
nav button:focus-visible,
aside :focus-visible {
  outline-color: #9cc3d6;
}
dialog[open] {
  animation: dialog-in 0.18s ease-out;
}
dialog[open]::backdrop {
  animation: fade-in 0.18s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
/* The "Saved" notice slides up and fades instead of blinking; notice() toggles .show. */
#toast {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}
#toast.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .stat:hover {
    transform: none;
  }
}
