/* Sirb Admin modern UI layer.
   Loaded last to refresh the full product without changing AngularJS behavior. */
:root {
  --brand: #12b700;
  --brand-dark: #078a00;
  --brand-strong: #00a800;
  --brand-soft: #e9fbea;
  --ink: #102018;
  --muted: #66746d;
  --muted-strong: #46554d;
  --line: #e1ebe4;
  --surface: rgba(255,255,255,.92);
  --surface-solid: #ffffff;
  --canvas: #f3f8f5;
  --sidebar: #ffffff;
  --shadow: 0 18px 48px rgba(22,50,31,.08);
  --shadow-soft: 0 10px 30px rgba(22,50,31,.06);
  --radius: 24px;
  --radius-sm: 16px;
  --control-h: 48px;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 8%, rgba(18,183,0,.09), transparent 28%),
    radial-gradient(circle at 84% 6%, rgba(6,138,0,.055), transparent 26%),
    linear-gradient(180deg, #f8fbf9 0%, var(--canvas) 42%, #edf7ef 100%);
}

html.dark-theme {
  background:
    radial-gradient(circle at 12% 8%, rgba(18,183,0,.13), transparent 28%),
    radial-gradient(circle at 84% 6%, rgba(18,183,0,.08), transparent 26%),
    linear-gradient(180deg, #0b130e 0%, #0e1812 48%, #09110c 100%);
}

body {
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(18,183,0,.09), transparent 28%),
    radial-gradient(circle at 84% 6%, rgba(6,138,0,.055), transparent 26%),
    linear-gradient(180deg, #f8fbf9 0%, var(--canvas) 42%, #edf7ef 100%);
  font-size: 15px;
}

body.auth-page {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(18,183,0,.12), transparent 28%),
    linear-gradient(135deg, #f8fcf9 0%, #eef8f0 100%);
}

body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .44;
  background-image:
    linear-gradient(rgba(8,75,25,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,75,25,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(#000, transparent 78%);
  pointer-events: none;
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 430, 'GRAD' 0, 'opsz' 24;
}

button,
a,
input,
.sirb-dropdown-trigger {
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.app-shell {
  min-height: 100vh;
}

.public-page-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.sidebar {
  inset: 16px 16px 16px auto;
  width: 286px;
  padding: 20px 16px;
  border: 1px solid rgba(207,225,214,.82);
  border-radius: 30px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,253,249,.9)),
    var(--surface-solid);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-collapse-toggle {
  position: absolute;
  z-index: 4;
  top: 36px;
  left: -17px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(207,225,214,.9);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(250,253,251,.96);
  box-shadow: 0 12px 26px rgba(15,35,21,.12);
  cursor: pointer;
}

.ltr .sidebar-collapse-toggle {
  right: -17px;
  left: auto;
}

.sidebar-collapse-toggle .material-symbols-rounded {
  font-size: 20px;
}

.sidebar-collapse-toggle:hover {
  color: var(--brand-dark);
  border-color: rgba(18,183,0,.26);
  background: #f4fff2;
}

.ltr .sidebar {
  inset: 16px auto 16px 16px;
}

.main-content {
  margin-right: 318px;
}

.ltr .main-content {
  margin-right: 0;
  margin-left: 318px;
}

.brand {
  gap: 14px;
  margin: 0 4px 30px;
  padding: 8px;
  border-radius: 22px;
  color: var(--ink);
}

.brand:hover {
  background: transparent;
}

.sirb-brand-logo {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(18,183,0,.2);
}

.brand-copy {
  min-height: 54px;
  gap: 6px;
}

.brand strong,
.login-brand strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.brand small,
.login-brand small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-label {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

.main-nav {
  gap: 7px;
}

.main-nav a {
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: #65746c;
  font-size: 15px;
  font-weight: 800;
}

.main-nav a .material-symbols-rounded {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #77877e;
  background: transparent;
  font-size: 22px;
}

.main-nav a:hover {
  color: var(--ink);
  border-color: rgba(18,183,0,.13);
  background: rgba(18,183,0,.055);
  transform: translateX(0);
}

.main-nav a.active {
  color: var(--brand-dark);
  border-color: rgba(18,183,0,.22);
  background: linear-gradient(135deg, rgba(18,183,0,.12), rgba(18,183,0,.045));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 10px 22px rgba(18,183,0,.08);
}

.main-nav a.active .material-symbols-rounded {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.main-nav a b {
  min-width: 26px;
  color: var(--brand-dark);
  background: rgba(18,183,0,.11);
  font-size: 11px;
}

.sidebar-card,
.profile-mini {
  border-color: rgba(207,225,214,.82);
  background: rgba(247,252,248,.78);
}

.sidebar-card {
  margin: auto 4px 14px;
  padding: 14px;
  border-radius: 19px;
}

.sidebar-card > .material-symbols-rounded {
  color: var(--brand-dark);
  font-size: 23px;
}

.sidebar-card strong,
.profile-mini strong {
  color: var(--ink);
  font-size: 13px;
}

.sidebar-card small,
.profile-mini small {
  color: var(--muted);
  font-size: 11px;
}

.profile-mini {
  margin: 0 4px;
  padding: 12px;
  border: 1px solid rgba(207,225,214,.82);
  border-radius: 19px;
}

.profile-mini button {
  color: var(--muted);
}

.app-version-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 7px 0;
  padding: 8px 10px;
  border: 1px solid rgba(18,183,0,.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(18,183,0,.045);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.app-version-note b {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.footer-version {
  color: var(--muted-strong);
  font-weight: 800;
}

.avatar {
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
}

.topbar {
  top: 16px;
  height: 76px;
  margin: 16px 18px 0;
  padding: 0 18px;
  border: 1px solid rgba(207,225,214,.82);
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.topbar-start,
.topbar-actions {
  gap: 10px;
}

.search-box,
.icon-button,
.language-switch,
.filter-search,
.filter-panel-toggle,
.primary-button,
.secondary-button,
.filter-button,
.pagination button {
  border-radius: 16px;
}

.search-box {
  width: min(460px, 32vw);
  height: var(--control-h);
  padding: 0 14px;
  border-color: rgba(207,225,214,.9);
  color: var(--muted);
  background: rgba(250,253,251,.92);
}

.search-box.focused {
  width: min(520px, 38vw);
  border-color: rgba(18,183,0,.34);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(18,183,0,.08);
}

.search-box input {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.search-box kbd {
  border-color: rgba(207,225,214,.9);
  color: #7c8b82;
  background: #fff;
  font-size: 11px;
}

.icon-button,
.language-switch {
  display: inline-grid;
  min-width: var(--control-h);
  height: var(--control-h);
  place-items: center;
  border: 1px solid rgba(207,225,214,.9);
  color: var(--muted-strong);
  background: rgba(250,253,251,.9);
}

.language-switch {
  display: inline-flex;
  gap: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.icon-button:hover,
.language-switch:hover,
.secondary-button:hover,
.filter-panel-toggle:hover,
.filter-panel-toggle.active {
  color: var(--brand-dark);
  border-color: rgba(18,183,0,.28);
  background: rgba(239,252,239,.92);
  box-shadow: 0 10px 22px rgba(18,183,0,.08);
}

.notification-button i {
  top: 12px;
  right: 12px;
}

.primary-button {
  min-height: var(--control-h);
  border: 0;
  background: linear-gradient(135deg, #18c900 0%, #0aa000 58%, #078600 100%);
  box-shadow: 0 15px 30px rgba(18,183,0,.2);
  font-size: 15px;
  font-weight: 900;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(18,183,0,.26);
}

.secondary-button,
.filter-button {
  min-height: var(--control-h);
  border-color: rgba(207,225,214,.9);
  color: var(--muted-strong);
  background: rgba(255,255,255,.74);
  font-size: 15px;
  font-weight: 900;
}

.topbar-actions > .quick-actions-trigger,
.topbar-actions > .primary-button {
  flex: 0 0 var(--control-h);
  width: var(--control-h);
  height: var(--control-h);
  min-height: var(--control-h);
  border-radius: 17px;
}

.topbar-actions > .quick-actions-trigger .material-symbols-rounded {
  font-size: 25px;
}

.quick-actions-menu,
.notifications-panel,
.row-action-menu,
.sirb-dropdown-menu {
  border-color: rgba(207,225,214,.92);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 70px rgba(17,37,24,.16);
  backdrop-filter: blur(18px);
}

.quick-actions-menu {
  width: min(360px, calc(100vw - 28px));
  padding: 12px;
}

.quick-actions-menu header {
  padding: 12px;
}

.quick-action-icon,
.quick-actions-spark {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.quick-actions-menu button {
  min-height: 64px;
  border-radius: 18px;
}

.quick-actions-menu button:hover {
  border-color: rgba(18,183,0,.16);
  background: rgba(235,252,236,.82);
}

.page {
  max-width: 1480px;
  padding: 24px 28px 50px;
}

.page-heading {
  align-items: center;
  margin-bottom: 22px;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.split-heading > div {
  min-width: 0;
}

.split-heading > .primary-button {
  flex: 0 0 auto;
}

.eyebrow,
.panel-kicker {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
}

.page-heading h1 {
  font-size: clamp(34px, 3.1vw, 48px);
  line-height: 1.18;
  letter-spacing: -.055em;
}

.page-heading p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.panel,
.kpi-card,
.organization-hero,
.detail-facts article,
.not-found-card {
  border-color: rgba(207,225,214,.82);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,253,251,.9)),
    var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.kpi-grid {
  gap: 18px;
}

.kpi-card {
  min-height: 176px;
  padding: 22px;
}

.kpi-card > strong {
  font-size: 32px;
}

.kpi-card > small,
.kpi-card > p,
.chart-summary div:first-child span,
.bar-group > span,
.live-stats p,
.alert-item p,
.alert-item small {
  color: var(--muted);
}

.kpi-icon,
.alert-icon,
.notification-icon,
.modal-icon,
.detail-facts .material-symbols-rounded,
.date-range-title > .material-symbols-rounded {
  border-radius: 15px;
}

.panel-header {
  padding: 22px 24px 0;
}

.panel-header h2 {
  font-size: 20px;
}

.panel-header p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-grid,
.lower-grid {
  gap: 18px;
}

.organization-workspace {
  overflow: visible;
}

.organization-toolbar {
  gap: 12px;
  padding: 18px;
  border-color: rgba(207,225,214,.82);
}

.detail-toolbar {
  padding: 14px 18px;
}

.detail-toolbar .filter-search {
  max-width: 420px;
}

.organization-search,
.filter-search {
  height: var(--control-h);
  border-color: rgba(207,225,214,.92);
  color: var(--muted);
  background: rgba(255,255,255,.72);
}

.filter-search input {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.filter-panel-toggle {
  min-height: var(--control-h);
  padding: 0 18px;
  color: var(--muted-strong);
  background: rgba(255,255,255,.74);
  font-size: 15px;
}

.filter-panel-toggle b {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.filter-panel {
  border-color: rgba(207,225,214,.92);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 70px rgba(17,37,24,.16);
  backdrop-filter: blur(18px);
}

.filter-panel h2 {
  font-size: 21px;
}

.filter-panel p {
  font-size: 14px;
}

.date-range-filter {
  border-color: rgba(18,183,0,.15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(240,253,240,.75), rgba(255,255,255,.86));
}

.date-range-grid input,
.modal input,
.modal select {
  min-height: var(--control-h);
  border-color: rgba(207,225,214,.95);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 800;
}

.date-range-grid input:focus,
.modal input:focus,
.modal select:focus {
  border-color: rgba(18,183,0,.34);
  box-shadow: 0 0 0 5px rgba(18,183,0,.08);
}

.sirb-dropdown-trigger {
  min-height: 58px;
  border-color: rgba(207,225,214,.95);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

.sirb-dropdown-trigger:hover,
.sirb-dropdown.open .sirb-dropdown-trigger {
  border-color: rgba(18,183,0,.34);
  box-shadow: 0 0 0 5px rgba(18,183,0,.08);
}

.sirb-dropdown.disabled .sirb-dropdown-trigger,
.sirb-dropdown.disabled .sirb-dropdown-trigger:hover {
  cursor: default;
  border-style: dashed;
  border-color: rgba(117,142,130,.34);
  background: rgba(117,142,130,.075);
  box-shadow: none;
  opacity: 1;
}

.sirb-dropdown.disabled .sirb-dropdown-icon {
  color: var(--muted-strong);
  background: rgba(117,142,130,.12);
}

.sirb-dropdown.disabled .sirb-dropdown-chevron {
  opacity: 0;
}

.field-note {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.sirb-dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.sirb-dropdown-copy small {
  font-size: 12px;
}

.sirb-dropdown-copy strong {
  font-size: 16px;
}

.sirb-dropdown-options {
  max-height: 220px;
  padding: 8px 8px 16px;
}

.sirb-dropdown-options button {
  min-height: 44px;
  border-radius: 14px;
  font-size: 14px;
}

.organization-workspace .table-wrap {
  border-top-color: rgba(207,225,214,.82);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 16px 18px;
  border-bottom-color: rgba(222,236,227,.46);
  font-size: 15px;
}

tbody td {
  border-bottom-color: rgba(222,236,227,.38);
}

th {
  color: #718078;
  background: rgba(245,250,246,.92);
  font-size: 13px;
  font-weight: 900;
}

tbody tr {
  background: rgba(255,255,255,.64);
}

tbody tr:hover {
  background: rgba(240,253,240,.66);
}

.org-link {
  gap: 13px;
}

.org-link strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.org-link small {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
}

.org-monogram,
.hero-monogram {
  color: var(--brand-dark);
  background: linear-gradient(145deg, #e3ffe5, #ccf7d7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.org-monogram {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.state {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.plan-chip,
.country-chip,
.date-chip-small,
.location-chip {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(207,225,214,.9);
  background: rgba(255,255,255,.72);
  font-size: 14px;
}

.plan-chip {
  color: var(--brand-dark);
  background: rgba(232,251,232,.82);
}

.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

.count-chip .material-symbols-rounded,
.date-chip-small .material-symbols-rounded,
.location-chip .material-symbols-rounded {
  color: #789084;
  font-size: 21px;
}

.row-action {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.row-action .material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
}

.row-action:hover,
.row-action.active {
  color: var(--brand);
  border-color: rgba(25,176,0,.18);
  background: rgba(25,176,0,.08);
}

.row-action.active {
  box-shadow: inset 0 0 0 1px rgba(25,176,0,.16);
}

.pagination {
  min-height: 74px;
  padding: 14px 20px;
  border-top-color: rgba(207,225,214,.82);
  font-size: 14px;
}

.pagination button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.reusable-empty {
  padding: 90px 24px;
}

.empty-illustration {
  width: 96px;
  height: 84px;
  border-color: rgba(18,183,0,.16);
  border-radius: 30px;
  background: linear-gradient(145deg, #fbfffb, #e8fbe9);
}

.empty-illustration > .material-symbols-rounded {
  font-size: 42px;
}

.empty-state h3 {
  font-size: 20px;
}

.empty-state p {
  font-size: 15px;
}

.list-feedback,
.detail-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  font-size: 15px;
  text-align: center;
}

.detail-skeleton.compact {
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.list-error {
  margin: 28px;
  padding: 22px;
  border-color: #f2d0d0;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff8f8, #fff);
}

.organization-hero {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 15%, rgba(18,183,0,.11), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,253,251,.88));
}

.organization-identity {
  gap: 18px;
}

.hero-monogram {
  flex-basis: 76px;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 21px;
}

.organization-hero h1 {
  font-size: clamp(28px, 2.5vw, 42px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.organization-hero p {
  margin-top: 7px;
  font-size: 15px;
}

.hero-actions {
  gap: 11px;
}

.driver-details-page .hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: wrap;
}

.driver-details-page .hero-actions .driver-hero-status {
  flex: 0 1 auto;
  width: auto;
  max-width: clamp(150px, 16vw, 250px);
  overflow: hidden;
  justify-content: center;
}

.driver-details-page .hero-actions .driver-hero-status .chip-label {
  min-width: 0;
}

.detail-facts {
  gap: 14px;
}

.detail-facts article {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  align-content: start;
  padding: 20px;
  border-radius: 22px;
}

.detail-facts .material-symbols-rounded {
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  font-size: 25px;
}

.detail-facts small {
  font-size: 13px;
  font-weight: 800;
  align-self: end;
}

.detail-facts strong {
  font-size: 16px;
  align-self: start;
}

.detail-facts article.wide-fact strong {
  white-space: normal;
  line-height: 1.55;
}

.detail-lists {
  border-radius: 26px;
}

.detail-tabs {
  gap: 8px;
  padding: 10px;
}

.workspace-tabs {
  border-bottom: 1px solid var(--line);
}

.detail-tabs button {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
}

.detail-tabs button.active {
  color: var(--brand-dark);
  background: linear-gradient(135deg, rgba(18,183,0,.14), rgba(18,183,0,.07));
}

.detail-tabs button b {
  min-width: 28px;
  font-size: 12px;
}

.toolbar-dropdown {
  flex: 0 1 280px;
  min-width: 220px;
}

.detail-list-heading {
  padding: 22px 22px 12px;
}

.detail-list-heading h2 {
  font-size: 20px;
}

.detail-list-heading p,
.allowed-logins-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.allowed-logins-panel {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.allowed-logins-panel > header {
  padding: 0 22px 14px;
}

.allowed-logins-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.modal-backdrop {
  background: rgba(7,18,10,.48);
  backdrop-filter: blur(10px);
}

.modal {
  display: flex;
  flex-direction: column;
  max-height: min(860px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid rgba(207,225,214,.82);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 34px 90px rgba(8,22,13,.24);
}

.modal > header {
  flex: 0 0 auto;
  padding: 24px 26px 20px;
  border-color: rgba(207,225,214,.82);
}

.modal h2 {
  font-size: 23px;
  letter-spacing: -.025em;
}

.modal header p,
.modal label {
  font-size: 14px;
}

.modal form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 18px;
  padding: 24px 26px 0;
  scrollbar-color: rgba(25,176,0,.32) transparent;
  scrollbar-width: thin;
}

.modal form::-webkit-scrollbar {
  width: 8px;
}

.modal form::-webkit-scrollbar-track {
  background: transparent;
}

.modal form::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(25,176,0,.28);
  background-clip: padding-box;
}

.modal form > footer {
  position: sticky;
  z-index: 3;
  bottom: 0;
  margin: 8px -26px 0;
  padding: 16px 26px 22px;
  border-top: 1px solid rgba(207,225,214,.72);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.98) 34%);
  backdrop-filter: blur(16px);
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 26px;
}

.field-error {
  margin-top: 5px;
  color: #c24141;
  font-size: 12px;
}

.status-modal {
  border-radius: 28px;
}

.status-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.toast {
  border-radius: 18px;
  background: rgba(16,32,24,.94);
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
  font-size: 14px;
}

.toast.error {
  background: rgba(74, 24, 22, .96);
  border-color: rgba(255, 143, 133, .35);
}

.toast.error .material-symbols-rounded {
  color: #ff8f85;
}

.login-page {
  height: 100dvh;
  min-height: 680px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 70% 12%, rgba(18,183,0,.12), transparent 28%),
    linear-gradient(135deg, #f8fcf9 0%, #eef8f0 100%);
}

.login-visual {
  min-height: 0;
  margin: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 18%, rgba(42,222,28,.2), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(18,183,0,.16), transparent 30%),
    linear-gradient(135deg, #0e2116 0%, #07130c 68%, #041009 100%);
  box-shadow: var(--shadow);
}

.login-form-side {
  min-height: 0;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  background: transparent;
  scrollbar-width: thin;
}

.login-controls {
  position: absolute;
  z-index: 5;
  top: 26px;
  inset-inline-end: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-controls .login-language-switch {
  position: static;
}

.login-theme-switch {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.login-visual .login-brand strong,
.login-visual .login-brand small {
  color: #eef8f0;
  text-shadow: 0 8px 26px rgba(0,0,0,.16);
}

.login-visual .login-brand small {
  color: rgba(238,248,240,.68);
}

.login-card,
.login-card h2,
.phone-login label {
  color: var(--ink);
}

.login-card {
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(207,225,214,.82);
  border-radius: 32px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  font-size: clamp(36px, 4.1vw, 52px);
  letter-spacing: -.055em;
  white-space: nowrap;
}

.login-card header p,
.phone-login small,
.login-help {
  color: var(--muted);
  font-size: 15px;
}

.social-login-grid button,
.phone-input,
.otp-input {
  min-height: 58px;
  border-color: rgba(207,225,214,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  font-size: 16px;
  font-weight: 900;
}

.social-login-grid {
  grid-template-columns: 1fr;
}

.social-login-grid button {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255,255,255,.66);
}

.social-login-grid button img,
.social-login-grid button span {
  position: relative;
  z-index: 1;
}

.social-login-grid button::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(18,183,0,.08), rgba(255,255,255,.18));
  opacity: 0;
  transition: opacity .18s ease;
}

.social-login-grid button:hover:not(:disabled) {
  color: var(--ink);
  border-color: rgba(18,183,0,.28);
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(18,183,0,.1);
  transform: translateY(-1px);
}

.social-login-grid button:hover:not(:disabled)::after {
  opacity: 1;
}

.phone-input input,
.otp-input {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.login-submit {
  min-height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, #18c900, #078600);
  box-shadow: 0 18px 36px rgba(18,183,0,.23);
  font-size: 17px;
  font-weight: 950;
}

.not-found-card {
  min-height: min(620px, calc(100vh - 170px));
}

.not-found-copy h1 {
  letter-spacing: -.055em;
}

.dark-theme {
  --ink: #edf6ef;
  --muted: #9aac9f;
  --muted-strong: #c1d1c6;
  --line: #273c30;
  --surface: rgba(19,31,23,.92);
  --surface-solid: #142019;
  --canvas: #0b130e;
  --sidebar: #111d15;
  --shadow: 0 18px 48px rgba(0,0,0,.24);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.2);
  color-scheme: dark;
}

html.dark-theme body,
.dark-theme body,
body.dark-theme {
  background:
    radial-gradient(circle at 12% 8%, rgba(18,183,0,.13), transparent 28%),
    radial-gradient(circle at 84% 6%, rgba(18,183,0,.08), transparent 26%),
    linear-gradient(180deg, #0b130e 0%, #0e1812 48%, #09110c 100%);
}

.dark-theme .sidebar,
.dark-theme .topbar,
.dark-theme .panel,
.dark-theme .kpi-card,
.dark-theme .organization-hero,
.dark-theme .detail-facts article,
.dark-theme .modal,
.dark-theme .login-card,
.dark-theme .quick-actions-menu,
.dark-theme .notifications-panel,
.dark-theme .row-action-menu,
.dark-theme .sirb-dropdown-menu {
  border-color: rgba(49,70,56,.9);
  background: linear-gradient(180deg, rgba(19,31,23,.94), rgba(15,25,18,.9));
}

.dark-theme .modal form > footer {
  border-color: rgba(49,70,56,.82);
  background: linear-gradient(180deg, rgba(19,31,23,.84), rgba(15,25,18,.98) 34%);
}

.dark-theme .brand strong,
.dark-theme .login-brand strong,
.dark-theme .org-link strong,
.dark-theme .sidebar-card strong,
.dark-theme .profile-mini strong {
  color: var(--ink);
}

.dark-theme .main-nav a {
  color: #a6b6aa;
}

.dark-theme .main-nav a:hover {
  color: var(--ink);
  background: rgba(75,212,64,.07);
}

.dark-theme .main-nav a.active {
  position: relative;
  color: #d7ffdc;
  border-color: rgba(113,242,96,.42);
  background:
    linear-gradient(135deg, rgba(27,128,35,.44), rgba(18,70,31,.72)),
    rgba(18,55,28,.82);
  box-shadow: inset 0 0 0 1px rgba(186,255,187,.18), 0 18px 34px rgba(0,0,0,.24), 0 0 0 1px rgba(18,183,0,.14);
}

.dark-theme .main-nav a.active::before {
  content: '';
  position: absolute;
  inset-block: 11px;
  inset-inline-start: 8px;
  width: 4px;
  border-radius: 999px;
  background: #42ed34;
  box-shadow: 0 0 18px rgba(66,237,52,.58);
}

.dark-theme .main-nav a.active .material-symbols-rounded {
  color: #fff;
  background: linear-gradient(135deg, #19c800, #078a00);
  box-shadow: 0 12px 24px rgba(18,183,0,.22);
}

.dark-theme .search-box,
.dark-theme .icon-button,
.dark-theme .language-switch,
.dark-theme .secondary-button,
.dark-theme .filter-panel-toggle,
.dark-theme .filter-search,
.dark-theme .modal input,
.dark-theme .modal select,
.dark-theme .date-range-grid input,
.dark-theme .sirb-dropdown-trigger,
.dark-theme .pagination button,
.dark-theme .country-chip,
.dark-theme .date-chip-small,
.dark-theme .location-chip {
  border-color: rgba(49,70,56,.95);
  color: var(--muted-strong);
  background: rgba(21,35,25,.86);
}

.dark-theme th {
  color: #9dafa4;
  background: rgba(20,33,24,.96);
  border-bottom-color: rgba(220,244,226,.18);
}

.dark-theme tbody tr {
  background: rgba(18,30,22,.62);
}

.dark-theme tbody td {
  border-bottom-color: rgba(220,244,226,.13);
}

.dark-theme tbody tr:hover {
  background: rgba(38,62,43,.52);
}

.dark-theme .date-range-filter,
.dark-theme .plan-chip,
.dark-theme .empty-illustration,
.dark-theme .sidebar-card,
.dark-theme .profile-mini {
  border-color: rgba(49,70,56,.95);
  background: rgba(20,36,24,.8);
}

.dark-theme .app-version-note {
  border-color: rgba(113,242,96,.13);
  color: #82938a;
  background: rgba(113,242,96,.045);
}

.dark-theme .app-version-note b {
  color: #71f260;
}

.dark-theme .login-page {
  background:
    radial-gradient(circle at 70% 12%, rgba(18,183,0,.16), transparent 28%),
    linear-gradient(135deg, #0b130e 0%, #0f1b13 100%);
}

.dark-theme .login-card h2,
.dark-theme .phone-login label,
.dark-theme .login-card {
  color: var(--ink);
}

.dark-theme .login-divider {
  color: var(--muted);
}

.dark-theme .login-divider::before,
.dark-theme .login-divider::after {
  background: rgba(70,91,77,.8);
}

.dark-theme .social-login-grid button,
.dark-theme .phone-input,
.dark-theme .otp-input {
  color: var(--ink);
  border-color: rgba(68,91,76,.95);
  background: rgba(21,35,25,.88);
}

.dark-theme .social-login-grid button:hover:not(:disabled) {
  color: #f4fff5;
  border-color: rgba(113,242,96,.26);
  background: rgba(28,48,34,.96);
  box-shadow: 0 14px 30px rgba(0,0,0,.24), 0 0 0 5px rgba(18,183,0,.055);
}

.dark-theme.auth-page {
  background:
    radial-gradient(circle at 70% 12%, rgba(18,183,0,.16), transparent 28%),
    linear-gradient(135deg, #0b130e 0%, #0f1b13 100%);
}

.dark-theme .login-controls .language-switch,
.dark-theme .login-theme-switch {
  color: var(--muted-strong);
  border-color: rgba(68,91,76,.95);
  background: rgba(21,35,25,.88);
}

.dark-theme .login-controls .language-switch:hover,
.dark-theme .login-theme-switch:hover {
  color: #a6f49b;
  border-color: rgba(75,212,64,.28);
  background: rgba(38,62,43,.72);
}

.dark-theme .phone-input input,
.dark-theme .otp-input {
  color: var(--ink);
  background: transparent;
}

.dark-theme .phone-input span {
  color: var(--muted-strong);
  border-color: rgba(68,91,76,.95);
  background: rgba(15,25,18,.86);
}

.dark-theme .list-error {
  border-color: rgba(149,65,65,.82);
  background: linear-gradient(145deg, rgba(62,31,31,.9), rgba(33,24,24,.92));
}

@media (max-width: 1180px) {
  .sidebar {
    width: 270px;
  }
  .main-content {
    margin-right: 302px;
  }
  .ltr .main-content {
    margin-left: 302px;
  }
}

@media (max-width: 940px) {
  .sidebar {
    inset: 12px 12px 12px auto;
    width: min(306px, calc(100vw - 36px));
    transform: translateX(calc(100% + 20px));
  }
  .ltr .sidebar {
    inset: 12px auto 12px 12px;
    transform: translateX(calc(-100% - 20px));
  }
  .nav-open .sidebar,
  .ltr.nav-open .sidebar {
    transform: translateX(0);
  }
  .main-content,
  .ltr .main-content {
    margin: 0;
  }
  .topbar {
    top: 0;
    margin: 0;
    border-inline: 0;
    border-top: 0;
    border-radius: 0 0 24px 24px;
  }
  .page {
    padding: 28px 18px 42px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .split-heading > .primary-button {
    align-self: flex-start;
  }

  .toolbar-dropdown {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  :root {
    --control-h: 46px;
  }
  .topbar {
    height: 70px;
    padding: 0 12px;
  }
  .topbar-start,
  .topbar-actions {
    gap: 7px;
  }
  .search-box,
  .topbar .language-switch,
  .icon-button,
  .topbar-actions > .quick-actions-trigger,
  .topbar-actions > .primary-button {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 16px;
  }
  .search-box.focused {
    inset: 12px;
    height: 46px;
    border-radius: 16px;
  }
  .page-heading {
    gap: 14px;
  }
  .page-heading > .primary-button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 17px;
  }
  .organization-toolbar,
  .hero-actions,
  .filter-panel footer,
  .modal footer {
    align-items: stretch;
    flex-direction: column;
  }
  .organization-hero {
    padding: 22px;
  }
  .organization-identity {
    align-items: flex-start;
  }
  .hero-monogram {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .detail-tabs {
    overflow-x: auto;
  }
  .detail-tabs button {
    flex: 0 0 auto;
    min-width: 150px;
  }
  .login-card {
    padding: 26px 20px;
    border-radius: 26px;
  }
  .social-login-grid,
  .form-row,
  .date-range-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    border-radius: 24px;
  }
  .modal > header,
  .modal form {
    padding-inline: 20px;
  }
  .not-found-card {
    padding: 28px 20px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-page {
    min-height: 100dvh;
  }
  .login-form-side {
    justify-content: flex-start;
    padding-top: 92px;
    padding-bottom: 20px;
  }
  .login-card {
    margin: 0 auto;
  }
  .login-visual {
    padding-block: 30px;
  }
}

.main-nav a.active,
.dark-theme .main-nav a.active {
  position: relative;
  color: var(--brand-dark);
  border-color: rgba(18,183,0,.24);
  background:
    linear-gradient(135deg, rgba(232,255,236,.92), rgba(216,249,224,.78)),
    rgba(235,255,237,.88);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), 0 10px 22px rgba(18,183,0,.08);
}

.main-nav a.active::before,
.dark-theme .main-nav a.active::before {
  content: none;
  display: none;
}

.main-nav a.active .material-symbols-rounded,
.dark-theme .main-nav a.active .material-symbols-rounded {
  color: #fff;
  background: linear-gradient(135deg, #17c900, #079100);
  box-shadow: 0 12px 24px rgba(18,183,0,.18);
}

.main-nav a.active span:not(.material-symbols-rounded),
.dark-theme .main-nav a.active span:not(.material-symbols-rounded) {
  color: var(--brand-dark);
}

.dark-theme .main-nav a.active {
  border-color: rgba(113,242,96,.24);
  background:
    linear-gradient(135deg, rgba(217,255,224,.96), rgba(193,244,207,.86)),
    rgba(221,255,227,.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26), 0 12px 26px rgba(0,0,0,.2);
}

.dark-theme .main-nav a.active span:not(.material-symbols-rounded) {
  color: #078a00;
}

.dark-theme .main-nav a.active b {
  color: #078a00;
  background: rgba(18,183,0,.14);
}

.sirb-dropdown-menu {
  position: absolute;
  z-index: 420;
}

.main-nav a.active,
.dark-theme .main-nav a.active,
.ltr .main-nav a.active,
.ltr.dark-theme .main-nav a.active {
  border-color: rgba(18,183,0,.18) !important;
  background: linear-gradient(135deg, rgba(233,251,236,.9), rgba(223,247,229,.72)) !important;
  box-shadow: none !important;
}

.dark-theme .main-nav a.active,
.ltr.dark-theme .main-nav a.active {
  border-color: rgba(113,242,96,.2) !important;
  background: linear-gradient(135deg, rgba(218,255,225,.95), rgba(199,245,211,.84)) !important;
}

.main-nav a.active .material-symbols-rounded,
.dark-theme .main-nav a.active .material-symbols-rounded,
.ltr .main-nav a.active .material-symbols-rounded,
.ltr.dark-theme .main-nav a.active .material-symbols-rounded {
  box-shadow: none !important;
}

.modal input,
.modal select,
.modal .sirb-dropdown-trigger,
.modal .date-range-grid input,
.modal .phone-input,
.modal .otp-input {
  box-sizing: border-box;
  outline: 0;
}

.modal input:focus,
.modal select:focus,
.modal .date-range-grid input:focus,
.modal .otp-input:focus,
.modal .sirb-dropdown-trigger:hover,
.modal .sirb-dropdown.open .sirb-dropdown-trigger {
  border-color: rgba(18,183,0,.42) !important;
  box-shadow: inset 0 0 0 2px rgba(18,183,0,.12) !important;
  transform: none !important;
}

.modal .field-invalid input,
.modal .sirb-dropdown.invalid .sirb-dropdown-trigger {
  box-shadow: inset 0 0 0 2px rgba(239,68,68,.1) !important;
}

@media (min-width: 941px) {
  .nav-collapsed .sidebar {
    width: 108px;
    padding-inline: 14px;
    overflow-x: hidden;
    z-index: 55;
    transition:
      width .18s ease,
      box-shadow .18s ease,
      background .18s ease;
  }

  .nav-collapsed .main-content {
    margin-right: 140px;
    transition: margin .18s ease;
  }

  .ltr.nav-collapsed .main-content {
    margin-right: 0;
    margin-left: 140px;
  }

  .nav-collapsed .brand {
    display: grid;
    justify-content: center;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    margin-inline: 0;
    padding: 8px 0;
    overflow: hidden;
    transition: none;
  }

  .nav-collapsed .brand-copy,
  .nav-collapsed .main-nav a > span:not(.material-symbols-rounded),
  .nav-collapsed .sidebar-card div,
  .nav-collapsed .sidebar-card .status-dot,
  .nav-collapsed .profile-mini > div:nth-child(2),
  .nav-collapsed .profile-mini button {
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity .08s ease;
  }

  .nav-collapsed .brand-copy,
  .nav-collapsed .main-nav a > span:not(.material-symbols-rounded) {
    min-width: 160px;
  }

  .nav-collapsed .nav-label {
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity .08s ease;
  }

  .nav-collapsed .main-nav {
    align-items: center;
    gap: 10px;
  }

  .nav-collapsed .main-nav a {
    display: grid;
    position: relative;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    width: 64px;
    min-height: 56px;
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0;
    margin-inline: auto;
    transition:
      width .18s ease,
      background .14s ease,
      border-color .14s ease;
  }

  .nav-collapsed .main-nav a .material-symbols-rounded {
    justify-self: center;
    grid-column: 1;
  }

  .nav-collapsed .main-nav a b {
    position: absolute;
    inset-block-start: 6px;
    inset-inline-end: 5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
  }

  .nav-collapsed .sidebar-card,
  .nav-collapsed .profile-mini {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    justify-content: center;
    gap: 0;
    margin-inline: 0;
    padding-inline: 0;
    overflow: hidden;
    transition:
      opacity .12s ease,
      background .14s ease,
      border-color .14s ease;
  }

  .nav-collapsed .sidebar-card {
    max-height: 0;
    margin-block: auto 8px;
    padding-block: 0;
    border-color: transparent;
    opacity: 0;
    pointer-events: none;
  }

  .nav-collapsed .sidebar-card > .material-symbols-rounded,
  .nav-collapsed .profile-mini .avatar {
    justify-self: center;
  }

  .nav-collapsed .profile-mini {
    min-height: 62px;
    border-color: transparent;
    background: transparent;
  }

  .nav-collapsed .sidebar:hover,
  .nav-collapsed .sidebar:focus-within {
    width: 300px;
    padding-inline: 16px;
    overflow: visible;
    box-shadow: 0 28px 80px rgba(15,35,21,.2);
  }

  .dark-theme.nav-collapsed .sidebar:hover,
  .dark-theme.nav-collapsed .sidebar:focus-within {
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
  }

  .nav-collapsed .sidebar:hover .brand,
  .nav-collapsed .sidebar:focus-within .brand {
    margin-inline: 4px;
    padding-inline: 0;
  }

  .nav-collapsed .sidebar:hover .brand-copy,
  .nav-collapsed .sidebar:focus-within .brand-copy,
  .nav-collapsed .sidebar:hover .main-nav a > span:not(.material-symbols-rounded),
  .nav-collapsed .sidebar:focus-within .main-nav a > span:not(.material-symbols-rounded),
  .nav-collapsed .sidebar:hover .sidebar-card div,
  .nav-collapsed .sidebar:focus-within .sidebar-card div,
  .nav-collapsed .sidebar:hover .sidebar-card .status-dot,
  .nav-collapsed .sidebar:focus-within .sidebar-card .status-dot,
  .nav-collapsed .sidebar:hover .profile-mini > div:nth-child(2),
  .nav-collapsed .sidebar:focus-within .profile-mini > div:nth-child(2),
  .nav-collapsed .sidebar:hover .profile-mini button,
  .nav-collapsed .sidebar:focus-within .profile-mini button {
    opacity: 1;
    pointer-events: auto;
    transition-delay: .07s;
  }

  .nav-collapsed .sidebar:hover .nav-label,
  .nav-collapsed .sidebar:focus-within .nav-label {
    height: auto;
    margin: 0 12px 12px;
    opacity: 1;
    transition-delay: .07s;
  }

  .nav-collapsed .sidebar:hover .main-nav a,
  .nav-collapsed .sidebar:focus-within .main-nav a {
    width: 100%;
  }

  .nav-collapsed .sidebar:hover .main-nav a b,
  .nav-collapsed .sidebar:focus-within .main-nav a b {
    position: static;
    min-width: 26px;
    height: auto;
    padding: 2px 6px;
    font-size: 11px;
    line-height: inherit;
    align-self: center;
    margin-inline-end: 12px;
  }

  .nav-collapsed .sidebar:hover .sidebar-card,
  .nav-collapsed .sidebar:focus-within .sidebar-card,
  .nav-collapsed .sidebar:hover .profile-mini,
  .nav-collapsed .sidebar:focus-within .profile-mini {
    margin-inline: 4px;
    padding-inline: 0;
    opacity: 1;
  }

  .nav-collapsed .sidebar:hover .sidebar-card,
  .nav-collapsed .sidebar:focus-within .sidebar-card {
    max-height: 84px;
    margin-block: auto 14px;
    padding-block: 14px;
    border-color: rgba(207,225,214,.82);
    pointer-events: auto;
  }

  .nav-collapsed .sidebar:hover .profile-mini,
  .nav-collapsed .sidebar:focus-within .profile-mini {
    min-height: 62px;
    border-color: rgba(207,225,214,.82);
    background: rgba(247,252,248,.78);
  }

  .dark-theme.nav-collapsed .sidebar:hover .sidebar-card,
  .dark-theme.nav-collapsed .sidebar:focus-within .sidebar-card,
  .dark-theme.nav-collapsed .sidebar:hover .profile-mini,
  .dark-theme.nav-collapsed .sidebar:focus-within .profile-mini {
    border-color: rgba(68,91,76,.95);
    background: rgba(21,35,25,.78);
  }

  .nav-collapsed .sidebar:hover .sidebar-card div,
  .nav-collapsed .sidebar:focus-within .sidebar-card div,
  .nav-collapsed .sidebar:hover .profile-mini > div:nth-child(2),
  .nav-collapsed .sidebar:focus-within .profile-mini > div:nth-child(2) {
    align-self: center;
    min-width: 0;
  }
}

.access-scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  font-weight: 800;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-scope-chip .material-symbols-rounded { font-size: 19px; color: var(--brand-dark); }

.compact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.compact-action:hover { border-color: var(--brand); color: var(--brand-dark); }
.compact-action .material-symbols-rounded { font-size: 19px; }

.readonly-field {
  opacity: 1;
}

.readonly-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px dashed rgba(117, 142, 130, .42);
  border-radius: 18px;
  padding: 6px 8px 6px 14px;
  background: rgba(117, 142, 130, .08);
}

.readonly-control input[readonly] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  box-shadow: none;
  cursor: default;
}

.readonly-control .icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.status-readonly {
  justify-content: flex-start;
  color: var(--muted-strong);
}

.status-readonly > .material-symbols-rounded {
  color: var(--brand);
}

.invite-landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.invite-card {
  width: min(620px, 100%);
  border: 1px solid rgba(188, 224, 203, .72);
  border-radius: 34px;
  padding: clamp(28px, 6vw, 56px);
  background: rgba(245, 255, 250, .9);
  box-shadow: 0 30px 90px rgba(16, 55, 27, .16);
  text-align: center;
}

.invite-card-icon {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 24px;
  margin-bottom: 18px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 34px;
}

.invite-card h1 {
  max-width: 520px;
  margin: 10px auto 12px;
  color: var(--ink);
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.invite-unavailable h1 {
  font-size: clamp(26px, 2.8vw, 34px);
}

.invite-card p {
  margin: 0 auto 24px;
  max-width: 480px;
  color: var(--muted-strong);
  font-size: 18px;
}

.invite-token-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--muted-strong);
  background: rgba(117, 142, 130, .08);
}

.invite-token-preview code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-summary {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.invite-summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(188,224,203,.72);
  border-radius: 18px;
  background: rgba(255,255,255,.46);
  text-align: start;
}

.invite-summary .material-symbols-rounded {
  grid-row: span 2;
  color: var(--brand);
}

.invite-summary small {
  color: var(--muted);
  font-weight: 800;
}

.invite-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-method,
.invite-phone-login {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  text-align: start;
}

.invite-method .primary-button {
  width: 100%;
}

.readonly-phone {
  border-style: dashed;
  background: rgba(117,142,130,.075);
}

.readonly-phone input[readonly] {
  cursor: default;
}

.invite-unavailable {
  display: grid;
  gap: 14px;
}

.dark-theme .invite-card {
  border-color: rgba(179, 245, 194, .18);
  background: rgba(13, 35, 22, .9);
}

.dark-theme .readonly-control,
.dark-theme .invite-token-preview,
.dark-theme .invite-summary > div,
.dark-theme .readonly-phone {
  border-color: rgba(179, 245, 194, .2);
  background: rgba(255, 255, 255, .045);
}

.dark-theme .readonly-control input[readonly] {
  color: rgba(224, 244, 233, .76);
}

.school-access-modal { width: min(680px, calc(100vw - 28px)); }
.school-access-modal form { gap: 16px; }

.inline-access-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

.inline-access-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.inline-access-title > .material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.inline-access-title strong,
.inline-access-title small { display: block; }
.inline-access-title small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scope-options > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  text-align: start;
  font: inherit;
  cursor: pointer;
}

.scope-options > button > .material-symbols-rounded:first-child { color: var(--muted); font-size: 25px; }
.scope-options strong, .scope-options small { display: block; }
.scope-options strong { font-size: 15px; }
.scope-options small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.scope-options .scope-check { color: transparent; font-size: 21px; }
.scope-options > button.selected { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.scope-options > button.selected > .material-symbols-rounded:first-child,
.scope-options > button.selected .scope-check { color: var(--brand-dark); }

.scope-options > button:disabled,
.school-access-option:disabled {
  cursor: default;
  opacity: .72;
}

.scope-options.compact > button {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 12px;
}

.scope-options.compact small { display: none; }

.school-access-list {
  display: grid;
  gap: 7px;
  max-height: min(360px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 5px 8px;
}

.school-access-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: start;
  font: inherit;
  cursor: pointer;
}

.school-access-option.selected { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.school-access-option .school-access-checkbox { color: var(--muted); font-size: 22px; }
.school-access-option.selected .school-access-checkbox { color: var(--brand-dark); }
.school-access-option strong, .school-access-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-access-option small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.school-access-empty { padding: 20px; color: var(--muted); text-align: center; }
.school-access-error { margin: 2px 0 0; }
.school-access-list.compact { max-height: min(260px, 34vh); }
.school-access-list.compact .school-access-option { min-height: 54px; }

.dark-theme .access-scope-chip,
.dark-theme .compact-action,
.dark-theme .inline-access-panel,
.dark-theme .scope-options > button,
.dark-theme .school-access-option { background: rgba(255, 255, 255, .018); }
.dark-theme .access-scope-chip .material-symbols-rounded,
.dark-theme .compact-action:hover,
.dark-theme .scope-options > button.selected > .material-symbols-rounded:first-child,
.dark-theme .scope-options > button.selected .scope-check,
.dark-theme .school-access-option.selected .school-access-checkbox { color: #72e979; }

@media (max-width: 620px) {
  .scope-options { grid-template-columns: 1fr; }
  .compact-action > span:last-child { display: none; }
  .compact-action { width: 38px; padding: 6px; }
}

@media (min-width: 941px) {
  .nav-collapsed .sidebar,
  .nav-collapsed .sidebar:hover,
  .nav-collapsed .sidebar:focus-within {
    width: 108px !important;
    padding: 20px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-shadow: var(--shadow) !important;
    transition: box-shadow .16s ease, background .16s ease !important;
  }

  .nav-collapsed .sidebar::-webkit-scrollbar {
    display: none;
  }

  .nav-collapsed .main-content {
    margin-right: 140px !important;
  }

  .ltr.nav-collapsed .main-content {
    margin-right: 0 !important;
    margin-left: 140px !important;
  }

  .nav-collapsed .brand,
  .nav-collapsed .sidebar:hover .brand,
  .nav-collapsed .sidebar:focus-within .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .nav-collapsed .brand .sirb-brand-logo {
    display: grid !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-collapsed .brand-copy,
  .nav-collapsed .sidebar:hover .brand-copy,
  .nav-collapsed .sidebar:focus-within .brand-copy,
  .nav-collapsed .nav-label,
  .nav-collapsed .sidebar:hover .nav-label,
  .nav-collapsed .sidebar:focus-within .nav-label,
  .nav-collapsed .main-nav a > span:not(.material-symbols-rounded),
  .nav-collapsed .sidebar:hover .main-nav a > span:not(.material-symbols-rounded),
  .nav-collapsed .sidebar:focus-within .main-nav a > span:not(.material-symbols-rounded),
  .nav-collapsed .sidebar-card {
    display: none !important;
  }

  .nav-collapsed .main-nav {
    display: grid !important;
    justify-items: center !important;
    gap: 8px !important;
  }

  .nav-collapsed .main-nav a,
  .nav-collapsed .sidebar:hover .main-nav a,
  .nav-collapsed .sidebar:focus-within .main-nav a {
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    width: 58px !important;
    min-height: 48px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    gap: 0 !important;
    transform: none !important;
    transition: background .14s ease, border-color .14s ease, color .14s ease !important;
  }

  .nav-collapsed .main-nav a .material-symbols-rounded,
  .nav-collapsed .sidebar:hover .main-nav a .material-symbols-rounded,
  .nav-collapsed .sidebar:focus-within .main-nav a .material-symbols-rounded {
    grid-column: 1 !important;
    justify-self: center !important;
  }

  .nav-collapsed .main-nav a b,
  .nav-collapsed .sidebar:hover .main-nav a b,
  .nav-collapsed .sidebar:focus-within .main-nav a b {
    position: absolute !important;
    inset-block-start: 3px !important;
    inset-inline-end: 2px !important;
    min-width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 9px !important;
    line-height: 17px !important;
  }

  .nav-collapsed .profile-mini,
  .nav-collapsed .sidebar:hover .profile-mini,
  .nav-collapsed .sidebar:focus-within .profile-mini {
    display: grid !important;
    place-items: center !important;
    width: 64px !important;
    min-height: 62px !important;
    margin: auto auto 0 !important;
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
  }

  .nav-collapsed .profile-mini > div:nth-child(2),
  .nav-collapsed .profile-mini button,
  .nav-collapsed .sidebar:hover .profile-mini > div:nth-child(2),
  .nav-collapsed .sidebar:hover .profile-mini button,
  .nav-collapsed .sidebar:focus-within .profile-mini > div:nth-child(2),
  .nav-collapsed .sidebar:focus-within .profile-mini button {
    display: none !important;
  }
}

/* Stable compact rail polish */
.main-nav a.active,
.dark-theme .main-nav a.active,
.ltr .main-nav a.active,
.ltr.dark-theme .main-nav a.active {
  color: var(--brand-dark) !important;
  border-color: rgba(18,183,0,.13) !important;
  background: rgba(18,183,0,.055) !important;
  box-shadow: none !important;
}

.main-nav a.active .material-symbols-rounded,
.dark-theme .main-nav a.active .material-symbols-rounded,
.ltr .main-nav a.active .material-symbols-rounded,
.ltr.dark-theme .main-nav a.active .material-symbols-rounded {
  color: var(--brand-dark) !important;
  background: rgba(18,183,0,.12) !important;
  box-shadow: none !important;
}

.dark-theme .main-nav a.active,
.ltr.dark-theme .main-nav a.active {
  color: #8df981 !important;
  border-color: rgba(113,242,96,.14) !important;
  background: rgba(18,183,0,.09) !important;
}

.dark-theme .main-nav a.active .material-symbols-rounded,
.ltr.dark-theme .main-nav a.active .material-symbols-rounded {
  color: #8df981 !important;
  background: rgba(113,242,96,.13) !important;
}

.dark-theme .sidebar-collapse-toggle {
  color: var(--muted-strong);
  border-color: rgba(68,91,76,.95);
  background: rgba(21,35,25,.96);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.dark-theme .sidebar-collapse-toggle:hover {
  color: #8df981;
  border-color: rgba(113,242,96,.24);
  background: rgba(27,47,33,.98);
}

/* Compact rail final polish */
.sidebar-collapse-toggle {
  top: 52px;
  left: -13px;
  width: 26px;
  height: 50px;
  border-radius: 16px 0 0 16px;
  border-right: 0;
  color: #8aa097;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow: 0 10px 22px rgba(15,35,21,.1);
}

.ltr .sidebar-collapse-toggle {
  right: -13px;
  left: auto;
  border-radius: 0 16px 16px 0;
  border-right: 1px solid rgba(207,225,214,.9);
  border-left: 0;
}

.sidebar-collapse-toggle .material-symbols-rounded {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

@media (min-width: 941px) {
  .nav-collapsed .sidebar,
  .nav-collapsed .sidebar:hover,
  .nav-collapsed .sidebar:focus-within {
    width: 104px !important;
    padding: 16px 14px 18px !important;
  }

  .nav-collapsed .main-content {
    margin-right: 136px !important;
  }

  .ltr.nav-collapsed .main-content {
    margin-left: 136px !important;
  }

  .nav-collapsed .brand,
  .nav-collapsed .sidebar:hover .brand,
  .nav-collapsed .sidebar:focus-within .brand {
    width: 54px !important;
    height: 54px !important;
    margin: 0 auto 18px !important;
  }

  .nav-collapsed .brand .sirb-brand-logo {
    flex-basis: 48px !important;
    width: 48px !important;
    height: 48px !important;
    padding: 7px !important;
    border-radius: 17px !important;
    box-shadow: 0 12px 24px rgba(18,183,0,.14) !important;
  }

  .nav-collapsed .main-nav {
    gap: 7px !important;
  }

  .nav-collapsed .main-nav a,
  .nav-collapsed .sidebar:hover .main-nav a,
  .nav-collapsed .sidebar:focus-within .main-nav a {
    width: 54px !important;
    min-height: 46px !important;
    border-radius: 16px !important;
  }

  .nav-collapsed .main-nav a.active,
  .nav-collapsed .sidebar:hover .main-nav a.active,
  .nav-collapsed .sidebar:focus-within .main-nav a.active {
    border-color: rgba(113,242,96,.12) !important;
    background: rgba(255,255,255,.035) !important;
  }

  .nav-collapsed .main-nav a.active .material-symbols-rounded,
  .nav-collapsed .sidebar:hover .main-nav a.active .material-symbols-rounded,
  .nav-collapsed .sidebar:focus-within .main-nav a.active .material-symbols-rounded {
    color: var(--brand-dark) !important;
    background: rgba(18,183,0,.08) !important;
  }

  .dark-theme.nav-collapsed .main-nav a.active,
  .dark-theme.nav-collapsed .sidebar:hover .main-nav a.active,
  .dark-theme.nav-collapsed .sidebar:focus-within .main-nav a.active {
    border-color: rgba(113,242,96,.12) !important;
    background: rgba(255,255,255,.035) !important;
  }

  .dark-theme.nav-collapsed .main-nav a.active .material-symbols-rounded,
  .dark-theme.nav-collapsed .sidebar:hover .main-nav a.active .material-symbols-rounded,
  .dark-theme.nav-collapsed .sidebar:focus-within .main-nav a.active .material-symbols-rounded {
    color: #b7f4b1 !important;
    background: rgba(113,242,96,.1) !important;
  }

  .dark-theme .sidebar-collapse-toggle {
    color: #86a094;
    border-color: rgba(68,91,76,.95);
    background: rgba(16,29,20,.96);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
  }
}

/* Integrated sidebar border handle */
.sidebar-collapse-toggle,
.dark-theme .sidebar-collapse-toggle {
  top: 58px !important;
  left: -1px !important;
  width: 12px !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  color: color-mix(in srgb, var(--muted-strong) 76%, transparent) !important;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent) !important;
  box-shadow: inset -1px 0 rgba(207,225,214,.72) !important;
  opacity: .78;
}

.ltr .sidebar-collapse-toggle {
  right: -1px !important;
  left: auto !important;
  border-radius: 8px 0 0 8px !important;
  box-shadow: inset 1px 0 rgba(207,225,214,.72) !important;
}

.sidebar-collapse-toggle:hover,
.dark-theme .sidebar-collapse-toggle:hover {
  color: var(--brand-dark) !important;
  background: color-mix(in srgb, var(--brand-soft) 48%, var(--surface-solid)) !important;
  opacity: 1;
}

.dark-theme .sidebar-collapse-toggle {
  box-shadow: inset -1px 0 rgba(68,91,76,.8) !important;
}

.ltr.dark-theme .sidebar-collapse-toggle {
  box-shadow: inset 1px 0 rgba(68,91,76,.8) !important;
}

.sidebar-collapse-toggle .material-symbols-rounded {
  font-size: 18px !important;
  transform: translateX(-1px);
}

.ltr .sidebar-collapse-toggle .material-symbols-rounded {
  transform: translateX(1px);
}

/* Ultra subtle border grip: no protruding button, no visible chevron */
.sidebar-collapse-toggle,
.sidebar-collapse-toggle:hover,
.dark-theme .sidebar-collapse-toggle,
.dark-theme .sidebar-collapse-toggle:hover {
  top: 76px !important;
  left: 0 !important;
  width: 5px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  color: transparent !important;
  background: rgba(207,225,214,.55) !important;
  box-shadow: none !important;
  opacity: .72;
}

.ltr .sidebar-collapse-toggle,
.ltr .sidebar-collapse-toggle:hover {
  right: 0 !important;
  left: auto !important;
  border-radius: 999px 0 0 999px !important;
}

.dark-theme .sidebar-collapse-toggle,
.dark-theme .sidebar-collapse-toggle:hover {
  background: rgba(68,91,76,.85) !important;
}

.sidebar-collapse-toggle:hover,
.dark-theme .sidebar-collapse-toggle:hover {
  width: 7px !important;
  background: rgba(113,242,96,.35) !important;
  opacity: 1;
}

.sidebar-collapse-toggle .material-symbols-rounded {
  display: none !important;
}

/* Reference-style collapse action inside the sidebar rail */
.sidebar .sidebar-collapse-toggle,
.sidebar .sidebar-collapse-toggle:hover,
.dark-theme .sidebar .sidebar-collapse-toggle,
.dark-theme .sidebar .sidebar-collapse-toggle:hover,
.ltr .sidebar .sidebar-collapse-toggle,
.ltr .sidebar .sidebar-collapse-toggle:hover {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  min-height: 50px !important;
  margin: 0 4px 12px !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 17px !important;
  color: #65746c !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: pointer !important;
  font: inherit !important;
  text-align: start !important;
}

.dark-theme .sidebar .sidebar-collapse-toggle,
.dark-theme .sidebar .sidebar-collapse-toggle:hover {
  color: #91a49a !important;
}

.sidebar .sidebar-collapse-toggle:hover,
.dark-theme .sidebar .sidebar-collapse-toggle:hover {
  color: var(--ink) !important;
  border-color: rgba(18,183,0,.13) !important;
  background: rgba(18,183,0,.045) !important;
}

.sidebar .sidebar-collapse-toggle .material-symbols-rounded,
.ltr .sidebar .sidebar-collapse-toggle .material-symbols-rounded {
  display: grid !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  border-radius: 12px !important;
  color: #7b8d84 !important;
  background: transparent !important;
  font-size: 24px !important;
  transform: none !important;
}

.sidebar .sidebar-collapse-label {
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.sidebar .profile-mini + .sidebar-collapse-toggle,
.sidebar .profile-mini + .sidebar-collapse-toggle:hover,
.dark-theme .sidebar .profile-mini + .sidebar-collapse-toggle,
.dark-theme .sidebar .profile-mini + .sidebar-collapse-toggle:hover {
  margin: 10px 4px 0 !important;
}

@media (min-width: 941px) {
  .nav-collapsed .sidebar .sidebar-collapse-toggle,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    display: grid !important;
    place-items: center !important;
    width: 54px !important;
    min-height: 46px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
  }

  .nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded {
    flex-basis: auto !important;
    color: #a5b8ae !important;
    font-size: 28px !important;
  }

  .nav-collapsed .sidebar .sidebar-collapse-label {
    display: none !important;
  }
}

/* Bottom border-mounted sidebar toggle */
@media (min-width: 941px) {
  .sidebar .sidebar-collapse-toggle,
  .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .ltr .sidebar .sidebar-collapse-toggle,
  .ltr .sidebar .sidebar-collapse-toggle:hover,
  .nav-collapsed .sidebar .sidebar-collapse-toggle,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    position: absolute !important;
    z-index: 8 !important;
    inset: auto auto 34px -17px !important;
    display: grid !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid rgba(207,225,214,.82) !important;
    border-radius: 999px !important;
    color: #8da098 !important;
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent) !important;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--surface-solid) 72%, transparent) !important;
    opacity: .92 !important;
  }

  .ltr .sidebar .sidebar-collapse-toggle,
  .ltr .sidebar .sidebar-collapse-toggle:hover,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    right: -17px !important;
    left: auto !important;
  }

  .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover {
    color: var(--brand-dark) !important;
    border-color: rgba(18,183,0,.22) !important;
    background: color-mix(in srgb, var(--brand-soft) 42%, var(--surface-solid)) !important;
    opacity: 1 !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover {
    border-color: rgba(68,91,76,.95) !important;
    color: #91a49a !important;
    background: rgba(16,29,20,.96) !important;
    box-shadow: 0 0 0 5px rgba(16,29,20,.68) !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle:hover {
    color: #9df893 !important;
    border-color: rgba(113,242,96,.2) !important;
    background: rgba(23,42,29,.98) !important;
  }

  .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded {
    display: grid !important;
    width: 20px !important;
    height: 20px !important;
    place-items: center !important;
    color: inherit !important;
    background: transparent !important;
    font-size: 20px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .sidebar .sidebar-collapse-label,
  .nav-collapsed .sidebar .sidebar-collapse-label {
    display: none !important;
  }
}

/* Allow the bottom border toggle to sit above/outside the sidebar frame */
@media (min-width: 941px) {
  .sidebar,
  .nav-collapsed .sidebar,
  .nav-collapsed .sidebar:hover,
  .nav-collapsed .sidebar:focus-within {
    overflow: visible !important;
  }

  .sidebar .sidebar-collapse-toggle,
  .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .nav-collapsed .sidebar .sidebar-collapse-toggle,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    z-index: 90 !important;
    left: -17px !important;
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--surface-solid) 78%, transparent),
      0 10px 22px rgba(15,35,21,.1) !important;
  }

  .ltr .sidebar .sidebar-collapse-toggle,
  .ltr .sidebar .sidebar-collapse-toggle:hover,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    right: -17px !important;
    left: auto !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover {
    box-shadow:
      0 0 0 5px rgba(16,29,20,.78),
      0 12px 24px rgba(0,0,0,.18) !important;
  }

  .sidebar .sidebar-collapse-toggle,
  .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .nav-collapsed .sidebar .sidebar-collapse-toggle,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    left: -14px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--surface-solid) 78%, transparent),
      0 8px 18px rgba(15,35,21,.08) !important;
  }

  .ltr .sidebar .sidebar-collapse-toggle,
  .ltr .sidebar .sidebar-collapse-toggle:hover,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle:hover {
    right: -14px !important;
    left: auto !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover {
    box-shadow:
      0 0 0 4px rgba(16,29,20,.78),
      0 10px 20px rgba(0,0,0,.16) !important;
  }

  .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
  }
}

/* Final exact-centering for bottom border toggle */
@media (min-width: 941px) {
  .sidebar .sidebar-collapse-toggle,
  .sidebar .sidebar-collapse-toggle:hover,
  .sidebar .sidebar-collapse-toggle:focus,
  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle:focus,
  .nav-collapsed .sidebar .sidebar-collapse-toggle,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:focus,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    right: auto !important;
    left: 0 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    transform: translateX(-50%) !important;
    border-radius: 999px !important;
    color: #8da098 !important;
    border-color: rgba(207,225,214,.82) !important;
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent) !important;
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--surface-solid) 78%, transparent),
      0 8px 18px rgba(15,35,21,.08) !important;
  }

  .ltr .sidebar .sidebar-collapse-toggle,
  .ltr .sidebar .sidebar-collapse-toggle:hover,
  .ltr .sidebar .sidebar-collapse-toggle:focus,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    right: 0 !important;
    left: auto !important;
    transform: translateX(50%) !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle:focus,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    color: #91a49a !important;
    border-color: rgba(68,91,76,.95) !important;
    background: rgba(16,29,20,.96) !important;
    box-shadow:
      0 0 0 4px rgba(16,29,20,.78),
      0 10px 20px rgba(0,0,0,.16) !important;
  }

  .sidebar .sidebar-collapse-toggle:hover,
  .sidebar .sidebar-collapse-toggle:focus,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    color: var(--brand-dark) !important;
    border-color: rgba(18,183,0,.22) !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle:focus,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    color: #9df893 !important;
    border-color: rgba(113,242,96,.2) !important;
  }

  .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded,
  .ltr.nav-collapsed .sidebar .sidebar-collapse-toggle .material-symbols-rounded {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    transform: none !important;
  }

  body:not(.nav-collapsed):not(.ltr) .sidebar .sidebar-collapse-toggle,
  body:not(.nav-collapsed):not(.ltr) .sidebar .sidebar-collapse-toggle:hover,
  body:not(.nav-collapsed):not(.ltr) .sidebar .sidebar-collapse-toggle:focus {
    left: -5px !important;
    transform: translateX(-50%) !important;
  }

  body.ltr:not(.nav-collapsed) .sidebar .sidebar-collapse-toggle,
  body.ltr:not(.nav-collapsed) .sidebar .sidebar-collapse-toggle:hover,
  body.ltr:not(.nav-collapsed) .sidebar .sidebar-collapse-toggle:focus {
    right: -5px !important;
    left: auto !important;
    transform: translateX(50%) !important;
  }
}

/* Compact table chips: prevent date/location/status badges from colliding */
.organizations-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-chip-small,
.location-chip,
.country-chip,
.plan-chip,
.state {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.date-chip-small,
.location-chip {
  display: inline-flex;
  overflow: hidden;
  justify-content: center;
  text-overflow: ellipsis;
}

.date-chip-small {
  max-width: 142px;
  padding-inline: 9px;
}

.location-chip {
  max-width: 166px;
  padding-inline: 9px;
}

.table-text-clip {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--muted-strong, var(--muted));
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiet-danger-button,
.quiet-danger-button:hover,
.quiet-danger-button:focus {
  border-color: rgba(207,225,214,.9) !important;
  color: var(--muted-strong) !important;
  background: rgba(255,255,255,.74) !important;
  box-shadow: none !important;
  transform: none !important;
}

.quiet-danger-button:hover,
.quiet-danger-button:focus {
  border-color: rgba(190,76,76,.42) !important;
  color: #b64a4a !important;
  background: rgba(190,76,76,.075) !important;
}

.dark-theme .quiet-danger-button,
.dark-theme .quiet-danger-button:hover,
.dark-theme .quiet-danger-button:focus {
  box-shadow: none !important;
}

.dark-theme .quiet-danger-button {
  border-color: rgba(93,122,103,.52) !important;
  color: var(--muted-strong) !important;
  background: rgba(18,31,23,.78) !important;
}

.dark-theme .quiet-danger-button:hover,
.dark-theme .quiet-danger-button:focus {
  border-color: rgba(190,76,76,.35) !important;
  color: #e1aaa8 !important;
  background: rgba(190,76,76,.09) !important;
}

.user-profile-facts article strong,
.user-profile-facts article strong a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-activity-panel .detail-tabs button {
  pointer-events: none;
}

.user-activity-panel .login-activity-time-column {
  width: 220px;
  min-width: 220px;
}

.user-activity-panel .login-activity-time-text {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--muted-strong);
  font-weight: 900;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-users-table {
  min-width: 1120px;
}

.workspace-users-table th:nth-child(1),
.workspace-users-table td:nth-child(1) {
  width: 310px;
}

.workspace-users-table th:nth-child(2),
.workspace-users-table td:nth-child(2) {
  width: 220px;
}

.workspace-users-table th:nth-child(3),
.workspace-users-table td:nth-child(3) {
  width: 130px;
}

.workspace-users-table th:nth-child(4),
.workspace-users-table td:nth-child(4) {
  width: 210px;
}

.workspace-users-table th:nth-child(5),
.workspace-users-table td:nth-child(5) {
  width: 180px;
}

.workspace-users-table th:nth-child(6),
.workspace-users-table td:nth-child(6) {
  width: 120px;
}

.workspace-invitations-table {
  min-width: 1080px;
}

.workspace-invitations-table th:nth-child(1),
.workspace-invitations-table td:nth-child(1) {
  width: 300px;
}

.workspace-invitations-table th:nth-child(2),
.workspace-invitations-table td:nth-child(2) {
  width: 220px;
}

.workspace-invitations-table th:nth-child(3),
.workspace-invitations-table td:nth-child(3) {
  width: 140px;
}

.workspace-invitations-table th:nth-child(4),
.workspace-invitations-table td:nth-child(4) {
  width: 210px;
}

.workspace-invitations-table th:nth-child(5),
.workspace-invitations-table td:nth-child(5) {
  width: 150px;
}

.workspace-invitations-table th:nth-child(6),
.workspace-invitations-table td:nth-child(6) {
  width: 120px;
}

.detail-invitations-table {
  min-width: 900px;
}

.detail-invitations-table th:nth-child(1),
.detail-invitations-table td:nth-child(1) {
  width: 310px;
}

.detail-invitations-table th:nth-child(2),
.detail-invitations-table td:nth-child(2) {
  width: 130px;
}

.detail-invitations-table th:nth-child(3),
.detail-invitations-table td:nth-child(3) {
  width: 210px;
}

.detail-invitations-table th:nth-child(4),
.detail-invitations-table td:nth-child(4) {
  width: 170px;
}

.detail-invitations-table th:nth-child(5),
.detail-invitations-table td:nth-child(5) {
  width: 120px;
}

.invitation-person small {
  direction: ltr;
  text-align: inherit;
}

.last-login-text {
  max-width: 180px;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100dvh - 20px);
  }

  .modal form > footer {
    margin-inline: -20px;
    padding: 14px 20px 18px;
  }
}

.date-chip-small .material-symbols-rounded,
.location-chip .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 18px;
}

.schools-table {
  min-width: 1260px;
}

.schools-table th:nth-child(1),
.schools-table td:nth-child(1) {
  width: 300px;
}

.schools-table th:nth-child(2),
.schools-table td:nth-child(2) {
  width: 220px;
}

.schools-table th:nth-child(3),
.schools-table td:nth-child(3),
.schools-table th:nth-child(4),
.schools-table td:nth-child(4) {
  width: 104px;
}

.schools-table th:nth-child(5),
.schools-table td:nth-child(5) {
  width: 220px;
}

.schools-table th:nth-child(6),
.schools-table td:nth-child(6) {
  width: 178px;
}

.schools-table th:nth-child(7),
.schools-table td:nth-child(7) {
  width: 154px;
}

.fleet-table {
  min-width: 1420px;
}

.fleet-table th:nth-child(1),
.fleet-table td:nth-child(1) {
  width: 290px;
}

.fleet-table th:nth-child(2),
.fleet-table td:nth-child(2) {
  width: 230px;
}

.fleet-table th:nth-child(3),
.fleet-table td:nth-child(3) {
  width: 190px;
}

.fleet-table th:nth-child(4),
.fleet-table td:nth-child(4),
.fleet-table th:nth-child(5),
.fleet-table td:nth-child(5) {
  width: 140px;
}

.fleet-table th:nth-child(6),
.fleet-table td:nth-child(6) {
  width: 180px;
}

.fleet-table th:nth-child(7),
.fleet-table td:nth-child(7) {
  width: 150px;
}

.fleet-table th:nth-child(8),
.fleet-table td:nth-child(8) {
  width: 72px;
}

.fleet-table .count-chip {
  justify-content: flex-start;
  white-space: nowrap;
}

.vehicle-trip-plans-table {
  min-width: 1280px;
  table-layout: fixed;
}

.vehicle-trip-plans-table th,
.vehicle-trip-plans-table td,
.vehicle-scheduled-trips-table th,
.vehicle-scheduled-trips-table td {
  min-width: 0;
  white-space: nowrap;
}

.vehicle-trip-plans-table th:nth-child(1),
.vehicle-trip-plans-table td:nth-child(1) {
  width: 260px;
}

.vehicle-trip-plans-table th:nth-child(2),
.vehicle-trip-plans-table td:nth-child(2) {
  width: 230px;
}

.vehicle-trip-plans-table th:nth-child(3),
.vehicle-trip-plans-table td:nth-child(3) {
  width: 150px;
}

.vehicle-trip-plans-table th:nth-child(4),
.vehicle-trip-plans-table td:nth-child(4) {
  width: 240px;
}

.vehicle-trip-plans-table th:nth-child(5),
.vehicle-trip-plans-table td:nth-child(5) {
  width: 120px;
}

.vehicle-trip-plans-table th:nth-child(6),
.vehicle-trip-plans-table td:nth-child(6) {
  width: 170px;
}

.vehicle-trip-plans-table th:nth-child(7),
.vehicle-trip-plans-table td:nth-child(7) {
  width: 140px;
}

.vehicle-trip-plans-table th:nth-child(8),
.vehicle-trip-plans-table td:nth-child(8) {
  width: 64px;
  text-align: end;
}

.vehicle-scheduled-trips-table {
  min-width: 1160px;
  table-layout: fixed;
}

.vehicle-scheduled-trips-table th:nth-child(1),
.vehicle-scheduled-trips-table td:nth-child(1) {
  width: 260px;
}

.vehicle-scheduled-trips-table th:nth-child(2),
.vehicle-scheduled-trips-table td:nth-child(2) {
  width: 220px;
}

.vehicle-scheduled-trips-table th:nth-child(3),
.vehicle-scheduled-trips-table td:nth-child(3) {
  width: 230px;
}

.vehicle-scheduled-trips-table th:nth-child(4),
.vehicle-scheduled-trips-table td:nth-child(4) {
  width: 160px;
}

.vehicle-scheduled-trips-table th:nth-child(5),
.vehicle-scheduled-trips-table td:nth-child(5),
.vehicle-scheduled-trips-table th:nth-child(6),
.vehicle-scheduled-trips-table td:nth-child(6) {
  width: 140px;
}

.vehicle-scheduled-trips-table th:nth-child(7),
.vehicle-scheduled-trips-table td:nth-child(7) {
  width: 64px;
  text-align: end;
}

.vehicle-trip-plans-table .plain-table-text,
.vehicle-trip-plans-table .count-chip,
.vehicle-trip-plans-table .state,
.vehicle-trip-plans-table .trip-direction,
.vehicle-scheduled-trips-table .plain-table-text,
.vehicle-scheduled-trips-table .count-chip,
.vehicle-scheduled-trips-table .state,
.vehicle-scheduled-trips-table .trip-direction,
.vehicle-scheduled-trips-table .trip-time-link {
  max-width: 100%;
}

.vehicle-trip-plans-table .table-text-clip,
.vehicle-trip-plans-table .plain-table-text,
.vehicle-scheduled-trips-table .table-text-clip,
.vehicle-scheduled-trips-table .plain-table-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-users-table {
  min-width: 960px;
}

.detail-users-table th:nth-child(1),
.detail-users-table td:nth-child(1) {
  width: 300px;
}

.detail-users-table th:nth-child(2),
.detail-users-table td:nth-child(2) {
  width: 150px;
}

.detail-users-table th:nth-child(3),
.detail-users-table td:nth-child(3) {
  width: 220px;
}

.detail-users-table th:nth-child(4),
.detail-users-table td:nth-child(4) {
  width: 190px;
}

.detail-users-table th:nth-child(5),
.detail-users-table td:nth-child(5) {
  width: 130px;
}

/* Final nav scroll and chip polish */
@media (min-width: 941px) {
  .sidebar {
    overflow: visible !important;
  }

  .main-nav {
    flex: 0 1 auto !important;
    display: grid !important;
    grid-auto-rows: minmax(50px, max-content) !important;
    align-content: start !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 7px !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 380px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-inline: 2px !important;
    scrollbar-color: rgba(25,176,0,.24) transparent;
    scrollbar-width: thin;
  }

  .main-nav::-webkit-scrollbar {
    width: 6px;
  }

  .main-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .main-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(25,176,0,.22);
  }

  .nav-collapsed .main-nav {
    grid-auto-rows: 46px !important;
    align-content: start !important;
    justify-items: center !important;
    gap: 7px !important;
    max-height: calc(100dvh - 210px) !important;
    padding-inline: 0 !important;
  }

  .sidebar-card {
    margin-top: auto !important;
  }

  .sidebar .sidebar-collapse-toggle,
  .sidebar .sidebar-collapse-toggle:hover,
  .sidebar .sidebar-collapse-toggle:focus,
  .nav-collapsed .sidebar .sidebar-collapse-toggle,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    box-shadow: 0 8px 18px rgba(15,35,21,.08) !important;
  }

  .dark-theme .sidebar .sidebar-collapse-toggle,
  .dark-theme .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme .sidebar .sidebar-collapse-toggle:focus,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:hover,
  .dark-theme.nav-collapsed .sidebar .sidebar-collapse-toggle:focus {
    box-shadow: 0 10px 20px rgba(0,0,0,.16) !important;
  }
}

.organizations-table td {
  overflow: visible;
  text-overflow: clip;
}

.chip-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-chip-small,
.location-chip,
.state {
  gap: 7px;
}

.date-chip-small .chip-label,
.location-chip .chip-label,
.state .chip-label {
  max-width: 100%;
}

.date-chip-small {
  width: min(100%, 142px);
}

.location-chip {
  width: min(100%, 166px);
}

.state {
  max-width: 112px;
}

@media (max-width: 940px) {
  .nav-collapse-button,
  .sidebar-collapse-toggle {
    display: none;
  }
}

/* Top-bar navigation toggle + compact mobile controls */
.topbar .nav-size-button {
  display: inline-grid;
  flex: 0 0 var(--control-h);
  width: var(--control-h);
  height: var(--control-h);
  min-width: var(--control-h);
  min-height: var(--control-h);
  place-items: center;
}

.topbar .nav-size-button .material-symbols-rounded {
  font-size: 25px;
}

.compact-controls-trigger,
.compact-controls-menu {
  display: none;
}

.compact-controls-menu {
  position: absolute;
  z-index: 80;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(260px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(207,225,214,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 60px rgba(17,37,24,.16);
  backdrop-filter: blur(18px);
}

.compact-controls-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: start;
  cursor: pointer;
}

.compact-controls-menu button:hover {
  color: var(--brand-dark);
  background: rgba(18,183,0,.08);
}

.compact-controls-menu .material-symbols-rounded {
  color: var(--muted-strong);
  font-size: 22px;
}

.dark-theme .compact-controls-menu {
  border-color: rgba(68,91,76,.95);
  background: rgba(16,29,20,.98);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}

.dark-theme .compact-controls-menu button:hover {
  background: rgba(113,242,96,.09);
}

@media (min-width: 941px) {
  .sidebar .sidebar-collapse-toggle {
    display: none !important;
  }
}

@media (max-width: 940px) {
  .topbar .nav-size-button {
    display: none !important;
  }

  .topbar {
    display: flex;
    gap: 8px;
  }

  .topbar-start {
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-box,
  .search-box.focused {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    flex: 1 1 auto !important;
    width: min(380px, 48vw) !important;
    min-width: 180px !important;
    height: 46px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    border-radius: 16px !important;
    overflow: hidden;
    line-height: 1 !important;
  }

  .search-box input,
  .search-box.focused input {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 14px !important;
    text-overflow: ellipsis;
  }

  .search-box kbd,
  .search-box.focused kbd {
    display: none !important;
  }

  .search-box > .material-symbols-rounded {
    position: static !important;
    width: auto !important;
    height: auto !important;
    font-size: 23px !important;
    line-height: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    height: 70px;
    padding: 0 10px;
  }

  .topbar-start {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
  }

  .search-box,
  .search-box.focused {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  .search-box input,
  .search-box.focused input {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 14px !important;
    text-overflow: ellipsis;
  }

  .search-box kbd,
  .search-box.focused kbd {
    display: none !important;
  }

  .search-box > .material-symbols-rounded {
    position: static !important;
    font-size: 23px !important;
    transform: none !important;
  }

  .topbar .language-switch,
  .topbar .icon-button,
  .topbar-actions > .quick-actions-trigger,
  .topbar-actions > .primary-button {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar .topbar-secondary-control {
    display: none !important;
  }

  .compact-controls-trigger {
    display: inline-grid !important;
  }

  .compact-controls-menu {
    display: block;
  }
}

/* Keep sidebar logo static; it is brand identity, not a hover card */
.sidebar .brand,
.sidebar .brand:hover,
.sidebar .brand:focus {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Softer separators in dark mode */
.dark-theme .organization-workspace .table-wrap {
  border-top-color: rgba(220,244,226,.09) !important;
}

.dark-theme th {
  border-bottom-color: rgba(220,244,226,.08) !important;
}

.dark-theme tbody td {
  border-bottom-color: rgba(220,244,226,.075) !important;
}

.dark-theme .pagination,
.dark-theme .organization-toolbar,
.dark-theme .detail-tabs,
.dark-theme .notifications-panel header,
.dark-theme .notifications-panel article {
  border-color: rgba(220,244,226,.075) !important;
}

/* Give routed pages more breathing room below the top bar */
.page.ng-scope,
.page {
  padding-top: 36px !important;
}

@media (max-width: 940px) {
  .page.ng-scope,
  .page {
    padding-top: 34px !important;
  }
}

/* Tighten the desktop gap between sidebar and top/content area */
@media (min-width: 941px) {
  .main-content {
    margin-right: 302px !important;
  }

  .ltr .main-content {
    margin-right: 0 !important;
    margin-left: 302px !important;
  }

  .nav-collapsed .main-content {
    margin-right: 124px !important;
  }

  .ltr.nav-collapsed .main-content {
    margin-right: 0 !important;
    margin-left: 124px !important;
  }
}

@media (max-width: 640px) {
  .page.ng-scope,
  .page {
    padding-top: 30px !important;
  }
}

/* Small-screen login: keep controls at the top, outside the card content */
@media (max-width: 900px) {
  .login-page {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 16px !important;
  }

  .login-form-side {
    justify-content: flex-start !important;
    max-height: none !important;
    min-height: calc(100dvh - 32px) !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .login-controls {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    width: min(680px, 100%) !important;
    margin: 0 auto 34px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .login-controls .language-switch,
  .login-controls .login-language-switch,
  .login-controls .icon-button {
    align-self: center !important;
    margin: 0 !important;
  }

  .login-controls .language-switch,
  .login-controls .login-language-switch {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 46px !important;
    min-height: 46px !important;
    padding-inline: 16px !important;
    line-height: 1 !important;
  }

  .login-controls .icon-button {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .ltr .login-controls {
    justify-content: flex-start !important;
  }

  .login-card {
    margin: 0 auto !important;
  }
}

@media (max-width: 520px) {
  .login-controls {
    gap: 8px !important;
    margin-bottom: 30px !important;
  }

  .login-controls .language-switch {
    min-width: 0 !important;
  }
}

/* Login feedback: action loading stays inside the card; the full splash is boot-only. */
.auth-error {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
  padding: 14px !important;
  border: 1px solid rgba(220, 72, 72, .22) !important;
  border-radius: 18px !important;
  color: #9f2f2f !important;
  background: linear-gradient(135deg, rgba(255, 246, 246, .96), rgba(255, 255, 255, .9)) !important;
  box-shadow: 0 18px 40px rgba(180, 45, 45, .08) !important;
}

.auth-error > .material-symbols-rounded {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  place-items: center !important;
  border-radius: 14px !important;
  color: #c43b3b !important;
  background: rgba(244, 63, 94, .1) !important;
  font-size: 24px !important;
}

.auth-error p {
  min-width: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

.auth-error button {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #a04444 !important;
  background: transparent !important;
  cursor: pointer !important;
}

.auth-error button:hover {
  color: #c43b3b !important;
  background: rgba(244, 63, 94, .1) !important;
}

.auth-error button .material-symbols-rounded {
  font-size: 22px !important;
}

.dark-theme .auth-error {
  border-color: rgba(255, 118, 118, .22) !important;
  color: #ffc9c9 !important;
  background: linear-gradient(135deg, rgba(68, 31, 31, .88), rgba(28, 20, 20, .9)) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2) !important;
}

.dark-theme .auth-error > .material-symbols-rounded {
  color: #ff9b9b !important;
  background: rgba(255, 118, 118, .12) !important;
}

.dark-theme .auth-error button {
  color: #f0b0b0 !important;
}

.auth-inline-loading {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: -2px 0 16px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(18, 183, 0, .16) !important;
  border-radius: 14px !important;
  color: var(--muted-strong) !important;
  background: rgba(18, 183, 0, .055) !important;
  font-weight: 800 !important;
}

.auth-inline-loading span {
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(18, 183, 0, .18) !important;
  border-top-color: var(--brand-dark) !important;
  border-radius: 999px !important;
  animation: spin .7s linear infinite !important;
}

.auth-inline-loading p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.dark-theme .auth-inline-loading {
  border-color: rgba(113, 242, 96, .16) !important;
  color: #b9c9be !important;
  background: rgba(113, 242, 96, .06) !important;
}

.dark-theme .auth-inline-loading span {
  border-color: rgba(113, 242, 96, .18) !important;
  border-top-color: #71f260 !important;
}

@media (max-width: 560px) {
  .auth-error {
    grid-template-columns: 38px minmax(0, 1fr) 34px !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .auth-error > .material-symbols-rounded {
    width: 38px !important;
    height: 38px !important;
    font-size: 22px !important;
  }

  .auth-error p {
    font-size: 14px !important;
  }
}

.human-check {
  display: grid !important;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.human-check-copy {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 22px !important;
}

.human-check-copy > .material-symbols-rounded {
  display: inline-grid !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  place-items: center !important;
  color: var(--brand-dark) !important;
  background: transparent !important;
  font-size: 18px !important;
}

.human-check-copy strong {
  display: inline !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.human-check-copy p {
  display: none !important;
}

.turnstile-shell {
  width: min(100%, 320px) !important;
  min-height: 65px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

.turnstile-shell iframe {
  max-width: 100% !important;
}

.dark-theme .human-check-copy > .material-symbols-rounded {
  color: #71f260 !important;
}

.dark-theme .human-check-copy strong {
  color: #e6f6ea !important;
}

.human-check.has-error .human-check-copy > .material-symbols-rounded {
  color: #c43b3b !important;
}

.dark-theme .human-check.has-error .human-check-copy > .material-symbols-rounded {
  color: #ff9b9b !important;
}

@media (max-width: 560px) {
  .turnstile-shell {
    width: 100% !important;
  }
}

@media (min-width: 941px) {
  .nav-collapsed .app-version-note {
    display: none !important;
  }
}

.trip-command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.trip-command-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 128, 0, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .48);
}

.dark-theme .trip-command-strip article {
  border-color: rgba(193, 224, 203, .16);
  background: rgba(12, 31, 20, .74);
}

.trip-command-strip .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(0, 194, 0, .12);
  font-size: 26px;
}

.trip-command-strip small,
.muted-block,
.muted-text {
  color: var(--muted);
}

.trip-command-strip strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
}

.trips-table th:first-child,
.trips-table td:first-child {
  min-width: 240px;
}

.trips-table th,
.trips-table td {
  white-space: nowrap;
}

.trips-table {
  min-width: 1180px;
  table-layout: fixed;
}

.trips-table th:nth-child(1),
.trips-table td:nth-child(1) {
  width: 250px;
}

.trips-table th:nth-child(2),
.trips-table td:nth-child(2) {
  width: 240px;
}

.trips-table th:nth-child(3),
.trips-table td:nth-child(3) {
  width: 250px;
}

.trips-table th:nth-child(4),
.trips-table td:nth-child(4) {
  width: 160px;
}

.trips-table th:nth-child(5),
.trips-table td:nth-child(5) {
  width: 160px;
}

.trips-table th:nth-child(6),
.trips-table td:nth-child(6),
.trips-table th:nth-child(7),
.trips-table td:nth-child(7) {
  width: 140px;
}

.trips-table th:nth-child(8),
.trips-table td:nth-child(8) {
  width: 64px;
  text-align: end;
}

.trip-time-link {
  display: inline-grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  max-width: 260px;
  color: var(--ink);
  text-decoration: none;
}

.trip-time-link .material-symbols-rounded {
  grid-row: span 2;
  color: var(--muted);
  font-size: 24px;
}

.trip-time-link strong,
.trip-time-link small,
.muted-block,
.table-text-clip {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-time-link strong {
  font-weight: 900;
}

.trip-time-link small,
.muted-block {
  margin-top: 2px;
  font-size: 13px;
}

.trip-direction {
  max-width: 150px;
}

.trip-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 128, 0, .14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .42);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-source-pill.scheduled {
  color: var(--brand-dark);
  background: rgba(0, 194, 0, .12);
}

.trip-source-pill .material-symbols-rounded {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 20px;
}

.dark-theme .trip-source-pill {
  border-color: rgba(196, 214, 198, .16);
  background: rgba(10, 27, 18, .86);
}

.dark-theme .trip-source-pill.scheduled {
  background: rgba(0, 188, 0, .1);
}

.trip-time-text {
  max-width: 290px;
}

.trip-hero .hero-monogram {
  display: grid;
  place-items: center;
}

.trip-hero .hero-monogram .material-symbols-rounded {
  font-size: 46px;
}

.trip-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  margin-top: 20px;
}

.trip-map-panel,
.trip-timeline-panel {
  border: 1px solid rgba(0, 128, 0, .14);
  border-radius: 30px;
  background: rgba(255, 255, 255, .44);
  box-shadow: 0 22px 60px rgba(0, 95, 34, .08);
  overflow: hidden;
}

.dark-theme .trip-map-panel,
.dark-theme .trip-timeline-panel {
  border-color: rgba(193, 224, 203, .16);
  background: rgba(9, 29, 18, .82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.trip-map-panel > header,
.trip-timeline-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(0, 128, 0, .12);
}

.dark-theme .trip-map-panel > header,
.dark-theme .trip-timeline-panel > header {
  border-bottom-color: rgba(193, 224, 203, .12);
}

.trip-map-panel h2,
.trip-timeline-panel h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.trip-map-panel .map-points-chip,
.trip-timeline-panel .timeline-stops-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 2px;
  font-size: 14px;
}

.sirb-map-canvas {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, rgba(0, 194, 0, .2), transparent 20%),
    radial-gradient(circle at 82% 72%, rgba(0, 194, 0, .13), transparent 22%),
    linear-gradient(90deg, rgba(0, 128, 0, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 128, 0, .08) 1px, transparent 1px),
    rgba(226, 251, 244, .58);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.dark-theme .sirb-map-canvas {
  background:
    radial-gradient(circle at 24% 28%, rgba(0, 194, 0, .2), transparent 20%),
    radial-gradient(circle at 82% 72%, rgba(0, 194, 0, .13), transparent 22%),
    linear-gradient(90deg, rgba(193, 224, 203, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(193, 224, 203, .06) 1px, transparent 1px),
    rgba(6, 20, 13, .9);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.sirb-map-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sirb-map-canvas polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sirb-map-canvas polyline.planned {
  stroke: rgba(0, 180, 0, .78);
  stroke-width: 2.8;
}

.sirb-map-canvas polyline.tracking {
  stroke: rgba(0, 92, 255, .74);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.map-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(224, 255, 233, .94);
  border-radius: 999px;
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(0, 80, 0, .25);
}

.map-marker i {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.map-marker.skipped,
.map-marker.absent {
  background: #7a7f80;
}

.map-empty-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  max-width: 360px;
  margin: auto;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.map-empty-copy .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 4px;
  border-radius: 22px;
  color: var(--brand-dark);
  background: rgba(0, 194, 0, .12);
  font-size: 36px;
}

.map-empty-copy strong {
  color: var(--ink);
  font-size: 22px;
}

.trip-stop-list {
  display: grid;
}

.trip-stop-list section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 128, 0, .10);
}

.dark-theme .trip-stop-list section {
  border-bottom-color: rgba(193, 224, 203, .10);
}

.stop-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: var(--brand-dark);
  background: rgba(0, 194, 0, .12);
  font-weight: 900;
}

.trip-stop-list strong,
.trip-stop-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-stop-list small {
  color: var(--muted);
}

.trip-scheduler-modal input[type="datetime-local"] {
  color-scheme: light;
}

.dark-theme .trip-scheduler-modal input[type="datetime-local"] {
  color-scheme: dark;
}

.trip-modal-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 128, 0, .14);
  border-radius: 24px;
  background: rgba(0, 194, 0, .045);
}

.dark-theme .trip-modal-section {
  border-color: rgba(196, 214, 198, .16);
  background: rgba(255, 255, 255, .025);
}

.trip-modal-section > header,
.trip-scheduler-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trip-modal-section > header .material-symbols-rounded,
.trip-scheduler-note > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--brand-dark);
  background: rgba(0, 194, 0, .12);
  font-size: 24px;
}

.trip-modal-section strong,
.trip-scheduler-note strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.trip-modal-section small,
.trip-scheduler-note p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.trip-schedule-section {
  gap: 18px;
}

.trip-scheduler-modal .form-row {
  align-items: start;
}

.trip-schedule-main-row,
.trip-date-row {
  gap: 18px;
}

.trip-scheduler-modal .form-row > *,
.trip-scheduler-modal .sirb-dropdown {
  min-width: 0;
}

.trip-schedule-main-row .sirb-dropdown-trigger,
.schedule-time-field {
  min-height: 78px;
}

.schedule-time-field {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(207, 225, 214, .95);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  outline: 0;
}

.dark-theme .schedule-time-field {
  border-color: rgba(49, 70, 56, .95);
  background: rgba(7, 24, 16, .72);
}

.schedule-time-field:hover,
.schedule-time-field:focus-within {
  border-color: rgba(18, 183, 0, .42);
  box-shadow: inset 0 0 0 2px rgba(18, 183, 0, .12);
}

.dark-theme .schedule-time-field:hover,
.dark-theme .schedule-time-field:focus-within {
  border-color: rgba(113, 242, 96, .45);
  box-shadow: inset 0 0 0 2px rgba(113, 242, 96, .12);
}

.schedule-time-field.field-invalid {
  border-color: rgba(239, 68, 68, .45);
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, .1);
}

.schedule-time-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: var(--success);
  background: rgba(0, 188, 0, .10);
  font-size: 28px;
}

.schedule-time-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.schedule-time-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.schedule-time-copy input {
  width: 100%;
  min-height: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none !important;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

.dark-theme .schedule-time-copy input {
  color: #e8f5e9;
  background: transparent;
}

.schedule-time-copy input:focus {
  box-shadow: none !important;
}

.schedule-time-field .field-error {
  grid-column: 1 / -1;
}

.trip-date-row .date-field-title {
  display: flex;
  align-items: center;
  min-height: 26px;
  gap: 8px;
}

.trip-date-row .date-field-title small {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: .82em;
  line-height: 1;
}

.weekday-selector {
  display: grid;
  gap: 12px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}

.weekday-card-selector {
  padding: 18px;
  border: 1px solid rgba(207, 225, 214, .20);
  border-radius: 24px;
  background: rgba(255, 255, 255, .035);
}

.dark-theme .weekday-card-selector {
  border-color: rgba(196, 214, 198, .14);
  background: rgba(255, 255, 255, .018);
}

.weekday-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weekday-selector-header > span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.weekday-selector-header > small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(18, 183, 0, .18);
  border-radius: 999px;
  color: var(--success);
  background: rgba(0, 188, 0, .08);
  font-weight: 950;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.dark-theme .weekday-grid {
  background: transparent;
}

.weekday-selector button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid rgba(207, 225, 214, .20);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted-strong);
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.weekday-selector button:hover,
.weekday-selector button.active {
  background: rgba(0, 188, 0, .08);
  border-color: rgba(0, 188, 0, .24);
  color: var(--success);
}

.weekday-selector button.active {
  box-shadow: inset 0 0 0 1px rgba(18, 183, 0, .14);
}

.weekday-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekday-selector button.active .weekday-name {
  color: var(--success);
}

.weekday-check {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(117, 142, 130, .36);
  border-radius: 999px;
  color: var(--success);
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
  opacity: .42;
  transition: opacity .16s ease, border-color .16s ease, background .16s ease;
}

.weekday-selector button.active .weekday-check {
  opacity: 1;
  border-color: var(--success);
  background: rgba(0, 188, 0, .12);
}

.plain-table-text {
  display: inline-block;
  max-width: 260px;
  color: var(--text);
  font-weight: 850;
}

.trip-plans-table {
  min-width: 1220px;
  table-layout: fixed;
}

.trip-plans-table th,
.trip-plans-table td {
  min-width: 0;
}

.trip-plans-table th:nth-child(1),
.trip-plans-table td:nth-child(1) {
  width: 240px;
}

.trip-plans-table th:nth-child(2),
.trip-plans-table td:nth-child(2) {
  width: 210px;
}

.trip-plans-table th:nth-child(3),
.trip-plans-table td:nth-child(3) {
  width: 150px;
}

.trip-plans-table th:nth-child(4),
.trip-plans-table td:nth-child(4) {
  width: 150px;
}

.trip-plans-table th:nth-child(5),
.trip-plans-table td:nth-child(5) {
  width: 110px;
}

.trip-plans-table th:nth-child(6),
.trip-plans-table td:nth-child(6) {
  width: 150px;
}

.trip-plans-table th:nth-child(7),
.trip-plans-table td:nth-child(7) {
  width: 150px;
}

.trip-plans-table th:nth-child(8),
.trip-plans-table td:nth-child(8) {
  width: 130px;
}

.trip-plans-table th:nth-child(9),
.trip-plans-table td:nth-child(9) {
  width: 64px;
  text-align: end;
}

.trip-plans-table .plain-table-text,
.trip-plans-table .count-chip,
.trip-plans-table .state,
.trip-plans-table .trip-direction {
  max-width: 100%;
}

.trip-plans-table .plain-table-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-plan-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.trip-plan-map-grid {
  margin-top: 0;
  padding: 0 22px 22px;
}

.trip-plan-map-grid .sirb-map-canvas {
  min-height: 380px;
}

.trip-plan-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(0, 128, 0, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 46px rgba(17, 59, 32, .07);
}

.dark-theme .trip-plan-card {
  border-color: rgba(196, 214, 198, .16);
  background: rgba(10, 27, 18, .76);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .20);
}

.trip-plan-card header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.trip-plan-card header > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--brand);
  background: rgba(0, 188, 0, .12);
}

.trip-plan-card strong,
.trip-plan-card small,
.trip-plan-card dt,
.trip-plan-card dd {
  display: block;
}

.trip-plan-card header strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.trip-plan-card header small,
.trip-plan-card dt {
  color: var(--muted);
  font-weight: 750;
}

.trip-plan-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.trip-plan-card dl > div {
  display: grid;
  grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.trip-plan-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid rgba(207, 225, 214, .35);
}

.detail-list-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.detail-list-note .material-symbols-rounded {
  color: var(--brand);
  font-size: 18px;
}

.scheduled-trip-note.detail-list-note {
  display: flex;
  margin: 0;
  padding: 18px 18px 0;
}

.generated-trip-time {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.generated-trip-time .material-symbols-rounded {
  flex: 0 0 auto;
  color: var(--muted);
}

.generated-trip-time strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
}

.trip-scheduler-note {
  padding: 16px;
  border: 1px dashed rgba(0, 128, 0, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .32);
}

.dark-theme .trip-scheduler-note {
  border-color: rgba(196, 214, 198, .18);
  background: rgba(10, 27, 18, .64);
}

.toolbar-inline-filters {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.toolbar-inline-filters .sirb-dropdown {
  flex: 0 1 240px;
  min-width: 190px;
}

.table-stacked-value {
  display: grid;
  gap: 4px;
}

.table-stacked-value strong {
  color: var(--ink);
}

.table-stacked-value small {
  color: var(--muted);
  font-weight: 700;
}

.driver-monogram {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0, 194, 0, .18), rgba(0, 128, 0, .08));
  color: var(--brand-dark);
}

.driver-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 24px;
}

