﻿:root {
  --bg-dark: #0b1422;
  --panel-dark: #131c2b;
  --panel-dark-soft: #1a2638;
  --text-main: #dbe6f5;
  --text-muted: #9db1c9;
  --primary: #1f6fb2;
  --danger: #d43d3d;
  --border-soft: rgba(170, 196, 224, 0.2);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: #1e293b;
  background: #0f172a;
}

.app-main-full {
  width: 100%;
  min-height: 100vh;
}

.app-navbar {
  background: rgba(8, 29, 53, 0.9);
  backdrop-filter: blur(6px);
}

.auth-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-panel {
  width: 100%;
  max-width: 520px;
  border: 0;
  border-radius: 16px;
}

.auth-logo {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.pwa-install-panel h2 {
  color: #0f172a;
}

.dashboard-map-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.dashboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.traccar-sidebar {
  pointer-events: auto;
  position: absolute;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 330px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(19, 28, 43, 0.97), rgba(16, 24, 36, 0.97));
  color: var(--text-main);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: width 0.2s ease, height 0.2s ease;
  overflow: hidden;
}

.traccar-sidebar.collapsed {
  width: auto;
  height: auto;
  bottom: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  background: rgba(9, 14, 23, 0.65);
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-toggle,
.sidebar-expand-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-soft);
  background: var(--panel-dark-soft);
  color: #f2f7ff;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1;
}

.sidebar-view-mode-btn {
  width: 44px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-title-wrap {
  flex: 1;
  min-width: 0;
}

.sidebar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f2f7ff;
}

.sidebar-user {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-search {
  padding: 0.65rem;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-search .form-control {
  background: #0c1522;
  color: #eef5ff;
  border: 1px solid var(--border-soft);
}

.sidebar-search .form-control::placeholder {
  color: #88a0bd;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.sidebar-vehicle-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-vehicle-item {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(170, 196, 224, 0.12);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-vehicle-item:hover {
  background: rgba(41, 87, 130, 0.28);
}

.sidebar-vehicle-item.is-selected {
  background: rgba(43, 120, 191, 0.34);
  border-left: 3px solid #38bdf8;
  padding-left: calc(0.8rem - 3px);
}

.sidebar-vehicle-name {
  font-size: 0.94rem;
  color: #edf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-vehicle-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-vehicle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-vehicle-main {
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-engine-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0.95;
}

.sidebar-engine-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: -2px;
  position: relative;
}

.sidebar-engine-actions {
  display: flex;
  gap: 4px;
}

.sidebar-engine-confirmation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(158, 177, 201, 0.28);
  background: rgba(6, 12, 20, 0.62);
  color: #c5d5e8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar-engine-confirmation-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.sidebar-engine-confirmation-dot-idle {
  background: #93a7bc;
}

.sidebar-engine-confirmation-dot-stop {
  background: #f97316;
}

.sidebar-engine-confirmation-dot-resume {
  background: #22c55e;
}

.sidebar-engine-confirmation.is-pending {
  color: #ffd479;
  border-color: rgba(245, 158, 11, 0.42);
}

.sidebar-engine-confirmation.is-pending .sidebar-engine-confirmation-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  animation: engine-confirm-pulse 1.15s ease-out infinite;
}

.sidebar-engine-confirmation.is-error {
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, 0.48);
}

.sidebar-engine-confirmation.is-error .sidebar-engine-confirmation-dot {
  background: #ef4444;
}

@keyframes engine-confirm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.sidebar-engine-form {
  margin: 0;
}

.sidebar-engine-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  line-height: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar-engine-btn-on {
  color: #ccffe0;
  background: rgba(22, 163, 74, 0.28);
  border-color: rgba(52, 211, 153, 0.45);
}

.sidebar-engine-btn-off {
  color: #ffd7d7;
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(248, 113, 113, 0.45);
}

.sidebar-engine-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.sidebar-engine-feedback {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 120px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(9, 14, 23, 0.96);
  border: 1px solid rgba(170, 196, 224, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 30;
}

.sidebar-engine-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-engine-feedback.success {
  color: #88f2a8;
}

.sidebar-engine-feedback.error {
  color: #ff9b9b;
}

.sidebar-vehicle-sub {
  color: #9db1c9;
  font-size: 0.76rem;
}

.sidebar-vehicle-status {
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 0.08rem;
}

.status-line-online {
  color: #47d66a;
}

.status-line-unknown {
  color: #ffb84f;
}

.status-line-offline {
  color: #ff6a6a;
}

.sidebar-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.55rem;
  border-top: 1px solid var(--border-soft);
  background: rgba(9, 14, 23, 0.8);
}

.sidebar-action,
.sidebar-action-btn {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #0f1928;
  color: #dde9f8;
  padding: 0.45rem 0.35rem;
  text-align: center;
  font-size: 0.74rem;
  text-decoration: none;
}

