/* Masar — forest and sage interface, with readable Arabic type and responsive controls. */
.format-guide>.button { margin-top:14px; }
.import-preview { margin-top:20px; padding:19px; background:#f1f7eb; border:1px solid #d9e7ce; border-radius:12px; }
.import-preview h3 { font-size:15px; margin-bottom:14px; }
.import-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.import-preview-grid strong { display:block; font:26px Arial,sans-serif; color:#264c29; }
.import-preview-grid span { font-size:11px; color:#627858; }
.import-preview p { font-size:12px; line-height:1.95; margin-top:9px; color:#5f7553; }
.import-preview details { margin-top:14px; font-size:12px; }
.import-preview summary { cursor:pointer; color:#376f37; }
.import-preview-sample { padding:12px 0; border-bottom:1px solid #dce7d2; }
.import-preview-sample>strong,.import-preview-sample>span { display:block; }
.import-preview-sample>span { font:12px Arial,sans-serif; margin-top:7px; }
.import-preview .reread-notice { color:#81591f; background:#faf0dc; padding:12px; border-radius:8px; }
.sidebar-brand-row { display:flex; align-items:center; justify-content:space-between; }
.sidebar .sidebar-close { display:none; color:#c1d4b7; }
.sidebar .icon-button:hover { color:#fff; background:#ffffff0c; }
@media(max-width:720px) { .sidebar .sidebar-close { display:inline-flex; } }
@media(max-height:900px) and (min-width:721px) {
  .sidebar-tip { display:none; }
  .sidebar .sidebar-bottom { padding-top:12px; }
  .sidebar .workspace { margin-block:20px; }
  .sidebar .nav-item { min-height:43px; padding-block:9px; }
  .sidebar .profile { margin-top:12px; padding-block:14px; }
}
@font-face {font-family: Noto; src: url('/assets/fonts/NotoSansArabic.ttf') format('truetype'); font-weight: 100 900; font-display: swap;}

:root {
  --bg: #f2f7ef;
  --card: #fff;
  --ink: #193322;
  --muted: #647366;
  --line: #e2eade;
  --green: #246d3d;
  --green-light: #e7f2e1;
  --orange: #cf9550;
  --red: #b7574c;
  --nav: #0c1e13;
  --slate: #bccdb9;
  --shadow: 0 4px 20px #173a2010;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Noto,Tahoma,sans-serif;
  font-size: 14px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,input,select,textarea {
  font: inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid #75b75a;
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

input,select,textarea {
  border: 1px solid #dfe6e1;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  max-width: 100%;
  border-color: #dce6d7;
  min-height: 44px;
  transition: border-color .15s,box-shadow .15s;
}

input:focus,select:focus,textarea:focus {
  border-color: #47865a;
  box-shadow: 0 0 0 3px #76b95320;
}

select {
  cursor: pointer;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.55;
}

h2 {
  font-size: 17px;
  font-weight: 650;
}

h3 {
  font-size: 15px;
  font-weight: 650;
}

p {
  color: var(--muted);
}

svg {
  flex-shrink: 0;
  vertical-align: middle;
}

small {
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sidebar {
  position: fixed;
  right: 20px;
  top: 20px;
  bottom: 20px;
  width: 248px;
  padding: 28px 18px 0;
  background: radial-gradient(ellipse at 90% 0%,#20442a 0,transparent 47%),#0c1b11;
  color: #dbe7d8;
  display: flex;
  flex-direction: column;
  z-index: 40;
  border-radius: 0 24px 24px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #34543b transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 0 10px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand small {
  display: block;
  font-family: Arial,sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 400;
  color: #a2bba0;
  margin-top: 6px;
}

.brand-symbol {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  color: #b9e69f;
  display: grid;
  place-items: center;
  border: 1px solid #acd79233;
  transform: none;
  background: #b2e29312;
}

.workspace {
  border: 1px solid #ffffff13;
  background: #ffffff08;
  border-radius: 12px;
  padding: 13px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 29px 0 26px;
  font-size: 13px;
  border-color: #e2f5d613;
  line-height: 1.6;
}

.workspace small {
  display: block;
  color: #9eb69c;
  font-size: 11px;
  margin-top: 3px;
}

.workspace-icon {
  background: #c8eda411;
  border-radius: 9px;
  padding: 8px;
  color: #c1e7ab;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #a6df81;
  border-radius: 50%;
  margin-right: auto;
  box-shadow: 0 0 0 4px #b5e3930b;
}

.nav-label {
  display: block;
  color: #91a98d;
  font-size: 11px;
  padding: 0 13px;
  margin-bottom: 9px;
  padding-inline: 13px;
}

.nav-label.second {
  margin-top: 27px;
}

.nav-item {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  color: #b8cab2;
  border-radius: 10px;
  text-align: right;
  margin-bottom: 6px;
  font-size: 13px;
  transition: .15s;
  min-height: 47px;
  line-height: 1.7;
}

.nav-item:hover {
  background: #ffffff0a;
  color: #fff;
}

.nav-item.active {
  background: #ffffff0c;
  color: #eef9e9;
  font-weight: 650;
  box-shadow: inset -3px 0 #9cdb77;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-counter {
  margin-right: auto;
  font-family: Arial,sans-serif;
  font-size: 12px;
  background: #ffffff0d;
  border-radius: 6px;
  min-width: 25px;
  text-align: center;
  padding: 1px 6px;
  color: #d2e6c7;
}

.nav-counter.warm {
  background: #cf955019;
  color: #ecc59a;
}

.nav-item.active .nav-counter {
  color: #bce6a3;
  background: #a1d38215;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-tip {
  border: 1px solid #829c8c27;
  background: linear-gradient(140deg,#2d4b2d55,#102317);
  padding: 16px 14px;
  border-radius: 13px;
  border-color: #b8d6a11b;
}

.tip-symbol {
  color: #bce59a;
  display: block;
  margin-bottom: 10px;
}

.sidebar-tip strong {
  font-size: 13px;
  font-weight: 550;
}

.sidebar-tip p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 7px;
  color: #9fb397;
}

.sidebar-upload {
  background: transparent;
  border: 0;
  border-top: 1px solid #ffffff0c;
  padding: 12px 0 0;
  margin-top: 12px;
  color: #c4e3ac;
  font-size: 12px;
  width: 100%;
  text-align: right;
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
}

.profile {
  border-top: 1px solid #ffffff11;
  margin-top: 19px;
  padding: 18px 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  background: #314c32;
  color: #d1e9bf;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  font-size: 16px;
}

.profile strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile small {
  color: #91a888;
  font-size: 11px;
  display: block;
}

.profile form {
  margin-right: auto;
}

.profile .icon-button {
  color: #c1d4b7;
}

.app-shell {
  margin-right: 268px;
  margin: 0 268px 0 20px;
  margin-left: 20px;
  min-height: calc(100vh - 40px);
  background: var(--bg);
  border-radius: 24px 0 0 24px;
  min-width: 0;
}

.topbar {
  height: 73px;
  border-bottom: 1px solid #dce6d5;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: #70816e;
}

.breadcrumb strong {
  font-weight: 600;
  color: #2d4830;
}

.crumb-slash {
  color: #c2cbc3;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.local-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #57704e;
  background: #e4eddc;
  border: 1px solid #dce7d4;
  padding: 5px 12px;
  border-radius: 30px;
}

.local-status i {
  width: 6px;
  height: 6px;
  background: #4d9a4e;
  border-radius: 50%;
}

.topbar-divider {
  height: 19px;
  border-left: 1px solid var(--line);
}

.icon-button {
  padding: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: #7b8b82;
  width: 36px;
  height: 36px;
}

.icon-button:hover {
  background: #62904612;
  color: #24492c;
}

.mobile-menu {
  display: none;
}

.app-shell main {
  max-width: 1740px;
  padding: 28px 28px 0;
  margin: auto;
  min-width: 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #6b8061;
  font-weight: 650;
  font-family: Noto,Arial,sans-serif;
  margin-bottom: 6px;
}

.heading-dot {
  color: var(--green);
}

.page-heading p {
  font-size: 13px;
  margin-top: 7px;
  color: #6d7c68;
}

.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
  flex-direction: row;
}

.button {
  border: 1px solid #dfe5df;
  border-radius: 10px;
  background: #fff;
  padding: 9px 15px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 550;
  min-height: 42px;
  transition: .15s;
  border-color: #d7e3cf;
}

.button:hover {
  border-color: #a2b9a9;
  background: #f8fbf8;
}

.button.primary {
  color: #fff;
  background: #1b3723;
  border-color: #1b3723;
  box-shadow: 0 3px 6px #1a3f2010;
}

.button.primary:hover {
  background: #2a5130;
  border-color: #2a5130;
}

.button.small {
  min-height: 35px;
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.text-button {
  background: none;
  border: 0;
  font-size: 12px;
  padding: 3px 0;
  color: #376c37;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  line-height: 1.7;
}

.text-button:hover {
  text-decoration: underline;
}

.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e1e9db;
  background: #fff;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: none;
  flex-wrap: wrap;
}

.filter-date {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: #61765a;
  white-space: nowrap;
  font-size: 12px;
}

.filter-date input {
  font-family: Arial,sans-serif;
  border: 0;
  padding: 4px 2px;
  width: 116px;
  font-size: 13px;
  color: #516354;
  min-width: 0;
  min-height: 34px;
  background: transparent;
}

.filter-date input:focus {
  box-shadow: none;
}

.filter-date svg {
  margin-left: 2px;
}

.filter-bar select {
  padding: 5px 10px;
  border: 0;
  background: #f3f7ef;
  font-size: 12px;
  max-width: 195px;
  height: 36px;
  min-height: 36px;
  border-radius: 7px;
}

.filter-bar .text-button {
  color: #607457;
  font-size: 12px;
}

.filter-summary {
  margin-right: auto;
  color: #6b7d62;
  font-size: 11px;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 19px 17px;
  box-shadow: 0 3px 16px #25402a06;
  position: relative;
  overflow: hidden;
  border-color: #e4ebde;
  min-width: 0;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 31px;
}

.metric-top h2 {
  font-size: 12px;
  font-weight: 500;
  color: #687860;
  line-height: 1.6;
}

.metric-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #edf4e6;
  color: #6e8f5e;
}

.metric.orange .metric-icon {
  background: #faf0de;
  color: #b7833c;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 13px;
}

.metric-value strong {
  font-family: Arial,sans-serif;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -1px;
  color: #243d26;
  font-weight: 500;
}

.metric-value>span {
  font-size: 12px;
  color: #6e8064;
}

.metric-foot {
  font-size: 11px;
  color: #718168;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.8;
}

.metric-foot .mini-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6f9f76;
}

.metric.orange .metric-foot .mini-dot {
  background: #c99b65;
}

.metric.orange .metric-value strong {
  color: #a26e2d;
}

.insight-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #e9f0e1;
  border: 1px solid #e0e8d7;
  border-radius: 11px;
  margin-bottom: 20px;
  color: #607651;
  font-size: 12px;
  line-height: 1.9;
  border-color: #dae6cf;
}

.insight-banner svg {
  color: #7f9561;
}

.insight-banner strong {
  font-weight: 650;
  color: #34552b;
}

.insight-banner .text-button {
  margin-right: auto;
  font-size: 12px;
  color: #647a4f;
  flex-shrink: 0;
}

.panel {
  background: #fff;
  border: 1px solid #e4ebdf;
  border-radius: 16px;
  box-shadow: 0 3px 18px #203d2205;
  overflow: hidden;
  min-width: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 21px 22px 0;
}

.panel-heading h2 {
  font-size: 16px;
  line-height: 1.65;
}

.panel-heading p {
  font-size: 12px;
  margin-top: 5px;
  color: #738169;
  line-height: 1.85;
}

.panel-heading>select {
  font-size: 12px;
  padding: 5px 10px;
  min-height: 35px;
}

.muted {
  color: #a3afa6;
}

.unit-tag {
  font-size: 12px;
  color: #8e9b91;
  background: #f5f7f3;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 10px;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0,1.75fr) minmax(265px,1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.legend {
  display: flex;
  gap: 18px;
  padding: 16px 22px 9px;
  font-size: 11px;
  color: #6d7d61;
}

.legend>span,.map-footer>span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot.green {
  background: #46ad55;
}

.legend-dot.orange {
  background: #d7a05b;
}

.legend-dot.slate {
  background: #becdb9;
}

.legend-dot.red {
  background: #c77969;
}

.activity-chart {
  padding: 0 18px;
  height: 255px;
  direction: ltr;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
}

.activity-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: Noto,Arial,sans-serif;
  min-width: 650px;
}

.chart-footer {
  padding: 10px 22px;
  border-top: 1px solid #f2f4ef;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #78886d;
  font-size: 11px;
  min-height: 44px;
  border-color: #edf2e8;
}

.chart-label {
  cursor: pointer;
  fill: #52684c;
  font-size: 12px;
}

.chart-label:hover {
  fill: #237b61;
}

.donut-wrap {
  display: grid;
  place-items: center;
  position: relative;
  height: 205px;
  margin-top: 12px;
}

.donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  transform: rotate(-90deg);
}

.donut:after {
  content: '';
  position: absolute;
  inset: 17px;
  background: #e0eed8;
  border-radius: 50%;
}

.donut-center {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  z-index: 1;
  line-height: 1.5;
}

.donut-center strong {
  font-family: Arial,sans-serif;
  font-size: 35px;
  font-weight: 500;
  color: #243e27;
}

.donut-center span {
  color: #526a46;
  font-size: 12px;
}

.distribution-rows {
  padding: 3px 23px 20px;
  display: grid;
  gap: 10px;
}

.distribution-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #5d7351;
}

.distribution-row strong {
  margin-right: auto;
  font-size: 14px;
  font-family: Arial,sans-serif;
  color: #2d4e2d;
  font-weight: 600;
}

.distribution-row small {
  width: 42px;
  text-align: left;
  font-family: Arial,sans-serif;
  color: #627a54;
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 20px;
}

.small-chip {
  color: #80917f;
  font-size: 12px;
  border: 1px solid #e7ece2;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f9faf6;
  white-space: nowrap;
}

.map-wrap {
  position: relative;
  margin-top: 18px;
  background: #eaf0e4;
  height: 300px;
}

.map-wrap:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d9dfcf 1px,transparent 1px),linear-gradient(90deg,#d9dfcf 1px,transparent 1px);
  background-size: 40px 40px;
  opacity: .4;
}

#fleet-map {
  height: 100%;
  width: 100%;
  z-index: 1;
  background: #eef0e6;
}

.map-fallback {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f4f7ef;
  color: #667c59;
  font-size: 13px;
}

.map-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #667a58;
  font-size: 11px;
  flex-wrap: wrap;
}

.map-footer small {
  margin-right: auto;
  font-size: 10px;
  color: #718465;
}

.leaflet-container {
  font-family: Noto,Tahoma,sans-serif !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
}

.leaflet-popup-content {
  font-size: 12px;
  line-height: 1.9 !important;
  text-align: right;
}

.leaflet-popup-content strong {
  display: block;
}

.map-popup-button {
  border: 0;
  background: var(--green-light);
  color: var(--green);
  border-radius: 7px;
  font-family: Noto,sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  margin-top: 7px;
}

.leaflet-control-attribution {
  font-size: 10px !important;
}

.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 17px 21px;
  border-bottom: 1px solid #eef1eb;
  cursor: pointer;
}

.attention-item:first-child {
  margin-top: 8px;
}

.attention-item:last-child {
  border-bottom: 0;
}

.attention-item:hover {
  background: #fafbf8;
}

.attention-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ba8660;
  background: #f6eedc;
  flex-shrink: 0;
  margin-top: 2px;
}

.attention-symbol.critical {
  color: #bd7564;
  background: #faece7;
}

.attention-copy {
  min-width: 0;
  flex: 1;
}

.attention-copy strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  line-height: 1.7;
}

