/* Dashboard BESS CRM — layout alinhado ao protótipo crm-bess-dashboard */
#bcrmViewDashboard {
  --bcrm-bg: #f1f3f6;
  --bcrm-surface: #ffffff;
  --bcrm-surface-2: #fbfcfd;
  --bcrm-border: #e4e7ec;
  --bcrm-border-2: #eef0f3;
  --bcrm-text: #0f172a;
  --bcrm-muted: #64748b;
  --bcrm-faint: #94a3b8;
  --bcrm-blue: #2563eb;
  --bcrm-blue-700: #1d4ed8;
  --bcrm-blue-soft: #e9f0fe;
  --bcrm-green: #16a34a;
  --bcrm-green-soft: #e6f6ec;
  --bcrm-red: #e1251b;
  --bcrm-red-soft: #fdeeee;
  --bcrm-track: #eef1f5;
  --bcrm-nodata: #e9ecf1;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --st-neutral: #9aa3af;
  --st-progress: #2a78d6;
  --st-serious: #ec835a;
  --st-good: #0ca30c;
  --ff-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--bcrm-text);
  font-family: var(--ff-ui);
}
#bcrmViewDashboard .bcrm-dash-filters {
  display: grid;
  grid-template-columns: 1fr 180px auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}
#bcrmViewDashboard .bcrm-dash-fld label {
  display: block;
  font-family: var(--ff-head);
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 7px;
}
#bcrmViewDashboard .bcrm-dash-input,
#bcrmViewDashboard .bcrm-dash-select {
  width: 100%;
  height: 38px;
  border: 1px solid #d9dde3;
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
#bcrmViewDashboard .bcrm-dash-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
#bcrmViewDashboard .bcrm-dash-input:focus,
#bcrmViewDashboard .bcrm-dash-select:focus {
  border-color: var(--bcrm-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
#bcrmViewDashboard button,
#bcrmViewDashboard button:hover,
#bcrmViewDashboard button:active {
  transform: none;
  box-shadow: none;
}
#bcrmViewDashboard .bcrm-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#bcrmViewDashboard .bcrm-dash-btn-outline {
  border: 1px solid #c9d7f8;
  background: #fff;
  color: var(--bcrm-blue);
}
#bcrmViewDashboard .bcrm-dash-btn-outline:hover,
#bcrmViewDashboard .bcrm-dash-btn-outline:active {
  background: var(--bcrm-blue-soft);
  border-color: #c9d7f8;
  color: var(--bcrm-blue);
}
#bcrmViewDashboard .bcrm-dash-btn-primary {
  border: 1px solid var(--bcrm-blue);
  background: var(--bcrm-blue);
  color: #fff;
}
#bcrmViewDashboard .bcrm-dash-btn-primary:hover,
#bcrmViewDashboard .bcrm-dash-btn-primary:active {
  background: var(--bcrm-blue-700);
  border-color: var(--bcrm-blue-700);
  color: #fff;
}
#bcrmViewDashboard .bcrm-dash-btn-ghost {
  border: 1px solid var(--bcrm-border);
  background: #fff;
  color: #334155;
}
#bcrmViewDashboard .bcrm-dash-btn-ghost:hover,
#bcrmViewDashboard .bcrm-dash-btn-ghost:active {
  background: var(--bcrm-blue-soft);
  border-color: #c9d7f8;
  color: var(--bcrm-blue);
}

