.report-page-head {
  align-items: end;
  margin-bottom: 20px;
}

.report-page-head .workflow-back {
  margin-bottom: 12px;
}

.report-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-pickers label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
}

.report-pickers .item-select {
  min-height: 42px;
  max-width: min(18rem, 100%);
}

.report-context,
.report-card-head,
.report-record-summary,
.report-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.report-context {
  padding: 13px 0;
  border-block: 1px solid var(--line);
}

.report-context > div:first-child {
  min-width: 0;
}

.report-context .eyebrow {
  margin-bottom: 2px;
}

.report-context strong {
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.report-context small {
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--muted);
}

.report-context-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(.report-scope, .report-period, .report-series, .report-detail-filter) {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid #dae4eb;
  border-radius: 7px;
  background: #edf3f6;
}

:is(.report-scope, .report-period, .report-series, .report-detail-filter) button {
  min-height: 37px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #37566b;
  font-size: .83rem;
  font-weight: 650;
}

:is(.report-scope, .report-period, .report-series, .report-detail-filter) button:hover {
  background: #dfe9f0;
}

:is(.report-scope, .report-period, .report-series, .report-detail-filter) button[aria-pressed="true"] {
  border-color: #c3d4df;
  background: #fff;
  color: #183b56;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 24px;
  border-block: 1px solid var(--line);
  background: #fff;
}

.report-kpi {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 97px;
  padding: 12px clamp(10px, 1.6vw, 18px);
  border: 0;
  border-top: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: start;
}

.report-kpi + .report-kpi {
  border-inline-start: 1px solid var(--line);
}

.report-kpi:first-child {
  border-top-color: #467b72;
  background: #edf5f2;
}

.report-kpi:hover,
.report-kpi[aria-pressed="true"] {
  border-top-color: #3f6a8b;
  background: #e9f1f7;
}

.report-kpi:focus-visible {
  z-index: 1;
  outline-offset: -3px;
}

.report-kpi > span {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 690;
}