.driver-profile-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(0, 128, 0, .11);
  border-radius: 20px;
  background: rgba(0, 128, 0, .035);
}

.driver-profile-grid article.wide {
  grid-column: 1 / -1;
}

.driver-profile-grid article > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(0, 194, 0, .12);
  font-size: 25px;
}

.driver-profile-grid small,
.driver-profile-grid strong,
.driver-profile-grid span {
  display: block;
}

.driver-profile-grid small {
  margin-bottom: 3px;
  color: var(--muted);
  font-weight: 750;
}

.driver-profile-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.driver-profile-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.driver-modal {
  width: min(780px, calc(100vw - 32px));
}

.driver-modal form {
  gap: 18px;
}

.driver-modal form > label,
.driver-modal .form-row > label {
  min-width: 0;
}

.driver-identity-card {
  display: flex;
  align-items: center;
  min-height: 100px;
  padding: 18px 20px 10px;
  border: 1px dashed rgba(117, 142, 130, .34);
  border-radius: 18px;
  background: rgba(117, 142, 130, .075);
  gap: 16px;
  overflow: visible;
}

.driver-identity-card > .material-symbols-rounded {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--brand);
  background: rgba(0, 188, 0, .10);
  font-size: 26px;
}

.driver-identity-card > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 6px;
  overflow: visible;
}