#bcrmViewDashboard .bcrm-dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
#bcrmViewDashboard .bcrm-dash-kpi {
  border: 1px solid var(--bcrm-border);
  border-radius: 12px;
  background: var(--bcrm-surface-2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  container-type: inline-size;
}
#bcrmViewDashboard .bcrm-dash-k-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}
#bcrmViewDashboard .bcrm-dash-k-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-family: var(--ff-head);
  font-size: 13px;
}
#bcrmViewDashboard .bcrm-dash-k-ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bcrmViewDashboard .k-blue { background: var(--bcrm-blue-soft); color: var(--bcrm-blue); }
#bcrmViewDashboard .k-green { background: var(--bcrm-green-soft); color: var(--bcrm-green); }
#bcrmViewDashboard .k-red { background: var(--bcrm-red-soft); color: var(--bcrm-red); }
#bcrmViewDashboard .bcrm-dash-k-lb {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}
#bcrmViewDashboard .bcrm-dash-k-val {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 12px 0 4px;
  color: var(--bcrm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bcrmViewDashboard .bcrm-dash-k-val.green { color: var(--bcrm-green); }
#bcrmViewDashboard .bcrm-dash-k-val small { font-size: 0.6em; font-weight: 500; color: var(--bcrm-muted); margin-left: 2px; }
#bcrmViewDashboard .bcrm-dash-k-lb .nt { text-transform: none; }
#bcrmViewDashboard .bcrm-dash-k-cap { font-size: 11.5px; color: #64748b; line-height: 1.35; }
@container (max-width: 178px) {
  #bcrmViewDashboard .bcrm-dash-k-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  #bcrmViewDashboard .bcrm-dash-k-ic { width: 30px; height: 30px; }
  #bcrmViewDashboard .bcrm-dash-k-lb { min-height: 2.6em; }
  #bcrmViewDashboard .bcrm-dash-k-val { margin-top: 8px; }
}

#bcrmViewDashboard .bcrm-dash-grid { display: grid; gap: 12px; margin-bottom: 12px; }
#bcrmViewDashboard .bcrm-dash-g2 { grid-template-columns: 1fr 1fr; }
#bcrmViewDashboard .bcrm-dash-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#bcrmViewDashboard .bcrm-dash-g5 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
#bcrmViewDashboard .bcrm-dash-panel {
  border: 1px solid var(--bcrm-border);
  border-radius: 12px;
  background: var(--bcrm-surface);
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#bcrmViewDashboard .bcrm-dash-panel.nofoot { padding-bottom: 16px; }
#bcrmViewDashboard .bcrm-dash-p-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 22px;
}
#bcrmViewDashboard .bcrm-dash-p-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bcrm-blue-soft);
  color: var(--bcrm-blue);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
#bcrmViewDashboard .bcrm-dash-p-tag svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bcrmViewDashboard .bcrm-dash-perf-legend { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
#bcrmViewDashboard .bcrm-dash-perf-legend button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--bcrm-border);
  border-radius: 999px;
  background: #fff;
  font-family: var(--ff-ui);
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
#bcrmViewDashboard .bcrm-dash-perf-legend button:hover,
#bcrmViewDashboard .bcrm-dash-perf-legend button:active {
  background: #f5f8ff;
  border-color: #c9d7f8;
  color: #334155;
}
#bcrmViewDashboard .bcrm-dash-perf-legend button i { width: 10px; height: 10px; border-radius: 3px; }
#bcrmViewDashboard .bcrm-dash-perf-legend button.off { opacity: 0.38; }
#bcrmViewDashboard .bcrm-dash-perf-legend button.off i { background: #cbd2db !important; }
#bcrmViewDashboard .bcrm-dash-perf { width: 100%; }
#bcrmViewDashboard .bcrm-dash-perf svg { width: 100%; height: auto; overflow: visible; }
#bcrmViewDashboard .bcrm-dash-perf .grp { cursor: pointer; }
#bcrmViewDashboard .bcrm-dash-perf .grp:hover .hit { fill: #f5f8fe; }
#bcrmViewDashboard .bcrm-dash-perf-note { font-size: 11px; color: var(--bcrm-faint); margin-top: 2px; }
#bcrmViewDashboard .bcrm-dash-p-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--bcrm-text);
  margin: 0;
}
#bcrmViewDashboard .bcrm-dash-p-title svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
#bcrmViewDashboard .bcrm-dash-p-sub { font-size: 11.5px; color: var(--bcrm-muted); margin: -6px 0 6px; }
#bcrmViewDashboard .bcrm-dash-p-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
#bcrmViewDashboard .bcrm-dash-p-foot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--bcrm-border);
  margin-top: 14px;
  padding: 11px 0 12px;
}
#bcrmViewDashboard .bcrm-dash-p-foot > div { padding: 0 14px; border-left: 1px solid var(--bcrm-border); }
#bcrmViewDashboard .bcrm-dash-p-foot > div:first-child { border-left: 0; padding-left: 0; }
#bcrmViewDashboard .bcrm-dash-f-lb {
  font-family: var(--ff-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
}
#bcrmViewDashboard .bcrm-dash-f-val { font-size: 18px; font-weight: 600; margin-top: 4px; white-space: nowrap; }
#bcrmViewDashboard .bcrm-dash-f-val small { font-size: 12px; font-weight: 500; color: var(--bcrm-muted); }