.report-kpi > strong {
  font-size: clamp(1.5rem, 2.9vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1.06;
}

.report-kpi[data-tone="red"] > strong { color: #8d3d43; }
.report-kpi[data-tone="amber"] > strong { color: #795017; }
.report-kpi[data-tone="green"] > strong { color: #276053; }

.report-kpi small {
  color: var(--muted);
  font-size: .79rem;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr);
  align-items: stretch;
  gap: clamp(12px, 2vw, 24px);
}

.report-chart-stack {
  display: grid;
  align-content: start;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
}

.report-card,
.reports-exports {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-card-head {
  align-items: start;
  margin-bottom: 13px;
}

.report-card-head h2 {
  color: var(--ink);
  font-size: clamp(1.01rem, 1.6vw, 1.2rem);
  line-height: 1.22;
  letter-spacing: -.018em;
}

.report-card-head p,
.report-card .hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.report-chart-total {
  color: #20516e;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.report-trend {
  display: flex;
  flex-direction: column;
}

.report-series {
  margin-bottom: 10px;
}

.report-trend-plot {
  display: grid;
  grid-template-columns: repeat(var(--report-days, 14), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  flex: 1 0 auto;
  gap: clamp(2px, .4vw, 7px);
  min-height: clamp(155px, 23vw, 278px);
  padding-inline: 4px;
  border-bottom: 1px solid #9db4c5;
  border-left: 1px solid #d6e2e9;
  background: repeating-linear-gradient(to top, var(--report-chart-bg, #f9fbfc) 0, var(--report-chart-bg, #f9fbfc) calc(25% - 1px), #dce6ed calc(25% - 1px), #dce6ed 25%);
}

.report-day {
  display: flex;
  grid-row: 1;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.report-day:hover,
.report-day:focus-visible,
.report-day[aria-pressed="true"] {
  background: #e4eef5;
}

.report-day:focus-visible {
  z-index: 1;
  outline-offset: -2px;
}

.report-day-bar {
  width: min(100%, 32px);
  height: var(--report-height, 0%);
  border-radius: 3px 3px 0 0;
  background: #3a6b84;
}

.report-day[aria-pressed="true"] .report-day-bar {
  background: #a9652d;
}

.report-trend-axis {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .77rem;
}

.report-chart-empty {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  margin-bottom: 6px;
  border: 1px dashed #d4e0e8;
  background: #f7fafb;
  color: var(--muted);
  text-align: center;
}

.report-data {
  margin-top: 11px;
}

.report-data summary,
.reports-exports summary {
  width: fit-content;
  min-height: 42px;
  padding-block: 9px;
  color: #224e68;
  cursor: pointer;
  font-weight: 680;
}

.report-data table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.report-data :is(td, th) {
  padding: 7px;
  border-top: 1px solid var(--line);
  text-align: start;
}

.report-data th button,
.report-pagination button {
  min-height: 39px;
  padding: 5px 9px;
  border: 1px solid #cbd9e4;
  border-radius: 5px;
  background: #fff;
  color: #254d67;
}

.report-bars {
  display: grid;
  gap: 3px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 10px;
  min-height: 47px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  text-align: start;
}

.report-bar-row:hover,
.report-bar-row[aria-pressed="true"] {
  border-color: #dce6ee;
  background: #f1f6f9;
}

.report-bar-row strong {
  color: #294b61;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.report-bar-label {
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 660;
  line-height: 1.25;
}

.report-bar-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 550;
}

.report-meter {
  --report-meter-color: #627d90;
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: #e4edf3;
}

.report-meter[data-tone="green"] { --report-meter-color: #39796d; }
.report-meter[data-tone="blue"] { --report-meter-color: #3a6b84; }
.report-meter[data-tone="red"] { --report-meter-color: #a45156; }
.report-meter[data-tone="amber"] { --report-meter-color: #a77129; }

.report-meter::-webkit-progress-bar { background: #e4edf3; }
.report-meter::-webkit-progress-value { background: var(--report-meter-color); }
.report-meter::-moz-progress-bar { background: var(--report-meter-color); }

.report-records,
.reports-exports {
  margin-top: clamp(16px, 2.3vw, 27px);
}

.report-record-summary {
  justify-content: start;
  gap: 4px 12px;
  margin: 15px 0 6px;
  color: var(--muted);
  font-size: .88rem;
}

.report-record-summary > strong {
  color: var(--ink);
}

.report-record-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.report-record-row {
  border-top: 1px solid var(--line);
}

.report-record-row > :is(a, div) {
  display: flex;
  align-items: center;
  gap: 7px 12px;
  min-height: 45px;
  padding: 9px 7px;
  color: var(--ink);
  text-decoration: none;
}

.report-record-row > a:hover {
  background: #f2f7fa;
}

.report-record-copy {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-record-copy small {
  display: block;
}

.report-record-arrow {
  flex: 0 0 auto;
  color: #456b85;
}

.report-pagination {
  justify-content: end;
  margin-top: 12px;
  color: var(--muted);
  font-size: .84rem;
}

.reports-exports {
  padding-block: 8px;
}

.reports-exports .report-list {
  margin-top: 8px;
}

.reports-exports .report-row {
  gap: 8px;
}

.reports-exports .btn {
  min-height: 42px;
}

.signin-preview.signin-preview-picker {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

.signin-preview-roles {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.signin-preview-roles .signin-preview-role {
  justify-content: start;
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border-color: #c9d8e3;
  background: #f4f8fb;
  color: #1f425b;
  font-size: .875rem;
  text-align: start;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.signin-preview-roles .signin-preview-role:hover {
  background: #e7f0f7;
}

.signin-preview-otp {
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.signin-preview-otp-label {
  width: fit-content;
  min-height: 44px;
  padding: 9px 0;
  color: #24516e;
  cursor: pointer;
  font-weight: 670;
}

.signin-preview-otp .signin-demo-note {
  margin-bottom: 9px;
}

@media (max-width: 920px) {
  .report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 650px) {
  .report-page-head {
    align-items: start;
  }

  .report-pickers {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5.4rem, .5fr);
    width: 100%;
    min-width: 0;
  }

  .report-pickers label:only-child,
  .report-pickers:has(> label:nth-child(3)) label:has([data-change="project"]) {
    grid-column: 1 / -1;
  }

  .report-pickers .item-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
  }

  .report-context > div:first-child,
  .report-context-controls {
    width: 100%;
    min-width: 0;
  }

  .report-context small {
    display: block;
    margin-inline-start: 0;
  }

  :is(.report-scope, .report-period, .report-series, .report-detail-filter) {
    display: grid;
    width: 100%;
    min-width: 0;
  }

  :is(.report-scope, .report-period) {
    grid-template-columns: repeat(auto-fit, minmax(min(4.25rem, 100%), 1fr));
  }

  .report-scope:has(> button:nth-child(3)) {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(min(6rem, 100%), 1.32fr);
  }

  :is(.report-series, .report-detail-filter) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.report-series, .report-detail-filter) button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .report-kpi:nth-child(3) {
    border-inline-start: 0;
  }

  .report-kpi:nth-child(n + 3) {
    box-shadow: inset 0 1px var(--line);
  }

  .report-chart-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(.report-scope, .report-period, .report-series, .report-detail-filter) button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 5px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .report-card .report-trend-scale {
    margin-block: 0 6px;
  }

  .report-record-row > :is(a, div) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .report-record-copy {
    grid-column: 1;
  }

  .report-record-row :is(.badge, .report-outcome) {
    grid-column: 1;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .report-record-arrow {
    grid-area: 1 / 2;
  }

  .reports-exports .report-copy .stack {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .reports-exports .report-row > .btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 350px) {
  .signin-preview-roles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.reports-page[data-report-appearance="steel"] {
  --report-card-bg: #edf3f7;
  --report-chart-bg: #f3f7fa;
  --report-performance-bg: #173449;
  --report-performance-border: #233f55;
  --report-performance-ink: #f7fbff;
  --report-performance-muted: #d3e1eb;
  --report-performance-divider: #ffffff26;
  --report-performance-track: #3a566b;
  --report-performance-fill: #86d1bd;
  --report-performance-hover: #23475d;
}

.reports-page[data-report-appearance="steel"] .report-context-controls > div {
  background: #e4edf3;
}

.reports-page[data-report-appearance="steel"] :is(.report-card:not(.report-performance), .reports-exports) {
  background: var(--report-card-bg);
}

.reports-page[data-report-appearance="steel"] .report-kpis {
  background: #e6eef4;
}

.report-performance {
  --performance-label: minmax(9rem, .85fr);
  --performance-chart: minmax(0, 1.55fr);
  --performance-value: minmax(6.5rem, .45fr);
  min-width: 0;
  padding: clamp(16px, 2.3vw, 28px);
  margin-top: 21px;
  border: 1px solid var(--report-performance-border, var(--line));
  border-radius: var(--radius);
  background: var(--report-performance-bg, #fff);
  color: var(--report-performance-ink, var(--ink));
}

.report-performance-head {
  margin-bottom: 17px;
}

.report-performance-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -.035em;
  line-height: 1.13;
}

.report-performance-head p,
.report-performance .hint {
  margin: 5px 0 0;
  color: var(--report-performance-muted, var(--muted));
  font-size: .875rem;
}

.report-performance-axis,
.report-performance-row {
  display: grid;
  grid-template-columns: var(--performance-label) var(--performance-chart) var(--performance-value);
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  padding-inline: 6px;
}

.report-performance-axis {
  margin: 0 0 5px;
  color: var(--report-performance-muted, var(--muted));
  font-size: .75rem;
}

.report-performance-axis > :first-child {
  grid-column: 2;
}

.report-performance-scale {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.report-performance-bars {
  display: grid;
}

.report-performance-row {
  min-height: 52px;
  padding-block: 8px;
  border: 0;
  border-top: 1px solid var(--report-performance-divider, var(--line));
  background: transparent;
  color: inherit;
  text-align: start;
}

.report-performance-row:hover,
.report-performance-row[aria-pressed="true"] {
  background: var(--report-performance-hover, #edf4f8);
}

.report-performance-row:focus-visible {
  outline-color: #e1b66d;
  outline-offset: -2px;
}

.report-performance-label {
  min-width: 0;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.report-performance-label small,
.report-performance-denominator {
  display: block;
  color: var(--report-performance-muted, var(--muted));
  font-size: .77rem;
  font-weight: 540;
}

.report-performance-value {
  min-width: 0;
  text-align: end;
}

.report-performance-value strong {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.report-performance-meter {
  display: block;
  grid-column: auto;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 3px;
  background: var(--report-performance-track, #e2ebf1);
}

.report-performance-meter::-webkit-progress-bar {
  background: var(--report-performance-track, #e2ebf1);
}

.report-performance-meter::-webkit-progress-value {
  background: var(--report-performance-fill, #39796d);
}

.report-performance-meter::-moz-progress-bar {
  background: var(--report-performance-fill, #39796d);
}

.report-performance-meter:not(progress) {
  background: color-mix(in srgb, var(--report-performance-track, #e2ebf1) 65%, transparent);
}

.report-outcome {
  flex: 0 1 auto;
  max-width: 44%;
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf2f6;
  color: #425e73;
  font-size: .78rem;
  font-weight: 650;
}

.report-outcome[data-outcome="met"] {
  background: #e2f2eb;
  color: #285548;
}

.report-trend .report-trend-scale {
  margin: 0 0 5px;
  font-size: .77rem;
}

@media (max-width: 650px) {
  .report-performance-axis,
  .report-performance-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(43%, 9rem));
    gap: 6px 10px;
  }

  .report-performance-axis > :first-child {
    grid-column: 1 / -1;
  }

  .report-performance-label {
    display: contents;
  }

  .report-performance-label > strong {
    grid-area: 1 / 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .report-performance-label > small {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .report-performance-value {
    grid-column: 2;
    grid-row: 1;
    overflow-wrap: anywhere;
  }

  .report-performance-meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .report-performance-row {
    padding-block: 9px 11px;
  }
}