.sidebar-action-btn {
  background: #3b1111;
  border-color: rgba(231, 120, 120, 0.35);
  color: #ffd4d4;
}

.traccar-sidebar.collapsed .sidebar-title-wrap,
.traccar-sidebar.collapsed .sidebar-search,
.traccar-sidebar.collapsed .sidebar-scroll,
.traccar-sidebar.collapsed .sidebar-bottom {
  display: none;
}

.traccar-sidebar.collapsed .sidebar-top {
  padding: 0;
  gap: 0.45rem;
  background: transparent;
  border: 0;
}

.traccar-sidebar.collapsed .sidebar-toggle,
.traccar-sidebar.collapsed .sidebar-expand-btn {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dashboard-float {
  pointer-events: auto;
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(64vw, 720px);
}

.dashboard-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-alerts {
  width: 100%;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.right-drawer {
  pointer-events: auto;
  position: fixed;
  top: 0;
  right: 0;
  width: min(1020px, 86vw);
  height: 100vh;
  background: rgba(248, 251, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: -8px 0 30px rgba(2, 6, 23, 0.22);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1060;
  display: flex;
  flex-direction: column;
}

.right-drawer.open {
  transform: translateX(0);
}

.replay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  z-index: 1065;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.replay-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.replay-panel {
  pointer-events: auto;
  position: fixed;
  top: 18px;
  left: 18px;
  width: min(360px, calc(100vw - 36px));
  background: rgba(22, 27, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.45);
  z-index: 1070;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.replay-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.replay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f7ff;
}

.replay-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.replay-body {
  padding: 0.9rem;
}

.replay-body .form-label {
  color: #c8d4e8;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.replay-body .form-control,
.replay-body .form-select {
  background: #0d1727;
  color: #eaf2ff;
  border: 1px solid rgba(170, 196, 224, 0.25);
}

.replay-custom-range {
  display: none;
}

.replay-custom-range.open {
  display: block;
}

.replay-feedback {
  min-height: 18px;
  margin-top: 8px;
  color: #9ec0ff;
  font-size: 0.74rem;
  text-align: center;
}

.replay-legend {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  color: #c8d4e8;
  font-size: 0.72rem;
}

.replay-player-section {
  display: none;
}

.replay-player-title {
  color: #f8fbff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.3;
  word-break: break-word;
  margin-bottom: 10px;
}

.replay-player-controls {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  align-items: center;
  gap: 8px;
  color: #f3f7ff;
  font-size: 0.82rem;
}

.replay-player-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 20, 34, 0.95);
  color: #e2ecff;
  border-radius: 7px;
  min-width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 14px;
}

.replay-player-btn:hover {
  background: rgba(33, 52, 81, 0.95);
}

.replay-player-btn-main {
  border-color: rgba(255, 107, 42, 0.7);
  background: rgba(255, 107, 42, 0.15);
}

.replay-expand-inline-btn {
  display: none;
}

.replay-player-actions {
  margin-top: 10px;
}

.replay-progress {
  width: 100%;
  margin: 2px 0 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.replay-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4500, #ff6a1a);
}

.replay-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5c1b;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 8px rgba(255, 92, 27, 0.2);
  margin-top: -7px;
  cursor: pointer;
}

.replay-progress::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4500, #ff6a1a);
}

.replay-progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5c1b;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 8px rgba(255, 92, 27, 0.2);
  cursor: pointer;
}

.replay-vehicle-icon-wrap {
  background: transparent;
  border: 0;
}

.replay-vehicle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #ff6a1a 56%, #c2410c 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.7);
}

.leaflet-tooltip.replay-vehicle-tooltip {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(17, 26, 45, 0.94)) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(2, 8, 20, 0.45) !important;
  color: #f5f8ff !important;
}

.leaflet-tooltip.replay-vehicle-tooltip .leaflet-tooltip-content {
  margin: 0 !important;
  padding: 9px 11px !important;
}

.leaflet-tooltip-top.replay-vehicle-tooltip:before {
  border-top-color: rgba(17, 26, 45, 0.95) !important;
}

.replay-tooltip-main {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #e8f1ff;
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.45);
}

.replay-tooltip-meta {
  font-size: 11px;
  color: #9dd2ff;
  line-height: 1.2;
}

.replay-panel.compact {
  width: min(520px, calc(100vw - 36px));
}

.replay-panel.compact .replay-header,
.replay-panel.compact .replay-player-title,
.replay-panel.compact .replay-player-actions,
.replay-panel.compact .replay-feedback,
.replay-panel.compact .replay-legend {
  display: none !important;
}

.replay-panel.compact .replay-body {
  padding: 0.65rem 0.8rem;
}

.replay-panel.compact .replay-player-controls {
  margin-top: 8px;
}

.replay-panel.compact .replay-expand-inline-btn {
  display: inline-flex;
}

