/* Services card refresh and service-only dashboard overlay. */
#services .cards-grid { align-items: stretch; grid-auto-rows: minmax(548px, auto); }
#services .service-card {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 548px;
  overflow: hidden;
  padding: 23px 20px 18px;
  border-color: #e2e8ec;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(17,42,69,.045);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
#services .service-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: var(--service-accent, #14B8A6);
}
#services .service-card:hover,
#services .service-card:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--service-accent, #14B8A6) 44%, white);
  box-shadow: 0 15px 32px color-mix(in srgb, var(--service-accent, #14B8A6) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--service-accent, #14B8A6) 18%, transparent);
}
#services .service-card:focus-visible { outline: 3px solid #0F766E; outline-offset: 3px; }
#services .service-card .service-icon {
  color: #0B1B33;
  background: var(--service-wash, #E7F8F5);
}
#services .service-question {
  min-height: 42px;
  margin: 13px 0 3px;
  color: #0F766E;
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.42;
}
#services .service-card h3 { margin: 4px 0 8px; color: #0B1B33; font-size: 19px; line-height: 1.28; }
#services .service-benefit {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#services .chart-thumb { flex: 0 0 auto; margin: 13px 0 4px; }
#services .service-bottom { margin-top: 0; padding-top: 0; }
#services .insight-label { margin-bottom: 8px; color: #475569; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
#services .insight-list { display: grid; gap: 7px; }
#services .insight-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  color: #334155;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
}
#services .insight-check { flex: 0 0 auto; color: #0F766E; font-size: 15px; font-weight: 900; line-height: 1.1; }
#services .service-sample-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--service-accent, #14B8A6) 27%, white);
  border-radius: 9px;
  color: var(--service-accent, #0F766E);
  background: var(--service-wash, #E7F8F5);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
#services .service-card:hover .service-sample-cta { color: #0B1B33; background: var(--service-wash, #E7F8F5); box-shadow: inset 0 0 0 1px var(--service-accent, #0F766E); }

#service-dashboard-overlay {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2.25vh 2.5vw;
  background: rgba(4,12,24,.76);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}
#service-dashboard-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
#service-dashboard-dialog {
  display: flex;
  flex-direction: column;
  width: min(95vw, 1400px);
  height: min(95vh, 960px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  color: #152436;
  background: #f2f6f5;
  box-shadow: 0 35px 100px rgba(0,0,0,.34);
  transform: translateY(9px) scale(.975);
  transition: transform .24s ease;
}
#service-dashboard-overlay.is-open #service-dashboard-dialog { transform: translateY(0) scale(1); }
.sd-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 13px 19px;
  color: #fff;
  background: var(--sd-theme, #0B4D3B);
}
.sd-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sd-logo { flex: 0 0 auto; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .015em; }
.sd-title-wrap { min-width: 0; padding-left: 13px; border-left: 1px solid rgba(255,255,255,.28); }
.sd-title { margin: 0; color: #fff; font-size: clamp(15px,1.55vw,20px); font-weight: 800; line-height: 1.2; }
.sd-sample-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: rgba(255,255,255,.83); font-size: 10px; font-weight: 650; }
.sd-sample-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sd-highlight, #5ED3B4); }
.sd-close {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.sd-close:hover { background: rgba(255,255,255,.2); }
.sd-toolbar { display: none; }
.sd-body-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); flex: 1; min-height: 0; overflow: hidden; }
.sd-page-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: stretch;
  min-width: 0;
  margin: 12px 0 12px 12px;
  padding: 17px 11px;
  border: 1px solid #dce6e4;
  border-radius: 12px;
  background: #e9f0ee;
}
.sd-nav-title { margin: 0 7px 7px; color: #687a7b; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.sd-page-tab {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: #43545b;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sd-page-tab:hover { color: var(--sd-theme, #0B4D3B); background: rgba(255,255,255,.72); }
.sd-page-tab.is-active { color: #fff; background: var(--sd-theme, #0B4D3B); box-shadow: 0 4px 12px color-mix(in srgb, var(--sd-theme, #0B4D3B) 22%, transparent); }
.sd-workspace { min-width: 0; min-height: 0; overflow: hidden; }
.sd-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sd-page-heading { margin: 0; color: #24373c; font-size: 14px; font-weight: 800; }
.sd-filter-toggle { display: none; }
.sd-content-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; min-width: 0; height: 100%; }
.sd-content-layout.has-side-filters { grid-template-columns: minmax(0,1fr) 236px; }
.sd-content-layout.has-split-filters { grid-template-columns: 176px minmax(0,1fr) 220px; gap: 8px; }
.sd-report { min-width: 0; min-height: 0; overflow: auto; padding: 16px 18px 20px; }
.sd-filter-panel {
  display: grid;
  grid-template-columns: repeat(6,minmax(118px,1fr)) auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 13px;
  padding: 11px;
  border: 1px solid #dce7e4;
  border-radius: 11px;
  background: #fff;
}
.sd-filter-panel.is-side { display: flex; flex-direction: column; align-items: stretch; align-self: start; margin: 16px 14px 16px 0; padding: 13px; }
.sd-filter-panel.is-left { margin: 12px 0 12px 12px; max-height:calc(100% - 24px); overflow-y:auto; }
.sd-filter-panel.is-right { margin: 12px 12px 12px 0; max-height:calc(100% - 24px); overflow-y:auto; }
.sd-filter-panel.is-mobile-drawer { display:none; }
.sd-filter-title { margin: 0 0 5px; color: #536568; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sd-drawer-close { display: none; padding: 4px 8px; border: 1px solid #d8e2df; border-radius: 7px; color: #4d5c5e; background: #fff; font: inherit; font-size: 9px; font-weight: 750; }
.sd-filter-field { min-width: 0; }
.sd-filter-field > label { display: block; margin: 0 0 4px; color: #647276; font-size: 9px; font-weight: 750; }
.sd-filter-select {
  width: 100%;
  min-height: 34px;
  padding: 7px 23px 7px 9px;
  border: 1px solid #d8e2df;
  border-radius: 7px;
  color: #24353a;
  background: #fbfdfc;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
}
.sd-button-slicer { display: flex; flex-wrap: wrap; gap: 4px; }
.sd-slicer-button { padding: 6px 8px; border: 1px solid #d8e2df; border-radius: 7px; color: #526164; background: #fff; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.sd-slicer-button.is-active { border-color: var(--sd-theme,#0B4D3B); color: #fff; background: var(--sd-theme,#0B4D3B); }
.sd-reset {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d4dfdb;
  border-radius: 7px;
  color: #43555a;
  background: #f6f9f8;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.sd-reset:hover { border-color: var(--sd-theme,#0B4D3B); color: var(--sd-theme,#0B4D3B); }
.sd-kpi-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.sd-kpi {
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1px solid #e0e9e6;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(24,51,56,.025);
}
.sd-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.sd-kpi-label { display:block; margin-top:4px; color: #637174; font-size: 9px; font-weight: 750; line-height: 1.3; }
.sd-kpi-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 7px; color: var(--sd-theme,#0B4D3B); background: color-mix(in srgb, var(--sd-highlight,#5ED3B4) 28%, white); font-size: 12px; font-weight: 900; }
.sd-kpi-value { display: block; margin-top: 6px; color: #152b32; font-size: clamp(16px,1.75vw,23px); font-weight: 850; letter-spacing: -.045em; line-height: 1.15; white-space: nowrap; }
.sd-decision { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 13px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--sd-highlight,#5ED3B4) 48%, white); border-radius: 9px; color: #3a5052; background: color-mix(in srgb, var(--sd-highlight,#5ED3B4) 12%, white); font-size: 11px; line-height: 1.45; }
.sd-decision strong { flex: 0 0 auto; color: var(--sd-theme,#0B4D3B); font-size: 10px; letter-spacing: .035em; }
.sd-visual-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 11px; }
.sd-chart-panel { min-width: 0; min-height: 257px; overflow: hidden; padding: 12px 12px 9px; border: 1px solid #e1e9e7; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(24,51,56,.035); }
.sd-chart-panel.is-wide { grid-column: 1 / -1; }
.sd-chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0; color: #273a3e; font-size: 11px; font-weight: 800; line-height: 1.35; }
.sd-chart-subtitle { margin: 3px 0 0; color: #5d6c6e; font-size: 8px; }
.sd-chart-svg { display: block; width: 100%; height: 195px; margin-top: 4px; overflow: visible; }
.sd-chart-svg text { fill: #59686a; font: 8px Inter,Arial,sans-serif; }
.sd-chart-svg .chart-grid { stroke: #e9efed; stroke-width: 1; stroke-dasharray: 3 4; }
.sd-chart-svg .chart-axis { stroke: #d5dfdd; stroke-width: 1; }
.sd-chart-svg .chart-bar { transform-box: fill-box; transform-origin: center bottom; animation: sdGrow .62s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--bar-index,0) * 24ms); }
.sd-chart-svg .chart-line { fill: none; stroke: var(--sd-highlight,#5ED3B4); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1300; stroke-dashoffset: 1300; animation: sdDraw .85s ease forwards; }
.sd-chart-svg .chart-area { fill: color-mix(in srgb, var(--sd-highlight,#5ED3B4) 23%, white); opacity: .8; }
.sd-chart-svg .chart-click { cursor: pointer; transition: opacity .18s ease, filter .18s ease; }
.sd-chart-svg .chart-click.is-dimmed { opacity: .2; }
.sd-chart-svg .chart-click.is-selected { filter: drop-shadow(0 0 3px rgba(20,36,31,.45)); }
.sd-chart-svg .chart-click:focus-visible { outline: 2px solid var(--sd-theme,#0B4D3B); outline-offset: 2px; }
.sd-chart-svg .chart-donut { stroke: #fff; stroke-width: 2; animation: sdPop .46s ease both; transform-origin: 210px 99px; }
.sd-chart-svg .chart-table-row { cursor: pointer; }
.sd-chart-svg .chart-table-row:hover rect { fill: #f2f7f5; }
.sd-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 2px; color: #637174; font-size: 8px; }
.sd-legend span { display: inline-flex; align-items: center; gap: 4px; }
.sd-legend i { width: 7px; height: 7px; border-radius: 2px; }
.sd-heatmap-legend { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 5px; min-height: 13px; color: #637174; font-size: 8px; line-height: 1; }
.sd-heatmap-legend i { display: inline-block; width: 58px; height: 7px; border-radius: 5px; background: linear-gradient(90deg,#E8F5E9,#0B6B43); }
.sd-empty { grid-column: 1 / -1; display: grid; min-height: 240px; place-items: center; border: 1px dashed #c6d5d1; border-radius: 12px; color: #72817f; background: #fff; font-size: 13px; }
@keyframes sdGrow { from { transform: scaleY(.035); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
@keyframes sdDraw { to { stroke-dashoffset: 0; } }
@keyframes sdPop { from { opacity: .3; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }

#service-dashboard-overlay[data-dashboard="sales"] { --sd-theme:#0B4D3B; --sd-highlight:#5ED3B4; }
#service-dashboard-overlay[data-dashboard="inventory"] { --sd-theme:#4A5D23; --sd-highlight:#A8B78A; }
#service-dashboard-overlay[data-dashboard="production"] { --sd-theme:#728314; --sd-highlight:#B8D447; }
#service-dashboard-overlay[data-dashboard="purchase"] { --sd-theme:#6B6B2A; --sd-highlight:#C9B43A; }
#service-dashboard-overlay[data-dashboard="hr"] { --sd-theme:#145A4A; --sd-highlight:#E2C044; }
#service-dashboard-overlay[data-dashboard="finance"] { --sd-theme:#3E6E73; --sd-highlight:#8EABB0; }
#service-dashboard-overlay[data-dashboard="quality"] { --sd-theme:#735B57; --sd-highlight:#B8958F; }
#service-dashboard-overlay[data-dashboard="maintenance"] { --sd-theme:#5A3E36; --sd-highlight:#CDAE8C; }
#service-dashboard-overlay[data-dashboard="dispatch"] { --sd-theme:#556B2F; --sd-highlight:#8DB33A; }
#service-dashboard-overlay[data-dashboard="sales"] #service-dashboard-dialog { background-color:#EFF8F4; }
#service-dashboard-overlay[data-dashboard="purchase"] #service-dashboard-dialog { background-color:#F8F5E8; }
#service-dashboard-overlay[data-dashboard="quality"] #service-dashboard-dialog { background-color:#EFE6DF; }
#service-dashboard-overlay[data-dashboard="maintenance"] #service-dashboard-dialog { background-color:#F2E8DC; }
#service-dashboard-overlay[data-dashboard="dispatch"] .sd-body-layout { display:flex; flex-direction:column; }
#service-dashboard-overlay[data-dashboard="dispatch"] .sd-page-nav { flex:0 0 auto; flex-direction:row; overflow-x:auto; margin:0; border:0; border-bottom:1px solid #dce6e4; border-radius:0; }
#service-dashboard-overlay[data-dashboard="dispatch"] .sd-nav-title { display:none; }
#service-dashboard-overlay[data-dashboard="dispatch"] .sd-page-tab { width:auto; flex:0 0 auto; }
#service-dashboard-overlay[data-dashboard="dispatch"] .sd-workspace { flex:1; min-height:0; }

/* Service-card sample previews: scoped to the nine cards in #services. */
#services .cards-grid { grid-auto-rows: minmax(590px, auto); }
#services .service-card { min-height: 590px; }
#services .chart-thumb {
  position: relative;
  display: flex;
  flex: 0 0 190px;
  flex-direction: column;
  height: 190px;
  min-height: 190px;
  box-sizing: border-box;
  overflow: hidden;
  margin: 13px 0 4px;
  padding: 8px 9px 7px;
  border: 1px solid color-mix(in srgb, var(--service-accent, #0F766E) 16%, #E8EEF0);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 4%, color-mix(in srgb, var(--service-wash, #F5FAF8) 54%, white) 100%);
  box-shadow: 0 4px 12px rgba(17,42,69,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#services .service-card:hover .chart-thumb,
#services .service-card:focus-visible .chart-thumb {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--service-accent, #0F766E) 43%, white);
  box-shadow: 0 9px 18px color-mix(in srgb, var(--service-accent, #0F766E) 16%, transparent), 0 0 0 1px color-mix(in srgb, var(--service-accent, #0F766E) 9%, transparent);
}
#services .chart-thumb-head {
  display: flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin: 0 0 5px;
  color: #0B1B33;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
#services .chart-thumb-head > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#services .chart-thumb-head .preview-sample-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--service-accent, #0F766E);
  background: var(--service-wash, #E7F8F5);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
#services .preview-content {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: 36px minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
}
#services .preview-kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; min-height: 0; }
#services .preview-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(11,27,51,.06);
  border-radius: 7px;
  background: rgba(255,255,255,.92);
}
#services .preview-kpi-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
#services .preview-kpi strong { overflow: hidden; color: #0B1B33; font-size: 12px; font-weight: 850; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
#services .preview-kpi-main > span { overflow: hidden; margin-top: 2px; color: #64748B; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
#services .preview-change { flex: 0 0 auto; font-size: 8.5px; font-style: normal; font-weight: 800; line-height: 1.1; white-space: nowrap; }
#services .preview-change.is-positive { color: #16804F; }
#services .preview-change.is-negative { color: #D34F4A; }
#services .preview-visuals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; min-width: 0; min-height: 0; }
#services .preview-visuals--sales { grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr); }
#services .preview-visuals--maintenance { grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); }
#services .preview-visuals--single { grid-template-columns: minmax(0,1fr); }
#services .preview-chart {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 3px 4px 2px;
  border: 1px solid rgba(11,27,51,.055);
  border-radius: 7px;
  background: rgba(255,255,255,.73);
}
#services .preview-chart-label {
  display: flex;
  flex: 0 0 13px;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  color: #475569;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#services .preview-chart > svg { display: block; flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; }
#services .preview-gauge { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 0; }
#services .preview-gauge > svg { display: block; width: 100%; height: 100%; max-height: 100%; margin: auto; }
#services .preview-people-icon,
#services .preview-truck-icon { flex: 0 0 13px; width: 13px; height: 12px; }
#services .preview-legend { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 4px; overflow: hidden; color: #64748B; font-size: 8px; line-height: 1.1; white-space: nowrap; }
#services .preview-legend span { display: inline-flex; align-items: center; gap: 2px; }
#services .preview-legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--legend, #0F766E); }
#services .preview-grid { fill: none; stroke: #E9EEEC; stroke-width: 1; }
#services .preview-line { stroke-dasharray: 230; stroke-dashoffset: 230; transition: stroke-dashoffset .85s cubic-bezier(.2,.7,.2,1); }
#services .preview-area { opacity: .12; transition: opacity .7s ease .18s; }
#services .preview-bar { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(.04); transition: transform .58s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--order, 0) * 65ms); }
#services .preview-hbar { transform-box: fill-box; transform-origin: left center; transform: scaleX(.04); transition: transform .62s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--order, 0) * 70ms); }
#services .preview-stack-segment { transform-box: fill-box; transform-origin: left center; transform: scaleX(.04); transition: transform .62s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--order, 0) * 90ms); }
#services .preview-donut circle { transform-box: fill-box; transform-origin: center; opacity: .28; transform: scale(.55); transition: opacity .5s ease, transform .62s cubic-bezier(.2,.7,.2,1); }
#services .preview-gauge path:nth-of-type(2) { transition: stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1); }
#services .preview-content .preview-explore {
  position: absolute;
  right: 2px;
  bottom: 0;
  z-index: 2;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--service-accent, #0F766E) 22%, white);
  border-radius: 999px;
  color: var(--service-accent, #0F766E);
  background: rgba(255,255,255,.96);
  font-size: 7px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .16s ease, transform .16s ease;
}
#services .service-card:hover .preview-explore,
#services .service-card:focus-visible .preview-explore { opacity: 1; transform: translateY(0); }
#services .chart-thumb.is-entered .preview-line { stroke-dashoffset: 0; }
#services .chart-thumb.is-entered .preview-area { opacity: 1; }
#services .chart-thumb.is-entered .preview-bar,
#services .chart-thumb.is-entered .preview-hbar,
#services .chart-thumb.is-entered .preview-stack-segment { transform: none; }
#services .chart-thumb.is-entered .preview-donut circle { opacity: 1; transform: none; }
#services .service-bottom { margin-top: auto; padding-top: 0; }
#services .service-sample-cta { margin-top: 8px; }

@media (max-width: 720px) {
  #services .cards-grid { grid-auto-rows: minmax(590px,auto); }
  #services .service-card { min-height: 590px; }
  #services .preview-chart-label { font-size: 10px; }
  #services .preview-kpi strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #services .chart-thumb,
  #services .preview-line,
  #services .preview-area,
  #services .preview-bar,
  #services .preview-hbar,
  #services .preview-stack-segment,
  #services .preview-donut circle,
  #services .preview-explore { transition: none !important; }
  #services .preview-bar,
  #services .preview-hbar,
  #services .preview-stack-segment,
  #services .preview-donut circle { opacity: 1; transform: none; }
  #services .preview-line { stroke-dashoffset: 0; }
  #services .preview-area { opacity: 1; }
}

@media (max-width: 1000px) {
  .sd-body-layout { grid-template-columns: 155px minmax(0,1fr); }
  .sd-content-layout.has-side-filters { grid-template-columns: minmax(0,1fr) 205px; }
  .sd-content-layout.has-split-filters { grid-template-columns: 150px minmax(0,1fr) 185px; gap:6px; }
  .sd-report { padding: 13px; }
  .sd-filter-panel { grid-template-columns: repeat(3,minmax(115px,1fr)) auto; }
  .sd-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  #services .cards-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(548px,auto); }
  #services .service-card { min-height: 548px; }
  #service-dashboard-overlay { display: block; padding: 0; }
  #service-dashboard-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; transform: translateY(8px) scale(.99); }
  .sd-header { min-height: 66px; gap: 8px; padding: 10px 12px; }
  .sd-brand { gap: 8px; }
  .sd-logo { max-width: 80px; font-size: 10px; }
  .sd-title-wrap { padding-left: 8px; }
  .sd-title { max-width: 56vw; font-size: 14px; }
  .sd-sample-badge { font-size: 9px; }
  .sd-close { padding: 8px 9px; font-size: 11px; }
  .sd-body-layout { display: flex; flex-direction: column; min-height: 0; }
  .sd-page-nav { flex: 0 0 auto; flex-direction: row; gap: 4px; overflow-x: auto; margin: 0; padding: 7px 9px; border: 0; border-bottom: 1px solid #dce6e4; border-radius: 0; }
  .sd-nav-title { display: none; }
  .sd-page-tab { width: auto; flex: 0 0 auto; padding: 8px 10px; font-size: 10px; white-space: nowrap; }
  .sd-workspace { flex: 1; min-height: 0; overflow: hidden; }
  .sd-report { padding: 10px; }
  .sd-toolbar-row { margin-bottom: 9px; }
  .sd-page-heading { font-size: 12px; }
  .sd-filter-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #d8e2df; border-radius: 8px; color: var(--sd-theme,#0B4D3B); background: #fff; font: inherit; font-size: 10px; font-weight: 800; }
  .sd-filter-panel { display: none; }
  .sd-filter-panel.is-drawer-open {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-height: 76dvh;
    overflow-y: auto;
    margin: 0;
    padding: 16px 13px calc(16px + env(safe-area-inset-bottom));
    border-radius: 17px 17px 0 0;
    box-shadow: 0 -12px 40px rgba(9,30,33,.2);
  }
  .sd-filter-title { grid-column: 1 / -1; }
  .sd-filter-title { display:flex; align-items:center; justify-content:space-between; }
  .sd-drawer-close { display:inline-flex; }
  .sd-filter-field.has-buttons { grid-column: 1 / -1; }
  .sd-reset { min-height: 38px; }
  .sd-content-layout.has-side-filters { display: block; }
  .sd-content-layout.has-split-filters { display:block; }
  .sd-filter-panel.is-side { display: none; }
  .sd-filter-panel.is-side.is-drawer-open { display: grid; }
  .sd-filter-panel.is-mobile-drawer.is-drawer-open { display:grid; }
  .sd-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 9px; }
  .sd-kpi { padding: 9px; }
  .sd-kpi-label { font-size: 8px; }
  .sd-kpi-value { font-size: 17px; }
  .sd-decision { flex-direction: column; gap: 3px; margin-bottom: 9px; font-size: 10px; }
  .sd-visual-grid { grid-template-columns: 1fr; gap: 9px; }
  .sd-chart-panel, .sd-chart-panel.is-wide { grid-column: auto; min-height: 242px; padding: 10px; }
  .sd-chart-svg { height: 181px; }
  #service-dashboard-overlay[data-dashboard="dispatch"] .sd-body-layout { display: flex; }
}
@media (min-width: 1200px) {
  #service-dashboard-overlay { padding: 1.5vh 2vw; }
  #service-dashboard-dialog { width: min(95vw,1400px); height: 92vh; max-height: 92vh; max-width: 1400px; }
  .sd-header { flex: 0 0 56px; min-height: 56px; gap: 10px; padding: 8px 15px; }
  .sd-title { font-size: 20px; }
  .sd-body-layout { grid-template-columns: 170px minmax(0,1fr); }
  .sd-page-nav { gap: 4px; margin: 8px 0 8px 8px; padding: 10px 8px; }
  .sd-nav-title { margin: 0 7px 5px; font-size: 9px; }
  .sd-page-tab { min-height: 36px; padding: 7px 9px; font-size: 14px; }
  .sd-content-layout { gap: 8px; }
  .sd-content-layout.has-side-filters { grid-template-columns: minmax(0,1fr) 214px; }
  .sd-content-layout.has-split-filters { grid-template-columns: 142px minmax(0,1fr) 184px; gap: 6px; }
  .sd-report { display: grid; grid-template-rows: auto auto 72px 36px minmax(0,1fr); gap: 6px; height: 100%; overflow: hidden; padding: 9px; }
  .sd-report.has-side-filter-panel, .sd-report.has-split-filter-panel { grid-template-rows: auto 72px 36px minmax(0,1fr); }
  .sd-toolbar-row { min-height: 18px; gap: 8px; margin: 0; }
  .sd-page-heading { font-size: 14px; }
  .sd-filter-panel { grid-template-columns: repeat(6,minmax(0,1fr)) auto; gap: 6px; margin: 0; padding: 6px; }
  .sd-filter-panel.is-side { align-self: stretch; gap: 6px; margin: 8px 8px 8px 0; padding: 8px; }
  .sd-filter-panel.is-left { margin: 8px 0 8px 8px; max-height: calc(100% - 16px); overflow: hidden; }
  .sd-filter-panel.is-right { margin: 8px 8px 8px 0; max-height: calc(100% - 16px); overflow: hidden; }
  .sd-filter-title { margin: 0 0 3px; font-size: 11px; }
  .sd-filter-field > label { margin-bottom: 3px; font-size: 11px; }
  .sd-filter-select { min-height: 32px; padding: 5px 20px 5px 7px; font-size: 13px; }
  .sd-button-slicer { gap: 3px; }
  .sd-slicer-button { min-height: 28px; padding: 4px 6px; font-size: 11px; line-height: 1.15; }
  .sd-reset { min-height: 32px; padding: 5px 8px; font-size: 12px; white-space: nowrap; }
  .sd-kpi-grid { height: 72px; min-height: 72px; gap: 7px; margin: 0; }
  .sd-kpi { position: relative; height: 72px; padding: 6px 8px; }
  .sd-kpi-top { position: absolute; top: 6px; right: 7px; }
  .sd-kpi-icon { width: 17px; height: 17px; flex-basis: 17px; border-radius: 5px; font-size: 10px; }
  .sd-kpi-value { margin-top: 13px; font-size: 22px; line-height: 1.05; }
  .sd-kpi-label { margin-top: 2px; font-size: 12px; line-height: 1.15; }
  .sd-decision { min-height: 36px; height: 36px; align-items: center; gap: 8px; overflow: hidden; margin: 0; padding: 5px 8px; font-size: 13px; line-height: 1.2; }
  .sd-decision strong { font-size: 12px; }
  .sd-visual-grid { display: grid; grid-template-columns: repeat(var(--chart-columns,2),minmax(0,1fr)); grid-template-rows: repeat(var(--chart-rows,2),minmax(0,1fr)); align-items: stretch; gap: 8px; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
  .sd-visual-grid.sd-hr-overview { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
  .sd-visual-grid.sd-hr-overview > .sd-chart-panel:nth-child(-n+3) { grid-column: span 2; }
  .sd-visual-grid.sd-hr-overview > .sd-chart-panel:nth-child(n+4) { grid-column: span 3; }
  .sd-chart-panel, .sd-chart-panel.is-wide { display: flex; flex-direction: column; grid-column: auto; height: 100%; min-height: 0; padding: 8px; }
  .sd-chart-title { flex: 0 0 auto; gap: 6px; font-size: 14px; line-height: 1.2; }
  .sd-chart-container { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
  .sd-chart-container > div { flex: 1 1 auto; min-height: 0; overflow: hidden !important; }
  .sd-chart-container > .sd-heatmap-legend { flex: 0 0 auto; overflow: visible !important; }
  .sd-chart-container table { margin-top: 3px !important; font-size: 10px !important; }
  .sd-chart-container th, .sd-chart-container td { padding: 2px 4px !important; line-height: 1.1; }
  .sd-chart-svg { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; margin-top: 2px; }
  .sd-chart-svg text { fill: #59686a; font: 16px Inter,Arial,sans-serif; }
  .sd-legend { flex: 0 0 auto; gap: 5px; margin: 0; font-size: 10px; }
  .sd-heatmap-legend { min-height: 14px; font-size: 10px; }
  .sd-heatmap-legend i { width: 72px; height: 8px; }
  .sd-empty { min-height: 0; height: 100%; font-size: 12px; }
}
@media (min-width: 1600px) {
  .sd-visual-grid { grid-template-columns: repeat(var(--chart-columns,3),minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #services .service-card, #service-dashboard-overlay, #service-dashboard-dialog,
  .sd-chart-svg .chart-bar, .sd-chart-svg .chart-line, .sd-chart-svg .chart-donut { transition: none !important; animation: none !important; }
  .sd-chart-svg .chart-line { stroke-dashoffset: 0; }
  #services .service-card:hover, #services .service-card:focus-visible { transform:none !important; }
}
@media (max-width: 720px) {
  #services .cards-grid { grid-auto-rows: minmax(590px,auto); }
  #services .service-card { min-height: 590px; }
}

/* Premium dark treatment is limited to the Sales Performance dashboard. */
#service-dashboard-overlay[data-dashboard="sales"] { --sd-theme:#3B82F6; --sd-highlight:#2DD4BF; }
#service-dashboard-overlay[data-dashboard="sales"] #service-dashboard-dialog {
  border:1px solid rgba(99,140,255,.42);
  color:#fff;
  background:linear-gradient(135deg,#0B1020 0%,#11152D 52%,#1B1446 100%);
  box-shadow:0 30px 100px rgba(1,4,15,.65),0 0 36px rgba(59,130,246,.16);
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-header { background:linear-gradient(100deg,#11172E,#1B1446); border-bottom:1px solid rgba(99,140,255,.27); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-logo { color:#fff; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-title { color:#fff; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-close { color:#E9EEFF; border-color:rgba(170,180,207,.38); background:rgba(255,255,255,.06); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-close:hover { border-color:#60A5FA; background:rgba(59,130,246,.18); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-filters {
  display:flex; align-items:center; gap:7px; flex:0 0 27px; min-height:27px; overflow-x:auto; padding:3px 14px;
  border-bottom:1px solid rgba(99,140,255,.18); color:#AAB4CF; background:rgba(10,15,32,.92); white-space:nowrap; scrollbar-width:thin;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-label { flex:0 0 auto; color:#AAB4CF; font-size:10px; font-weight:800; letter-spacing:.04em; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-empty { color:#7D89A7; font-size:10px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-chip {
  flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; padding:3px 7px; border:1px solid rgba(99,140,255,.32); border-radius:999px;
  color:#DBEAFE; background:rgba(59,130,246,.13); font:600 10px Inter,Arial,sans-serif; cursor:pointer;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-chip:hover { border-color:#2DD4BF; background:rgba(45,212,191,.13); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-chip b { color:#2DD4BF; font-size:13px; line-height:1; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-body-layout { grid-template-columns:170px minmax(0,1fr); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-nav {
  border:1px solid rgba(99,140,255,.27); color:#AAB4CF; background:rgba(20,26,51,.9); box-shadow:0 0 22px rgba(59,130,246,.08);
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-nav-title { color:#AAB4CF; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-tab { color:#C5CBE0; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-tab:hover { color:#fff; background:rgba(59,130,246,.18); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-tab.is-active { color:#fff; background:linear-gradient(110deg,#2563EB,#5140A5); box-shadow:0 0 16px rgba(59,130,246,.25); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-content-layout { grid-template-columns:minmax(0,1fr); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-report {
  display:grid; grid-template-rows:18px 54px 72px 36px minmax(0,1fr); gap:6px; height:100%; box-sizing:border-box; overflow:hidden; padding:8px 10px 9px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-toolbar-row { min-height:18px; margin:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-heading { color:#F8FAFF; font-size:14px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-toggle { color:#DCE8FF; border-color:rgba(99,140,255,.34); background:rgba(20,26,51,.9); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) minmax(185px,1.15fr) auto; align-items:end; gap:6px; min-width:0; height:54px; box-sizing:border-box;
  margin:0; padding:6px 7px; border:1px solid rgba(99,140,255,.27); border-radius:10px; background:rgba(20,26,51,.85); box-shadow:0 0 18px rgba(59,130,246,.07);
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-title { display:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-field { min-width:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-field > label { margin:0 0 2px; color:#AAB4CF; font-size:10px; line-height:1; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-select {
  min-height:28px; padding:3px 20px 3px 7px; border:1px solid rgba(99,140,255,.32); color:#EEF2FF; background:#10162D; font-size:11px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-select option { color:#EEF2FF; background:#10162D; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-button-slicer { flex-wrap:nowrap; gap:3px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-field[data-filter-key="Quarter"] .sd-slicer-button { flex:1 1 0; padding-right:3px; padding-left:3px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-slicer-button {
  min-height:28px; padding:3px 6px; border-color:rgba(99,140,255,.3); color:#BFC9E5; background:#10162D; font-size:10px; white-space:nowrap;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-slicer-button.is-active { border-color:#3B82F6; color:#fff; background:#2349A6; box-shadow:0 0 10px rgba(59,130,246,.22); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-reset {
  min-height:30px; padding:4px 7px; border-color:rgba(99,140,255,.34); color:#DBEAFE; background:#17203C; font-size:10px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-reset:hover { border-color:#2DD4BF; color:#fff; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; height:72px; min-height:72px; margin:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi {
  position:relative; height:72px; box-sizing:border-box; padding:6px 10px; border:1px solid rgba(99,140,255,.38); border-radius:11px;
  background:linear-gradient(135deg,rgba(20,26,51,.94),rgba(19,26,55,.82)); box-shadow:0 0 16px rgba(59,130,246,.08),inset 0 1px rgba(255,255,255,.025);
  cursor:pointer; transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi:hover,
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi.is-active { transform:translateY(-1px); border-color:#60A5FA; box-shadow:0 0 20px rgba(59,130,246,.25),inset 0 0 16px rgba(59,130,246,.07); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi:focus-visible { outline:2px solid #2DD4BF; outline-offset:2px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-top { position:absolute; top:6px; right:7px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-icon { width:18px; height:18px; flex-basis:18px; color:#93C5FD; background:rgba(59,130,246,.16); font-size:10px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-value { margin:8px 0 0; color:#fff; font-size:22px; line-height:1.05; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-label { margin-top:3px; color:#AAB4CF; font-size:11px; line-height:1.1; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-change { display:block; position:absolute; right:8px; bottom:6px; max-width:57%; overflow:hidden; color:#2DD4BF; font-size:9px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-change.is-positive { color:#2DD4BF; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-change.is-negative { color:#F87171; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-change.is-neutral { color:#8E9AB8; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-decision {
  height:36px; min-height:36px; box-sizing:border-box; align-items:center; overflow:hidden; margin:0; padding:5px 10px; gap:8px;
  border:1px solid rgba(45,212,191,.36); border-radius:9px; color:#D6E7FF; background:linear-gradient(90deg,rgba(45,212,191,.1),rgba(59,130,246,.08));
  box-shadow:0 0 14px rgba(45,212,191,.06); font-size:12px; line-height:1.2;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-decision strong { color:#2DD4BF; font-size:10px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid {
  display:grid; grid-template-columns:repeat(var(--chart-columns,4),minmax(0,1fr)); grid-template-rows:repeat(var(--chart-rows,2),minmax(0,1fr));
  align-items:stretch; gap:8px; width:100%; height:100%; min-height:0; overflow:hidden;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid > .sd-chart-panel.is-wide { grid-column:span 2; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel {
  display:flex; flex-direction:column; min-width:0; min-height:0; height:100%; overflow:hidden; padding:8px; border:1px solid rgba(99,140,255,.35);
  border-radius:12px; background:rgba(20,26,51,.88); box-shadow:0 0 16px rgba(59,130,246,.075),inset 0 1px rgba(255,255,255,.025); transition:border-color .2s ease,box-shadow .2s ease;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel.is-kpi-related { border-color:#2DD4BF; box-shadow:0 0 22px rgba(45,212,191,.22),inset 0 0 16px rgba(45,212,191,.04); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel.is-kpi-related .chart-bar,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel.is-kpi-related .chart-line,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel.is-kpi-related .chart-donut,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel.is-kpi-related .sales-rank-track i { filter:drop-shadow(0 0 5px rgba(45,212,191,.65)); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-title { flex:0 0 auto; margin:0 0 2px; color:#fff; font-size:14px; line-height:1.2; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container > div { flex:1 1 auto; min-height:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg { flex:1 1 auto; width:100%; height:100%; min-height:0; margin:0; overflow:visible; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg text { fill:#AAB4CF; font-family:Inter,Arial,sans-serif; font-size:11px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-grid { stroke:rgba(170,180,207,.14); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-axis { stroke:rgba(170,180,207,.35); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-click { transition:opacity .2s ease,filter .2s ease; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-click:hover { filter:drop-shadow(0 0 6px rgba(96,165,250,.72)); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-click.is-selected { filter:drop-shadow(0 0 6px rgba(96,165,250,.86)); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-click.is-dimmed { opacity:.18; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .chart-donut { stroke:#141A33; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend { justify-content:center; gap:7px 11px; margin:0; padding:0 2px; color:#AAB4CF; font-size:9px; line-height:1.15; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend span { min-width:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend i { width:7px; height:7px; flex:0 0 7px; border-radius:50%; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-list { display:flex; flex:1 1 auto; flex-direction:column; justify-content:space-evenly; gap:3px; min-height:0; height:100%; overflow:hidden; padding:2px 0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-row { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(40px,1fr) minmax(65px,.72fr); align-items:center; gap:6px; min-height:0; color:#E8EDFA; font-size:10px; cursor:pointer; transition:opacity .18s ease,filter .18s ease; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-row:hover { filter:drop-shadow(0 0 5px rgba(96,165,250,.5)); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-row.is-selected,
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row.is-selected { filter:drop-shadow(0 0 6px rgba(96,165,250,.84)); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-row.is-dimmed { opacity:.18; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-name { overflow:hidden; color:#CAD3EA; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-track { display:block; position:relative; height:9px; overflow:hidden; border-radius:999px; background:rgba(170,180,207,.1); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-track i { display:block; height:100%; border-radius:999px; box-shadow:0 0 9px rgba(59,130,246,.28); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-value { overflow:hidden; color:#EAF1FF; font-size:10px; font-weight:750; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-region-list .sales-rank-name { font-weight:750; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-bubble { animation:salesBubbleIn .55s cubic-bezier(.2,.75,.25,1) both; transform-origin:center; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-list { display:flex; flex:1 1 auto; flex-direction:column; justify-content:space-evenly; gap:5px; min-height:0; height:100%; padding:2px 0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row { min-width:0; cursor:pointer; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row.is-dimmed { opacity:.18; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row:hover { filter:drop-shadow(0 0 5px rgba(239,68,68,.48)); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-head { display:flex; align-items:center; justify-content:space-between; gap:6px; color:#FCA5A5; font-size:10px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-head b { overflow:hidden; color:#E5EAF7; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-negative-track { display:block; position:relative; height:11px; margin-top:3px; border-radius:5px; background:rgba(170,180,207,.08); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-negative-track::before { content:""; position:absolute; top:0; bottom:0; left:70%; width:1px; background:rgba(255,255,255,.5); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-negative-track i { position:absolute; top:2px; right:30%; display:block; height:7px; border-radius:5px 0 0 5px; background:linear-gradient(90deg,#B91C1C,#EF4444); box-shadow:0 0 8px rgba(239,68,68,.28); transform-origin:right center; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-negative-track strong { position:absolute; top:0; color:#FFF; font-size:8px; font-weight:850; line-height:11px; white-space:nowrap; text-shadow:0 1px 3px #7F1D1D; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-empty { border-color:rgba(99,140,255,.34); color:#AAB4CF; background:rgba(20,26,51,.72); }
@keyframes salesGrowX { from { transform:scaleX(.05); opacity:.55; } to { transform:scaleX(1); opacity:1; } }
@keyframes salesBubbleIn { from { transform:scale(.42); opacity:.3; } to { transform:scale(1); opacity:1; } }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-track i,
#service-dashboard-overlay[data-dashboard="sales"] .sales-negative-track i { animation:salesGrowX .65s cubic-bezier(.2,.75,.25,1) both; }
@media (min-width:1200px) {
  #service-dashboard-overlay[data-dashboard="sales"] .sd-report { grid-template-rows:18px 54px 72px 36px minmax(0,1fr); }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel { grid-template-columns:repeat(5,minmax(0,1fr)) minmax(185px,1.15fr) auto; }
}
@media (min-width:721px) and (max-width:1199px) {
  #service-dashboard-overlay[data-dashboard="sales"] #service-dashboard-dialog { width:96vw; height:94vh; max-height:94vh; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; height:auto; overflow:visible; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid > .sd-chart-panel.is-wide { grid-column:span 2; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-report { display:block; overflow:auto; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel { grid-template-columns:repeat(3,minmax(0,1fr)); height:auto; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-title { display:none; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-grid { margin:8px 0; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel { min-height:230px; }
}
@media (max-width:720px) {
  #service-dashboard-overlay[data-dashboard="sales"] #service-dashboard-dialog { color:#fff; background:linear-gradient(145deg,#0B1020,#1B1446); }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-active-filters { flex-wrap:wrap; flex:0 0 auto; max-height:54px; overflow:auto; white-space:normal; padding:6px 9px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-body-layout { min-height:0; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-page-nav { border-bottom-color:rgba(99,140,255,.24); background:#11172E; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-workspace { overflow:auto; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-report { display:block; overflow:visible; padding:9px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-toolbar-row { margin:0 0 8px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-toggle { color:#DBEAFE; border-color:rgba(99,140,255,.38); background:#17203C; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel { display:none; height:auto; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:14px 12px calc(14px + env(safe-area-inset-bottom)); border-color:rgba(99,140,255,.34); background:#11172E; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel.is-drawer-open { display:grid; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-title { display:flex; grid-column:1/-1; color:#AAB4CF; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-drawer-close { color:#EAF1FF; border-color:rgba(99,140,255,.3); background:#1A2341; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-field.has-buttons { grid-column:1/-1; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-button-slicer { flex-wrap:wrap; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-reset { min-height:38px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; height:auto; min-height:0; margin:0 0 9px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi { height:90px; padding:8px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-value { margin-top:11px; font-size:19px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-label { font-size:10px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-change { left:8px; right:auto; bottom:6px; max-width:calc(100% - 16px); font-size:9px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-decision { height:auto; min-height:48px; margin-bottom:9px; padding:8px; font-size:11px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid { grid-template-columns:1fr; grid-template-rows:auto; gap:9px; height:auto; overflow:visible; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid > .sd-chart-panel.is-wide { grid-column:auto; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel { min-height:225px; height:auto; padding:10px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container { min-height:185px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg { height:170px; min-height:170px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-rank-list { min-height:160px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-loss-list { min-height:160px; }
}
@media (prefers-reduced-motion:reduce) {
  #service-dashboard-overlay[data-dashboard="sales"] .sales-rank-track i,
  #service-dashboard-overlay[data-dashboard="sales"] .sales-negative-track i,
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-bubble { animation:none; transform:none; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-kpi,
  #service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel { transition:none; }
}

/* Expanded Sales report visuals. These rules stay scoped to dashboard 01. */
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-sparkline {
  position:absolute; left:8px; bottom:4px; display:block; width:58px; height:12px; overflow:hidden; opacity:.88; pointer-events:none;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-sparkline svg { display:block; width:100%; height:100%; overflow:visible; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-change { max-width:calc(100% - 76px); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout {
  display:flex; flex:1 1 auto; align-items:stretch; gap:3px; width:100%; height:100%; min-height:0; overflow:hidden;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout > .sales-svg { flex:0 1 68%; width:68%; height:100%; min-width:0; overflow:visible; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend {
  display:flex; flex:1 1 32%; flex-direction:column; justify-content:center; gap:4px; min-width:0; overflow:hidden; padding:3px 0;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row {
  display:grid; grid-template-columns:7px minmax(0,1fr) auto; align-items:center; gap:4px; min-width:0; padding:4px 3px;
  border:1px solid transparent; border-radius:5px; color:#C5CDE2; background:transparent; font:600 9px Inter,Arial,sans-serif; text-align:left; cursor:pointer;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row:hover,
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row.is-selected { border-color:rgba(96,165,250,.5); color:#fff; background:rgba(59,130,246,.15); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row.is-dimmed { opacity:.3; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row i { width:7px; height:7px; border-radius:50%; background:var(--legend-color); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row b { color:#EAF1FF; font-size:8px; font-weight:750; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-percent-label { fill:#F8FAFF!important; font-size:10px!important; font-weight:800; paint-order:stroke; stroke:#141A33; stroke-width:2.4px; stroke-linejoin:round; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-leader { fill:none; stroke:#AAB4CF; stroke-opacity:.7; stroke-width:1; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-center-label { fill:#AAB4CF!important; font-size:8px!important; font-weight:700; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-center-value { fill:#fff!important; font-size:10px!important; font-weight:850; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-axis-note { fill:#AAB4CF!important; font-size:10px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-month-label { fill:#C5CDE2!important; font-size:11px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-region-label { fill:#E5EAF7!important; font-size:11px!important; font-weight:750; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-label { fill:#F8FAFF!important; font-size:10px!important; font-weight:800; paint-order:stroke; stroke:#11172E; stroke-width:3px; stroke-linejoin:round; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-value { fill:#D6E0F4!important; font-size:9px!important; font-weight:650; paint-order:stroke; stroke:#11172E; stroke-width:3px; stroke-linejoin:round; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-leader { fill:none; stroke:#D6E0F4; stroke-opacity:.75; stroke-width:1; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-export-label { fill:#AAB4CF!important; font-size:8px!important; font-weight:800; letter-spacing:.1em; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-export-value { fill:#fff!important; font-size:11px!important; font-weight:800; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-side-title { fill:#EAF1FF!important; font-size:10px!important; font-weight:800; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-side-label { fill:#C5CDE2!important; font-size:9px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-side-value { fill:#F8FAFF!important; font-size:9px!important; font-weight:750; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-credit { fill:#7583A2!important; font-size:7px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-scale { fill:#AAB4CF!important; font-size:8px!important; font-weight:700; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-loading {
  display:flex; flex:1 1 auto; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:0; padding:14px; border:1px dashed rgba(99,140,255,.28); border-radius:10px; color:#DCE8FF; text-align:center;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-loading b { color:#F8FAFF; font-size:13px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-loading small { max-width:310px; color:#AAB4CF; font-size:11px; line-height:1.5; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-spinner { width:24px; height:24px; border:2px solid rgba(96,165,250,.23); border-top-color:#2DD4BF; border-radius:50%; animation:salesMapSpin .8s linear infinite; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-retry { padding:6px 10px; border:1px solid rgba(45,212,191,.48); border-radius:7px; color:#D8FFFA; background:rgba(45,212,191,.1); font:700 11px Inter,Arial,sans-serif; cursor:pointer; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-list { display:flex; flex:1 1 auto; flex-direction:column; justify-content:space-evenly; gap:7px; min-height:0; height:100%; overflow:hidden; padding:4px 2px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(38px,1fr) minmax(58px,.75fr); align-items:center; gap:7px; min-width:0; color:#FCA5A5; font-size:10px; cursor:pointer; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row:hover { filter:drop-shadow(0 0 5px rgba(239,68,68,.48)); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row.is-selected { filter:drop-shadow(0 0 6px rgba(239,68,68,.7)); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row.is-dimmed { opacity:.2; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-name { min-width:0; overflow:hidden; color:#E5EAF7; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-track { position:relative; display:block; height:11px; overflow:hidden; border-radius:999px; background:rgba(170,180,207,.1); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-track::after { content:""; position:absolute; top:0; right:0; bottom:0; width:1px; background:rgba(255,255,255,.68); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-track i { position:absolute; top:2px; right:0; display:block; height:7px; border-radius:5px 0 0 5px; background:linear-gradient(90deg,#B91C1C,#EF4444); box-shadow:0 0 8px rgba(239,68,68,.28); transform-origin:right center; animation:salesGrowX .65s cubic-bezier(.2,.75,.25,1) both; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-value { overflow:hidden; color:#FCA5A5; font-size:10px; font-weight:800; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-treemap-name { fill:#fff!important; font-size:10px!important; font-weight:800; pointer-events:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-treemap-value { fill:#E5EAF7!important; font-size:9px!important; font-weight:700; pointer-events:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-scatter-bubble { transition:filter .2s ease,opacity .2s ease; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-scatter-bubble:hover { filter:drop-shadow(0 0 7px rgba(96,165,250,.85)); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-pareto-line { stroke:#F97316; stroke-width:2.3; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-radar-axis { fill:#CBD5E1!important; font-size:9px!important; font-weight:750; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-stack-label { fill:#fff!important; font-size:9px!important; font-weight:800; pointer-events:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-bullet-value { fill:#fff!important; font-size:10px!important; font-weight:800; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-bullet-caption { fill:#AAB4CF!important; font-size:9px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-target-label { fill:#FDBA74!important; font-size:9px!important; font-weight:800; paint-order:stroke; stroke:#11172E; stroke-width:3px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table-wrap { display:flex; flex:1 1 auto; min-height:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table { width:100%; height:100%; border-collapse:collapse; table-layout:fixed; color:#DCE5F8; font:10px Inter,Arial,sans-serif; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th { padding:5px 4px; border-bottom:1px solid rgba(170,180,207,.23); color:#AAB4CF; font-size:9px; font-weight:750; text-align:left; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table td { padding:3px 4px; border-bottom:1px solid rgba(170,180,207,.11); font-size:10px; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(1) { width:33%; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(2) { width:19%; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(3) { width:14%; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(4) { width:13%; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(5) { width:21%; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table tbody tr { cursor:pointer; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table tbody tr:hover,
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table tbody tr.is-selected { background:rgba(59,130,246,.15); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table tbody tr.is-dimmed { opacity:.22; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table td:first-child { overflow:hidden; color:#EAF1FF; font-weight:700; text-overflow:ellipsis; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table td:nth-child(2),
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table td:nth-child(4) { font-variant-numeric:tabular-nums; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table .is-positive { color:#2DD4BF; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table .is-negative { color:#F87171; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-table-spark { display:block; width:58px; max-width:100%; height:18px; }
@keyframes salesMapSpin { to { transform:rotate(360deg); } }
@media (max-width:720px) {
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout > .sales-svg { flex-basis:66%; width:66%; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend { flex-basis:34%; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row { font-size:10px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-loading { min-height:180px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table { min-width:520px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table-wrap { overflow:auto; }
}
@media (prefers-reduced-motion:reduce) {
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-spinner,
  #service-dashboard-overlay[data-dashboard="sales"] .sales-loss-track i { animation:none; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-scatter-bubble { transition:none; }
}

/* Sales dashboard readability: keep SVG labels at their requested on-screen size. */
#service-dashboard-overlay[data-dashboard="sales"] {
  background:#040A18;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-title {
  color:#fff;
  font-size:15px;
  font-weight:800;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-label {
  font-size:13px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg text {
  fill:#C7D0E6;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-axis-note,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-month-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-region-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-side-title,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-side-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-scale,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-credit,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-export-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-bullet-caption,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-radar-axis {
  fill:#C7D0E6!important;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-percent-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-value,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-export-value,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-map-side-value,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-stack-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-bullet-value,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-target-label {
  font-weight:800;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-treemap-name {
  font-weight:800;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-donut-center-label {
  font-size:12px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend {
  color:#C7D0E6;
  font-size:12px;
  line-height:1.25;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row {
  color:#C7D0E6;
  font-size:12px;
  line-height:1.2;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row b {
  font-size:12px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-row,
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-head,
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-value,
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-value {
  font-size:12px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table {
  color:#DCE5F8;
  font-size:13px;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th {
  color:#C7D0E6;
  font-size:12px;
  font-weight:800;
}
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table td {
  font-size:13px;
  line-height:1.2;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-sales-tooltip {
  position:fixed;
  z-index:10070;
  display:block;
  max-width:min(360px,calc(100vw - 20px));
  padding:8px 10px;
  border:1px solid rgba(96,165,250,.58);
  border-radius:8px;
  color:#F3F6FF;
  background:#0B1020;
  box-shadow:0 10px 28px rgba(0,0,0,.42),0 0 14px rgba(59,130,246,.18);
  font:600 13px/1.4 Inter,Arial,sans-serif;
  overflow-wrap:anywhere;
  pointer-events:none;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .12s ease,transform .12s ease;
}
#service-dashboard-overlay[data-dashboard="sales"] .sd-sales-tooltip.is-visible {
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion:reduce) {
  #service-dashboard-overlay[data-dashboard="sales"] .sd-sales-tooltip { transition:none; }
}

/* Sales-only measured layout: keep the report grid compact and give the SVGs the panel's true size. */
#service-dashboard-overlay[data-dashboard="sales"] .sd-body-layout { grid-template-columns:160px minmax(0,1fr); }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-nav { margin:8px 0 8px 8px; padding:10px 8px; gap:4px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-nav-title { margin:0 5px 6px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-tab { min-height:36px; padding:7px 7px; font-size:14px; line-height:1.15; white-space:normal; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-report { grid-template-rows:16px 48px 68px 32px minmax(0,1fr); gap:4px; padding:6px 8px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-toolbar-row { min-height:16px; gap:8px; margin:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-page-heading { flex:0 0 auto; font-size:14px; line-height:16px; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-filters { flex:1 1 auto; width:auto; min-width:0; min-height:20px; height:20px; gap:5px; overflow-x:auto; padding:0 4px; border:0; background:transparent; scrollbar-width:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-filters::-webkit-scrollbar { display:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-label { font-size:9px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-empty { font-size:9px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-active-chip { gap:4px; padding:2px 6px; font-size:9px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel { height:48px; gap:5px; padding:4px 6px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel .sd-filter-field > label { margin-bottom:2px; font-size:9px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-filter-select { min-height:26px; padding:2px 18px 2px 6px; font-size:10px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-slicer-button { min-height:26px; padding:2px 5px; font-size:9px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-reset { min-height:26px; padding:3px 6px; font-size:9px; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi-grid { height:68px; min-height:68px; gap:7px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-kpi { height:68px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-decision { height:32px; min-height:32px; padding:4px 8px; font-size:11px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-visual-grid { grid-template-rows:repeat(2,minmax(0,1fr)); gap:8px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-panel { box-sizing:border-box; padding:10px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-title { margin-bottom:3px; font-size:15px; line-height:1.15; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container { min-width:0; min-height:0; width:100%; height:100%; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container > .sales-legend { flex:0 0 18px; min-height:18px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend { font-size:12px; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-axis-note,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-month-label { font-size:12px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout { grid-template-columns:minmax(0,45fr) minmax(0,55fr); gap:0; width:100%; height:100%; min-height:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout > .sales-svg { width:100%; height:100%; min-width:0; min-height:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend { min-width:0; min-height:0; gap:3px; overflow:hidden; padding:1px 3px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row { grid-template-columns:9px minmax(0,1fr) auto; gap:4px; min-height:25px; padding:2px 3px; font-size:12px; line-height:1; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row span { min-width:0; overflow:hidden; text-overflow:clip; white-space:nowrap; word-break:normal; overflow-wrap:normal; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row b { font-size:12px; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-center-value { font-size:16px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-layout { grid-template-columns:minmax(0,var(--sales-map-width)) minmax(0,1fr); gap:8px; width:100%; height:100%; min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend { gap:4px; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row { grid-template-columns:9px minmax(0,1fr) auto; gap:5px; min-height:25px; padding:2px 4px; font-size:12px; line-height:1; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row span { min-width:0; overflow:hidden; text-overflow:clip; white-space:nowrap; word-break:normal; overflow-wrap:normal; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row b { font-size:12px; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-list { gap:4px; padding:2px 0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-row { grid-template-columns:minmax(0,1.5fr) minmax(38px,.9fr) minmax(72px,.9fr); gap:6px; min-height:32px; font-size:12px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-name { display:-webkit-box; min-width:0; overflow:hidden; color:#DCE5F8; font-size:12px; line-height:1.15; white-space:normal; word-break:normal; overflow-wrap:normal; text-overflow:clip; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-track { min-width:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-rank-value { min-width:0; overflow:visible; font-size:12px; text-overflow:clip; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-list { gap:5px; padding:2px 0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row { grid-template-columns:minmax(0,1fr) minmax(74px,.42fr); grid-template-rows:minmax(0,1fr) 9px; gap:2px 8px; min-height:42px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-name { display:-webkit-box; min-width:0; overflow:hidden; color:#E5EAF7; font-size:12px; line-height:1.15; text-overflow:clip; white-space:normal; word-break:normal; overflow-wrap:normal; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-track { grid-column:1/-1; grid-row:2; min-width:0; height:9px; margin:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-track i { right:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-value { min-width:0; overflow:visible; font-size:12px; text-align:right; text-overflow:clip; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table-wrap { overflow:hidden; }

@media (min-width:1200px) {
  #service-dashboard-overlay[data-dashboard="sales"] .sd-body-layout { grid-template-columns:160px minmax(0,1fr); }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-report { grid-template-rows:16px 48px 68px 32px minmax(0,1fr); }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-filter-panel { grid-template-columns:repeat(5,minmax(68px,1fr)) minmax(160px,1.15fr) auto; }
}
@media (max-width:720px) {
  #service-dashboard-overlay[data-dashboard="sales"] .sd-page-tab { font-size:12px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sd-active-filters { flex:0 0 auto; width:100%; height:auto; min-height:22px; flex-wrap:nowrap; overflow-x:auto; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout { grid-template-columns:minmax(0,45fr) minmax(0,55fr); }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row { min-height:23px; gap:3px; padding-right:2px; padding-left:2px; font-size:11px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-layout { grid-template-columns:minmax(0,var(--sales-map-width)) minmax(0,1fr); gap:5px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row { grid-template-columns:7px minmax(0,1fr) auto; gap:3px; padding:2px; font-size:10px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row b { grid-column:auto; font-size:10px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table { min-width:0; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(1) { width:34%; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(2) { width:20%; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(3) { width:15%; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(4) { width:13%; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th:nth-child(5) { width:18%; }
}

/* Responsive, panel-sized Sales dashboard charts. */
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container { min-width:0; width:100%; height:100%; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg { display:block; flex:1 1 auto; width:100%; height:100%; min-width:0; min-height:0; margin:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg text { font-family:Inter,Arial,sans-serif; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-axis-note,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-month-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-region-label,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-radar-axis,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-bullet-value,
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-svg .sales-stack-label { font-size:12px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-title { font-size:15px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend { display:flex; flex:0 0 20px; align-items:center; justify-content:center; flex-wrap:wrap; gap:3px 12px; min-height:20px; overflow:hidden; font-size:12px; line-height:1.15; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-legend i { width:8px; height:8px; flex-basis:8px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout { display:grid; grid-template-columns:minmax(0,45fr) minmax(0,55fr); align-items:stretch; gap:0; width:100%; height:100%; min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout > .sales-svg { display:block; width:100%; height:100%; min-width:0; min-height:0; overflow:visible; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend { display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; min-height:0; overflow:hidden; padding:2px 0; scrollbar-width:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:6px; min-height:28px; padding:3px 5px; border-radius:6px; text-align:left; font-size:12px; line-height:1.15; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row span { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:clip; word-break:normal; overflow-wrap:normal; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row b { font-size:12px; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-center-value { fill:#fff!important; font-size:16px!important; font-weight:850; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-donut-center-label { display:none; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-layout { display:grid; grid-template-columns:minmax(0,var(--sales-map-width)) minmax(0,1fr); align-items:stretch; gap:8px; width:100%; height:100%; min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-layout > .sales-svg { display:block; width:100%; height:100%; min-width:0; min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend { display:flex; flex-direction:column; justify-content:center; gap:5px; min-width:0; min-height:0; overflow:hidden; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:6px; min-width:0; min-height:26px; padding:3px 5px; border:1px solid rgba(170,180,207,.13); border-radius:7px; color:#DCE5F8; background:rgba(255,255,255,.025); font:600 12px/1.15 Inter,Arial,sans-serif; text-align:left; cursor:pointer; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row:hover,
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row.is-selected { border-color:#60A5FA; background:rgba(59,130,246,.14); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row.is-dimmed { opacity:.24; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row i { width:8px; height:8px; border-radius:50%; background:var(--region-color); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row span { min-width:0; white-space:normal; overflow-wrap:anywhere; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row b { color:#F8FAFF; font-size:12px; font-weight:800; white-space:nowrap; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-radar-layout { display:flex; flex:1 1 auto; flex-direction:column; width:100%; height:100%; min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-radar-layout > .sales-svg { display:block; flex:1 1 auto; width:100%; height:calc(100% - 20px); min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-radar-layout > .sales-legend { flex:0 0 20px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-heatmap-layout { display:flex; flex:1 1 auto; flex-direction:column; width:100%; height:100%; min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-heatmap-layout > .sales-svg { display:block; flex:1 1 auto; width:100%; height:calc(100% - 20px); min-height:0; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-heatmap-legend { display:flex; flex:0 0 20px; align-items:center; justify-content:center; gap:8px; color:#C7D0E6; font:600 12px/1 Inter,Arial,sans-serif; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-heatmap-legend i { width:96px; height:8px; border-radius:999px; background:linear-gradient(90deg,#16284C,#1D4ED8,#3B82F6,#2DD4BF); }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-row { grid-template-columns:minmax(0,1.15fr) minmax(52px,1fr) minmax(74px,.55fr); gap:8px; min-height:34px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-name { display:-webkit-box; min-width:0; overflow:hidden; color:#E5EAF7; font-size:12px; font-weight:650; line-height:1.2; white-space:normal; overflow-wrap:anywhere; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-loss-value { font-size:12px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-treemap-name { font-size:12px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-treemap-value { font-size:11px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-pareto-label { fill:#C7D0E6!important; font-size:11px!important; }
#service-dashboard-overlay[data-dashboard="sales"] .sd-chart-container > .sales-legend { flex:0 0 20px; min-height:20px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table { font-size:13px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table th { font-size:12px; }
#service-dashboard-overlay[data-dashboard="sales"] .sales-product-table td { font-size:13px; }
@media (max-width:720px) {
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-layout { grid-template-columns:minmax(0,45fr) minmax(0,55fr); gap:0; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-donut-legend-row { gap:4px; padding-right:2px; padding-left:2px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-layout { grid-template-columns:minmax(0,var(--sales-map-width)) minmax(0,1fr); gap:5px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend { gap:3px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row { grid-template-columns:7px minmax(0,1fr); gap:4px; padding:2px; font-size:11px; }
  #service-dashboard-overlay[data-dashboard="sales"] .sales-map-legend-row b { grid-column:2; font-size:11px; }
}

/* The standalone Sales report is supplied as-is inside its own iframe. */
.sales-standalone-overlay {
  position:fixed;
  z-index:10100;
  inset:0;
  display:grid;
  place-items:center;
  padding:0;
  background:rgba(3,8,18,.94);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
.sales-standalone-overlay.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.sales-standalone-dialog {
  width:96vw;
  height:94vh;
  max-width:96vw;
  max-height:94vh;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:0 28px 90px rgba(0,0,0,.42);
  transform:translateY(8px) scale(.985);
  transition:transform .22s ease;
}
.sales-standalone-overlay.is-open .sales-standalone-dialog { transform:translateY(0) scale(1); }
.sales-standalone-dialog iframe { display:block; width:100%; height:100%; border:0; background:transparent; }
@media (max-width:720px) {
  .sales-standalone-dialog { width:100vw; height:100vh; max-width:100vw; max-height:100vh; }
}
@media (prefers-reduced-motion:reduce) {
  .sales-standalone-overlay,
  .sales-standalone-dialog { transition:none; }
}