.attention-copy p {
  font-size: 11px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  color: #7d896f;
}

.attention-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 11px;
  color: #7b896d;
}

.attention-meta span:first-child {
  font-family: Arial,sans-serif;
  font-size: 12px;
  color: #7d8e75;
}

.attention-time {
  font-size: 13px;
  color: #a5783c;
  white-space: nowrap;
  text-align: left;
  font-family: Arial,Noto,sans-serif;
  line-height: 1.6;
}

.attention-time small {
  display: block;
  font-size: 10px;
  color: #7f8b74;
  margin-top: 3px;
}

.method-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #71816a;
  padding: 21px 2px 0;
  padding-top: 19px;
}

.method-note p {
  font-size: 12px;
  color: #71816a;
}

.method-note .text-button {
  font-size: 12px;
  margin-right: 4px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5eae0;
  margin-top: 27px;
  padding: 20px 0;
  font-size: 11px;
  color: #7a886f;
  gap: 15px;
}

.footer-separator {
  color: #c4ccbd;
  margin: 0 7px;
}

.footer-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #b1bda6;
  border-radius: 50%;
  margin: 0 7px;
}

.table-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 22px;
  flex-wrap: wrap;
}

.search-input {
  display: flex;
  align-items: center;
  border: 1px solid #e3e8df;
  border-radius: 9px;
  flex: 1;
  max-width: 390px;
  padding-right: 10px;
  color: #9aa790;
  border-color: #dfe8d9;
  min-width: 190px;
}