.driver-identity-card small {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.driver-identity-card strong,
.driver-identity-card > div > span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-identity-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.driver-identity-card > div > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  unicode-bidi: isolate;
}

.driver-identity-phone {
  display: block;
  width: 100%;
  margin-block-start: 4px;
  padding-block-end: 12px;
  direction: ltr;
  unicode-bidi: embed;
}

.driver-identity-hint {
  margin: 0 2px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

body:not(.ltr) .driver-identity-card {
  flex-direction: row;
  direction: rtl;
}

body:not(.ltr) .driver-identity-card > div {
  direction: rtl;
  align-items: flex-end;
  text-align: right;
}

body:not(.ltr) .driver-identity-card small,
body:not(.ltr) .driver-identity-card strong,
body:not(.ltr) .driver-identity-card > div > span,
body:not(.ltr) .driver-identity-hint {
  text-align: right;
}

body:not(.ltr) .driver-identity-phone {
  align-self: stretch;
  text-align: right;
  direction: ltr;
  unicode-bidi: embed;
}

body.ltr .driver-identity-card {
  flex-direction: row;
  direction: ltr;
}

body.ltr .driver-identity-card > div {
  align-items: flex-start;
  text-align: left;
}

body.ltr .driver-identity-card small,
body.ltr .driver-identity-card strong,
body.ltr .driver-identity-card > div > span,
body.ltr .driver-identity-hint {
  text-align: left;
}

body.ltr .driver-identity-phone {
  align-self: stretch;
  text-align: left;
  direction: ltr;
  unicode-bidi: embed;
}

.dark-theme .driver-monogram {
  color: var(--brand);
  background: linear-gradient(145deg, rgba(25, 176, 0, .24), rgba(25, 176, 0, .08));
}

.dark-theme .driver-profile-grid article {
  border-color: rgba(193, 224, 203, .10);
  background: rgba(193, 224, 203, .035);
}

.dark-theme .driver-profile-grid article > .material-symbols-rounded {
  color: var(--brand);
  background: rgba(25, 176, 0, .14);
}

.dark-theme .driver-identity-card {
  border-color: rgba(196, 214, 198, .20);
  background: rgba(11, 33, 23, .84);
}

.dark-theme .driver-identity-card strong {
  color: #e8f5e9;
}

.floating-filter-panel.driver-filter-panel {
  position: fixed;
  z-index: 80;
  width: min(380px, calc(100vw - 24px));
}

.drivers-table {
  min-width: 1120px;
  table-layout: fixed;
}

.drivers-table th:nth-child(1) { width: 24%; }
.drivers-table th:nth-child(2) { width: 18%; }
.drivers-table th:nth-child(3) { width: 14%; }
.drivers-table th:nth-child(4) { width: 17%; }
.drivers-table th:nth-child(5) { width: 10%; }
.drivers-table th:nth-child(6) { width: 12%; }
.drivers-table th:nth-child(7) { width: 5%; }

.drivers-table td {
  vertical-align: middle;
}

.drivers-table .org-link,
.drivers-table .soft-link,
.drivers-table .table-stacked-value,
.drivers-table .count-chip,
.drivers-table .state {
  min-width: 0;
}

.drivers-table .org-link span:last-child,
.drivers-table .table-stacked-value {
  overflow: hidden;
}

.drivers-table .org-link strong,
.drivers-table .org-link small,
.drivers-table .soft-link,
.drivers-table .table-stacked-value strong,
.drivers-table .table-stacked-value small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drivers-table .count-chip,
.drivers-table .state {
  max-width: 100%;
  overflow: hidden;
}

.drivers-table .chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-select-card {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 14px 16px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
}

.modal .invitation-role-readonly {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 8px 12px;
    gap: 12px;
    border: 1px dashed rgba(117, 142, 130, .34);
    border-radius: 18px;
    background: rgba(117, 142, 130, .075);
}

.modal .invitation-role-readonly .readonly-select-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.modal .invitation-role-readonly .readonly-select-copy label {
    font-size: 12px;
    line-height: 1.2;
}

.modal .invitation-role-readonly .readonly-select-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 23px;
}