#bcrmViewDashboard .bcrm-dash-rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
#bcrmViewDashboard [hidden] { display: none !important; }
#bcrmViewDashboard svg { display: block; }
#bcrmViewDashboard .bcrm-dash-rtable th {
  font-family: var(--ff-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #475569;
  text-align: left;
  padding: 2px 10px 9px 0;
  border-bottom: 1px solid var(--bcrm-border);
  background: transparent;
}
#bcrmViewDashboard .bcrm-dash-rtable td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--bcrm-border-2);
  white-space: nowrap;
}
#bcrmViewDashboard .bcrm-dash-rtable tr:last-child td { border-bottom: 0; }
#bcrmViewDashboard .bcrm-dash-rtable tbody tr:hover { background: #f8fafc; }
#bcrmViewDashboard .bcrm-dash-rtable td:first-child { font-weight: 600; }
#bcrmViewDashboard .bcrm-dash-rtable td:first-child span { font-weight: 400; color: var(--bcrm-muted); }
#bcrmViewDashboard .bcrm-dash-rtable .ytd-n { font-size: 11px; font-weight: 400; color: var(--bcrm-faint); margin-top: 2px; }
#bcrmViewDashboard .bcrm-dash-rtable .v { font-weight: 600; }
#bcrmViewDashboard .bcrm-dash-minibar {
  height: 4px;
  border-radius: 2px;
  background: var(--bcrm-track);
  margin-top: 6px;
  max-width: 130px;
  overflow: hidden;
}
#bcrmViewDashboard .bcrm-dash-minibar i {
  display: block;
  height: 100%;
  background: var(--s1);
  border-radius: 2px;
  width: 0;
  transition: width 0.7s ease;
}

#bcrmViewDashboard .bcrm-dash-donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
#bcrmViewDashboard .bcrm-dash-donut svg path { transition: opacity 0.15s; }
#bcrmViewDashboard .bcrm-dash-donut svg.dim path:not(.on) { opacity: 0.28; }
#bcrmViewDashboard .bcrm-dash-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#bcrmViewDashboard .bcrm-dash-legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  font-size: 12.5px;
  color: #334155;
}
#bcrmViewDashboard .bcrm-dash-legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
#bcrmViewDashboard .bcrm-dash-legend li b { color: var(--bcrm-text); font-weight: 600; margin-left: 2px; }
#bcrmViewDashboard .bcrm-dash-legend li em { font-style: normal; color: var(--bcrm-muted); font-size: 11.5px; }
#bcrmViewDashboard .bcrm-dash-legend.dim li:not(.on) { opacity: 0.35; }
#bcrmViewDashboard .bcrm-dash-hero-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1;
}
#bcrmViewDashboard .bcrm-dash-hero-num small {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-left: 4px;
}

#bcrmViewDashboard .bcrm-dash-bars { display: flex; flex-direction: column; gap: 10px; }
#bcrmViewDashboard .bcrm-dash-bar-row .bl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 5px;
}
#bcrmViewDashboard .bcrm-dash-bar-row .bl b { color: var(--bcrm-text); font-weight: 600; white-space: nowrap; }
#bcrmViewDashboard .bcrm-dash-bar-track {
  height: 7px;
  border-radius: 4px;
  background: var(--bcrm-track);
  overflow: hidden;
}
#bcrmViewDashboard .bcrm-dash-bar-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--s1);
  border-radius: 4px;
  transition: width 0.7s ease;
}
#bcrmViewDashboard .bcrm-dash-bars.dim .bcrm-dash-bar-row:not(.on) { opacity: 0.32; }
#bcrmViewDashboard .bcrm-dash-bar-row:hover .bcrm-dash-bar-track i { background: #1c5cab; }

