:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --panel: #ffffff;
  --panel-soft: #eef5f2;
  --ink: #18211f;
  --muted: #64706d;
  --line: #d9e1df;
  --green: #176b57;
  --green-2: #2f9c7b;
  --blue: #255c99;
  --amber: #c78221;
  --red: #b94d45;
  --shadow: 0 16px 40px rgba(30, 48, 44, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 14px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 0 12px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

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

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.side-nav nav {
  display: grid;
  gap: 8px;
  padding-top: 22px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.nav-item.active {
  background: #e5f0eb;
  border-color: #cfe1db;
  color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  color: currentColor;
}

.app-content {
  min-width: 0;
}

button,
input,
select {
  font: inherit;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(16px, 4vw, 44px) 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

h3 {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

.subtitle {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.header-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.nav-item:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
}

.export-menu {
  position: relative;
}

.export-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: none;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.export-menu.open .export-options {
  display: grid;
  animation: menuIn 160ms ease both;
}

.export-options button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
}

.export-options button:hover {
  background: var(--panel-soft);
  color: var(--green);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  display: grid;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 44px) 40px;
}

.filter-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.filter-note strong {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

label small {
  min-height: 16px;
  color: var(--green);
  font-size: 11px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select,
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

select {
  height: 88px;
  padding: 6px;
}

input {
  padding: 0 12px;
}

.search {
  grid-column: span 1;
}

.status-strip,
.kpi-grid,
.insights,
.chart-layout,
.view {
  display: grid;
  gap: 14px;
}

.view {
  display: none;
  animation: viewIn 220ms ease both;
}

.view.active {
  display: grid;
}

.is-hidden {
  display: none !important;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-strip div,
.kpi-card,
.insights article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-strip div {
  padding: 14px 16px;
}

.status-strip strong {
  display: block;
  font-size: 19px;
}

.status-strip span {
  color: var(--muted);
  font-size: 13px;
}

.board-period {
  padding: 16px 18px;
}

.period-mode-control {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.period-summary div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.period-summary strong,
.period-summary span {
  display: block;
}

.period-summary strong {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.period-summary span {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.period-control-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2.2fr);
  gap: 20px;
  align-items: start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: #c7d9d3;
  color: var(--ink);
}

.chip.active {
  border-color: #cfe1db;
  background: #e5f0eb;
  color: var(--green);
}

.week-chip-row {
  align-items: stretch;
}

.week-chip {
  display: grid;
  gap: 3px;
  min-width: 148px;
  min-height: 54px;
  padding: 8px 11px;
  text-align: left;
}

.week-chip strong,
.week-chip span {
  display: block;
}

.week-chip strong {
  color: currentColor;
  font-size: 12px;
}

.week-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-card {
  padding: 16px;
  min-height: 126px;
}

.kpi-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.kpi-value {
  margin: 10px 0 8px;
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.kpi-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.insights article {
  padding: 17px 18px;
}

.insights p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.panel {
  padding: 18px;
  min-width: 0;
}

.panel.wide {
  grid-column: span 2;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.panel-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.segmented-control button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.active {
  background: #ffffff;
  color: var(--green);
  box-shadow: 0 1px 5px rgba(30, 48, 44, 0.1);
}

.segmented-control.compact button {
  min-width: 42px;
  padding: 0 9px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.chart-legend .swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.chart-legend .line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 3px solid currentColor;
}

.chart-legend .line.dashed {
  border-top-style: dashed;
}

.chart-legend .revenue {
  background: #cfeadf;
}

.chart-legend .comparison {
  border: 1px solid #c7d9ee;
  background: #dceafa;
}

.chart-legend .cost {
  background: #b7d0ec;
}

.chart-legend .logistics {
  background: #e8aaa3;
}

.chart-legend .amber {
  color: #c78221;
}

.chart-legend .blue {
  color: #255c99;
}

.chart-legend .red {
  color: #b94d45;
}

.chart-legend .pipeline-unassigned {
  background: #f2c9a7;
}

.chart-legend .pipeline-assigned {
  background: #dceafa;
}

.chart-legend .pipeline-planned {
  background: #c7d9ee;
}

.chart-legend .pipeline-not-delivered {
  background: #9fbfe2;
}

.chart-legend .pipeline-on-time {
  background: #cfeadf;
}

.chart-legend .pipeline-late {
  background: #e8aaa3;
}

.chart-legend .pipeline-delivered {
  background: #cfeadf;
}

.pipeline-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.pipeline-kpi {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.pipeline-kpi-unassigned {
  border-top: 4px solid #f2c9a7;
}

.pipeline-kpi-assigned {
  border-top: 4px solid #dceafa;
}

.pipeline-kpi-planned {
  border-top: 4px solid #c7d9ee;
}

.pipeline-kpi-notDelivered {
  border-top: 4px solid #9fbfe2;
}

.pipeline-kpi-onTime {
  border-top: 4px solid #cfeadf;
}

.pipeline-kpi-late {
  border-top: 4px solid #e8aaa3;
}

.pipeline-kpi-openOverdue {
  border-top: 4px solid #9fbfe2;
}

.pipeline-kpi-delivered {
  border-top: 4px solid #cfeadf;
}

.pipeline-kpi strong,
.pipeline-kpi span {
  display: block;
}

.pipeline-kpi strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.pipeline-kpi span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
}

.chart-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
}

.chart-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.rail-metric {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rail-metric:last-child {
  border-bottom: 0;
}

.rail-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rail-value {
  margin-top: 5px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.rail-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.buyer-rank-list {
  gap: 14px;
}

.buyer-rank-row {
  grid-template-columns: minmax(100px, 1fr) minmax(74px, auto);
}

.buyer-rank-row .bar-note {
  grid-column: 1 / -1;
  margin-top: -6px;
}

.buyer-bars .bar-row {
  grid-template-columns: minmax(160px, 1fr) 84px 84px;
}

.buyer-bars .bar-track {
  grid-column: 1 / -1;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 70px;
  gap: 10px;
  align-items: center;
}

.bar-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eceb;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.bar-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.bar-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

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

.leader-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.leader-list li {
  padding-left: 4px;
}

.leader-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.leader-main span:first-child {
  min-width: 0;
  overflow: hidden;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-main span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.article-leader-list {
  gap: 12px;
  padding-left: 24px;
}

.article-leader-card {
  min-width: 0;
}

.leader-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.leader-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eceb;
}

.leader-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9fd6c5, #6f9bcc);
}

.movement-panel {
  padding-bottom: 18px;
}

.table-summary {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

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

.movement-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.movement-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.movement-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.movement-value {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.movement-delta {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.movement-card.up .movement-delta {
  background: #e2f2eb;
  color: var(--green);
}

.movement-card.down .movement-delta {
  background: #f7e6e3;
  color: #a8423b;
}

.movement-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.movement-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-top: 14px;
  padding-top: 4px;
  border-bottom: 1px solid var(--line);
}

.movement-spark span {
  flex: 1;
  min-width: 4px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #9fd6c5, #6f9bcc);
  opacity: 0.72;
}

.movement-spark span:last-child {
  opacity: 1;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.movement-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.movement-list {
  display: grid;
  gap: 12px;
}

.movement-row {
  min-width: 0;
}

.movement-row-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.movement-row-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-row-main span {
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.movement-row.down .movement-row-main span {
  color: #a8423b;
}

.movement-row-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.watch-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.watch-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.driver-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.driver-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.driver-card p {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.driver-list {
  display: grid;
  gap: 12px;
}

.driver-row {
  min-width: 0;
}

.driver-row-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.driver-row-main span {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.driver-row-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-row-main em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.driver-row.down .driver-row-main em {
  color: #a8423b;
}

.driver-row-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f6f5;
  color: #3f4b48;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #293331;
  font-size: 13px;
}

td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.muted-cell {
  color: var(--muted);
}

.print-report {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

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

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

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

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

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

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

  .period-control-grid {
    grid-template-columns: 1fr;
  }

  .period-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .side-nav {
    position: static;
    height: auto;
    padding: 12px 16px;
  }

  .brand {
    min-height: auto;
    padding: 0 0 12px;
  }

  .side-nav nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 12px;
  }

  .nav-item {
    justify-content: center;
    min-height: 44px;
  }

  .app-header {
    display: grid;
  }

  .header-actions {
    width: 100%;
  }

  .button {
    flex: 1;
  }

  .filters,
  .status-strip,
  .kpi-grid,
  .insights,
  .chart-layout,
  .leader-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .driver-row-main {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .driver-row-main em {
    grid-column: 2;
  }

  .pipeline-kpis {
    grid-template-columns: 1fr;
  }

  .period-control-grid {
    grid-template-columns: 1fr;
  }

  .period-summary {
    grid-template-columns: 1fr;
  }

  .panel.wide {
    grid-column: span 1;
  }

  .chart-with-rail {
    grid-template-columns: 1fr;
  }

  .chart-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  select {
    height: 74px;
  }

  .panel-header {
    display: grid;
  }

  .panel-controls {
    justify-content: flex-start;
  }

  .buyer-bars .bar-row {
    grid-template-columns: minmax(120px, 1fr) 70px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .app-shell {
    display: none;
  }

  .print-report {
    display: block;
    padding: 24px;
    color: #111111;
  }

  .print-report h1 {
    font-size: 26px;
  }

  .print-report table {
    min-width: 0;
    width: 100%;
  }

  .print-report th,
  .print-report td {
    padding: 7px;
    font-size: 11px;
  }
}