.modal .invitation-role-readonly strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.25;
}

.readonly-select-card label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.readonly-select-card div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.readonly-select-card .material-symbols-rounded {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--brand);
  background: rgba(0, 188, 0, .10);
}

.readonly-select-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.modal textarea,
.polished-textarea-field textarea.polished-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 128px;
  padding: 16px 18px;
  resize: vertical;
  border: 1px solid rgba(207, 225, 214, .95);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.modal textarea::placeholder,
.polished-textarea-field textarea.polished-textarea::placeholder {
  color: var(--muted);
  font-weight: 800;
}

.modal textarea:hover,
.polished-textarea-field textarea.polished-textarea:hover {
  border-color: rgba(18, 183, 0, .34);
  box-shadow: inset 0 0 0 2px rgba(18, 183, 0, .08);
}

.modal textarea:focus,
.polished-textarea-field textarea.polished-textarea:focus {
  border-color: rgba(18, 183, 0, .42);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 2px rgba(18, 183, 0, .12);
}

.enhanced-driver-panel .driver-profile-grid-enhanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enhanced-driver-panel .driver-operational-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: start;
  gap: 16px;
}

.driver-operational-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.driver-operational-column-main .school-access-card {
  align-items: start;
  min-height: 230px;
}

.driver-operational-column-side .driver-profile-card {
  min-height: 126px;
}