#bcrmViewDashboard .bcrm-dash-gauge { display: flex; flex-direction: column; align-items: center; }
#bcrmViewDashboard .bcrm-dash-gauge svg { width: 100%; max-width: 210px; height: auto; overflow: visible; }

#bcrmViewDashboard .bcrm-dash-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
#bcrmViewDashboard .bcrm-dash-map-box { position: relative; display: flex; flex-direction: column; align-items: center; }
#bcrmViewDashboard #bcrmDashMap { width: 100%; max-width: 300px; height: auto; overflow: hidden; }
#bcrmViewDashboard #bcrmDashMap path {
  stroke: #fff;
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
  transition: fill 0.35s, opacity 0.35s;
  cursor: pointer;
}
#bcrmViewDashboard #bcrmDashMap path.faded { opacity: 0.13; }
#bcrmViewDashboard #bcrmDashMap path.sel,
#bcrmViewDashboard #bcrmDashMap path.hl { stroke: #0f172a; stroke-width: 1.6; }
#bcrmViewDashboard .bcrm-dash-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--bcrm-muted);
  margin-top: 10px;
  width: 100%;
  max-width: 300px;
}
#bcrmViewDashboard .bcrm-dash-scale .grad { flex: 1; height: 8px; border-radius: 4px; }
#bcrmViewDashboard .bcrm-dash-scale .nd { display: flex; align-items: center; gap: 6px; margin-left: 10px; white-space: nowrap; }
#bcrmViewDashboard .bcrm-dash-scale .nd i { width: 10px; height: 10px; border-radius: 3px; background: var(--bcrm-nodata); }
#bcrmViewDashboard .bcrm-dash-rank-title {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 10px;
}
#bcrmViewDashboard .bcrm-dash-ranking {
  max-height: 262px;
  overflow: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#bcrmViewDashboard .bcrm-dash-rk { border-radius: 7px; padding: 6px 8px 7px; cursor: pointer; outline: none; }