.search-input input {
  width: 100%;
  border: 0;
  font-size: 13px;
  background: transparent;
  padding: 10px;
  min-height: 42px;
}

.search-input input:focus {
  box-shadow: none;
}

.table-toolbar select {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 42px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: right;
  white-space: nowrap;
}

th {
  background: #f5f8f0;
  border-block: 1px solid #edf0e9;
  font-weight: 550;
  color: #6c7d60;
  font-size: 12px;
  padding: 14px 18px;
}

td {
  padding: 17px 18px;
  border-bottom: 1px solid #edf0e9;
  font-size: 13px;
  color: #526c43;
}

td strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  color: #2d4b2b;
}

td small {
  display: block;
  font-size: 11px;
  color: #7c8d70;
  margin-top: 4px;
}

.table-route {
  max-width: 300px;
}

.table-route>div {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  font-size: 12px;
}

.table-route>div+div {
  margin-top: 4px;
  color: #93a083;
}

.table-route i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #9db492;
  border-radius: 50%;
  margin-left: 5px;
}

.table-route>div+div i {
  background: var(--green);
}

.driver-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.driver-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #eaf2e1;
  color: #66864c;
  border-radius: 11px;
  font-size: 14px;
}

.numeric {
  font-family: Arial,Noto,sans-serif;
  font-variant-numeric: tabular-nums;
}

.badge {
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  line-height: 1.7;
}

.badge.normal {
  background: #e9f3e1;
  color: #477633;
}

.badge.warning {
  background: #faf0dc;
  color: #93621e;
}

.badge.critical {
  background: #fae9e3;
  color: #a84f43;
}

.badge.pending {
  background: #f7f1e6;
  color: #a88b5d;
}

.badge.explained {
  background: #edf4e8;
  color: #658c4d;
}

.badge.escalated {
  background: #f9eae6;
  color: #bb7766;
}

.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 12px;
  color: #8f9c84;
  gap: 12px;
}

.pagination>div {
  display: flex;
  gap: 6px;
}

.empty {
  padding: 36px 20px;
  text-align: center;
  color: #7b8a70;
  font-size: 12px;
}