.driver-operational-column-side .driver-notes-card {
  align-items: start;
  min-height: 164px;
}

.driver-operational-column-side .driver-notes-card strong {
  line-height: 1.55;
}

.driver-profile-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(11, 53, 31, .10);
  border-radius: 24px;
  color: inherit;
  text-align: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(239, 248, 241, .70));
}

button.driver-profile-card {
  cursor: pointer;
}

.driver-profile-card > .material-symbols-rounded:first-child {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--brand);
  background: rgba(0, 188, 0, .10);
}

.driver-profile-card small,
.driver-profile-card span {
  color: var(--muted);
  font-weight: 700;
}

.driver-profile-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.driver-emergency-phone {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: inherit;
}

body:not(.ltr) .driver-emergency-phone {
  text-align: right;
}

body.ltr .driver-emergency-phone {
  text-align: left;
}

.driver-profile-card.wide {
  grid-column: span 2;
}

.driver-profile-card.clickable {
  grid-template-columns: 52px minmax(0, 1fr) 28px;
}

.driver-profile-card.clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 188, 0, .35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
}

.driver-profile-card .open-icon {
  width: auto !important;
  height: auto !important;
  color: var(--muted) !important;
  background: transparent !important;
}

.driver-school-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.driver-school-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 188, 0, .18);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: rgba(0, 188, 0, .06);
}