#bcrmViewDashboard .bcrm-dash-rk:hover,
#bcrmViewDashboard .bcrm-dash-rk.hl { background: #f5f8fe; }
#bcrmViewDashboard .bcrm-dash-rk .rl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 5px;
  gap: 10px;
}
#bcrmViewDashboard .bcrm-dash-rk .rl b { font-weight: 700; font-size: 12.5px; }
#bcrmViewDashboard .bcrm-dash-rk .rl b span { font-weight: 500; color: var(--bcrm-muted); margin-left: 6px; font-size: 11.5px; }
#bcrmViewDashboard .bcrm-dash-rk .rl em { font-style: normal; color: var(--bcrm-muted); white-space: nowrap; }
#bcrmViewDashboard .bcrm-dash-rk .rl em strong { color: var(--bcrm-text); font-weight: 600; }
#bcrmViewDashboard .bcrm-dash-rk .bcrm-dash-bar-track { height: 6px; }
#bcrmViewDashboard .bcrm-dash-metric-sel { width: auto; height: 32px; font-size: 12.5px; margin-left: auto; }
#bcrmViewDashboard .bcrm-dash-map-sels { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
#bcrmViewDashboard .bcrm-dash-map-sels .bcrm-dash-metric-sel { margin-left: 0; }
#bcrmViewDashboard .bcrm-dash-setor-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
#bcrmViewDashboard .bcrm-dash-sc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--bcrm-border);
  border-radius: 999px;
  background: #fff;
  font-family: var(--ff-ui);
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}
#bcrmViewDashboard .bcrm-dash-sc em { font-style: normal; color: var(--bcrm-muted); font-size: 11px; }
#bcrmViewDashboard .bcrm-dash-sc:hover,
#bcrmViewDashboard .bcrm-dash-sc:active {
  border-color: #c9d7f8;
  background: #f5f8ff;
  color: #334155;
}
#bcrmViewDashboard .bcrm-dash-sc.on,
#bcrmViewDashboard .bcrm-dash-sc.on:hover,
#bcrmViewDashboard .bcrm-dash-sc.on:active {
  background: var(--bcrm-blue);
  border-color: var(--bcrm-blue);
  color: #fff;
}
#bcrmViewDashboard .bcrm-dash-sc.on em { color: #dbe6fd; }
#bcrmViewDashboard .bcrm-dash-sd-sub {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
  margin: 2px 0 10px;
}
#bcrmViewDashboard .bcrm-dash-sd-sub span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--bcrm-muted); }
#bcrmViewDashboard .bcrm-dash-sd-setores .bcrm-dash-sd-row { cursor: pointer; border-radius: 6px; }
#bcrmViewDashboard .bcrm-dash-sd-setores .bcrm-dash-sd-row b em {
  font-style: normal;
  font-weight: 500;
  color: var(--bcrm-muted);
  margin-left: 4px;
  font-size: 11.5px;
}
#bcrmViewDashboard .bcrm-dash-sd-setores .bcrm-dash-sd-row:hover .bl span { color: var(--bcrm-blue); }
#bcrmViewDashboard .bcrm-dash-sd-setores .bcrm-dash-sd-row.cur .bl span { color: var(--bcrm-blue); font-weight: 600; }
#bcrmViewDashboard .bcrm-dash-sd-setores .bcrm-dash-sd-row.dimr { opacity: 0.45; }
#bcrmViewDashboard .bcrm-dash-map-hint { align-self: flex-start; font-size: 11.5px; color: var(--bcrm-faint); margin-bottom: 4px; }
#bcrmViewDashboard .bcrm-dash-map-label {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 15px;
  z-index: 2;
}
#bcrmViewDashboard .bcrm-dash-map-label .uf {
  background: var(--bcrm-blue);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
#bcrmViewDashboard .bcrm-dash-map-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
  color: var(--bcrm-muted);
}
#bcrmViewDashboard .bcrm-dash-map-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 14px 0 10px;
  font-size: 13px;
}
#bcrmViewDashboard .bcrm-dash-map-back:hover {
  background: var(--bcrm-blue-soft);
  color: var(--bcrm-blue);
  border-color: #c9d7f8;
}
#bcrmViewDashboard .bcrm-dash-sdetail { animation: bcrmDashFade 0.35s ease; }
@keyframes bcrmDashFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
#bcrmViewDashboard .bcrm-dash-sd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#bcrmViewDashboard .bcrm-dash-sd-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bcrm-blue-soft);
  color: var(--bcrm-blue);
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 16px;
  flex: none;
}
#bcrmViewDashboard .bcrm-dash-sd-head h4 { margin: 0; font-family: var(--ff-head); font-size: 18px; }
#bcrmViewDashboard .bcrm-dash-sd-head p { margin: 2px 0 0; font-size: 12px; color: var(--bcrm-muted); }
#bcrmViewDashboard .bcrm-dash-sd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
#bcrmViewDashboard .bcrm-dash-sd-tile {
  border: 1px solid var(--bcrm-border);
  border-radius: 10px;
  background: var(--bcrm-surface-2);
  padding: 11px 12px;
}
#bcrmViewDashboard .bcrm-dash-sd-tile.hero { border-color: #c9d7f8; background: #f5f8ff; }
#bcrmViewDashboard .bcrm-dash-sd-tile.hero .bcrm-dash-f-val { color: var(--bcrm-blue); }
#bcrmViewDashboard .bcrm-dash-sd-c { font-size: 11.5px; color: var(--bcrm-muted); margin-top: 3px; }
#bcrmViewDashboard .bcrm-dash-sd-empty {
  border: 1px dashed #d6dbe2;
  border-radius: 10px;
  padding: 26px 16px;
  text-align: center;
  color: var(--bcrm-muted);
  font-size: 13px;
}

