.eds-shell:has(.reports-dashboard) {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.eds-shell:has(.reports-dashboard) .eds-companies,
.eds-shell:has(.reports-dashboard) .eds-display.client-portal-display {
  height: 100%;
}

.client-portal-display-body:has(.reports-dashboard) {
  container-type: inline-size;
  container-name: cp-display;
  min-height: 0;
  overflow: hidden;
}

.eds-reports-host[hidden] {
  display: none !important;
}

.eds-reports-host:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.reports-dashboard {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  container-name: rd-dash;
  color: #f2f5f8;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.rd-status:empty { display: none; }
.rd-status {
  flex: 0 0 auto;
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(242, 245, 248, 0.72);
}

.rd-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.rd-toolbar .rd-scope-bar { flex: 1 1 auto; min-width: 0; }

.rd-reset-layout {
  appearance: none;
  flex: 0 0 auto;
  align-self: flex-end;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #232629;
  color: #f2f5f8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  padding: 0 10px;
}

.rd-reset-layout:hover,
.rd-reset-layout:focus-visible {
  color: #59b7de;
  border-color: #59b7de;
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

.rd-layout {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--rd-left, 62fr)) 12px minmax(0, var(--rd-right, 38fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.rd-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 8px;
}

.rd-col-main { gap: 0; }
.rd-col-main .rd-chart { flex: var(--rd-chart, 63) 1 0; min-height: 168px; }
.rd-col-main .rd-history { flex: var(--rd-history, 37) 1 0; min-height: 148px; }
.rd-history .rd-title-row,
.rd-history .rd-pager { flex: 0 0 auto; }

.rd-chart,
.rd-history,
.rd-side {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reports-dashboard h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f2f5f8;
}

.rd-scope-bar.cp-all-projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  align-items: end;
  width: 100%;
  margin: 0 0 8px;
}

.rd-scope-bar .cp-all-projects-filter {
  display: grid;
  align-content: end;
  width: auto;
  max-width: none;
  min-width: 0;
  flex: 1 1 8rem;
  gap: 2px;
}

.rd-scope-bar [data-reports-control="metric"] {
  flex: 16 1 14rem;
  min-width: 12rem;
  max-width: 16rem;
}

.rd-scope-bar [data-reports-control="records"] {
  flex: 12 1 11rem;
  min-width: 10rem;
  max-width: 13rem;
}

.rd-multi {
  position: relative;
  width: auto;
  height: auto;
  max-width: none;
  color: rgba(242, 245, 248, 0.7);
  font-size: 12px;
}

.rd-multi[data-reports-multi="projectTypeIds"] {
  flex: 14 1 12rem;
  min-width: 10rem;
  max-width: 15rem;
}

.rd-multi[data-reports-multi="years"] {
  flex: 9 1 8rem;
  min-width: 7rem;
  max-width: 10rem;
}

.rd-multi[data-reports-multi="months"] {
  flex: 11 1 10rem;
  min-width: 8rem;
  max-width: 12rem;
}

.rd-multi[data-reports-multi="companyIds"] {
  flex: 20 1 16rem;
  min-width: 12rem;
  max-width: 22rem;
}

.rd-multi[data-reports-multi="designerIds"],
.rd-multi[data-reports-multi="salesPersonIds"] {
  flex: 16 1 14rem;
  min-width: 11rem;
  max-width: 18rem;
}

.rd-multi-button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #2a3036;
  color: #f2f5f8;
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
}

.rd-multi-caption { color: rgba(242, 245, 248, 0.72); flex: 0 0 auto; }
.rd-multi-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.rd-multi-panel {
  box-sizing: border-box;
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  min-width: max(100%, 12rem);
  max-width: min(42rem, calc(100cqi - 16px));
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1c2025;
  color: #f2f5f8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.rd-multi[data-reports-multi="years"] .rd-multi-panel { min-width: max(100%, 8rem); max-width: min(16rem, calc(100cqi - 16px)); }
.rd-multi[data-reports-multi="months"] .rd-multi-panel { min-width: max(100%, 14rem); max-width: min(28rem, calc(100cqi - 16px)); }
.rd-multi[data-reports-multi="projectTypeIds"] .rd-multi-panel { min-width: max(100%, 14rem); max-width: min(24rem, calc(100cqi - 16px)); }
.rd-multi[data-reports-multi="companyIds"] .rd-multi-panel,
.rd-multi[data-reports-multi="salesPersonIds"] .rd-multi-panel,
.rd-multi[data-reports-multi="designerIds"] .rd-multi-panel {
  min-width: max(100%, 22rem);
  max-width: min(42rem, calc(100cqi - 16px));
}

.rd-multi[data-option-cols="2"] .rd-multi-panel {
  width: min(36rem, max-content);
  max-width: min(36rem, calc(100cqi - 16px));
}

.rd-multi[data-option-cols="3"] .rd-multi-panel {
  width: min(42rem, max-content);
  max-width: min(42rem, calc(100cqi - 16px));
}

.rd-multi-panel.is-constrained { overflow-y: auto; }
.rd-multi-panel[hidden] { display: none; }

.rd-multi-actions { display: flex; gap: 8px; margin-bottom: 6px; }
.rd-multi-actions button {
  appearance: none;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #232629;
  color: #f2f5f8;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.rd-multi-options {
  display: grid;
  grid-template-columns: repeat(var(--rd-option-cols, 1), minmax(8rem, max-content));
  gap: 2px 10px;
  overflow-x: hidden;
}

.rd-multi-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 28px;
  margin: 0;
  padding: 4px 6px;
  border-radius: 6px;
  color: #f2f5f8;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

.rd-multi-option span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.rd-multi-option input {
  accent-color: #59b7de;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.rd-multi-button:hover,
.rd-multi-actions button:hover,
.rd-multi-option:hover { border-color: #59b7de; }
.rd-multi-option:hover,
.rd-multi-option:has(input:checked) { background: rgba(89, 183, 222, 0.16); }
.rd-multi-option:has(input:focus-visible) { background: rgba(89, 183, 222, 0.1); }

.rd-multi-button:focus-visible,
.rd-multi-panel button:focus-visible,
.rd-multi-option input:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .rd-multi.is-open .rd-multi-panel { animation: rd-multi-in 140ms ease; }
  .rd-multi-button,
  .rd-multi-option,
  .rd-multi-actions button,
  .rd-reset-layout {
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  }
}

@keyframes rd-multi-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@container rd-dash (max-width: 720px) {
  .rd-scope-bar [data-reports-control],
  .rd-scope-bar .rd-multi {
    flex: 1 1 calc(50% - 8px);
    max-width: 100%;
    min-width: min(100%, 8rem);
  }
  .rd-multi-panel,
  .rd-multi[data-option-cols="2"] .rd-multi-panel,
  .rd-multi[data-option-cols="3"] .rd-multi-panel,
  .rd-multi[data-reports-multi="companyIds"] .rd-multi-panel,
  .rd-multi[data-reports-multi="salesPersonIds"] .rd-multi-panel,
  .rd-multi[data-reports-multi="designerIds"] .rd-multi-panel {
    min-width: 0;
    width: min(100cqi - 16px, 42rem);
    max-width: calc(100cqi - 16px);
  }
}

.reports-dashboard .cp-all-projects-filter {
  min-width: 0;
  max-width: 100%;
  color: rgba(242, 245, 248, 0.7);
}

.reports-dashboard .rd-scope-bar > [data-reports-control="metric"] {
  flex: 16 1 14rem;
  min-width: 12rem;
  max-width: 16rem;
}

.reports-dashboard .rd-scope-bar > [data-reports-control="records"] {
  flex: 12 1 11rem;
  min-width: 10rem;
  max-width: 13rem;
}

.reports-dashboard .cp-all-projects-filter select,
.reports-dashboard .cp-all-projects-filter input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #2a2e33;
  color: #f2f5f8;
  padding: 0 8px;
  font-size: 12px;
  color-scheme: dark;
}

.reports-dashboard .cp-all-projects-filter select:focus-visible,
.reports-dashboard .cp-all-projects-filter input:focus-visible,
.rd-text-btn:focus-visible,
.rd-log-btn:focus-visible,
.rd-advanced summary:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: 2px;
  border-color: #59b7de;
}

.rd-chart-plot {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.rd-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.rd-grid-h { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.rd-grid-v { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.rd-axis-line { stroke: rgba(242, 245, 248, 0.38); stroke-width: 1.15; }
.rd-line { fill: none; stroke: #f2f5f8; stroke-width: 2; }
.rd-dot { fill: #f2f5f8; stroke: #59b7de; stroke-width: 1.2; }
.rd-hit,
.rd-focus-halo { fill: none; }
.rd-focus-halo { stroke: #59b7de; stroke-width: 1; opacity: 0; }
.rd-chart-svg:focus,
.rd-point,
.rd-point:focus,
.rd-point:focus-visible { outline: none; }
.rd-point:focus-visible .rd-focus-halo { opacity: 1; }
.rd-point.is-selected .rd-dot { fill: #59b7de; stroke: #59b7de; }
.rd-value-bg { fill: #111315; stroke: none; }
.rd-value-guide { stroke: rgba(242, 245, 248, 0.85); stroke-width: 1; }
.rd-value { fill: #ffffff; font-size: 10px; font-weight: 700; pointer-events: none; }
.reports-dashboard.is-splitting,
.reports-dashboard.is-splitting * { user-select: none; }
.rd-axis,
.rd-axis-title,
.rd-empty { fill: rgba(242, 245, 248, 0.72); font-size: 11px; }
.rd-axis-minor { fill: rgba(242, 245, 248, 0.42); font-size: 9px; }
.rd-axis-title { font-size: 10px; letter-spacing: 0.3px; }

.rd-block-head p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(242, 245, 248, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-chart-summary {
  flex: 0 0 auto;
}

.rd-chart-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.rd-chart-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 6px 3px;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.rd-chart-metric:first-child { border-left: 0; }

.rd-chart-metric span,
.rd-chart-metric strong {
  text-align: center;
}

.rd-chart-metric span {
  font-size: 10px;
  line-height: 1.15;
  color: rgba(242, 245, 248, 0.72);
}

.rd-chart-metric strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: #f2f5f8;
}

.rd-chart-metric.rd-total strong { color: #59b7de; }

.rd-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.rd-title-row > h3 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.rd-advanced {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  pointer-events: none;
}

.rd-advanced[open] {
  grid-row: 1 / span 2;
}

.rd-advanced summary,
.rd-advanced form {
  pointer-events: auto;
}

.rd-advanced summary {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  cursor: pointer;
  list-style: none;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f5f8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0 8px;
  line-height: 26px;
}

.rd-advanced summary::-webkit-details-marker { display: none; }

.rd-advanced:not([open]) form {
  display: none;
}

.rd-errors .rd-advanced[open] form,
.rd-history .rd-advanced[open] form {
  display: grid;
  grid-column: 1 / 3;
  grid-row: 2;
  justify-self: stretch;
  align-self: stretch;
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 8px 8px 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #232629;
  gap: 6px;
}

.rd-errors {
  position: relative;
}

.rd-errors .rd-advanced[open] form {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  top: 40px;
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  width: auto;
  max-width: calc(100% - 16px);
  max-height: 280px;
  margin: 0;
  overflow: auto;
}

.rd-history {
  position: relative;
}

.rd-history .rd-advanced[open] form {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  top: 36px;
  grid-column: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: auto;
  max-width: calc(100% - 16px);
  max-height: 168px;
  margin: 0;
  overflow: auto;
}

.rd-table-scroll,
.rd-log,
.rd-errors .rd-advanced[open] form,
.rd-history .rd-advanced[open] form {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.rd-table-scroll::-webkit-scrollbar,
.rd-log::-webkit-scrollbar,
.rd-errors .rd-advanced[open] form::-webkit-scrollbar,
.rd-history .rd-advanced[open] form::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.rd-table-scroll::-webkit-scrollbar-thumb,
.rd-log::-webkit-scrollbar-thumb,
.rd-errors .rd-advanced[open] form::-webkit-scrollbar-thumb,
.rd-history .rd-advanced[open] form::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.rd-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.rd-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #f2f5f8;
}

.rd-table th,
.rd-table td {
  padding: 4px 8px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rd-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1c2025;
  color: rgba(242, 245, 248, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.rd-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

.rd-log {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.rd-log-btn {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-rows: 13px 13px;
  gap: 0 6px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 30px;
  text-align: left;
  font-size: 10px;
  color: #f2f5f8;
  white-space: nowrap;
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  padding: 2px;
  cursor: pointer;
}

.rd-log-btn span:nth-child(4) {
  grid-column: 1 / -1;
}

.rd-log li:nth-child(even) .rd-log-btn {
  background: rgba(255, 255, 255, 0.04);
}

.rd-log-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-log-btn:hover,
.rd-log-btn:focus {
  background: rgba(89, 183, 222, 0.12);
}

.rd-empty-row,
.rd-invoices p,
.rd-detail p {
  color: rgba(242, 245, 248, 0.66);
  font-size: 12px;
}

.rd-table .rd-empty-row td {
  white-space: normal;
}

.rd-split {
  position: relative;
  flex: 0 0 12px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  touch-action: none;
}

.rd-split::before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.22);
}

.rd-split-col { cursor: col-resize; }
.rd-split-col::before { width: 1px; top: 8px; bottom: 8px; left: 50%; }
.rd-split-row { cursor: row-resize; }
.rd-split-row::before { height: 1px; left: 8px; right: 8px; top: 50%; }

.rd-split:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: -2px;
}

.rd-errors-full {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rd-side {
  padding: 0;
  gap: 0;
  overflow: hidden;
  height: 100%;
}

.rd-tablist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #1c2025;
}

.rd-tab {
  appearance: none;
  margin: 0 0 -1px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: rgba(242, 245, 248, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 7px 14px 8px;
  cursor: pointer;
  box-shadow: none;
}

.rd-tab[aria-selected="true"] {
  background: #2a3036;
  color: #f2f5f8;
  border-color: rgba(255, 255, 255, 0.16);
  border-top: 2px solid #59b7de;
}

.rd-tab:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

.rd-tabpanel {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
}

.rd-tabpanel[hidden] { display: none !important; }

.rd-invoices {
  justify-content: flex-start;
}

.rd-invoices p { margin: 0; color: rgba(242, 245, 248, 0.78); }

.rd-pager {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.rd-text-btn {
  appearance: none;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f2f5f8;
  font-size: 11px;
  font-weight: 800;
  padding: 0 8px;
  cursor: pointer;
}

.rd-text-btn:disabled { opacity: 0.45; cursor: default; }

.rd-invoice-pdf-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.rd-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  vertical-align: middle;
}

.rd-icon-btn + .rd-icon-btn { margin-left: 2px; }

.rd-icon-btn .app-icon {
  width: 24px;
  height: 24px;
  transform: scale(1);
  transition: transform 160ms ease, filter 160ms ease;
}

.rd-icon-btn:hover .app-icon,
.rd-icon-btn:focus-visible .app-icon {
  transform: scale(1.08);
  filter: brightness(1.12);
}

.rd-icon-btn:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

.rd-icon-btn:disabled,
.rd-icon-btn[aria-busy="true"] {
  opacity: 0.45;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .rd-icon-btn .app-icon { transition: none; }
}

.rd-invoice-status-cell { white-space: nowrap; vertical-align: middle; }

.rd-invoice-status {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.rd-invoice-status-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #f2f5f8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rd-invoice-status-option + .rd-invoice-status-option {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.rd-invoice-status-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  flex: 0 0 auto;
}

.rd-invoice-status-option.is-selected .rd-invoice-status-mark {
  background: currentColor;
  box-shadow: inset 0 0 0 1.5px #1b1f24;
}

.rd-invoice-status-option.is-selected.is-pending {
  background: #e6b325;
  color: #1b1404;
  box-shadow: inset 0 0 0 2px #8a6a10;
}

.rd-invoice-status-option.is-selected.is-paid {
  background: #2f9e62;
  color: #f4fff8;
  box-shadow: inset 0 0 0 2px #145c36;
}

.rd-invoice-status-option:focus-visible {
  outline: 2px solid #59b7de;
  outline-offset: -2px;
}

.rd-invoice-status-option:disabled,
.rd-invoice-status[aria-busy="true"] .rd-invoice-status-option {
  cursor: default;
  opacity: 0.55;
}

.rd-detail {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rd-detail dl { margin: 0; display: grid; gap: 6px; }
.rd-detail dt {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(242, 245, 248, 0.7);
}
.rd-detail dd { margin: 0; color: #f2f5f8; }

@container rd-history (max-width: 280px) {
  .rd-history .rd-advanced[open] form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rd-history .rd-advanced[open] form {
  max-height: 168px;
  overflow: auto;
}

.rd-history { container-type: inline-size; container-name: rd-history; }

.rd-layout[data-reports-adaptive="true"] {
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: auto;
}

.rd-layout[data-reports-adaptive="true"] .rd-split { display: none; }

@container cp-display (max-width: 760px) {
  .rd-layout {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: auto;
  }

  .rd-split { display: none; }

  .reports-dashboard { overflow: auto; }

  .rd-col-main .rd-chart,
  .rd-col-main .rd-history,
  .rd-side { flex: 0 0 auto; }

  .rd-chart { min-height: 320px; }
  .rd-history { min-height: 150px; }
  .rd-side { min-height: 220px; }
  .rd-history .rd-advanced[open] form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