.driver-school-chip .school-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-basis: 44px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  transform: none;
}

.driver-school-chip span:last-child {
  min-width: 0;
}

.driver-school-chip strong,
.driver-school-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-access-empty {
  margin: 14px 0 0;
  color: var(--muted);
}

.driver-trips-panel {
  margin-top: 18px;
}

.driver-trips-table {
  min-width: 1120px;
  table-layout: fixed;
}

.driver-trips-table th,
.driver-trips-table td {
  min-width: 0;
}

.driver-trips-table th:nth-child(1),
.driver-trips-table td:nth-child(1) {
  width: 230px;
}

.driver-trips-table th:nth-child(2),
.driver-trips-table td:nth-child(2) {
  width: 210px;
}

.driver-trips-table th:nth-child(3),
.driver-trips-table td:nth-child(3) {
  width: 150px;
}

.driver-trips-table th:nth-child(4),
.driver-trips-table td:nth-child(4) {
  width: 150px;
}

.driver-trips-table th:nth-child(5),
.driver-trips-table td:nth-child(5) {
  width: 130px;
}

.driver-trips-table th:nth-child(6),
.driver-trips-table td:nth-child(6) {
  width: 150px;
}

.driver-trips-table th:nth-child(7),
.driver-trips-table td:nth-child(7) {
  width: 130px;
}