#bcrmViewDashboard .bcrm-dash-acts { list-style: none; margin: 0; padding: 0; }
#bcrmViewDashboard .bcrm-dash-acts li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bcrm-border-2);
}
#bcrmViewDashboard .bcrm-dash-acts li:last-child { border-bottom: 0; }
#bcrmViewDashboard .bcrm-dash-acts .a-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
#bcrmViewDashboard .bcrm-dash-acts .a-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#bcrmViewDashboard .bcrm-dash-acts p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--bcrm-text); }
#bcrmViewDashboard .bcrm-dash-acts time { display: block; font-size: 11.5px; color: var(--bcrm-muted); margin-top: 3px; }
#bcrmViewDashboard .bcrm-dash-empty { color: #94a3b8; text-align: center; font-size: 14px; padding: 34px 0; }
#bcrmViewDashboard .bcrm-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: var(--bcrm-blue-soft);
  color: var(--bcrm-blue);
  border-radius: 999px;
  padding: 3px 6px 3px 10px;
  margin-left: auto;
}
#bcrmViewDashboard .bcrm-dash-chip button,
#bcrmViewDashboard .bcrm-dash-chip button:hover,
#bcrmViewDashboard .bcrm-dash-chip button:active {
  border: 0;
  background: none;
  color: inherit;
  padding: 0 2px;
  line-height: 1;
  cursor: pointer;
  height: auto;
  font-size: inherit;
}
#bcrmViewDashboard .bcrm-dash-summary { font-size: 13px; color: #475569; margin-top: 16px; }

.bcrm-dash-tip {
  position: fixed;
  z-index: 1400;
  pointer-events: none;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s;
  max-width: 260px;
}
.bcrm-dash-tip.show { opacity: 1; transform: none; }
.bcrm-dash-tip .t-h { font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.bcrm-dash-tip .t-h i { width: 9px; height: 9px; border-radius: 2px; }
.bcrm-dash-tip .t-m { color: #64748b; }

@media (max-width: 1180px) {
  #bcrmViewDashboard .bcrm-dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  #bcrmViewDashboard .bcrm-dash-g3 { grid-template-columns: 1fr 1fr; }
  #bcrmViewDashboard .bcrm-dash-g3 > :last-child { grid-column: 1 / -1; }
  #bcrmViewDashboard .bcrm-dash-g5 { grid-template-columns: 1fr 1fr; }
  #bcrmViewDashboard .bcrm-dash-g5 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  #bcrmViewDashboard .bcrm-dash-g2,
  #bcrmViewDashboard .bcrm-dash-g3,
  #bcrmViewDashboard .bcrm-dash-g5,
  #bcrmViewDashboard .bcrm-dash-map-grid { grid-template-columns: 1fr; }
  #bcrmViewDashboard .bcrm-dash-g3 > :last-child,
  #bcrmViewDashboard .bcrm-dash-g5 > :last-child { grid-column: auto; }
  #bcrmViewDashboard .bcrm-dash-filters { grid-template-columns: 1fr 1fr; }
  #bcrmViewDashboard .bcrm-dash-filters .bcrm-dash-fld:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #bcrmViewDashboard .bcrm-dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #bcrmViewDashboard .bcrm-dash-filters { grid-template-columns: 1fr; }
  #bcrmViewDashboard .bcrm-dash-p-foot { grid-auto-flow: row; gap: 12px; }
  #bcrmViewDashboard .bcrm-dash-p-foot > div { border-left: 0; padding: 0; }
  #bcrmViewDashboard .bcrm-dash-metric-sel { margin-left: 0; width: 100%; }
  #bcrmViewDashboard .bcrm-dash-map-sels { margin-left: 0; width: 100%; flex-direction: column; }
  #bcrmViewDashboard .bcrm-dash-rk .rl b span { display: none; }
  #bcrmViewDashboard .bcrm-dash-sd-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  #bcrmViewDashboard .bcrm-dash-kpis { grid-template-columns: 1fr; }
}