.empty strong {
  font-size: 14px;
  color: #4d6b40;
  display: block;
  margin-bottom: 7px;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.driver-card {
  padding: 22px;
}

.driver-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-card-head .driver-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.driver-card-head h2 {
  font-size: 16px;
}

.driver-card-head p {
  font-size: 12px;
  font-family: Arial,Noto,sans-serif;
  margin-top: 2px;
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  border-block: 1px solid var(--line);
  margin-top: 18px;
  padding: 17px 0;
}

.driver-stats span {
  font-size: 12px;
  color: #98a48c;
}

.driver-stats strong {
  display: block;
  font-size: 25px;
  font-family: Arial,Noto,sans-serif;
  color: #2d4d2a;
  font-weight: 500;
  margin-top: 3px;
}

.driver-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 17px 0 9px;
  direction: ltr;
}

.driver-bar i {
  height: 100%;
}

.driver-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #929f84;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.alert-summary {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.alert-stat {
  padding: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.alert-stat strong {
  font-family: Arial,sans-serif;
  font-size: 31px;
  font-weight: 400;
  color: #566f43;
}

.alert-stat p {
  font-size: 13px;
  color: #6a7b5f;
}

.alerts-list {
  padding: 12px 21px 20px;
}

.alert-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.alert-row:last-child {
  border: 0;
}

.alert-row-main {
  flex: 1;
  min-width: 0;
}

.alert-row-title {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.alert-row-title strong {
  font-size: 13px;
  font-weight: 550;
}

.alert-row-main p {
  font-size: 12px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.9;
}

.alert-row-meta {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
  color: #98a38d;
  margin-top: 7px;
}

.alert-row-meta .numeric {
  color: #7e9170;
}

.alert-row>strong {
  font-family: Arial,Noto,sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #b18359;
  white-space: nowrap;
}

.alert-row>strong small {
  font-size: 12px;
}

.import-intro {
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  background: linear-gradient(120deg,#e6f0df,#f5f8f0);
}

.file-illustration {
  color: #528448;
  width: 65px;
  height: 65px;
  background: #d8e9ca;
  display: grid;
  place-items: center;
  border-radius: 17px;
  flex-shrink: 0;
}

.import-intro h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.import-intro p {
  font-size: 13px;
  max-width: 670px;
  line-height: 2;
  margin-top: 5px;
  color: #708263;
}

.import-intro>.button {
  margin-right: auto;
  white-space: nowrap;
}

.import-row {
  padding: 23px;
  border-top: 1px solid var(--line);
}

.import-row:first-child {
  margin-top: 18px;
}

.import-row-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.import-row-head>svg {
  color: #7f9a68;
}

.import-row h3 {
  font-size: 14px;
  font-family: Arial,Noto,sans-serif;
  overflow-wrap: anywhere;
}

.import-row p {
  font-size: 12px;
  margin-top: 4px;
}

.import-row .text-button {
  margin-right: auto;
  font-size: 12px;
}

.import-summary {
  display: flex;
  gap: 24px;
  color: #8a9c78;
  font-size: 12px;
  margin-top: 18px;
  padding-right: 34px;
  padding-top: 16px;
  flex-wrap: wrap;
}

.import-summary strong {
  font-family: Arial,sans-serif;
  color: #2e512c;
  font-size: 24px;
  margin-left: 4px;
}

.import-row details {
  font-size: 13px;
  margin-top: 12px;
  color: #9b8a67;
  padding-right: 34px;
}

.import-row summary {
  cursor: pointer;
}

.import-row details ul {
  padding-right: 18px;
  font-size: 12px;
  margin: 8px 0 0;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr);
  gap: 20px;
  align-items: start;
}

.settings-form {
  padding: 24px;
}

.settings-form h3 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #61784e;
}

.settings-fields {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  margin-bottom: 26px;
}

label {
  font-size: 13px;
  display: block;
  color: #415b36;
  line-height: 1.8;
}

label input,label select,label textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
}

label span {
  color: #7d8d70;
  font-size: 12px;
}

.settings-fields input {
  font-family: Arial,sans-serif;
  font-size: 16px;
  height: 41px;
  min-height: 47px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  padding-top: 3px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.methodology {
  padding: 27px;
  background: #e4efdc;
  border-color: #d9e6d0;
}

.methodology h2 {
  font-size: 25px;
  color: #2b4928;
  line-height: 1.8;
  margin: 10px 0 22px;
}

.methodology h3 {
  font-size: 14px;
  margin-top: 24px;
  color: #6d825c;
}

.methodology p {
  font-size: 12px;
  line-height: 2.1;
  margin-top: 7px;
  color: #687d59;
}

.loading-state {
  padding: 80px 20px;
  text-align: center;
  color: #8b9d7d;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #dce6d5;
  border-top-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {transform: rotate(360deg);}
}

.modal {
  border: 1px solid #e0e8d9;
  border-radius: 20px;
  box-shadow: 0 30px 100px #09201338;
  color: var(--ink);
  background: #fff;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 0;
  width: min(660px,calc(100% - 32px));
  max-width: calc(100vw - 28px);
  font-family: Noto,Tahoma,sans-serif;
}

.modal::backdrop {
  background: #07190e91;
  backdrop-filter: blur(5px);
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 27px 22px;
  gap: 16px;
}

.modal-heading h2 {
  font-size: 20px;
  margin-top: 4px;
  line-height: 1.6;
}

.modal-heading .eyebrow {
  font-size: 11px;
  color: #98a88a;
  letter-spacing: 0;
}

.import-modal form {
  padding: 0 27px 27px;
}

.drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1.5px dashed #bdcdb0;
  background: #f7faf3;
  border-radius: 14px;
  padding: 28px 18px;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: #b3cba2;
}

.drop-zone:hover,.drop-zone.dragging {
  border-color: var(--green);
  background: #eef6e7;
}

.drop-zone input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.drop-zone:focus-within {
  outline: 3px solid #9fbf8c;
}

.upload-circle {
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  background: #e6f1dc;
  border-radius: 50%;
  color: #47773b;
  margin-bottom: 10px;
}

.drop-zone strong {
  font-size: 17px;
  font-weight: 600;
  word-break: break-word;
  color: #627b4e;
}

.drop-zone>span:not(.upload-circle) {
  font-size: 13px;
  color: #98a88b;
}

.drop-zone small {
  font-family: Arial,Noto,sans-serif;
  font-size: 12px;
  color: #afbaa2;
  margin-top: 5px;
}

.format-guide {
  padding: 19px 17px;
  border-radius: 11px;
}

.format-guide strong {
  font-size: 13px;
  color: #819570;
}