.driver-trips-table th:nth-child(8),
.driver-trips-table td:nth-child(8) {
  width: 64px;
  text-align: end;
}

.driver-trips-table .plain-table-text,
.driver-trips-table .count-chip,
.driver-trips-table .state,
.driver-trips-table .trip-direction {
  max-width: 100%;
}

.driver-trip-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 24px;
}

.driver-trip-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(11, 53, 31, .10);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .80);
}

.driver-trip-card > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--brand);
  background: rgba(0, 188, 0, .10);
}

.driver-trip-card strong,
.driver-trip-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-trip-card time {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.detail-skeleton.compact {
  justify-content: center;
  padding: 16px;
}

.dark-theme .readonly-select-card {
  border-color: rgba(196, 214, 198, .20);
  background: rgba(11, 33, 23, .84);
}

.dark-theme .readonly-select-card strong {
  color: #e8f5e9;
}

.dark-theme .modal textarea,
.dark-theme .polished-textarea-field textarea.polished-textarea {
  border-color: rgba(49, 70, 56, .95);
  color: var(--muted-strong);
  background: rgba(7, 24, 16, .72);
  box-shadow: none;
}

.dark-theme .modal textarea::placeholder,
.dark-theme .polished-textarea-field textarea.polished-textarea::placeholder {
  color: rgba(196, 214, 198, .58);
}

.dark-theme .modal textarea:hover,
.dark-theme .polished-textarea-field textarea.polished-textarea:hover {
  border-color: rgba(113, 242, 96, .32);
  box-shadow: inset 0 0 0 2px rgba(113, 242, 96, .08);
}

.dark-theme .modal textarea:focus,
.dark-theme .polished-textarea-field textarea.polished-textarea:focus {
  border-color: rgba(113, 242, 96, .45);
  background: rgba(7, 24, 16, .72);
  box-shadow: inset 0 0 0 2px rgba(113, 242, 96, .12);
}

.dark-theme .driver-profile-card {
  border-color: rgba(196, 214, 198, .18);
  background: linear-gradient(135deg, rgba(10, 27, 18, .92), rgba(13, 42, 26, .76));
}

.dark-theme .driver-profile-card strong {
  color: #e8f5e9;
}

.dark-theme .driver-trip-card {
  border-color: rgba(196, 214, 198, .18);
  background: rgba(10, 27, 18, .86);
}

.dark-theme .driver-school-chip {
  border-color: rgba(0, 188, 0, .24);
  background: rgba(0, 188, 0, .08);
}

@media (max-width: 1180px) {
  .enhanced-driver-panel .driver-profile-grid-enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enhanced-driver-panel .driver-operational-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .trip-command-strip,
  .trip-map-grid,
  .trip-plan-detail-grid {
    grid-template-columns: 1fr;
  }

  .sirb-map-canvas {
    min-height: 340px;
  }

  .weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .toolbar-inline-filters {
    flex: 1 0 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .toolbar-inline-filters .sirb-dropdown {
    flex: 1 1 180px;
    min-width: 0;
  }

  .driver-profile-grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .driver-profile-grid article.wide {
    grid-column: auto;
  }

  .driver-profile-card.wide {
    grid-column: auto;
  }

  .driver-trip-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .driver-trip-card time {
    grid-column: 2;
  }

  .trip-command-strip {
    gap: 10px;
  }

  .trip-command-strip article {
    padding: 14px;
  }

  .trip-source-pill,
  .trip-time-text {
    max-width: 220px;
  }

  .trip-modal-section,
  .trip-scheduler-note {
    padding: 14px;
    border-radius: 20px;
  }

  .trip-scheduler-modal .form-row,
  .trip-schedule-main-row,
  .trip-date-row {
    grid-template-columns: 1fr;
  }

  .weekday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-stop-list section {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .trip-stop-list .state {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .weekday-grid {
    grid-template-columns: 1fr;
  }
}
