:root {
  --ink: #10233b;
  --muted: #718096;
  --green: #16966f;
  --blue: #2369ad;
  --red: #d84855;
  --orange: #e8952f;
  --line: #dfe5ec;
  --dp-navy: #082a56;
  --dp-navy-2: #103d73;
  --dp-gold: #efc332;
  --dp-bg: #f4f6f9;
  --dp-surface: #fff;
  --dp-soft: #eef2f7;
  --dp-radius: 12px;
  --dp-shadow: 0 8px 28px rgba(8, 42, 86, .10);
}

html, body {
  color: var(--ink);
  background: var(--dp-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }

/* Fleet map */
.topbar {
  height: 68px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 3px 16px rgba(8, 42, 86, .08);
}

.brand { gap: 14px; }
.brand img {
  width: 174px;
  height: 46px;
  border-radius: 2px;
}
.brand strong { color: var(--dp-navy); font-size: 15px; font-weight: 800; }
.brand small { color: var(--muted); font-size: 12px; }
.live-note { color: var(--muted); }
.live-note i { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 150, 111, .12); }

.label-switch {
  margin-right: 14px;
  padding: 3px;
  border-color: var(--line);
  border-radius: 9px;
  background: var(--dp-soft);
}
.label-switch button, .topbar nav button {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #53647a;
  font-size: 12px;
}
.label-switch button.active {
  background: var(--dp-navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 42, 86, .16);
}
.topbar nav button:hover { background: var(--dp-soft); color: var(--dp-navy); }
#logoutTop { color: #a53a44; }

