.reportsWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.reportsPane--primary {
  position: relative;
  min-width: 0;
}

.reportsPane--secondary {
  min-width: 0;
  min-height: 120px;
}

.reportsDashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-bottom: 24px;
}

.reportsShell {
  min-width: 0;
}

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

.reportsFilterField {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.reportsFilterField select {
  width: 100%;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: var(--control-padding);
  padding-right: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%2366706a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  -webkit-appearance: none;
  appearance: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  box-sizing: border-box;
}

.reportsCutoff {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.reportsWarning {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #ead7b5;
  border-radius: 8px;
  background: #fbf6ea;
  color: #6b5426;
  font-size: 13px;
}

.reportsSection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reportsCutoff + .reportsSection,
.reportsWarning + .reportsSection {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.reportsSection h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.reportsCardLead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.reportsFunnelRow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.reportsFunnelStage {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.reportsLinkish {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.reportsFunnelCount {
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--ink);
}

.reportsFunnelShare {
  color: var(--muted);
  font-size: 11px;
}

.reportsFunnelTrack {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f3f2;
}

.reportsFunnelFill {
  height: 100%;
  border-radius: 999px;
}

.reportsFunnelFill--identified {
  background: #d7e3f0;
}

.reportsFunnelFill--qualified {
  background: #c5d8ec;
}

.reportsFunnelFill--sent {
  background: #ead9b4;
}

.reportsFunnelFill--negotiation {
  background: #e4d3c4;
}

.reportsFunnelStep {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.reportsOutcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.reportsOutcome {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  font: inherit;
  width: 100%;
}

.reportsOutcome--won {
  background: #e7f4ec;
  color: #1f6b52;
}

.reportsOutcome--lost {
  background: #f8e8e6;
  color: #9b3d3a;
}

.reportsOutcomeValue {
  display: block;
  margin: 4px 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.reportsOutcomeShare {
  display: block;
  font-size: 12px;
}

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

.reportsOverallItem {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbf8;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.reportsOverallItem strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

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

.reportsConv {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.reportsConv span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.reportsTableWrap {
  overflow: auto;
}

.reportsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.reportsTable th,
.reportsTable td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.reportsTable th {
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}

.reportsTable tbody tr {
  cursor: pointer;
}

.reportsTable tbody tr:hover {
  background: #f6f7f4;
}

.reportsTable .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.reportsEmpty,
.reportsError {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

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

  .reportsPane--secondary {
    display: none;
  }
}

@media (max-width: 720px) {
  .reportsFilters,
  .reportsOutcomes {
    grid-template-columns: 1fr;
  }
}