.replay-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.replay-dot-black { background: #111111; }
.replay-dot-green { background: #22c55e; }
.replay-dot-orange { background: #f59e0b; }
.replay-dot-red { background: #ef4444; }

.vehicle-popup-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.16);
  color: #ffd0ec;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
}

.vehicle-popup-replay-btn:hover {
  background: rgba(236, 72, 153, 0.25);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #dbe5f0;
  background: #fff;
}

.drawer-body {
  padding: 1rem;
  overflow: auto;
}

.table-professional {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.table-professional thead th {
  background: #f8fbff;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

.table-professional tbody td {
  border-color: #e2e8f0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-online {
  background: #dcfce7;
  color: #166534;
}

.status-offline {
  background: #fee2e2;
  color: #991b1b;
}

.status-unknown {
  background: #e2e8f0;
  color: #334155;
}

.engine-btn {
  min-width: 132px;
}

.vehicle-photo {
  max-width: 100%;
  width: 220px;
  border-radius: 10px;
  border: 1px solid #dbe5f0;
  display: block;
}

.vehicle-cluster {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.98);
  color: #fff;
  font-weight: 800;
  display: block;
  position: relative;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.vehicle-cluster-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-cluster-badge span {
  display: inline-block;
  line-height: 1 !important;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.vehicle-cluster-small {
  width: 42px !important;
  height: 42px !important;
  margin-left: -21px !important;
  margin-top: -21px !important;
  background: linear-gradient(135deg, #138244, #0f6b38);
}

.vehicle-cluster-medium {
  width: 48px !important;
  height: 48px !important;
  margin-left: -24px !important;
  margin-top: -24px !important;
  background: linear-gradient(135deg, #2454c8, #1a4099);
}

.vehicle-cluster-large {
  width: 54px !important;
  height: 54px !important;
  margin-left: -27px !important;
  margin-top: -27px !important;
  background: linear-gradient(135deg, #c42424, #8f1717);
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  padding: 0;
  background: #202225;
  box-shadow: 0 18px 34px rgba(3, 8, 18, 0.55);
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip {
  background: #202225;
}

.leaflet-popup-close-button {
  color: #c96a22 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  top: 8px !important;
  right: 8px !important;
}

.leaflet-popup-close-button:hover {
  color: #ea580c !important;
}

.vehicle-popup {
  width: 300px;
  max-width: 90vw;
  color: #f5f7fb;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.vehicle-popup-head {
  padding: 12px 14px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-popup-title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-popup-status {
  font-size: 12px;
  text-transform: lowercase;
  font-weight: 700;
}

.vehicle-popup-status-online {
  color: #22c55e;
}

.vehicle-popup-status-offline {
  color: #ef4444;
}

.vehicle-popup-status-unknown {
  color: #f59e0b;
}

.vehicle-history-legend {
  background: rgba(15, 23, 42, 0.92);
  color: #e5edf8;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 170px;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.35);
  font-size: 12px;
}

.vehicle-history-legend-title {
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 6px;
}

.vehicle-history-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.vehicle-history-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

.vehicle-popup-photo {
  width: calc(100% - 16px);
  height: 138px;
  margin: 0 8px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vehicle-popup-grid {
  padding: 12px 14px 10px;
  display: grid;
  gap: 8px;
}

.vehicle-popup-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.vehicle-popup-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.vehicle-popup-value {
  color: #d5dae4;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
}

.vehicle-popup-address a,
.vehicle-popup-value a[data-action="resolve-address"] {
  color: #ff6a1a;
  text-decoration: underline;
}

.vehicle-popup-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 106, 26, 0.65);
  border-radius: 999px;
  color: #ff9a5c;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

.vehicle-popup-map-link:hover {
  color: #ffc39b;
  border-color: #ff9a5c;
  background: rgba(255, 106, 26, 0.12);
}

.vehicle-popup-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px 12px;
}

.vehicle-popup-details summary {
  cursor: pointer;
  color: #ff6a1a;
  font-weight: 600;
  list-style: none;
}

.vehicle-popup-details summary::-webkit-details-marker {
  display: none;
}

.vehicle-popup-details summary::before {
  content: "\25B8";
  margin-right: 6px;
}

.vehicle-popup-details[open] summary::before {
  content: "\25BE";
}

.vehicle-popup-more {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .traccar-sidebar {
    width: min(330px, calc(100vw - 24px));
    top: 12px;
    left: 12px;
    bottom: 12px;
  }

  .dashboard-float {
    top: 12px;
    right: 12px;
    left: auto;
    max-width: 52vw;
  }

  .right-drawer {
    width: 100vw;
  }
}

@media (max-width: 680px) {
  .dashboard-float {
    right: 12px;
    left: 12px;
    max-width: none;
    align-items: stretch;
  }

  .dashboard-meta {
    justify-content: flex-start;
  }
}
