@font-face {
  font-family: Inter;
  src: local("Inter");
  font-display: swap;
}
:root {
  --navy: #142d4e;
  --navy-dark: #102540;
  --yellow: #ffc928;
  --sky: #eaf1f8;
  --bg: #f7f9fc;
  --ink: #192d47;
  --muted: #778598;
  --line: #e7edf4;
  --green: #148465;
  --green-bg: #eaf7f1;
  --red: #bd4b52;
  --red-bg: #fdf0f0;
  --radius: 16px;
  --shadow: 0 5px 20px #142d4e05;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e8b51c;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d9e6f4;
  border-color: #8ca5c2;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 15px;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.initial-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 24px;
}
.initial-loading img {
  width: 240px;
}
.initial-loading p {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #d2ddeb;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  z-index: 60;
}
.sidebar-logo {
  width: 168px;
  margin: 3px 16px 35px;
}
.company-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin: 0 2px 27px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  background: #ffffff06;
}
.company-switch .company-icon {
  width: 33px;
  height: 33px;
  background: #ffffff12;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffc928;
}
.company-switch strong {
  font-size: 11px;
  line-height: 1.5;
  display: block;
  color: white;
}
.company-switch small {
  font-size: 10px;
  color: #8fa6c4;
}
.nav-caption {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #7992b2;
  margin: 0 16px 12px;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 9px;
  color: #aebfd5;
  font-size: 13px;
  transition: 0.15s;
  width: 100%;
}
.nav-item:hover {
  background: #ffffff09;
  color: white;
}
.nav-item.active {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 650;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  min-width: 20px;
  border-radius: 5px;
  background: #ffffff12;
  color: #d3dcea;
  padding: 3px 5px;
  text-align: center;
}
.nav-item.active .nav-count {
  background: #142d4e12;
  color: var(--navy);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-help {
  border: 1px solid #ffffff15;
  border-radius: 12px;
  padding: 16px 14px;
  margin: 0 3px 21px;
}
.sidebar-help .icon {
  color: var(--yellow);
  width: 23px;
  height: 23px;
  margin-bottom: 8px;
}
.sidebar-help strong {
  display: block;
  color: #f9fbff;
  font-size: 12px;
  margin-bottom: 7px;
}
.sidebar-help p {
  font-size: 11px;
  line-height: 1.6;
  color: #a0b4cf;
}
.sidebar-help button {
  margin-top: 12px;
  color: #ffc928;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff12;
  padding: 18px 8px 0;
}
.sidebar-user strong {
  font-size: 12px;
  color: white;
  display: block;
}
.sidebar-user small {
  font-size: 10px;
  color: #96aeca;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf1f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-user .avatar {
  background: #314968;
  color: #f4f7fb;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 18px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8a97a7;
  position: relative;
}
.global-search input {
  border: 0;
  outline: 0;
  font-size: 12px;
  width: 190px;
  background: transparent;
  padding: 8px 0;
}
.global-search .icon {
  width: 17px;
  height: 17px;
}
.search-results {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  width: 315px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 15px 40px #142d4e16;
  z-index: 90;
  padding: 7px;
}
.search-results.open {
  display: block;
}
.search-results button {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 12px;
  align-items: center;
  text-align: left;
  border-radius: 7px;
}
.search-results button:hover {
  background: var(--bg);
}
.search-results span {
  display: block;
  font-size: 12px;
}
.search-results small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  position: relative;
  color: #63768d;
}
.icon-button:hover {
  background: var(--sky);
}
.notification-dot {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
  outline: 2px solid white;
}
.top-profile {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.demo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 36px;
  background: #fffbee;
  border-bottom: 1px solid #efe8ce;
  color: #8b7131;
  font-size: 11px;
}
.demo-label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.demo-label .dot {
  width: 6px;
  height: 6px;
  background: #dcb12a;
  border-radius: 50%;
}
.profile-picker {
  display: flex;
  gap: 3px;
  background: #f1eddf;
  padding: 3px;
  border-radius: 7px;
}
.profile-picker button {
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 10px;
  color: #8b7a55;
}
.profile-picker button.active {
  background: white;
  box-shadow: 0 1px 4px #45330812;
  color: var(--navy);
  font-weight: 600;
}
.content {
  padding: 31px 36px 40px;
  max-width: 1580px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}