.format-guide p {
  font-size: 12px;
  line-height: 2;
  margin-top: 7px;
  color: #98a68a;
}

.format-guide>span {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  color: #acb69f;
}

.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.form-feedback {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 14px;
  color: #ad745d;
}

.form-feedback.success {
  color: #5d8a45;
}

.form-error {
  font-size: 13px;
  padding: 13px 17px;
  background: #fff0ea;
  color: #b37660;
  border: 1px solid #f0d6cb;
  border-radius: 10px;
  margin-bottom: 20px;
}

.trip-modal {
  width: 670px;
}

.trip-detail-inner {
  padding: 0 27px 24px;
}

.trip-route {
  padding: 17px 19px;
  background: #f5f8f0;
  border: 1px solid #e7efde;
  border-radius: 12px;
  margin: 17px 0;
  position: relative;
}

.trip-route p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #7f946b;
  line-height: 1.9;
}

.trip-route p+p {
  margin-top: 14px;
}

.trip-route i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4b992;
}

.trip-route p+p i {
  background: var(--green);
}

.trip-facts {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 17px 0;
  margin-top: 20px;
}

.trip-facts div {
  border: 1px solid #e9eee2;
  border-radius: 10px;
  padding: 14px;
}

.trip-facts span {
  display: block;
  color: #9caa8f;
  font-size: 12px;
}

.trip-facts strong {
  font-family: Arial,Noto,sans-serif;
  font-size: 18px;
  color: #5f784c;
  font-weight: 500;
  display: block;
  margin-top: 7px;
}

.trip-source {
  color: #a3af96;
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 2;
}

.trip-notes {
  font-size: 13px;
  color: #ab8c62;
  background: #fcf6ea;
  padding: 13px 15px;
  border-radius: 7px;
  line-height: 2.1;
  margin-top: 15px;
}

.trip-notes p {
  color: inherit;
  font-size: 12px;
  line-height: 2;
}

.trip-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}

.review-form {
  padding: 24px 27px 27px;
  border-top: 1px solid var(--line);
  background: #f8faf5;
}

.review-form h3 {
  margin-bottom: 17px;
  font-size: 16px;
}

.review-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 15px;
}

.review-form label {
  font-size: 13px;
}

.review-form select,.review-form textarea {
  font-size: 13px;
}

.review-form textarea {
  resize: vertical;
}

.review-form>.button {
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 25px;
  bottom: 26px;
  z-index: 100;
  background: #18371f;
  color: #f4faee;
  box-shadow: 0 8px 32px #112b2230;
  padding: 14px 23px;
  border-radius: 12px;
  font-size: 13px;
  max-width: calc(100% - 32px);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  background: radial-gradient(ellipse at 0 0,#31693c,transparent 60%),#102819;
  padding: 24px;
  align-items: stretch;
}

.auth-decoration {
  background: radial-gradient(ellipse at 85% 10%,#294a2b 0,transparent 55%),#102317;
  color: #e1ead8;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 60px 12%;
  min-height: calc(100vh - 48px);
  position: relative;
  overflow: hidden;
  border-radius: 0 24px 24px 0;
}

.auth-decoration:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#a8c19006 1px,transparent 1px),linear-gradient(90deg,#a8c19006 1px,transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
}

.auth-decoration .brand {
  margin-bottom: 64px;
  padding: 0;
}

.auth-decoration .brand small {
  font-size: 10px;
  letter-spacing: 1.4px;
  margin-top: 8px;
}

.auth-decoration h1 {
  font-size: clamp(30px,3vw,44px);
  line-height: 1.95;
  font-weight: 550;
  letter-spacing: -.5px;
}

.auth-decoration h1 span {
  color: #c0e89a;
}

.auth-decoration p {
  font-size: 14px;
  line-height: 2.2;
  color: #a2b89a;
  margin-top: 25px;
}

.auth-decoration>small {
  font-size: 12px;
  color: #89a47c;
  margin-top: 14px;
}

.auth-route {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 54px;
  max-width: 220px;
}

.auth-route span {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  border: 3px solid #b7d49f;
  background: var(--nav);
  box-shadow: 0 0 0 5px #b7d49f09;
}

.auth-route i {
  width: 70px;
  border-top: 1px dashed #64825d;
  margin: 0 5px;
}

.auth-route span:last-child {
  background: #b7d49f;
}

.auth-card {
  width: 100%;
  max-width: 445px;
  padding: 24px 16px;
  align-self: center;
  justify-self: center;
}

.auth-card>.eyebrow {
  font-size: 12px;
  letter-spacing: 0;
  color: #6c8a58;
}

.auth-card h2 {
  font-size: 29px;
  font-weight: 650;
  margin-top: 9px;
}

.auth-card>p {
  font-size: 13px;
  line-height: 2;
  margin: 12px 0 26px;
  color: #75846c;
}

.auth-card label {
  font-size: 13px;
  margin-bottom: 17px;
  color: #3d5735;
}

.auth-card input {
  height: 49px;
  font-size: 15px;
  background: white;
  border-radius: 10px;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
  height: 45px;
  min-height: 48px;
  font-size: 14px;
}

.auth-foot {
  font-size: 12px;
  color: #7a8c6f;
  margin-top: 30px;
  line-height: 1.9;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.auth-card .form-error {
  font-size: 13px;
}

.map-status {
  padding: 12px 16px;
  background: #fbf4e9;
  border-bottom: 1px solid #efe4d2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #98764b;
  line-height: 1.8;
}

.map-status .text-button {
  flex-shrink: 0;
}

#fleet-map {
  direction: ltr;
}

.trip-map-card {
  border: 1px solid #e4e9e3;
  border-radius: 13px;
  overflow: hidden;
  margin: 18px 0;
  background: #fff;
  margin-top: 22px;
}

.trip-map-heading {
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trip-map-heading h3 {
  font-size: 14px;
}

.trip-map-heading .text-button {
  font-size: 12px;
}

.trip-map-canvas {
  height: 330px;
  width: 100%;
  direction: ltr;
  background: #eef0e6;
  position: relative;
  z-index: 1;
}

.trip-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 13px 16px;
  font-size: 11px;
  color: #81907e;
}

.trip-map-legend>span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-legend-line {
  width: 22px;
  border-top: 3px dashed #2563eb;
}

.route-legend-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.route-legend-point.blue {
  background: #2563eb;
}

.route-legend-point.red {
  background: #dc2626;
}

.trip-map-note {
  font-size: 12px;
  line-height: 1.9;
  padding: 0 16px 16px;
  color: #8c9984;
}

.trip-map-delay {
  padding: 12px 15px;
  background: #fff2f0;
  border-top: 1px solid #f5e1dc;
  color: #b35b50;
}

.trip-map-delay strong,.trip-map-unlocated strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.trip-map-delay p {
  font-size: 12px;
  color: #ba8175;
  margin-top: 3px;
  line-height: 2;
}

.trip-map-unlocated {
  padding: 12px 15px;
  border-top: 1px solid #f0e7db;
  background: #fcf8f1;
  color: #aa8a62;
}

.trip-map-unlocated p {
  font-size: 12px;
  line-height: 2.1;
  color: #a69782;
  margin-top: 3px;
}

.trip-map-empty {
  padding: 20px 15px;
  font-size: 13px;
  color: #95a08b;
  text-align: center;
  background: #f6f8f2;
}

.trip-location-label {
  font-family: Noto,Tahoma,sans-serif;
  font-size: 12px;
  direction: rtl;
  color: #2563eb;
  border-color: #cfdbf8;
  border-radius: 5px;
  box-shadow: 0 2px 6px #16312313;
  padding: 3px 8px;
}

.trip-location-label.delay {
  color: #c52828;
  border-color: #f1c9c4;
}

.trip-popup-delay {
  font-size: 12px;
  color: #b65b51;
  margin-top: 8px;
  line-height: 2;
}

.trip-map-canvas .leaflet-popup-content {
  max-width: 230px;
  font-size: 12px;
}

.trip-modal {
  width: min(880px,calc(100% - 32px));
}

.imports-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 20px 22px 0;
}