.sidebar {
  top: 84px;
  left: 14px;
  bottom: 14px;
  width: 356px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--dp-radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--dp-shadow);
  backdrop-filter: blur(10px);
}
.panel-toggle { left: 370px; top: 95px; color: var(--dp-navy); }
.summary { padding: 18px; border-color: var(--line); }
.summary strong { color: var(--dp-navy); font-size: 28px; }
.summary p { font-size: 12px; }
.search {
  margin: 12px 14px 8px;
  border-color: var(--line);
  border-radius: 9px;
  color: #8693a4;
  box-shadow: none;
}
.search:focus-within { border-color: #8aa7c8; box-shadow: 0 0 0 3px rgba(35,105,173,.10); }
.filters { padding: 0 14px 10px; gap: 4px; }
.filters button { border-radius: 7px; color: #64748b; }
.filters button:hover { background: var(--dp-soft); }
.filters button.active { background: #e5edf7; color: var(--dp-navy); }
.vehicle-row { padding: 12px 14px; border-color: #e8edf2; }
.vehicle-row:hover, .vehicle-row.active { background: #eef3f9; }
.vehicle-row.active { box-shadow: inset 3px 0 var(--dp-gold); }

.detail, .alerts {
  border: 1px solid var(--line);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
}
.detail { right: 18px; top: 84px; bottom: 14px; }
.detail-head h2 { color: var(--dp-navy); }
.detail-grid > div { border: 1px solid #e7ebf0; background: #f7f9fb; }
.detail-alert { border-left: 3px solid var(--orange); border-radius: 7px; }
.route-peers { background: #edf3fa; }
.fit-map { border: 1px solid var(--line); border-radius: 9px; color: var(--dp-navy); }
.legend { border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(8,42,86,.92); }

/* Inner pages */
.workspace { background: var(--dp-bg); }
.workspace > header {
  height: 58px;
  padding: 0 20px;
  border-bottom: 2px solid var(--dp-gold);
  background: var(--dp-navy);
  box-shadow: none;
}
.workspace > header .brand { gap: 12px; }
.workspace > header .brand img { width: 148px; height: 36px; }
.workspace > header .brand strong { color: #fff; }
.workspace-actions { display: flex; align-items: center; gap: 6px; }
.workspace > header button {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.workspace > header button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.workspace > header #backMap span { margin-right: 3px; font-size: 15px; }
.workspace > header #logoutWorkspace { border-color: transparent; background: transparent; color: #dbe4ef; }
.workspace > header #logoutWorkspace:hover { background: rgba(255,255,255,.08); color: #fff; }
.workspace-body { max-width: 1600px; padding: 30px 34px 48px; }
.tool-page h1 { color: var(--dp-navy); font-size: 32px; letter-spacing: -.025em; }
.tool-page h2 { color: var(--ink); letter-spacing: -.015em; }
.eyebrow { color: #55708e !important; font-size: 10px; letter-spacing: .16em; }

.panel {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--dp-radius);
  background: var(--dp-surface);
  box-shadow: 0 3px 14px rgba(8,42,86,.05);
}
.panel input, .panel select, .report-filters input, .report-filters select,
.integration-search input {
  min-height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  color: var(--ink);
  outline: 0;
}
.panel input:focus, .panel select:focus, .report-filters input:focus,
.integration-search input:focus {
  border-color: #6f93ba;
  box-shadow: 0 0 0 3px rgba(35,105,173,.10);
}
.actions button, .panel > button, .report-filters button,
.integration-head > button, .integration-search button,
.security-head > button, .security-grid .panel > button,
.create-user > button, .change-password > button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--dp-navy);
  border-radius: 8px;
  background: var(--dp-navy);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}
.actions button:hover, .panel > button:hover, .report-filters button:hover,
.integration-head > button:hover, .integration-search button:hover,
.security-head > button:hover, .security-grid .panel > button:hover,
.create-user > button:hover, .change-password > button:hover { background: var(--dp-navy-2); }
.actions .secondary, .integration-search .secondary {
  border-color: var(--line);
  background: var(--dp-soft);
  color: var(--dp-navy);
}

/* Reports */
.report-hero {
  margin: -30px -34px 0;
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.report-hero h1 { color: var(--dp-navy); font-size: 34px; }
.report-hero p { color: var(--muted); }
.report-controls { border: 1px solid var(--line); background: #f8fafc; box-shadow: none; }
.report-filters label { color: #64748b; }
.report-filters .export { border: 1px solid #cbd5e1; background: #fff; color: var(--dp-navy); }
.quick-ranges { border-color: var(--line); }
.quick-ranges > span { color: #718096; }
.quick-ranges button {
  border: 1px solid #d6dee8;
  background: #fff;
  color: #52637a;
}
.quick-ranges button:hover, .quick-ranges button.active {
  border-color: var(--dp-navy);
  background: var(--dp-navy);
  color: #fff;
}
.report-picker-button, .calendar-trigger { border-color: #cfd8e3 !important; box-shadow: none; }
.report-picker-button:hover, .report-picker.open .report-picker-button {
  border-color: #6f93ba !important;
  box-shadow: 0 0 0 3px rgba(35,105,173,.10);
}
.report-picker-icon { background: #e7eef7; color: var(--dp-navy); }
.report-picker-menu, .calendar-popover { border-color: var(--line); border-radius: 12px; box-shadow: var(--dp-shadow); }
.report-menu-tabs { background: var(--dp-soft); }
.report-menu-tabs button.active { color: var(--dp-navy) !important; }
.report-menu-item:hover { background: #f1f5f9 !important; }
.report-menu-item.active { background: #e7eef7 !important; color: var(--dp-navy) !important; }
.report-menu-item.active > i { background: var(--dp-navy); }
.calendar-head button, .calendar-footer button { background: #e7eef7; color: var(--dp-navy); }
.calendar-day:hover { background: #eef3f9; color: var(--dp-navy); }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--dp-gold); }
.calendar-day.selected { background: var(--dp-navy); }
.metric-card, .report-chart { border-color: var(--line); border-radius: var(--dp-radius); box-shadow: none; }
.metric-card:after { display: none; }
.metric-card.neutral { border-top-color: var(--dp-navy); }
.bar-item i, .rank-track i { background: var(--dp-navy); }
.report-table { border-color: var(--line); }
.report-table th, .integration-table th, th { background: var(--dp-navy); }
.report-table tbody tr:hover { background: #f0f4f8; }
.report-table {
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(15, 45, 72, .06) !important;
}
.report-table-tools {
  position: static !important;
  min-width: 760px;
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #dbe4ec !important;
  color: #63758a !important;
}
.report-table-tools button {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border: 1px solid #d6e0e8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #41566c !important;
  box-shadow: none !important;
  font-size: 11px !important;
}
.report-table table { min-width: 1050px; }
.report-table .report-sort-row th {
  position: static !important;
  padding: 0 !important;
  background: var(--dp-navy) !important;
}
.report-sort-row th > button {
  min-height: 44px !important;
  padding: 11px 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  letter-spacing: .01em;
}
.report-sort-row th > button:hover { background: rgba(255,255,255,.09) !important; }
.report-sort-row th i { color: #a9bad0; font-size: 11px !important; }
.report-table .report-column-filters th {
  position: static !important;
  padding: 7px 8px !important;
  background: #edf2f6 !important;
}
.report-column-filters input {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  border: 1px solid #cbd7e1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #243b53 !important;
  font-size: 11px !important;
}
.report-column-filters input:focus {
  border-color: #168c72 !important;
  box-shadow: 0 0 0 2px rgba(22,140,114,.12) !important;
}
.report-filter-combo { display:flex;align-items:center;min-width:120px; }
.report-filter-combo input { min-width:0;border-radius:6px 0 0 6px!important; }
.report-filter-combo>button {
  width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  margin:0!important;padding:0!important;border:1px solid #cbd7e1!important;border-left:0!important;
  border-radius:0 6px 6px 0!important;background:#fff!important;color:#63788e!important;
  box-shadow:none!important;font-size:14px!important;cursor:pointer;
}
.report-filter-combo>button:hover,.report-filter-combo>button.active { background:#dff2ec!important;color:#08725d!important; }

/* Reisu izpilde: visas kolonnas ietilpst lapas platumā bez horizontālas ritināšanas. */
.report-table[data-report-type="completion"]{overflow-x:hidden;overflow-y:auto}
.report-table[data-report-type="completion"] table{width:100%;min-width:0;table-layout:fixed;font-size:11px}
.report-table[data-report-type="completion"] th,.report-table[data-report-type="completion"] td{min-width:0;padding-left:6px;padding-right:6px;overflow-wrap:anywhere;white-space:normal;line-height:1.25}
.report-table[data-report-type="completion"] .report-sort-row th>button{min-width:0;padding:8px 6px;gap:3px;font-size:10px;line-height:1.15;white-space:normal}
.report-table[data-report-type="completion"] .report-sort-row th i{flex:0 0 auto}
.report-table[data-report-type="completion"] .report-column-filters th{padding:5px 3px}
.report-table[data-report-type="completion"] .report-filter-combo{width:100%;min-width:0}
.report-table[data-report-type="completion"] .report-column-filters input{width:calc(100% - 24px);min-width:0;height:29px;padding:4px;font-size:9px}
.report-table[data-report-type="completion"] .report-filter-combo>button{width:24px;min-width:24px;height:29px}
.report-table[data-report-type="completion"] th:nth-child(1){width:6%}
.report-table[data-report-type="completion"] th:nth-child(2){width:5%}
.report-table[data-report-type="completion"] th:nth-child(3){width:16%}
.report-table[data-report-type="completion"] th:nth-child(4){width:8%}
.report-table[data-report-type="completion"] th:nth-child(5){width:7%}
.report-table[data-report-type="completion"] th:nth-child(n+6):nth-child(-n+9){width:7%}
.report-table[data-report-type="completion"] th:nth-child(n+10){width:7%}

/* Izvēlēta autobusa režīms: numurs un grafika novirze vienā kompaktā marķierī. */
.bus-marker{min-width:82px!important;height:50px!important;padding:5px 13px!important;border-radius:25px!important;line-height:1!important}
.bus-marker b,.bus-marker small{display:block;line-height:1}
.bus-marker small{margin-top:3px;font-size:11px;font-weight:950;font-variant-numeric:tabular-nums}
.bus-marker.route-peer{outline:0!important}
.bus-marker.selected-bus{outline:5px solid #ffd54a;z-index:6}
.bus-marker.inactive-context{
  min-width:18px!important;
  width:18px!important;
  height:18px!important;
  padding:0!important;
  border:3px solid rgba(255,255,255,.95)!important;
  border-radius:50%!important;
  background:rgba(83,101,110,.72)!important;
  box-shadow:0 2px 7px rgba(16,45,59,.28)!important;
  font-size:0!important;
  opacity:.62!important;
  backdrop-filter:blur(3px);
}
.bus-marker.inactive-context b,.bus-marker.inactive-context small{display:none!important}
.bus-marker.inactive-context:before{display:none!important}
.bus-marker.route-peer{box-shadow:0 7px 20px rgba(16,45,59,.35)!important}
.vehicle-meta .timing-status{
  display:inline-flex;
  justify-content:center;
  padding:5px 8px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
}
.vehicle-meta .timing-late{background:#fde7e9;color:#b52c3a}
.vehicle-meta .timing-ontime{background:#dff4ec;color:#08785d}
.vehicle-meta .timing-early{background:#fff0d6;color:#a55b00}
.vehicle-meta .timing-idle,.vehicle-meta .timing-offline{background:#e8eef1;color:#61737c}
.report-filter-popover {
  position:fixed;z-index:5000;width:284px;max-height:min(430px,calc(100vh - 20px));padding:10px;
  border:1px solid #cfdae4;border-radius:12px;background:#fff;box-shadow:0 18px 50px rgba(13,43,68,.25);
  color:#1d354b;
}
.report-filter-menu-head { display:flex;align-items:center;justify-content:space-between;padding:2px 2px 9px; }
.report-filter-menu-head b { font-size:12px; }
.report-filter-menu-head button { width:26px;height:26px;border:0;border-radius:6px;background:#edf2f6;color:#61758a;font-size:18px;cursor:pointer; }
.report-filter-popover>input { width:100%;height:34px;padding:7px 9px;border:1px solid #cbd7e1;border-radius:7px;outline:none;font-size:12px; }
.report-filter-popover>input:focus { border-color:#168c72;box-shadow:0 0 0 2px rgba(22,140,114,.12); }
.report-filter-values { max-height:320px;margin-top:8px;overflow:auto;border-top:1px solid #e4ebf0; }
.report-filter-values button { width:100%;min-height:34px;padding:7px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #edf2f5;background:#fff;color:#263f55;text-align:left;cursor:pointer; }
.report-filter-values button:hover,.report-filter-values button.active { background:#e7f5f1;color:#08725d; }
.report-filter-values button span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px; }
.report-filter-values button i { min-width:25px;padding:2px 6px;border-radius:10px;background:#edf2f6;color:#708397;font-size:9px;font-style:normal;text-align:center; }
tbody tr:nth-child(even) { background: #f6f8fb; }

/* Devices, integrations and users */
.integration-summary article, .security-summary article {
  border: 1px solid var(--line);
  border-radius: var(--dp-radius);
  box-shadow: none;
}
.integration-summary b, .security-summary b { color: var(--dp-navy); }
.integration-grid { align-items: start; }
.assignment-tools { display: grid; gap: 8px; justify-items: end; }
.assignment-grouping {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dp-soft);
}
.assignment-grouping > span {
  padding: 0 7px;
  color: #718096;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.assignment-grouping button {
  min-height: 29px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52637a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.assignment-grouping button.active {
  background: var(--dp-navy);
  color: #fff;
}
.integration-table {
  max-height: none;
  overflow: visible;
}
.grouped-assignments {
  margin-top: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.integration-table th {
  top: 58px;
}
.assignment-result {
  margin: 0 12px 10px;
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: #718096;
  font-size: 11px;
}
.assignment-result small { color: #7b8da0; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.assignment-result b { color: var(--dp-navy); font-size: 13px; }
.assignment-result strong { color: #53677c; font-size: 12px; }
.assignment-result i { width: 3px; height: 3px; border-radius: 50%; background: #9babb9; }
.assignment-group {
  margin: 0 0 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(10,48,88,.035);
}
.assignment-group > summary {
  min-height: 60px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #f3f6fa;
  cursor: pointer;
  list-style: none;
}
.assignment-group > summary::-webkit-details-marker { display: none; }
.assignment-group[open] > summary { border-bottom: 1px solid var(--line); }
.assignment-group > summary:hover { background: #eaf0f6; }
.assignment-group > summary small,
.assignment-group > summary b { display: block; }
.assignment-group > summary small { color: #718096; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.assignment-group > summary b { margin-top: 2px; color: var(--dp-navy); font-size: 18px; line-height: 1; }
.assignment-group > summary > i { color: #66778a; font-style: normal; font-size: 19px; transition: transform .18s ease; }
.assignment-group[open] > summary > i { transform: rotate(180deg); }
.assignment-identity { min-width: 95px; }
.assignment-group-summary { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: #66778a; font-size: 11px; text-align: right; }
.assignment-group-summary strong { color: var(--dp-navy); }
.assignment-group-summary span { padding-left: 9px; border-left: 1px solid #d5dee8; }
.assignment-group-summary em { padding: 4px 7px; border-radius: 999px; font-style: normal; font-weight: 800; white-space: nowrap; }
.assignment-group-summary em.complete { background: #dff7ee; color: #08785d; }
.assignment-group-summary em.attention { background: #fff0cc; color: #915f00; }
.assignment-group-body { max-height: 360px; overflow: auto; border-top: 0; background:#fff; }
.assignment-trip-row { min-height:54px; padding:8px 14px; display:grid; grid-template-columns:54px 72px 132px minmax(150px,1fr) 105px; align-items:center; gap:12px; border-bottom:1px solid #e7edf3; color:#526578; }
.assignment-trip-row:last-child { border-bottom:0; }
.assignment-trip-row:hover { background:#f8fbfd; }
.assignment-route-chip { display:inline-flex; width:max-content; min-width:36px; height:30px; padding:0 9px; align-items:center; justify-content:center; border-radius:7px; background:#e7eef7; color:var(--dp-navy); font-size:12px; font-weight:900; }
.assignment-trip-date { color:#6f8295; font-size:11px; text-transform:capitalize; }
.assignment-trip-row > strong { color:var(--dp-navy); font-size:13px; white-space:nowrap; }
.assignment-trip-row > strong i { padding:0 5px; color:#9aacbb; font-style:normal; }
.assignment-trip-ids { min-width:0; display:grid; gap:3px; }
.assignment-trip-ids > span { min-width:0; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; gap:7px; }
.assignment-trip-ids small { color:#8a9aa8; font-size:7px; font-weight:900; letter-spacing:.08em; }
.assignment-trip-ids code { overflow:hidden; color:#64778a; font:9px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow:ellipsis; white-space:nowrap; }
.assignment-trip-row .match-badge { justify-self:end; }
.assignment-group table { margin: 0; table-layout: fixed; }
.assignment-group th { top: 0 !important; padding: 9px 13px; font-size: 10px; letter-spacing: .035em; }
.assignment-group td { padding: 9px 13px; font-size: 11px; vertical-align: middle; }
.assignment-group th:nth-child(1),.assignment-group td:nth-child(1){width:13%}
.assignment-group th:nth-child(2),.assignment-group td:nth-child(2){width:11%}
.assignment-group th:nth-child(3),.assignment-group td:nth-child(3),.assignment-group th:nth-child(4),.assignment-group td:nth-child(4){width:10%}
.assignment-group th:nth-child(5),.assignment-group td:nth-child(5){width:38%}
.assignment-group th:nth-child(6),.assignment-group td:nth-child(6){width:18%}
.assignment-group td code { display:block; max-width:100%; overflow:hidden; color:#43566b; font:10px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow:ellipsis; white-space:nowrap; }
.assignment-empty { margin-top: 14px; padding: 30px; display: grid; gap: 5px; border: 1px dashed #cbd5e1; border-radius: 10px; color: #718096; text-align: center; }
.assignment-empty b { color: var(--dp-navy); }
.integration-grid > .panel:last-child {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 92px);
  overflow: auto;
}
.integration-log {
  grid-template-columns: 9px 112px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  font-size: 11px;
}
.integration-log i {
  width: 8px;
  height: 8px;
  margin-top: 3px;
}
.integration-log span,
.integration-log em { min-width: 0; }
.integration-log span b { font-size: 12px; line-height: 1.25; }
.integration-log span small { margin-top: 2px; font-size: 10px; line-height: 1.35; }
.integration-log em {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #66778a;
  font-size: 10px;
  line-height: 1.4;
}
.integration-notice { border-radius: 9px; }
.integration-notice.success { border-left-color: var(--green); background: #ecf8f4; }
.integration-notice.working { border-left-color: var(--blue); background: #edf4fb; }
.integration-notice.error { border-left-color: var(--red); background: #fdf0f1; }
.device-actions button, .blacklist-row button, .user-actions button {
  border: 1px solid #d5dde7;
  border-radius: 7px;
  background: #f4f6f9;
  color: var(--dp-navy);
}
.device-actions button:hover, .blacklist-row button:hover, .user-actions button:hover { background: #e7edf5; }
.device-actions .approve { border-color: #b9e2d3; background: #eaf7f2; color: #0e7358; }
.device-actions .danger, .user-actions .danger { border-color: #efc9ce; background: #fdf0f1; color: #a52d38; }
#currentAdmin { border: 1px solid #cdd9e7; background: #edf3fa; color: var(--dp-navy); }
.user-role.owner { background: #e7eef7; color: var(--dp-navy); }
.user-role.admin { background: #e9f5f0; color: #126e56; }
.role-help { background: #f6f8fb; }
.change-password > button { width: 100%; }

/* Login */
.login {
  background:
    linear-gradient(90deg, rgba(8,42,86,.96), rgba(8,42,86,.90)),
    linear-gradient(135deg, #082a56, #1c4e83);
}
.login form {
  width: min(440px, calc(100% - 30px));
  padding: 38px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.login img { width: 220px; margin-bottom: 28px; border-radius: 2px; }
.login h1 { color: var(--dp-navy); font-size: 29px; letter-spacing: -.025em; }
.login input { min-height: 46px; border-color: #cfd8e3; border-radius: 8px; outline: 0; }
.login input:focus { border-color: #6f93ba; box-shadow: 0 0 0 3px rgba(35,105,173,.12); }
.login button {
  min-height: 46px;
  border-radius: 8px;
  background: var(--dp-navy);
  color: #fff;
}
.login button:hover { background: var(--dp-navy-2); }

@media (max-width: 1100px) {
  .topbar nav { overflow-x: auto; }
  .workspace-body { padding: 24px; }
  .report-hero { margin: -24px -24px 0; padding: 24px; }
  .integration-grid > .panel:last-child { position: static; max-height: none; }
  .assignment-tools { width: 100%; justify-items: stretch; }
  .assignment-grouping { width: max-content; }
}

@media (max-width: 700px) {
  .topbar { padding: 0 10px; }
  .brand img { width: 145px; }
  .workspace-body { padding: 16px; }
  .report-hero { margin: -16px -16px 0; padding: 20px 16px; }
  .tool-page h1 { font-size: 28px; }
  .login form { padding: 28px 24px; }
  .assignment-group > summary { align-items: flex-start; }
  .assignment-group-summary { align-items: flex-start; flex-direction: column; gap: 3px; text-align: left; }
  .assignment-group-summary span { padding-left: 0; border-left: 0; }
  .assignment-trip-row { grid-template-columns:46px 62px 1fr 92px; }
  .assignment-trip-ids { display:none; }
}
.match-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.match-badge.matched{background:#dff7ee;color:#08785d}.match-badge.ambiguous{background:#fff0cc;color:#915f00}.match-badge.unmatched{background:#fde5e8;color:#b42336}.optibus-raw-id{display:block;margin-top:3px;color:#82939b;font:10px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace}
