:root {
  --o-navbar: #714b67;
  --o-navbar-hover: rgba(255, 255, 255, 0.12);
  --o-action: #017e84;
  --o-action-hover: #01666b;
  --o-link: #017e84;
  --o-text: #212529;
  --o-muted: #6c757d;
  --o-label: #666666;
  --o-border: #dee2e6;
  --o-bg: #f8f9fa;
  --o-sheet: #ffffff;
  --o-row-hover: #f5f5f5;
  --o-danger: #dc3545;
  --o-warning: #9a6b01;
  --o-success: #008818;
  --navbar-h: 46px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--o-bg);
  color: var(--o-text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--o-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font-family: inherit; font-size: 14px; }

.o_web_client {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.o_main_navbar {
  height: var(--navbar-h);
  background: var(--o-navbar);
  color: #fff;
  display: flex;
  align-items: stretch;
  padding: 0 8px 0 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.o_menu_toggle, .o_nav_section > button, .o_menu_brand {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.o_menu_toggle { width: 46px; justify-content: center; }
.o_menu_toggle:hover, .o_nav_section > button:hover, .o_menu_brand:hover,
.o_nav_section.active > button, .o_nav_link.active {
  background: var(--o-navbar-hover);
  text-decoration: none;
}

.o_menu_brand {
  font-weight: 500;
  padding-right: 6px;
}

.o_menu_sections {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.o_nav_link {
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 100%;
  text-decoration: none;
}

.o_nav_section { position: relative; display: flex; }
.o_nav_section > button { gap: 6px; height: 100%; }
.o_caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #fff;
  opacity: 0.85;
}

.o_dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  color: var(--o-text);
  border: 1px solid var(--o-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 50;
}

.o_nav_section.open > .o_dropdown,
.o_search_menus.open > .o_dropdown,
.o_user.open > .o_dropdown { display: block; }

.o_dropdown a, .o_dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--o-text);
  padding: 6px 16px;
  cursor: pointer;
  text-decoration: none;
}

.o_dropdown a:hover, .o_dropdown button:hover { background: #f1f3f5; text-decoration: none; }
.o_dropdown a.active { background: #e7f4f5; color: var(--o-action); font-weight: 600; }
.o_dropdown .o_menu_header {
  padding: 8px 16px 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--o-muted);
  font-weight: 600;
}
.o_dropdown .sep { height: 1px; background: var(--o-border); margin: 6px 0; }

.o_menu_systray {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.o_systray_btn {
  background: transparent;
  border: 0;
  color: #fff;
  width: 40px;
  height: 46px;
  cursor: pointer;
  position: relative;
}
.o_systray_btn:hover { background: var(--o-navbar-hover); }
.o_badge_count {
  position: absolute;
  top: 8px;
  right: 4px;
  background: #dc3545;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
}

.o_user { position: relative; }
.o_avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--o-navbar);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.o_user > .o_dropdown { right: 0; left: auto; min-width: 240px; }
.o_user_meta { padding: 8px 16px 10px; border-bottom: 1px solid var(--o-border); }
.o_user_meta strong { display: block; }
.o_user_meta span { color: var(--o-muted); font-size: 12px; }

.o_home_menu {
  display: none;
  position: fixed;
  inset: var(--navbar-h) 0 0 0;
  background: rgba(113, 75, 103, 0.92);
  z-index: 30;
  padding: 48px;
}
.o_home_menu.open { display: block; }
.o_app {
  width: 120px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.o_app:hover { text-decoration: none; opacity: 0.9; }
.o_app_icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--o-navbar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.o_action {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.o_control_panel {
  background: #fff;
  border-bottom: 1px solid var(--o-border);
  padding: 8px 16px 10px;
}

.o_cp_top, .o_cp_bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}
.o_cp_top { min-height: 36px; }
.o_cp_bottom { margin-top: 6px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  align-items: center;
}
.breadcrumb li { color: var(--o-text); display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--o-muted);
  margin: 0 8px;
}
.breadcrumb .active { font-weight: 500; }

.o_cp_buttons { display: flex; gap: 6px; align-items: center; }

.btn {
  border: 1px solid var(--o-border);
  background: #fff;
  color: var(--o-text);
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  line-height: 1.5;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: #f8f9fa; text-decoration: none; }
.btn-primary {
  background: var(--o-action);
  border-color: var(--o-action);
  color: #fff;
}
.btn-primary:hover { background: var(--o-action-hover); color: #fff; }
.btn-secondary {
  background: #fff;
  border: 1px solid #714b67;
  color: #714b67;
}
.btn-secondary:hover { background: #f3eef2; color: #714b67; text-decoration: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.o_cp_searchview {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--o-border);
  border-radius: 4px;
  background: #fff;
  min-height: 32px;
  padding: 0 4px 0 8px;
  max-width: 640px;
}
.o_cp_searchview input {
  border: 0;
  outline: none;
  flex: 1;
  min-width: 80px;
  padding: 4px;
}
.o_search_menus { position: relative; }
.o_search_menus > button {
  background: transparent;
  border: 0;
  color: var(--o-muted);
  padding: 4px 8px;
  cursor: pointer;
}
.o_search_menus > button:hover { color: var(--o-text); }
.o_cp_pager { margin-left: auto; color: var(--o-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.o_role_note {
  background: #fff8e6;
  border-bottom: 1px solid #f0e0b0;
  color: #6b5420;
  padding: 6px 16px;
  font-size: 13px;
}

.o_content { padding: 0; flex: 1; }

.o_list_view { background: #fff; }
.o_list_table { width: 100%; border-collapse: collapse; }
.o_list_table th, .o_list_table td {
  border-bottom: 1px solid var(--o-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}
.o_list_table th {
  font-weight: 500;
  color: #374151;
  background: #fff;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.o_list_table tbody tr:hover { background: var(--o-row-hover); }
.o_list_table .num { text-align: right; font-variant-numeric: tabular-nums; }
.o_list_record_selector { width: 40px; text-align: center; }
.o_list_optional { color: var(--o-muted); font-weight: 400; }

.o_badge {
  display: inline-block;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  background: #e9ecef;
  color: #495057;
}
.o_badge.success { background: #d8f3dc; color: var(--o-success); }
.o_badge.danger { background: #fde8e8; color: #b02a37; }
.o_badge.warning { background: #fff3cd; color: var(--o-warning); }
.o_badge.info { background: #e7f4f5; color: #016066; }
.o_badge.muted { background: #f1f3f5; color: #6c757d; }

.o_form_view_container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 140px);
}
.o_form_sheet_bg {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 32px;
}
.o_form_statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.o_statusbar_buttons { display: flex; gap: 6px; }
.o_statusbar_status { display: flex; }
.o_arrow_button {
  border: 0;
  background: #e9ecef;
  color: #495057;
  padding: 4px 18px 4px 22px;
  margin-left: -8px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  cursor: default;
}
.o_arrow_button:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-left: 14px;
}
.o_arrow_button.current { background: var(--o-navbar); color: #fff; }

.o_form_sheet {
  background: var(--o-sheet);
  border: 1px solid #d8dadd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 32px 16px;
  border-radius: 2px;
}

.oe_button_box {
  float: right;
  display: flex;
  gap: 0;
  margin: -8px 0 8px 16px;
}
.oe_stat_button {
  border: 1px solid var(--o-border);
  background: #fff;
  min-width: 88px;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--o-text);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.oe_stat_button + .oe_stat_button { margin-left: -1px; }
.oe_stat_button:hover { background: #f8f9fa; text-decoration: none; }
.o_stat_value { font-weight: 700; color: var(--o-action); }
.o_stat_text { font-size: 12px; color: var(--o-muted); }

.oe_title { margin-bottom: 12px; }
.oe_title .o_form_label { color: var(--o-label); font-size: 13px; }
.oe_title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.o_group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  clear: both;
  margin-bottom: 8px;
}
.o_group.single { grid-template-columns: 1fr; }
.o_inner_group { display: flex; flex-direction: column; }
.o_cell {
  display: grid;
  grid-template-columns: minmax(140px, 40%) 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 2px 0;
}
.o_cell label { color: var(--o-label); font-weight: 500; }
.o_cell .o_field { min-height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.o_cell input[type="text"], .o_cell input[type="number"], .o_cell select, .o_cell textarea {
  width: 100%;
  border: 1px solid transparent;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 4px 2px;
  color: var(--o-text);
}
.o_cell input:focus, .o_cell select:focus, .o_cell textarea:focus {
  outline: none;
  border-bottom-color: var(--o-action);
}
.o_cell .required { border-bottom-color: var(--o-navbar); }
.o_cell .readonly { color: var(--o-text); }
.o_hint { color: var(--o-muted); font-size: 12px; margin-top: 2px; }

.o_notebook { margin-top: 16px; clear: both; }
.o_notebook_headers {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--o-border);
}
.o_notebook_headers button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--o-muted);
  margin-bottom: -1px;
}
.o_notebook_headers button.active {
  color: var(--o-action);
  border-bottom-color: var(--o-action);
  font-weight: 600;
}
.o_notebook_page { padding: 16px 0 8px; display: none; }
.o_notebook_page.active { display: block; }

.o_banner {
  background: #e7f4f5;
  border: 1px solid #b7e0e2;
  color: #0b4f53;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.o_banner.warn {
  background: #fff8e6;
  border-color: #f0e0b0;
  color: #6b5420;
}

table.o_inner {
  width: 100%;
  border-collapse: collapse;
}
table.o_inner th, table.o_inner td {
  border-bottom: 1px solid var(--o-border);
  padding: 8px 6px;
  text-align: left;
}
table.o_inner th { color: var(--o-label); font-weight: 500; }

.o_chatter {
  width: 420px;
  flex: 0 0 420px;
  background: #fff;
  border-left: 1px solid var(--o-border);
  min-height: calc(100vh - 120px);
  padding: 12px 16px 24px;
}
.o_chatter_top { display: flex; gap: 8px; margin-bottom: 12px; }
.o_chatter_top button {
  background: transparent;
  border: 0;
  color: var(--o-action);
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
}
.o_followers { color: var(--o-muted); font-size: 12px; margin-bottom: 12px; }
.o_message {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--o-border);
}
.o_message .o_avatar { flex: 0 0 26px; }
.o_message header { font-size: 13px; }
.o_message time { color: var(--o-muted); margin-left: 6px; font-size: 12px; }
.o_message p { margin: 4px 0 0; }
.o_activity {
  border: 1px solid #f0e0b0;
  background: #fffaf0;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.o_activity strong { display: block; }
.o_activity span { color: var(--o-muted); font-size: 12px; }

.o_index_sheet { max-width: 980px; margin: 24px auto; padding: 0 16px 48px; }
.o_index_intro {
  background: #fff;
  border: 1px solid var(--o-border);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.o_index_intro h1 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.o_index_intro p { margin: 0; color: var(--o-muted); }
.o_index_group { margin-bottom: 22px; }
.o_index_group h2 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.o_index_group ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--o-border); background: #fff; }
.o_index_group li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--o-border);
  align-items: baseline;
}
.o_index_group li:last-child { border-bottom: 0; }
.o_index_group .path { color: var(--o-muted); font-size: 12px; text-align: right; }

.o_toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #212529;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  display: none;
  z-index: 80;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.o_toast.show { display: block; }

/* Live map / position mockups */
.o_map_dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 160px);
  background: #fff;
  border-top: 1px solid var(--o-border);
}
.o_map_sidebar {
  border-right: 1px solid var(--o-border);
  padding: 12px 0;
  overflow: auto;
  background: #fafafa;
}
.o_map_sidebar h2 {
  margin: 0 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--o-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.o_map_list { display: flex; flex-direction: column; }
.o_map_list_item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--o-border);
  background: transparent;
  padding: 10px 14px 10px 13px;
  cursor: pointer;
  font: inherit;
}
.o_map_list_item:hover { background: #f0f7f8; }
.o_map_list_item.selected {
  background: #e7f4f5;
  border-left-color: var(--o-action);
}
.o_map_list_item strong { font-weight: 600; }
.o_map_list_item .muted { color: var(--o-muted); font-size: 12px; }

.o_map_main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.o_map_canvas {
  flex: 1;
  min-height: 360px;
  padding: 12px 16px 0;
  background: #f4f5f7;
}
.o_map_canvas.o_map_inline {
  flex: none;
  min-height: 280px;
  height: 280px;
  padding: 0;
  background: #dfe8ec;
  border: 1px solid var(--o-border);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 0;
}
.o_map_svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  border: 1px solid var(--o-border);
  border-radius: 6px;
  background: #e8eef1;
  cursor: default;
}
.o_map_bg { fill: #dfe8ec; }
.o_map_road {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-linecap: round;
}
.o_map_road.secondary {
  stroke: #c5d0d6;
  stroke-width: 5;
}
.o_map_label {
  fill: #5b6b73;
  font-size: 11px;
  font-family: inherit;
  pointer-events: none;
}
.o_map_route {
  stroke: var(--o-action);
  stroke-width: 3;
  stroke-dasharray: 8 5;
  opacity: 0.85;
}
.o_map_stop { fill: #fff; stroke: var(--o-action); stroke-width: 2; }
.o_map_stop_label {
  fill: var(--o-action);
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
}
.o_map_marker { cursor: pointer; outline: none; }
.o_map_marker_halo {
  fill: rgba(113, 75, 103, 0.15);
  opacity: 0;
}
.o_map_marker:hover .o_map_marker_halo,
.o_map_marker.selected .o_map_marker_halo { opacity: 1; }
.o_map_marker_pin {
  fill: #714b67;
  stroke: #fff;
  stroke-width: 2;
}
.o_map_marker.selected .o_map_marker_pin { fill: #017e84; }
.o_map_marker_icon {
  font-size: 11px;
  pointer-events: none;
}
.o_map_marker_plate {
  fill: #212529;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  pointer-events: none;
}

.o_map_detail {
  border-top: 1px solid var(--o-border);
  padding: 14px 16px 18px;
  background: #fff;
  min-height: 120px;
}
.o_map_detail_empty { margin: 0; color: var(--o-muted); }
.o_map_detail_head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.o_map_detail_head strong { font-size: 16px; }
.o_map_detail_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.o_map_detail_grid .full { grid-column: 1 / -1; }
.o_map_detail_grid .lbl {
  display: block;
  color: var(--o-label);
  font-size: 12px;
  margin-bottom: 2px;
}
.o_map_detail_grid > div > span:last-child { font-size: 13px; }

.o_map_split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}
.o_map_split .o_map_canvas { padding: 0; background: transparent; min-height: 0; }

/* Leaflet live map */
.o_leaflet_host {
  flex: 1;
  min-height: 420px;
  height: 100%;
  padding: 0 !important;
  background: #dfe8ec;
  position: relative;
  z-index: 0;
}
.o_leaflet_host.o_leaflet_host_inline,
.o_map_inline.o_leaflet_host {
  flex: none;
  min-height: 280px;
  height: 280px;
  width: 100%;
  border: 1px solid var(--o-border);
  border-radius: 6px;
  overflow: hidden;
  padding: 0 !important;
  background: #dfe8ec;
  position: relative;
  z-index: 0;
}
.o_leaflet_surface {
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.o_leaflet_host .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 420px;
  font: inherit;
  background: #dfe8ec;
}
.o_leaflet_host_inline .o_leaflet_surface.leaflet-container,
.o_leaflet_host_inline .leaflet-container,
.o_map_inline.o_leaflet_host .leaflet-container {
  width: 100% !important;
  height: 280px !important;
  min-height: 280px !important;
}
.o_leaflet_car_wrap {
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
}
.leaflet-marker-icon.o_leaflet_car_wrap,
.leaflet-interactive {
  cursor: pointer;
}
.o_leaflet_car {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  transition: filter 0.15s ease;
  cursor: pointer;
}
.o_leaflet_car.selected {
  filter: drop-shadow(0 0 0 2px #017e84) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.o_leaflet_car_body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--car-bg, #714b67);
  border: 2px solid #fff;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

/* Fuel progress bar */
.o_fuel_bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.o_fuel_bar_track {
  height: 10px;
  border-radius: 999px;
  background: #e9ecef;
  overflow: hidden;
  border: 1px solid var(--o-border);
}
.o_fuel_bar_fill {
  height: 100%;
  border-radius: 999px;
  background: #017e84;
  transition: width 0.25s ease;
  min-width: 2px;
}
.o_fuel_bar.o_fuel_warn .o_fuel_bar_fill { background: #d4a017; }
.o_fuel_bar.o_fuel_danger .o_fuel_bar_fill { background: #c0392b; }
.o_fuel_bar.o_fuel_ok .o_fuel_bar_fill { background: #2e7d4f; }
.o_fuel_bar_label {
  font-size: 12px;
  color: var(--o-muted);
  font-variant-numeric: tabular-nums;
}

.o_map_detail_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.o_map_detail_actions .btn,
.o_popup_btn {
  pointer-events: auto;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  min-width: 110px;
}

/* Leaflet vehicle detail popup */
.leaflet-container .leaflet-popup-pane {
  z-index: 700;
}
.o_car_popup_wrap {
  pointer-events: auto;
}
.o_car_popup_wrap .leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--o-border);
  background: #fff;
}
.o_car_popup_wrap .leaflet-popup-content {
  margin: 14px 16px 16px;
  min-width: 260px;
  line-height: 1.35;
}
.o_car_popup_wrap .leaflet-popup-close-button {
  width: 28px !important;
  height: 28px !important;
  font-size: 22px !important;
  line-height: 24px !important;
  color: #212529 !important;
  font-weight: 700 !important;
  top: 6px !important;
  right: 6px !important;
  background: #f1f3f5 !important;
  border-radius: 4px;
  padding: 0 !important;
  text-align: center !important;
}
.o_car_popup_wrap .leaflet-popup-close-button:hover {
  background: #e9ecef !important;
  color: #000 !important;
}
.o_popup_kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--o-muted);
  margin-bottom: 2px;
}
.o_popup_title {
  font-size: 18px;
  font-weight: 700;
}
.o_popup_title a {
  color: var(--o-text);
  text-decoration: none;
}
.o_popup_title a:hover { color: var(--o-action); text-decoration: underline; }
.o_car_popup .o_map_detail_head {
  margin-bottom: 10px;
  padding-right: 28px;
  align-items: flex-start;
}
.o_car_popup .o_map_detail_grid {
  gap: 8px 14px;
}
.o_car_popup .o_map_detail_actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--o-border);
}
.o_car_popup .o_popup_btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .o_form_view_container { flex-direction: column; }
  .o_chatter { width: 100%; flex-basis: auto; border-left: 0; border-top: 1px solid var(--o-border); min-height: 0; }
  .o_group { grid-template-columns: 1fr; }
  .o_map_dashboard { grid-template-columns: 1fr; }
  .o_map_sidebar { border-right: 0; border-bottom: 1px solid var(--o-border); max-height: 200px; }
  .o_map_split { grid-template-columns: 1fr; }
  .o_map_detail_grid { grid-template-columns: 1fr; }
  .o_leaflet_host .leaflet-container { min-height: 320px; }
}