.import-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #edf3e7;
}

.import-tabs button {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 7px;
  color: #8c9d7f;
  white-space: nowrap;
  min-height: 36px;
}

.import-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #2e5d2d;
  box-shadow: 0 2px 6px #24471f0c;
}

.imports-toolbar .search-input {
  max-width: 270px;
}

.imports-trash-note {
  font-size: 12px;
  line-height: 2.1;
  margin: 12px 22px 0;
  padding: 13px 16px;
  border: 1px solid #e7ecdf;
  border-radius: 10px;
  background: #f8faf3;
  color: #8d9c7b;
}

.import-file-info {
  flex: 1;
  min-width: 0;
}

.import-row-head .import-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-right: auto;
  flex-shrink: 0;
}

.import-row-actions .text-button {
  margin-right: 0;
  margin-left: 5px;
  font-size: 12px;
}

.danger-outline {
  color: #b96a5e;
  border-color: #f0ddd7;
}

.danger-outline:hover {
  background: #fdf3ee;
  border-color: #dcb3a8;
}

.button.primary.danger {
  background: #bb6556;
  border-color: #bb6556;
}

.button.primary.danger:hover {
  background: #a95749;
}

.batch-modal form {
  padding: 0 27px 27px;
}

.batch-original-name {
  font-size: 14px;
  color: #647e52;
  font-family: Arial,Noto,sans-serif;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  background: #f6f8f1;
  border: 1px solid #e8eddf;
  border-radius: 7px;
}

.batch-description {
  font-size: 13px;
  line-height: 2;
  margin: 17px 0;
  color: #92a180;
}

.batch-modal label small {
  display: block;
  font-size: 12px;
  color: #a6b296;
  margin-top: 7px;
}

.batch-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #fff5ef;
  border-radius: 10px;
  border: 1px solid #f3dfd4;
}

.batch-confirm input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  margin: 5px 0 0;
  accent-color: #bb6556;
}

.batch-confirm span {
  font-size: 13px;
  color: #b17e68;
  line-height: 2;
}

