:root {
  --ink: #1a2530;
  --muted: #65717d;
  --line: #d9e0e5;
  --line-strong: #c4ced6;
  --paper: #ffffff;
  --canvas: #f4f6f7;
  --navy: #1a2530;
  --red: #c8102e;
  --green: #14734a;
  --amber: #a86400;
  --blue: #176a8e;
  --teal: #257c82;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  border-radius: 4px;
}

button {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.topbar {
  height: 62px;
  padding: 0 28px;
  border-bottom-color: #e1e6ea;
  box-shadow: 0 1px 3px rgba(23, 36, 50, .06);
}

.topbar strong {
  font-size: 15px;
}

.top-actions .quiet {
  height: 34px;
}

.freshness {
  border-left-color: var(--green);
  color: #44515e !important;
}

.tabs {
  top: 62px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--navy);
}

.tabs button {
  height: 46px;
  padding: 0 15px;
  font-size: 13px;
}

.tabs button:hover {
  background: #263847;
  color: #fff;
}

.tabs button.active {
  background: #111d27;
  border-bottom-color: var(--red);
}

.cost-nav-link {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 15px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #dce6ec;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.cost-nav-link:hover,
.cost-nav-link:focus-visible {
  background: #263847;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-select {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  border-bottom: 3px solid transparent;
}

.nav-select.active {
  border-bottom-color: var(--red);
  background: #111d27;
}

.nav-select select {
  width: 142px;
  height: 43px;
  border: 0;
  border-radius: 0;
  padding: 0 28px 0 13px;
  background: #1a2530;
  color: #dce6ec;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nav-select select:hover,
.nav-select select:focus {
  background: #263847;
  color: #fff;
}

main {
  max-width: 1720px;
  padding: 18px 28px 56px;
}

.filter-shell {
  margin-bottom: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.quick-ranges,
.segmented,
.green-categories {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
}

.quick-ranges button,
.segmented button,
.green-categories button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #53606c;
  background: transparent;
  white-space: nowrap;
  font-size: 12px;
}

.quick-ranges button:hover,
.segmented button:hover,
.green-categories button:hover {
  background: #eef2f4;
  color: var(--ink);
}

.quick-ranges button.active,
.segmented button.active,
.green-categories button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.filter-toggle {
  height: 32px;
  flex: 0 0 auto;
}

.filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 0;
  background: transparent;
}

.filters label {
  color: #4f5d69;
}

.filters input,
.filters select {
  border-color: var(--line-strong);
}

.filters input:hover,
.filters select:hover {
  border-color: #8d9aa5;
}

.filters .advanced-filter {
  display: none;
}

.filters.show-advanced .advanced-filter {
  display: grid;
}

.filters.show-advanced .check {
  display: flex;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 7px;
}

.filter-actions button {
  white-space: nowrap;
}

.view-head {
  align-items: center;
  gap: 20px;
  margin: 20px 0 13px;
}

.view-head h1 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.view-head p {
  max-width: 860px;
  font-size: 13px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #b9d7c8;
  border-radius: 999px;
  background: #edf7f1;
  color: #0d633d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.live-chip::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.live-chip.incomplete {
  border-color: #e2c48f;
  background: #fff6e7;
  color: #825100;
}

.live-chip.incomplete::before {
  background: var(--amber);
}

.kpis.executive-kpis {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}

.executive-kpi {
  min-height: 128px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.executive-kpi.good {
  border-left-color: var(--green);
}

.executive-kpi.warn {
  border-left-color: var(--amber);
}

.executive-kpi.bad {
  border-left-color: var(--red);
}

.executive-kpi > span:first-child {
  color: #52606c;
  font-size: 12px;
  font-weight: 700;
}

.executive-kpi strong {
  margin: 7px 0 5px;
  color: #111d27;
  font-size: clamp(21px, 1.7vw, 29px);
  line-height: 1.05;
}

.executive-kpi small {
  margin-top: 5px;
  font-size: 11px;
}

.kpi-drill {
  position: relative;
  width: 100%;
  height: auto;
  text-align: left;
}

.kpi-drill:hover {
  border-color: #9eacb7;
  background: #f8fafb;
}

.kpi-drill > i {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: var(--blue);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.attention-list {
  display: grid;
  gap: 7px;
}

.attention-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 16px;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 56px;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.attention-item:hover {
  border-color: #9eacb7;
  background: #f7f9fa;
}

.attention-item > i {
  width: 8px;
  height: 30px;
  background: #778590;
}

.attention-item.critical > i {
  background: var(--red);
}

.attention-item.high > i {
  background: var(--amber);
}

.attention-item.medium > i {
  background: var(--blue);
}

.attention-item span {
  min-width: 0;
}

.attention-item span b,
.attention-item span small {
  display: block;
}

.attention-item span b {
  font-size: 12px;
}

.attention-item span small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-item > strong {
  min-width: 42px;
  text-align: right;
  font-size: 16px;
}

.attention-item > em {
  color: var(--blue);
  font-size: 19px;
  font-style: normal;
}

.attention-clear {
  display: grid;
  min-height: 160px;
  place-content: center;
  text-align: center;
}

.attention-clear b {
  color: var(--green);
}

.attention-clear span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sync-state {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-state.good {
  border-color: #a9d2bd;
  background: #edf7f1;
  color: #0d633d;
}

.sync-state.warn {
  border-color: #e2c48f;
  background: #fff6e7;
  color: #825100;
}

.sync-health dl {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.sync-health dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.sync-health dt {
  color: var(--muted);
  font-size: 11px;
}

.sync-health dd {
  margin: 0;
  color: #35434f;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.sync-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.sync-counts span {
  display: grid;
  min-width: 0;
  padding: 7px 5px;
  background: #eef2f4;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.sync-counts b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
}

.sync-health > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.focus-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #b9cad4;
  border-radius: 3px;
  background: #eef4f6;
  color: #294557;
  font-size: 11px;
  font-weight: 700;
}

.focus-chip span {
  padding: 0 9px;
}

.focus-chip button {
  width: 31px;
  height: 30px;
  padding: 0;
  border-left: 1px solid #b9cad4;
  border-radius: 0;
  background: transparent;
  color: #294557;
  font-size: 18px;
}

.table-action {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #9fb3bf;
  color: var(--blue);
  background: #fff;
  font-size: 10px;
}

.table-action:hover {
  background: #eef5f7;
}

.delta {
  display: inline-flex;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.delta.up {
  color: #0e6941;
  background: #e9f5ee;
}

.delta.down {
  color: #a20f27;
  background: #faebee;
}

.delta.neutral {
  color: #697682;
  background: #eef1f3;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.panel {
  border-color: var(--line);
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(23, 36, 50, .035);
}

.panel h2 {
  color: var(--ink);
  font-size: 16px;
}

.panel h3 {
  margin: 0 0 10px;
  color: #596672;
  font-size: 12px;
  text-transform: uppercase;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 2px 0 0;
}

.panel-head > b {
  color: #3f4d59;
  font-size: 12px;
  white-space: nowrap;
}

.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.insight {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: start;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid #c8d5dd;
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  background: #eef3f5;
}

.insight span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.insight p {
  margin: 0;
  color: #344452;
  font-size: 13px;
}

.line-shell {
  width: 100%;
  height: 270px;
  overflow: hidden;
}

.line-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.grid-lines line {
  stroke: #e6eaed;
  stroke-width: 1;
}

.trend-area {
  fill: #e4f1f4;
}

.trend-line {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.line-chart circle {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 3;
}

.chart-interactive,
.chart-point {
  cursor: help;
  transition: filter .14s ease, opacity .14s ease, transform .14s ease;
}

[data-chart-period] {
  cursor: pointer;
}

.chart-interactive:hover,
.chart-interactive:focus-visible {
  filter: brightness(.96);
  outline: 2px solid rgba(23, 106, 142, .3);
  outline-offset: 3px;
}

.chart-point:focus {
  outline: none;
}

.line-chart .point-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  pointer-events: all;
}

.line-chart .point-dot {
  pointer-events: none;
  transition: r .14s ease, fill .14s ease;
}

.chart-point:hover .point-dot,
.chart-point:focus .point-dot {
  fill: var(--teal);
  r: 7px;
}

.chart-tooltip {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 4px;
  width: min(270px, calc(100vw - 16px));
  padding: 11px 12px;
  border: 1px solid #cad4da;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 36, 50, .18);
  color: var(--ink);
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-tooltip b {
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
}

.chart-tooltip strong {
  font-size: 18px;
}

.chart-tooltip span {
  color: #53626e;
  font-size: 12px;
}

.chart-tooltip small {
  padding-top: 4px;
  border-top: 1px solid #e8ecef;
  color: #687782;
  font-size: 10px;
}

.line-chart text {
  fill: #71808c;
  font-size: 10px;
}

.single-period {
  display: grid;
  place-items: center;
  min-height: 245px;
  color: var(--muted);
}

.single-period > div {
  display: flex;
  align-items: end;
  width: 54px;
  background: #e8eef1;
}

.single-period i {
  width: 100%;
  background: var(--teal);
}

.single-period strong {
  color: var(--ink);
  font-size: 24px;
}

.single-period small {
  font-size: 11px;
}

.rank-bars {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #66737e;
  font-size: 10px;
  font-weight: 800;
}

.rank-copy {
  min-width: 0;
}

.rank-copy b {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: #34424e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy > div {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e9edef;
}

.rank-copy i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
}

.rank-row strong {
  color: #3b4955;
  font-size: 11px;
  white-space: nowrap;
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr;
  align-items: center;
  gap: 24px;
  min-height: 250px;
}

.donut {
  display: grid;
  place-items: center;
  width: min(100%, 180px);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
}

.donut > div {
  display: grid;
  place-items: center;
  width: 61%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(26, 37, 48, .06);
}

.donut strong {
  align-self: end;
  font-size: 20px;
}

.donut span {
  align-self: start;
  color: var(--muted);
  font-size: 10px;
}

.donut-legend {
  display: grid;
  gap: 9px;
}

.donut-legend > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #52606c;
  font-size: 11px;
}

.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.donut-legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend b {
  color: var(--ink);
}

.split-rank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stack-list {
  display: grid;
  gap: 13px;
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1.4fr) 52px;
  align-items: center;
  gap: 12px;
}

.stack-row > div:first-child {
  min-width: 0;
}

.stack-row b,
.stack-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-row b {
  color: #33424f;
  font-size: 12px;
}

.stack-row span {
  color: var(--muted);
  font-size: 10px;
}

.stack {
  display: flex;
  height: 11px;
  overflow: hidden;
  border-radius: 3px;
  background: #ebeff2;
}

.stack i {
  height: 100%;
}

.receipt { background: var(--green); }
.issue { background: var(--red); }
.transfer { background: var(--blue); }

.stack-row > strong {
  text-align: right;
  font-size: 11px;
}

.positive { color: var(--green); }
.negative { color: var(--red); }
.warning { color: var(--amber); }

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.stack-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stack-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.stack-legend b {
  margin-left: auto;
  color: #52606c;
}

.green-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.green-categories button.active {
  background: var(--green);
  border-color: var(--green);
}

.green-metric {
  flex: 0 0 auto;
}

.green-summary {
  border-left-color: var(--green);
}

.green-highlight {
  border-left-color: var(--amber);
}

.green-product .rank-copy i {
  background: var(--green);
}

.metric-note {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 11px;
}

.suggestion-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.suggestion-controls label {
  display: grid;
  min-width: min(360px, 48vw);
  gap: 5px;
  color: #4f5d69;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.suggestion-controls select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.profile-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.score-badge {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #edf1f3;
  color: var(--ink);
  text-align: center;
  font-size: 14px;
}

.score-badge.good {
  border-color: #a9d2bd;
  background: #edf7f1;
  color: #0d633d;
}

.score-badge.warn {
  border-color: #e2c48f;
  background: #fff6e7;
  color: #825100;
}

.score-badge.bad {
  border-color: #e3a8b3;
  background: #fff0f3;
  color: #9c1029;
}

.suggestion-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.suggestion-list li {
  position: relative;
  padding: 10px 10px 10px 30px;
  border-bottom: 1px solid var(--line);
  color: #40505c;
  line-height: 1.45;
}

.suggestion-list li::before {
  position: absolute;
  top: 12px;
  left: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--green);
  border-radius: 50%;
  content: "";
}

.merma-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  background: #fff8ec;
  color: #624c27;
  font-size: 12px;
  line-height: 1.5;
}

.suggestion-methodology {
  margin-top: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #4f5d69;
  font-size: 12px;
}

.suggestion-methodology b {
  color: var(--ink);
}

.suggestion-methodology p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.empty.compact {
  min-height: 190px;
  padding: 32px 16px;
  border: 0;
}

.table-wrap {
  border-color: var(--line);
  border-radius: 3px;
}

th {
  background: #edf1f3;
  color: #40505e;
  font-size: 10px;
  text-transform: uppercase;
}

td {
  color: #40505c;
}

tbody tr:hover {
  background: #eef5f6;
}

@media (max-width: 1380px) {
  .kpis.executive-kpis {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .filters {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 1020px) {
  main {
    padding: 16px 18px 48px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }

  .donut-layout {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 58px;
    padding: 0 12px;
  }

  .nav-select {
    flex: 0 0 auto;
  }

  .tabs {
    top: 58px;
    padding: 0 4px;
  }

  main {
    padding: 10px 10px 40px;
  }

  .filter-toolbar,
  .green-controls,
  .suggestion-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion-controls label {
    width: 100%;
    min-width: 0;
  }

  .profile-heading {
    align-items: flex-start;
  }

  .filter-toggle {
    width: 100%;
  }

  .quick-ranges button {
    flex: 1 0 auto;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filters label:nth-child(3),
  .filters label:nth-child(4),
  .filter-actions {
    grid-column: 1 / -1;
  }

  .filter-actions button {
    flex: 1;
  }

  .view-head {
    display: flex;
    align-items: start;
    flex-direction: column;
  }

  .view-head h1 {
    font-size: 21px;
  }

  .kpis.executive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-kpi {
    min-height: 120px;
    padding: 13px;
  }

  .executive-kpi strong {
    font-size: 21px;
  }

  .attention-item {
    grid-template-columns: 7px minmax(0, 1fr) auto 12px;
    gap: 8px;
  }

  .attention-item span small {
    white-space: normal;
  }

  .sync-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .panel {
    padding: 14px;
  }

  .panel-head {
    display: block;
  }

  .panel-head > b {
    display: block;
    margin-top: 5px;
  }

  .line-shell {
    height: 230px;
    overflow-x: auto;
  }

  .line-chart {
    min-width: 620px;
  }

  .split-rank {
    grid-template-columns: 1fr;
  }

  .donut-layout {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 150px;
  }

  .stack-row {
    grid-template-columns: minmax(110px, 1fr) 52px;
  }

  .stack-row .stack {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stack-row > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .green-categories,
  .segmented {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .kpis.executive-kpis {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .filters label,
  .filters label:nth-child(3),
  .filters label:nth-child(4),
  .filter-actions {
    grid-column: auto;
  }
}

@media print {
  .filter-shell,
  .green-controls {
    display: none !important;
  }
}
