/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}
/* ===== 智运车队 · 全局样式 ===== */
:root {
  --primary: #1677ff;
  --primary-dark: #0b4fd6;
  --ink: #101c33;
  --ink-2: #4a5872;
  --ink-3: #8a96ab;
  --line: #e8edf5;
  --bg: #f2f5fa;
  --panel: #ffffff;
  --sider: #0d1b33;
  --sider-2: #12244a;
  --ok: #14b87a;
  --warn: #fa8c16;
  --danger: #f5222d;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 28, 51, 0.07);
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ---- 布局 ---- */
.fleet-layout { display: flex; height: 100vh; overflow: hidden; }

.sider {
  width: 224px;
  flex: 0 0 224px;
  background: linear-gradient(180deg, #0d1b33 0%, #102a52 100%);
  color: #c9d6ea;
  display: flex;
  flex-direction: column;
  transition: width .2s ease;
}
.sider.collapsed { width: 64px; flex-basis: 64px; }
.brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
}
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px;
  background: linear-gradient(135deg, #1677ff, #35d0ff);
  display: grid; place-items: center; font-size: 14px;
}
.menu-scroll { flex: 1; overflow-y: auto; padding: 10px 0 20px; }
.menu-group { padding: 14px 18px 6px; font-size: 11px; color: #5f7392; letter-spacing: 1px; }
.sider.collapsed .menu-group { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; margin: 2px 10px; border-radius: 9px;
  cursor: pointer; color: #b9c8de; font-size: 13.5px;
  transition: all .15s; white-space: nowrap; overflow: hidden;
}
.menu-item:hover { background: rgba(22,119,255,.16); color: #fff; }
.menu-item.active { background: linear-gradient(90deg, rgba(22,119,255,.95), rgba(22,119,255,.65)); color: #fff; box-shadow: 0 4px 14px rgba(22,119,255,.3); }
.menu-item.locked { opacity: .55; }
.menu-item .badge { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.15); }
.menu-item .anticon { font-size: 15px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  box-shadow: 0 1px 0 rgba(16,28,51,.03);
}
.topbar .page-title { font-size: 16px; font-weight: 650; }
.topbar .spacer { flex: 1; }
.topbar .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.content { flex: 1; overflow: auto; padding: 18px 20px 26px; }

/* ---- 卡片 ---- */
.card {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; border: 1px solid rgba(232,237,245,.9);
}
.card-title { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-title .sub { font-weight: 400; color: var(--ink-3); font-size: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 14px 16px; border: 1px solid rgba(232,237,245,.9);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat .k { color: var(--ink-3); font-size: 12.5px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .u { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 400; }
.stat .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat.blue .bar { background: linear-gradient(#1677ff, #69b1ff); }
.stat.green .bar { background: linear-gradient(#14b87a, #6ee7b7); }
.stat.orange .bar { background: linear-gradient(#fa8c16, #ffc069); }
.stat.red .bar { background: linear-gradient(#f5222d, #ff7875); }
.stat.gray .bar { background: linear-gradient(#8a96ab, #c7cfdb); }

/* ---- 地图 ---- */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1a2f; }
.map-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.map-canvas:active { cursor: grabbing; }
.map-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  background: rgba(13,27,51,.78); color: #cfe0ff; font-size: 11.5px;
  padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(6px);
  /* 限宽 + 单行省略：定位/回放页底部还有一条播放控制条，
     长提示不裁掉就会横穿整张地图并压住控制条（实际踩过）。完整内容放 title。 */
  max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-hint .warn-dot { margin-left: 4px; font-style: normal; }
.map-hint .warn-dot.error { color: #faad14; }
.map-hint .warn-dot.info { color: #9fc4ff; }
.map-tools { position: absolute; right: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.map-tools button {
  width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer;
  background: rgba(255,255,255,.94); color: #24344f; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.legend { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; gap: 10px; flex-wrap: wrap; }
.legend span { background: rgba(13,27,51,.72); color: #d7e5ff; font-size: 11.5px; padding: 4px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---- 车辆卡片（地图右侧） ---- */
.veh-list { display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow: auto; }
.veh-item {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; cursor: pointer;
  background: #fff; transition: all .15s;
}
.veh-item:hover { border-color: #bcd4ff; box-shadow: 0 4px 14px rgba(22,119,255,.12); }
.veh-item.active { border-color: var(--primary); background: #f3f8ff; box-shadow: 0 4px 14px rgba(22,119,255,.18); }
.veh-item .row1 { display: flex; align-items: center; gap: 8px; }
.veh-item .plate { font-weight: 700; letter-spacing: .5px; font-size: 14px; }
.veh-item .meta { color: var(--ink-3); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.tag-status { font-size: 11px; padding: 1px 7px; border-radius: 20px; margin-left: auto; }
.tag-run { background: #e6f4ff; color: #1677ff; }
.tag-stop { background: #fff7e6; color: #d46b08; }
.tag-off { background: #f5f5f5; color: #8c8c8c; }

/* ---- 通用 ---- */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.page-head h2 { font-size: 18px; margin: 0; font-weight: 700; }
.page-head .desc { color: var(--ink-3); font-size: 12.5px; }
.split { display: grid; gap: 14px; }
.hint { color: var(--ink-3); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: #f0f5ff; color: #1677ff; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.g { background: var(--ok); } .dot.o { background: var(--warn); } .dot.r { background: var(--danger); } .dot.x { background: #b0b8c6; }

/* 表格紧凑化 */
.ant-table-wrapper .ant-table { font-size: 13px; }
.ant-table-wrapper .ant-table-thead > tr > th { background: #f7f9fc !important; color: #4a5872; font-weight: 600; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ccd6e4; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 地图车牌标签：去掉地图 SDK 自带的外框 =====
 * 高德 setLabel 会生成 .amap-marker-label，默认带 1px 边框 + 白底；
 * 百度 BMap.Label 默认带灰色边框。标签内容里已经画了自己的深色底和圆角，
 * 外层再套一层框就成了「框套框」，未选中的车看着像被选中了。
 * 只清框，不动内容 —— 内容样式全部在 map/label.js 里用行内样式控制。
 */
.amap-marker-label,
.BMapLabel {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}
.BMapLabel span { color: inherit !important; }