.batch-modal .form-feedback {
  margin-top: 12px;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.dashboard-page {
  background: radial-gradient(ellipse at 6% 0%,#297444 0,transparent 45%),#102c1c;
  padding: 20px 0;
  min-height: 100vh;
}

body.menu-open,body:has(dialog[open]) {
  overflow: hidden;
}

.nav-item.active svg {
  color: #b7e996;
}

.metric-icon svg {
  width: 17px;
  height: 17px;
}

.metric:first-child {
  background: radial-gradient(ellipse at 0 100%,#275030 0,transparent 65%),#102518;
  border-color: #102518;
}

.metric:first-child .metric-top h2 {
  color: #b6caae;
}

.metric:first-child .metric-value strong {
  color: #f2fae9;
}

.metric:first-child .metric-value>span,.metric:first-child .metric-foot {
  color: #b4c9a6;
}

.metric:first-child .metric-icon {
  background: #a2d37a14;
  color: #b6e28f;
}

.metric:first-child .mini-dot {
  background: #a7dc7b;
}

.metric:nth-child(3) {
  background: #e7f0df;
  border-color: #dce8d2;
}

.metric:nth-child(3) .metric-icon {
  background: #d6e6ca;
  color: #537e40;
}

.unit-tag,.small-chip {
  font-size: 11px;
  color: #52684b;
  border-radius: 7px;
  background: #f1f6ed;
  border-color: #e2ebda;
  padding: 5px 10px;
}

.distribution-panel {
  background: #e0eed8;
  border-color: #d4e4ca;
}

.distribution-panel .panel-heading p {
  color: #6b805e;
}

.leaflet-touch .leaflet-bar a {
  width: 34px;
  height: 34px;
  line-height: 34px;
}

.method-note p,.method-note .text-button {
  font-size: 11px;
  color: #708062;
}

.driver-card-foot .text-button {
  font-size: 12px;
}

.alert-row-meta,.alert-row-meta .numeric {
  font-size: 11px;
  gap: 10px;
}

.import-row details,.import-row details ul {
  font-size: 12px;
  line-height: 2;
}

.form-feedback,.form-error {
  font-size: 13px;
  line-height: 1.9;
}

.trip-map-delay,.trip-map-unlocated {
  font-size: 12px;
  padding: 14px;
  line-height: 2;
  border-radius: 9px;
}

.trip-map-unlocated p,.trip-map-delay p {
  font-size: 12px;
}

.auth-form-pane {
  min-height: calc(100vh - 48px);
  background: #f7faf3;
  border-radius: 24px 0 0 24px;
  display: grid;
  place-items: center;
  padding: 36px 24px;
}

.auth-card .auth-switch {
  text-align: center;
  margin: 20px 0 0;
  font-size: 13px;
}

.auth-switch .text-button {
  font-size: 13px;
  font-weight: 650;
  margin-inline-start: 5px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: #06170d80;
  backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
}

@media (min-width:1600px) {
  .sidebar {
    right: 24px;
    top: 24px;
    bottom: 24px;
    width: 258px;
    padding-inline: 22px;
  }
  body.dashboard-page {
    padding-block: 24px;
  }
  .app-shell {
    margin-right: 282px;
    margin-left: 24px;
    min-height: calc(100vh - 48px);
  }
  .app-shell main {
    padding-inline: 36px;
  }
  .topbar {
    padding-inline: 36px;
  }
  .metric {
    padding: 23px;
  }
  .metric-value strong {
    font-size: 42px;
  }
}

@media (max-width:1240px) {
  .sidebar {
    width: 225px;
    padding-inline: 14px;
  }
  .app-shell {
    margin-right: 245px;
  }
  .app-shell main {
    padding: 24px 22px 0;
  }
  .topbar {
    padding-inline: 22px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .metric-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .metric {
    padding: 20px;
  }
  .chart-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .distribution-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .distribution-panel>.panel-heading {
    grid-column: 1/-1;
  }
  .distribution-rows {
    padding: 15px 24px 24px;
  }
  .donut-wrap {
    height: 205px;
    margin: 0;
  }
  .detail-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .driver-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .settings-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .methodology {
    padding: 24px;
  }
  .methodology h2 br {
    display: none;
  }
  .import-intro {
    flex-wrap: wrap;
  }
  .import-intro>div {
    flex: 1;
    min-width: 200px;
  }
  .import-row-head .import-row-actions {
    flex-basis: 100%;
    margin-right: 0;
    padding-right: 0;
  }
  .import-row-head {
    flex-wrap: wrap;
  }
  .alert-row {
    flex-wrap: wrap;
  }
  .auth-decoration {
    padding-inline: 10%;
  }
  .auth-decoration h1 {
    font-size: 32px;
  }
}

@media (max-width:900px) {
  .sidebar {
    width: 210px;
    padding-inline: 11px;
  }
  .app-shell {
    margin-right: 230px;
  }
  .sidebar-tip {
    display: none;
  }
  .profile strong {
    max-width: 110px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .filter-summary {
    flex-basis: 100%;
    margin: 0;
  }
  .filter-bar select {
    flex: 1;
    max-width: none;
  }
  .filter-date {
    width: 100%;
    border: 0;
    padding-left: 0;
  }
  .map-footer small {
    margin-right: 0;
    width: 100%;
  }
  .auth-decoration {
    padding: 45px 9%;
  }
  .auth-decoration h1 {
    font-size: 28px;
  }
  .auth-decoration p {
    font-size: 13px;
  }
  .auth-decoration .brand {
    margin-bottom: 45px;
  }
  .auth-form-pane {
    padding: 28px 18px;
  }
  .auth-card {
    padding-inline: 10px;
  }
  .auth-card h2 {
    font-size: 25px;
  }
}

@media (max-width:720px) {
  body.dashboard-page {
    padding: 0;
    background: var(--bg);
  }
  .app-shell {
    margin: 0;
    border-radius: 0;
    min-height: 100svh;
  }
  .sidebar {
    top: 0;
    right: 0;
    bottom: 0;
    width: 268px;
    padding: 26px 18px 0;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform .22s,visibility .22s;
    visibility: hidden;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -10px 0 40px #06160d2b;
  }
  .sidebar-tip {
    display: block;
  }
  .profile strong {
    max-width: 140px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    padding-inline: 16px;
  }
  .breadcrumb {
    gap: 9px;
    font-size: 12px;
  }
  .breadcrumb>span:first-of-type,.crumb-slash {
    display: none;
  }
  .topbar-left {
    gap: 6px;
  }
  .topbar-divider {
    display: none;
  }
  .local-status {
    font-size: 11px;
    padding: 4px 10px;
    gap: 6px;
  }
  .icon-button {
    width: 40px;
    height: 40px;
  }
  .app-shell main {
    padding: 23px 16px 0;
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
    line-height: 1.65;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 1.9;
    margin-top: 6px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .heading-actions {
    margin-top: 17px;
    gap: 9px;
  }
  .heading-actions .button {
    flex: 1;
    min-height: 44px;
    font-size: 13px;
    padding: 9px 12px;
  }
  .filter-bar {
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .filter-date {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr) 18px minmax(0,1fr);
    gap: 6px;
    width: 100%;
  }
  .filter-date input {
    width: 100%;
    font-size: 14px;
    min-height: 38px;
  }
  .filter-date svg {
    width: 17px;
    height: 17px;
    margin: 0;
  }
  .filter-bar select {
    min-height: 40px;
    height: auto;
    font-size: 13px;
    min-width: 0;
    max-width: none;
    width: calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
  }
  .filter-bar .text-button {
    font-size: 12px;
    min-height: 30px;
  }
  .filter-summary {
    flex: initial;
    margin-right: auto;
    font-size: 11px;
  }
  .metric-grid {
    gap: 11px;
    margin-bottom: 16px;
  }
  .metric {
    padding: 16px 14px;
    border-radius: 13px;
  }
  .metric-top {
    min-height: 36px;
    align-items: flex-start;
    gap: 6px;
  }
  .metric-top h2 {
    font-size: 11px;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .metric-icon svg {
    width: 16px;
    height: 16px;
  }
  .metric-value {
    margin-top: 9px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .metric-value strong {
    font-size: 31px;
  }
  .metric-value>span {
    font-size: 11px;
  }
  .metric-foot {
    font-size: 10px;
    margin-top: 11px;
    line-height: 1.9;
  }
  .insight-banner {
    padding: 13px;
    font-size: 12px;
    align-items: flex-start;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 17px;
  }
  .insight-banner>span {
    flex: 1;
    min-width: 0;
  }
  .insight-banner>.text-button {
    margin-right: 27px;
    font-size: 12px;
  }
  .panel {
    border-radius: 13px;
  }
  .panel-heading {
    padding: 19px 17px 0;
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading p {
    font-size: 11px;
    line-height: 1.9;
  }
  .chart-grid,.detail-grid {
    gap: 17px;
  }
  .activity-chart {
    height: 245px;
    padding-inline: 12px;
  }
  .legend {
    padding: 14px 17px 5px;
    font-size: 10px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .chart-footer {
    padding: 11px 16px;
    font-size: 10px;
  }
  .distribution-panel {
    grid-template-columns: 1fr 1fr;
  }
  .donut {
    width: 138px;
    height: 138px;
  }
  .donut:after {
    inset: 14px;
  }
  .donut-wrap {
    height: 190px;
  }
  .donut-center strong {
    font-size: 29px;
  }
  .donut-center span {
    font-size: 11px;
  }
  .distribution-rows {
    padding: 12px 15px 17px;
    gap: 11px;
  }
  .distribution-row {
    font-size: 11px;
    gap: 6px;
  }
  .distribution-row strong {
    font-size: 13px;
  }
  .distribution-row small {
    font-size: 10px;
    width: 30px;
  }
  .map-wrap {
    height: 285px;
  }
  .map-footer {
    gap: 10px;
    padding: 12px 15px;
    font-size: 10px;
  }
  .map-footer small {
    font-size: 10px;
  }
  .attention-item {
    padding: 16px 17px;
  }
  .attention-copy strong {
    font-size: 12px;
  }
  .attention-copy p {
    max-width: 170px;
    font-size: 11px;
  }
  .attention-meta {
    flex-wrap: wrap;
    gap: 5px;
  }
  .attention-time {
    font-size: 12px;
  }
  .attention-time small {
    font-size: 10px;
  }
  .app-footer {
    font-size: 10px;
    padding: 17px 0;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .app-footer>span:last-child {
    font-size: 10px;
  }
  .table-toolbar {
    padding: 17px;
    gap: 10px;
  }
  .search-input {
    flex: 1 1 100%;
    max-width: none;
  }
  .table-toolbar select {
    font-size: 12px;
    flex: 1;
    min-width: 0;
  }
  td {
    padding: 16px;
  }
  .pagination {
    padding: 16px;
    font-size: 11px;
  }
  .button.small {
    min-height: 39px;
  }
  .driver-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }
  .alert-summary {
    gap: 10px;
  }
  .alert-stat {
    padding: 17px 11px;
  }
  .alert-stat strong {
    font-size: 28px;
  }
  .alert-stat p {
    font-size: 11px;
  }
  .alert-row {
    padding: 17px;
    gap: 11px;
  }
  .alert-row-main {
    flex: 1;
    min-width: 180px;
  }
  .alert-row-title {
    flex-wrap: wrap;
    gap: 7px;
  }
  .alert-row-title strong {
    font-size: 13px;
  }
  .alert-row-main p {
    font-size: 12px;
    max-width: none;
    white-space: normal;
  }
  .alert-row-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .alert-row>.button {
    margin-right: auto;
    min-height: 40px;
  }
  .import-intro {
    padding: 20px;
    gap: 15px;
  }
  .file-illustration {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .file-illustration svg {
    width: 28px;
    height: 28px;
  }
  .import-intro>div {
    min-width: 180px;
  }
  .import-intro h2 {
    font-size: 17px;
  }
  .import-intro p {
    font-size: 12px;
  }
  .import-intro>.button {
    width: 100%;
  }
  .imports-toolbar {
    padding: 17px 17px 0;
    flex-wrap: wrap;
  }
  .imports-toolbar .search-input {
    max-width: none;
    flex-basis: 100%;
  }
  .import-tabs {
    width: 100%;
  }
  .import-tabs button {
    flex: 1;
    min-height: 39px;
    font-size: 12px;
  }
  .import-row {
    padding: 20px 17px;
  }
  .import-row h3 {
    font-size: 14px;
  }
  .import-row p {
    font-size: 11px;
  }
  .import-row-head {
    gap: 12px;
  }
  .import-summary {
    gap: 18px;
    font-size: 11px;
  }
  .import-row-head .import-row-actions {
    gap: 8px;
  }
  .import-row-actions .button {
    font-size: 11px;
  }
  .import-row-actions .text-button {
    font-size: 12px;
  }
  .imports-trash-note {
    margin-inline: 17px;
    font-size: 12px;
  }
  .settings-form {
    padding: 22px 17px;
  }
  .settings-fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px 14px;
  }
  .settings-fields label {
    font-size: 12px;
  }
  .settings-fields label span {
    font-size: 11px;
  }
  .settings-actions .button {
    min-height: 44px;
    font-size: 12px;
  }
  .methodology {
    padding: 23px;
  }
  .methodology p {
    font-size: 12px;
  }
  .modal {
    border-radius: 16px;
    max-height: calc(100dvh - 24px);
    width: calc(100% - 24px);
  }
  .modal-heading {
    padding: 21px 20px 18px;
    gap: 12px;
  }
  .modal-heading h2 {
    font-size: 18px;
  }
  .modal-heading .eyebrow {
    font-size: 10px;
  }
  .import-modal form {
    padding: 0 20px 22px;
  }
  .drop-zone {
    padding: 25px 14px;
  }
  .drop-zone strong {
    font-size: 16px;
  }
  .trip-modal {
    width: calc(100% - 24px);
  }
  .trip-detail-inner {
    padding: 0 20px 22px;
  }
  .trip-facts {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .trip-facts div {
    padding: 12px;
  }
  .trip-facts strong {
    font-size: 17px;
  }
  .trip-map-heading {
    padding: 13px;
    flex-wrap: wrap;
  }
  .trip-map-heading h3 {
    font-size: 13px;
  }
  .trip-map-canvas {
    height: 285px;
  }
  .trip-map-legend {
    padding: 12px 13px;
    font-size: 10px;
    gap: 11px;
  }
  .trip-map-note {
    font-size: 11px;
    padding: 0 13px 13px;
  }
  .review-form {
    padding: 22px 20px;
  }
  .review-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .review-form select,.review-form textarea {
    font-size: 16px;
  }
  .batch-modal form {
    padding: 0 20px 22px;
  }
  .batch-description {
    font-size: 13px;
  }
  .auth-page {
    display: block;
    padding: 0;
    background: #f7faf3;
  }
  .auth-decoration {
    display: block;
    min-height: 0;
    padding: 24px;
    border-radius: 0;
  }
  .auth-decoration .brand {
    margin: 0;
    font-size: 29px;
  }
  .auth-decoration h1,.auth-decoration p,.auth-decoration .auth-route,.auth-decoration>small {
    display: none;
  }
  .auth-form-pane {
    min-height: calc(100svh - 99px);
    padding: 28px 23px;
    border-radius: 0;
  }
  .auth-card {
    max-width: 440px;
    padding: 0;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-card input {
    font-size: 16px;
    height: 50px;
  }
  .auth-card label {
    font-size: 14px;
  }
  .auth-card>p {
    font-size: 13px;
  }
  .auth-foot {
    font-size: 12px;
  }
}

@media (max-width:380px) {
  .app-shell main {
    padding-inline: 12px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .metric {
    padding: 14px 11px;
  }
  .metric-top h2 {
    font-size: 11px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .metric-value strong {
    font-size: 28px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .distribution-panel {
    grid-template-columns: 1fr;
  }
  .distribution-panel>.panel-heading {
    grid-column: auto;
  }
  .distribution-rows {
    padding: 0 24px 22px;
  }
  .donut-wrap {
    height: 180px;
  }
  .auth-form-pane {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