.page-heading .eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #8b98a9;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 9px;
}
.heading-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 39px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover {
  background: #f5bf18;
}
.btn-secondary {
  background: white;
  border-color: #dee6ef;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--sky);
}
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover {
  background: #24466d;
}
.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: #f1dada;
}
.btn-text {
  color: #607590;
  padding: 7px 0;
  font-size: 11px;
  min-height: 30px;
}
.btn-text:hover {
  color: var(--navy);
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  background: white;
  border: 1px solid #e0e7ef;
  padding: 11px 13px;
  border-radius: 8px;
  color: #738298;
  white-space: nowrap;
}
.date-chip .icon {
  width: 15px;
  height: 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  box-shadow: var(--shadow);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7d91;
  font-size: 11px;
}
.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f5fa;
  color: #6d88a7;
}
.metric-icon.yellow {
  background: #fff8de;
  color: #b69428;
}
.metric-icon.green {
  background: #ebf8f0;
  color: #2e966d;
}
.metric-icon.red {
  background: #fcf1ef;
  color: #c87967;
}
.metric-value {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 14px 0 10px;
  line-height: 1;
}
.metric-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8b98a8;
}
.metric-foot .icon {
  width: 12px;
  height: 12px;
}
.metric-foot .positive {
  color: #329773;
}
.metric-foot .warning {
  color: #bd8558;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 21px 22px;
}
.panel-head h2 {
  font-size: 14px;
  font-weight: 650;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.live-badge {
  font-size: 9px;
  color: #278265;
  background: #eaf7f1;
  border: 1px solid #d8ede3;
  padding: 5px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.live-badge .dot {
  height: 5px;
  width: 5px;
  background: #2a976f;
  border-radius: 50%;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 5px;
  color: #6d7f96;
  background: #eff3f8;
  white-space: nowrap;
}
.pill.green {
  color: var(--green);
  background: var(--green-bg);
}
.pill.yellow {
  color: #9d7920;
  background: #fff6d7;
}
.pill.red {
  color: var(--red);
  background: var(--red-bg);
}
.pill.blue {
  color: #456f9e;
  background: #eaf2fb;
}
.pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.map-wrap {
  height: 260px;
  position: relative;
  background: #edf2f6;
  margin: 0 22px;
  border-radius: 10px;
  overflow: hidden;
}
.map-wrap.large {
  height: 380px;
  margin: 0;
}
.map-wrap svg.map-art {
  width: 100%;
  height: 100%;
  display: block;
}
.map-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 500;
  background: #ffffffeb;
  border-radius: 5px;
  color: #6d7a8b;
  padding: 5px 7px;
  font-size: 9px;
}
.map-overlay {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 500;
  background: white;
  padding: 10px 12px;
  border-radius: 9px;
  box-shadow: 0 2px 12px #2443600d;
  font-size: 10px;
  max-width: 270px;
}
.map-overlay strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}
.map-overlay .muted {
  line-height: 1.6;
}
.map-controls {
  position: absolute;
  right: 12px;
  top: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.map-controls button {
  background: white;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  box-shadow: 0 2px 12px #142d4e12;
}
.map-controls .icon {
  height: 14px;
  width: 14px;
}
.map-key {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 9px;
  padding: 12px 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.legend-line {
  width: 13px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-line.yellow {
  background: var(--yellow);
}
.route-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid #edf1f7;
}
.route-mini:last-child {
  border: 0;
}
.route-mini-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: var(--sky);
}
.route-mini-icon .icon {
  width: 16px;
  height: 16px;
}
.route-mini strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.route-mini p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.route-mini .btn-text {
  margin-left: 5px;
}
.route-mini .icon-button {
  width: 23px;
}
.hero-card {
  background: var(--navy);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 22px 24px;
  height: 177px;
  margin-bottom: 20px;
  color: white;
}
.hero-card .hero-label {
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #b2c6dd;
  margin-bottom: 11px;
}
.hero-card h2 {
  font-size: 25px;
  line-height: 1.25;
  max-width: 250px;
  font-weight: 650;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
}
.hero-card h2 span {
  color: var(--yellow);
}
.hero-card p {
  color: #a9bfd9;
  font-size: 10px;
  margin-top: 11px;
  max-width: 240px;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}
.hero-graphic {
  position: absolute;
  right: -24px;
  bottom: -12px;
  width: 150px;
  height: 138px;
  opacity: 0.9;
}
.financial-summary {
  padding: 0 22px 22px;
}
.financial-amount {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.financial-note {
  font-size: 10px;
  color: var(--muted);
}
.progress-track {
  height: 7px;
  border-radius: 20px;
  background: #edf1f6;
  margin: 21px 0 14px;
  overflow: hidden;
  display: flex;
}
.progress-track span {
  display: block;
  background: var(--navy);
  border-radius: 20px;
  height: 100%;
}
.finance-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.finance-legend strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-top: 7px;
  font-weight: 600;
}
.timeline {
  padding: 0 22px 12px;
}
.timeline-item {
  display: flex;
  gap: 11px;
  padding: 11px 0;
}
.timeline-dot {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4fa;
  color: #6a86a5;
  flex-shrink: 0;
}
.timeline-dot .icon {
  height: 14px;
  width: 14px;
}
.timeline-dot.green {
  color: #258b6b;
  background: #edf8f2;
}
.timeline-item strong {
  font-weight: 550;
  display: block;
  font-size: 10px;
  margin: 2px 0 5px;
}
.timeline-item p {
  font-size: 9px;
  color: var(--muted);
}
.timeline-time {
  margin-left: auto;
  font-size: 9px;
  color: #98a3b2;
  padding-top: 4px;
}
.table-panel {
  margin-top: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
  text-align: left;
}
thead th {
  background: #fbfcfe;
  color: #8390a1;
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
tbody td {
  padding: 15px 22px;
  border-bottom: 1px solid #edf1f6;
  color: #61748c;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdff;
}
td strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
}
td .cell-sub {
  display: block;
  color: #98a2b0;
  font-size: 9px;
  margin-top: 5px;
}
.cell-person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cell-person .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
  border-radius: 9px;
}
.table-foot {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.input-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: #8b99aa;
  background: white;
}
.input-search .icon {
  width: 16px;
  height: 16px;
}
.input-search input {
  border: 0;
  padding: 10px 0;
  outline: 0 !important;
  min-width: 190px;
  font-size: 11px;
}
.filter-select {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #65768b;
  font-size: 11px;
  max-width: 230px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty .icon {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 12px;
  color: #a1b4c9;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.route-card {
  padding: 22px;
}
.route-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.route-card-top .route-mini-icon {
  width: 42px;
  height: 42px;
}
.route-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.route-school {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 23px;
}
.route-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.route-meta small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.route-meta strong {
  font-size: 11px;
  font-weight: 550;
}
.route-capacity {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
}
.route-card .progress-track {
  margin: 10px 0 19px;
  height: 4px;
}
.route-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.route-card .card-actions .btn {
  flex: 1;
  font-size: 10px;
  padding: 9px;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 22px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}
.tab {
  font-size: 11px;
  padding: 15px 12px;
  border-bottom: 2px solid transparent;
  color: #7a8ba1;
}
.tab.active {
  color: var(--navy);
  border-bottom-color: var(--yellow);
  font-weight: 600;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  color: #6b7d91;
  background: #edf3fa;
  border: 1px solid #e1eaf5;
  border-radius: 9px;
  padding: 13px 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.notice .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.notice.warning {
  background: #fff9e9;
  border-color: #f3e8c9;
  color: #927b3d;
}
.notice.success {
  background: var(--green-bg);
  border-color: #dcefe5;
  color: var(--green);
}
.notice.error {
  background: var(--red-bg);
  border-color: #f3d9db;
  color: var(--red);
}
.operational-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.operational-bar h2 {
  font-size: 15px;
  margin-bottom: 7px;
}
.operational-bar p {
  font-size: 11px;
  color: #b4c6dd;
}
.operational-bar .btn-secondary {
  background: #ffffff0d;
  border-color: #ffffff22;
  color: white;
}
.attendance-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.attendance-stat {
  padding: 14px 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.attendance-stat small {
  color: var(--muted);
  font-size: 10px;
}
.attendance-stat strong {
  font-size: 20px;
  font-weight: 600;
}
.student-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.student-check:last-child {
  border: 0;
}
.student-check .avatar {
  border-radius: 12px;
  width: 40px;
  height: 40px;
  background: #eff4fa;
}
.student-check h3 {
  font-size: 12px;
  margin-bottom: 6px;
}
.student-check p {
  font-size: 10px;
  color: var(--muted);
}
.check-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.check-actions .btn {
  font-size: 10px;
  padding: 9px 12px;
  min-height: 38px;
}
.step-number {
  width: 24px;
  font-size: 10px;
  color: #a1afbf;
}
.trip-select {
  min-width: 240px;
}
.mobile-menu {
  display: none;
}
.mobile-logo {
  display: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-body {
  padding: 0 22px 22px;
}
.settings-body p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  gap: 15px;
}
.plain-list h3 {
  font-size: 12px;
  margin-bottom: 5px;
}
.plain-list small {
  color: var(--muted);
  font-size: 10px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid #eef2f8;
}
.summary-line strong {
  font-weight: 550;
  color: var(--ink);
}
.summary-line:last-child {
  border: 0;
}
.summary-line.total {
  padding-top: 17px;
  font-size: 13px;
}
.summary-line.total strong {
  font-size: 18px;
}
.category-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0;
  font-size: 11px;
}
.category-bar .label {
  width: 90px;
  color: var(--muted);
}
.category-bar .track {
  height: 5px;
  flex: 1;
  background: #eef2f7;
  border-radius: 5px;
  overflow: hidden;
}
.category-bar .track span {
  height: 100%;
  background: #6685a9;
  display: block;
  border-radius: 5px;
}
.category-bar strong {
  font-size: 10px;
  min-width: 75px;
  text-align: right;
  font-weight: 500;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 18px;
  width: min(610px, calc(100vw - 32px));
  max-height: 88vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #142d4e36;
  background: white;
}
dialog::backdrop {
  background: #10254072;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 17px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head p {
  font-size: 11px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.6;
}
.modal-body {
  padding: 22px 26px;
}
.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fafcff;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-footer .form-error {
  margin-bottom: 0;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 11px;
  font-weight: 550;
  color: #62778f;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 12px;
  border: 1px solid #dfe7f0;
  border-radius: 7px;
  width: 100%;
  background: white;
  font-size: 12px;
  color: var(--ink);
  min-height: 41px;
}
.form-field textarea {
  resize: vertical;
  line-height: 1.6;
}
.form-field input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
}
.form-field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.form-section {
  grid-column: 1/-1;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c9aac;
  border-bottom: 1px solid var(--line);
  padding: 5px 0 10px;
  margin-top: 6px;
}
.form-error {
  color: var(--red);
  background: var(--red-bg);
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.form-error:empty {
  display: none;
}
.modal-copy {
  font-size: 12px;
  color: #657890;
  line-height: 1.8;
}
.modal-copy h3 {
  color: var(--ink);
  margin: 19px 0 9px;
}
.modal-copy p {
  margin-bottom: 13px;
}
.modal-copy ol {
  padding-left: 20px;
  margin: 10px 0;
}
.modal-copy li {
  padding: 5px 0;
}
.message-box {
  width: 100%;
  min-height: 165px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #586e88;
  resize: vertical;
  background: #fcfdff;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 390px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: white;
  padding: 15px 18px;
  box-shadow: 0 5px 25px #142d4e26;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}
.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--yellow);
}
.toast.error {
  background: #853b48;
}
.toast.error .icon {
  color: #ffe0df;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-brand {
  background: var(--navy);
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-brand img {
  width: 245px;
  margin-bottom: 58px;
}
.login-brand h1 {
  font-size: 52px;
  letter-spacing: -0.055em;
  line-height: 1.15;
  max-width: 520px;
}
.login-brand h1 span {
  color: var(--yellow);
}
.login-brand p {
  font-size: 15px;
  color: #afc2da;
  line-height: 1.8;
  margin-top: 24px;
  max-width: 440px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form {
  width: min(360px, 100%);
}
.login-form h2 {
  font-size: 27px;
}
.login-form p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0 30px;
}
.login-form .form-field {
  margin-bottom: 19px;
}
.login-form .btn {
  width: 100%;
  margin-top: 10px;
}
.login-footer {
  font-size: 10px !important;
  text-align: center;
  color: #97a4b4 !important;
  margin-top: 25px !important;
}
.parent-shell {
  min-height: 100vh;
  background: var(--bg);
}
.parent-header {
  height: 85px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(30px, calc((100vw - 1150px) / 2));
  gap: 15px;
}
.parent-header img {
  width: 170px;
}
.parent-content {
  max-width: 1150px;
  margin: auto;
  padding: 34px 30px 45px;
}
.parent-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.child-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.child-tab {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 13px;
  font-size: 11px;
}
.child-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}
.child-info {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px;
}
.child-info .avatar {
  width: 45px;
  height: 45px;
  font-size: 15px;
  border-radius: 13px;
}
.child-info h2 {
  font-size: 17px;
}
.child-info p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.parent-trip-status {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding: 15px 22px;
  background: #f8fafd;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.parent-trip-status small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 7px;
}
.parent-trip-status strong {
  font-size: 11px;
}
.journey {
  display: flex;
  gap: 0;
  margin: 23px 22px 25px;
}
.journey-step {
  flex: 1;
  position: relative;
  padding-top: 24px;
  font-size: 9px;
  color: #a0abba;
}
.journey-step:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e9f2;
  z-index: 2;
  outline: 4px solid white;
}
.journey-step:after {
  content: "";
  height: 2px;
  background: #e5ebf3;
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
}
.journey-step:last-child:after {
  display: none;
}
.journey-step.done:before,
.journey-step.done:after {
  background: #3a997a;
}
.journey-step.done {
  color: #548975;
}
.journey-step.active:before {
  background: var(--yellow);
  outline: 4px solid #fff6d8;
}
.journey-step.active {
  color: var(--navy);
  font-weight: 600;
}
.parent-small-card {
  margin-top: 20px;
}
.parent-small-card .settings-body .btn {
  margin-top: 15px;
}
.child-trips {
  padding: 0 22px 22px;
}
.child-trips .summary-line {
  align-items: center;
}
.receipt {
  font-size: 12px;
  line-height: 1.8;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.receipt strong {
  font-weight: 600;
}
.footer-note {
  font-size: 10px;
  color: #a1aebe;
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  gap: 15px;
}
.leaflet-container {
  font-family: inherit !important;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.map-pin {
  background: var(--navy);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  box-shadow: 0 2px 10px #142d4e30;
  display: grid;
  place-items: center;
}
.map-pin.school {
  background: var(--yellow);
  color: var(--navy);
}
.map-pin .icon {
  width: 14px;
  height: 14px;
}
.map-placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  height: 100%;
  padding: 35px;
  color: #7e8fa3;
  line-height: 1.8;
  font-size: 12px;
}
.map-placeholder .icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
}
.connection-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 180;
  background: #943e45;
  color: white;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 12px;
  box-shadow: 0 5px 25px #142d4e22;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .hero-graphic {
    width: 190px;
    right: -12px;
  }
  .hero-card h2 {
    font-size: 28px;
  }
  .hero-card {
    height: 180px;
  }
  .map-wrap {
    height: 280px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(335px, 1fr);
  }
}
@media (max-width: 1200px) {
  .topbar,
  .demo-strip {
    padding-left: 25px;
    padding-right: 25px;
  }
  .content {
    padding: 27px 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 17px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric-value {
    font-size: 26px;
  }
  .hero-card {
    padding: 21px;
  }
  .hero-graphic {
    opacity: 0.35;
  }
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .global-search input {
    width: 150px;
  }
  .top-actions {
    gap: 12px;
  }
  .two-columns {
    grid-template-columns: minmax(0, 1.35fr) minmax(265px, 1fr);
  }
  table td,
  thead th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .metric-top {
    font-size: 10px;
  }
  .route-mini {
    padding: 13px 18px;
  }
}
@media (max-width: 1020px) {
  .shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }
  .sidebar {
    width: 204px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar-logo {
    width: 154px;
    margin-left: 12px;
  }
  .company-switch {
    padding: 9px;
  }
  .nav-item {
    font-size: 11px;
    padding-left: 12px;
    gap: 9px;
  }
  .global-search {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    height: 155px;
  }
  .hero-graphic {
    opacity: 0.9;
    width: 200px;
    right: 15px;
  }
  .hero-card h2 {
    max-width: 350px;
  }
  .dashboard-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .dashboard-side .hero-card {
    grid-column: 1/-1;
    margin: 0;
  }
  .financial-panel {
    align-self: start;
  }
  .timeline-panel {
    margin: 0 !important;
  }
  .two-columns,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .parent-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .attendance-stats {
    gap: 8px;
  }
  .attendance-stat {
    padding: 13px;
  }
  .check-actions {
    gap: 5px;
  }
  .check-actions .btn {
    padding: 9px;
  }
  .student-check {
    padding: 16px;
  }
  .step-number {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #10254077;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
    gap: 10px;
  }
  .mobile-menu {
    display: grid;
  }
  .mobile-logo {
    display: block;
    width: 119px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    gap: 8px;
    margin-left: auto;
  }
  .top-profile {
    border: 0;
    padding-left: 5px;
  }
  .top-profile .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .demo-strip {
    padding: 9px 18px;
    gap: 9px;
  }
  .demo-label {
    font-size: 9px;
  }
  .profile-picker button {
    padding: 6px 9px;
    font-size: 9px;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-controls {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .heading-controls .btn {
    padding: 10px 12px;
    font-size: 11px;
  }
  .date-chip {
    padding: 10px;
    font-size: 10px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
  }
  .metric-icon .icon {
    width: 16px;
    height: 16px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-value {
    font-size: 24px;
    margin: 13px 0 9px;
  }
  .metric-foot {
    font-size: 9px;
    line-height: 1.5;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .panel-head {
    padding: 19px 17px;
  }
  .map-wrap {
    margin: 0 16px;
    height: 250px;
  }
  .map-wrap.large {
    height: 300px;
  }
  .route-mini {
    padding: 14px 17px;
    gap: 9px;
  }
  .route-mini strong {
    font-size: 10px;
  }
  .route-mini .pill {
    font-size: 9px;
    padding: 4px 6px;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dashboard-side .hero-card {
    grid-column: auto;
  }
  .hero-card {
    padding: 22px;
    height: 165px;
  }
  .hero-card h2 {
    font-size: 25px;
    max-width: 240px;
  }
  .hero-graphic {
    width: 140px;
    right: 0;
    opacity: 0.8;
  }
  .hero-card p {
    max-width: 240px;
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .table-toolbar {
    padding: 16px;
    align-items: stretch;
  }
  .input-search {
    flex: 1;
  }
  .input-search input {
    width: 100%;
    min-width: 0;
  }
  .filter-group {
    width: 100%;
  }
  .filter-select {
    flex: 1;
    max-width: none;
  }
  .table-foot {
    padding: 13px 17px;
    font-size: 9px;
  }
  .footer-note {
    font-size: 9px;
  }
  .attendance-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .attendance-stat {
    padding: 13px 15px;
  }
  .operational-bar {
    padding: 17px;
  }
  .student-check {
    gap: 10px;
    padding: 15px;
    flex-wrap: wrap;
  }
  .student-check .avatar {
    width: 33px;
    height: 33px;
    font-size: 10px;
  }
  .student-check h3 {
    font-size: 12px;
  }
  .student-check p {
    font-size: 9px;
  }
  .check-actions {
    width: 100%;
    padding-left: 43px;
    margin-top: 5px;
    justify-content: flex-start;
  }
  .check-actions .btn {
    min-height: 42px;
    font-size: 11px;
    padding: 10px 14px;
  }
  .btn {
    min-height: 41px;
  }
  .tabs {
    padding: 0 8px;
    overflow: auto;
  }
  .tab {
    padding: 14px 10px;
    white-space: nowrap;
  }
  .settings-grid {
    gap: 18px;
  }
  .parent-header {
    height: 70px;
    padding: 0 20px;
  }
  .parent-header img {
    width: 137px;
  }
  .parent-header .muted {
    display: none;
  }
  .parent-content {
    padding: 25px 18px;
  }
  .parent-grid {
    grid-template-columns: 1fr;
  }
  .parent-content .page-heading {
    gap: 15px;
  }
  .parent-trip-status {
    padding: 15px 18px;
  }
  .parent-content .child-info {
    padding: 20px 18px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 30px 25px;
  }
  .login-brand img {
    width: 175px;
    margin-bottom: 25px;
  }
  .login-brand h1 {
    font-size: 34px;
    max-width: 360px;
  }
  .login-brand p {
    font-size: 12px;
    margin-top: 15px;
  }
  .login-form-wrap {
    padding: 35px 25px 45px;
  }
  .form-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .form-section {
    grid-column: auto;
  }
  .modal-head {
    padding: 21px 21px 17px;
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .modal-body {
    padding: 21px;
  }
  .modal-footer {
    padding: 16px 21px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 14px;
  }
  #toasts {
    right: 16px;
    left: 16px;
    bottom: 18px;
    max-width: none;
  }
  .toast {
    font-size: 11px;
  }
  .journey-step {
    font-size: 8px;
  }
  .trip-select {
    width: 100%;
    min-width: 0;
  }
  .modal-footer .btn {
    flex: 1;
  }
  .map-key {
    font-size: 8px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .demo-strip,
  .heading-controls,
  .btn,
  .footer-note,
  .toast,
  .modal-footer {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel {
    box-shadow: none;
  }
  .receipt {
    color: black;
  }
  dialog[open] {
    position: static;
    box-shadow: none;
    max-height: none;
    border: 0;
    width: 100%;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
  dialog::backdrop {
    display: none;
  }
}
