.cr-kakao-map-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #102434;
}

.panel.map > .cr-kakao-map-host {
  inset: 35px 0 0;
}

.histMapBody > .cr-kakao-map-host {
  inset: 0 145px 0 0;
}

.histMapSide {
  z-index: 4;
}

.cr-map-notice {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid #31556d;
  border-radius: 5px;
  color: #c6d8e5;
  background: rgba(8, 25, 38, .92);
  font-size: 10px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.cr-map-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(20, 54, 76, .38);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}

.cr-map-zoom-controls button {
  width: 30px;
  height: 29px;
  border: 0;
  color: #18364b;
  background: #fff;
  font: 700 20px/1 Arial, sans-serif;
  cursor: pointer;
}

.cr-map-zoom-controls button + button { border-top: 1px solid #d9e1e7; }
.cr-map-zoom-controls button:hover { background: #eef6fb; }
.conn.cr-live-error { color: #ff765f !important; }

.cr-fleet-marker-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Noto Sans CJK KR", "NanumSquare", "Malgun Gothic", sans-serif;
}

.cr-fleet-marker {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  height: 32px;
  padding: 3px 9px 3px 4px;
  border: 1px solid rgba(125, 182, 218, .9);
  border-radius: 17px;
  color: #fff;
  background: rgba(7, 27, 41, .94);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cr-fleet-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(125, 182, 218, .9);
  border-bottom: 1px solid rgba(125, 182, 218, .9);
  background: #071b29;
  transform: translateX(-50%) rotate(45deg);
}

.cr-fleet-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #0e5f99;
  position: relative;
  flex: 0 0 24px;
}

.cr-fleet-marker-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-fleet-marker-state {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border: 1px solid #071b29;
  border-radius: 50%;
  background: #7f93a2;
}

.cr-fleet-marker-label {
  max-width: 82px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-fleet-marker.run .cr-fleet-marker-icon { background: #0b7048; }
.cr-fleet-marker.run .cr-fleet-marker-state { background: #46e17e; }
.cr-fleet-marker.charge .cr-fleet-marker-icon { background: #135f94; }
.cr-fleet-marker.charge .cr-fleet-marker-state { background: #4ab8ff; }
.cr-fleet-marker.wait .cr-fleet-marker-icon { background: #43596a; }
.cr-fleet-marker.wait .cr-fleet-marker-state { background: #a8bac7; }
.cr-fleet-marker.service .cr-fleet-marker-icon { background: #805018; }
.cr-fleet-marker.service .cr-fleet-marker-state { background: #ffae3d; }
.cr-fleet-marker.selected { border-color: #45b9ff; box-shadow: 0 0 0 2px rgba(42, 163, 239, .34), 0 5px 15px rgba(0, 0, 0, .45); }

.cr-fleet-map-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  width: 190px;
  padding: 11px 28px 10px 12px;
  border: 1px solid #2b759f;
  border-radius: 8px;
  color: #dcecf6;
  background: linear-gradient(155deg, #0d2a3d, #071b29);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
}

.cr-fleet-map-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #2b759f;
  border-bottom: 1px solid #2b759f;
  background: #091f2e;
  transform: translateX(-50%) rotate(45deg);
}

.cr-fleet-map-card strong,
.cr-fleet-map-card span { display: block; }
.cr-fleet-map-card strong { margin-bottom: 5px; color: #fff; font-size: 12px; }
.cr-fleet-map-card span { margin-top: 3px; overflow: hidden; color: #9eb9ca; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cr-fleet-map-card span:last-child { margin-top: 7px; color: #54db8c; font-weight: 800; }
.cr-fleet-map-card-close {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #31566c;
  border-radius: 50%;
  color: #9db4c3;
  background: #102b3c;
  font: 700 13px/15px Arial, sans-serif;
  cursor: pointer;
}
.cr-fleet-map-card-close:hover { color: #fff; border-color: #54baff; }

/* Dashboard vehicle table: nine sortable live-data columns. */
.dashTableExact .fleetTableHead,
.dashTableExact .fleetTableRow {
  grid-template-columns: 66px 96px 91px 145px 52px 51px 67px 120px 84px;
  column-gap: 6px;
}

.dashTableExact .fleetTableHead { padding: 0 10px; }
.dashTableExact .fleetTableRow {
  padding: 0 10px;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.dashTableExact .fleetTableRow:hover { background: rgba(37, 126, 185, .13); }
.dashTableExact .fleetTableRow.selected { background: rgba(28, 143, 218, .18); box-shadow: inset 3px 0 #30a9f6; }
.dashTableExact .fleetTableRow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fleetSortButton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.fleetSortButton:hover { color: #d8ecf8; }
.fleetSortButton.active { color: #e8f6ff; font-weight: 900; }
.fleetSortButton small { width: 8px; color: #4bb8ff; font-size: 7px; line-height: 1; }
.fleetOnline { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.fleetOnline i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #718594; }
.fleetOnline.online { color: #48df82; }
.fleetOnline.online i { background: #3ce47a; box-shadow: 0 0 7px rgba(60, 228, 122, .5); }
.fleetOnline.offline { color: #8599a7; }
.metricTile.actionable.gray .metricTileValue { font-size: 17px; }

.cr-history-marker {
  padding: 4px 7px;
  border: 1px solid #51e28b;
  border-radius: 5px;
  color: #fff;
  background: #07884b;
  font: 800 9px/1 Arial, sans-serif;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}

.cr-history-marker.end {
  border-color: #56b7ff;
  background: #0d70bd;
}

body.cr-kakao-ready .dashMapImage,
body.cr-kakao-ready .panel.map {
  background-image: none !important;
}

/* Never present the bundled demo map as live vehicle data. */
.cr-live-mode .dashMapImage {
  background-color: #081c2a;
  background-image: none !important;
}

body.cr-kakao-ready .panel.map > .mapGrid,
body.cr-kakao-ready .panel.map > svg,
body.cr-kakao-ready .panel.map > .zoom,
body.cr-kakao-ready .panel.map > .gps {
  visibility: hidden;
}

body.cr-kakao-ready .histMapBody > .histMapGrid,
body.cr-kakao-ready .histMapBody > .histMapSvg,
body.cr-kakao-ready .histMapBody > .histMapBadge,
body.cr-kakao-ready .histMapBody > .histMapZoom,
body.cr-kakao-ready .histMapBody > .histMapLabel {
  visibility: hidden;
}

/* Live dashboard: page scaling and honest empty states. */
.pageScaleControl {
  height: 29px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #294b62;
  border-radius: 7px;
  background: #091c29;
  flex: 0 0 auto;
}

.pageScaleControl button {
  width: 27px;
  height: 27px;
  border: 0;
  background: transparent;
  color: #9fc2d9;
  font: 800 15px/27px Arial, sans-serif;
  cursor: pointer;
}

.pageScaleControl button:hover { background: #15374d; color: #fff; }
.pageScaleControl span {
  width: 43px;
  color: #cfe2ef;
  font: 800 9px/27px Arial, sans-serif;
  text-align: center;
  border-left: 1px solid #203c50;
  border-right: 1px solid #203c50;
  cursor: pointer;
}

.cr-live-mode .dashKpiPct { display: none !important; }
.cr-live-mode .dashboard-mode .sidebarWeather { display: none !important; }
.cr-live-mode .dashboard-mode .fleetStat { display: block !important; }

.cr-live-empty {
  height: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7893a5;
  font-size: 10px;
  text-align: center;
}

.cr-live-mode .batteryView.active,
.cr-live-mode:not(.cr-live-ready) .vehiclesView.active,
.cr-live-mode:not(.cr-live-ready) .realtimeView.active { position: relative; }

.cr-live-mode .batteryView.active > *,
.cr-live-mode:not(.cr-live-ready) .vehiclesView.active > *,
.cr-live-mode:not(.cr-live-ready) .realtimeView.active > * { visibility: hidden !important; }

.cr-live-mode .batteryView.active::after,
.cr-live-mode:not(.cr-live-ready) .vehiclesView.active::after,
.cr-live-mode:not(.cr-live-ready) .realtimeView.active::after {
  content: "서비스 준비 중입니다.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #24445a;
  border-radius: 8px;
  color: #9fb9ca;
  background: linear-gradient(180deg, #0c2231, #091923);
  font-size: 15px;
  font-weight: 700;
  visibility: visible;
}

.cr-live-mode:not(.cr-live-ready) .vehiclesView.active::after,
.cr-live-mode:not(.cr-live-ready) .realtimeView.active::after {
  content: "실시간 차량 데이터를 불러오는 중입니다.";
  z-index: 3000;
}

.cr-live-mode.cr-live-error:not(.cr-live-ready) .vehiclesView.active::after,
.cr-live-mode.cr-live-error:not(.cr-live-ready) .realtimeView.active::after {
  content: "실데이터 연결에 실패했습니다. 서버 연결 상태를 확인해 주세요.";
  color: #ff8b78;
}
