
/* V438C - Revenue Intelligence */
.v438c-revenue-health,
.v438c-attention,
.v438c-comparison,
.v438c-trend,
.v438c-forecast{
  margin-bottom:12px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}
.v438c-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.v438c-section-head>div>span{
  display:block;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--muted-foreground);
}
.v438c-section-head h2,
.v438c-section-head h3{
  margin:3px 0 0;
  font-size:13px;
}
.v438c-section-head>small{
  max-width:420px;
  text-align:right;
  font-size:8.5px;
  color:var(--muted-foreground);
}
.v438c-health-grid,
.v438c-compare-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.v438c-health-grid article,
.v438c-attention-grid article,
.v438c-compare-grid article,
.v438c-forecast-grid article{
  min-height:94px;
  padding:11px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.v438c-health-grid span,
.v438c-attention-grid span,
.v438c-compare-grid span,
.v438c-forecast-grid span{
  display:block;
  font-size:8px;
  font-weight:750;
  color:var(--muted-foreground);
}
.v438c-health-grid b,
.v438c-attention-grid b,
.v438c-compare-grid b,
.v438c-forecast-grid b{
  display:block;
  margin-top:6px;
  font-size:18px;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
}
.v438c-health-grid small,
.v438c-attention-grid small,
.v438c-compare-grid small,
.v438c-forecast-grid small{
  display:block;
  margin-top:6px;
  font-size:7.5px;
  line-height:1.35;
  color:var(--muted-foreground);
}
.v438c-health-grid small.up,
.v438c-compare-grid small.up{color:#15803d}
.v438c-health-grid small.down,
.v438c-compare-grid small.down{color:#b91c1c}

.v438c-attention-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.v438c-attention-grid article{
  position:relative;
  overflow:hidden;
}
.v438c-attention-grid article:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;height:3px;
}
.v438c-attention-grid .loss:after{background:#dc2626}
.v438c-attention-grid .margin:after{background:#f59e0b}
.v438c-attention-grid .debt:after{background:#7c3aed}
.v438c-attention-grid .forecast:after{background:#2563eb}

.v438c-chart-card{
  min-width:0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.v438c-forecast-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

@media(max-width:1100px){
  .v438c-health-grid,
  .v438c-compare-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .v438c-attention-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px){
  .v438c-revenue-health,
  .v438c-attention,
  .v438c-comparison,
  .v438c-trend,
  .v438c-forecast{
    margin-bottom:9px;
    padding:10px;
    border-radius:10px;
  }
  .v438c-section-head{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    margin-bottom:8px;
  }
  .v438c-section-head>small{
    max-width:none;
    text-align:left;
    font-size:7.3px;
  }
  .v438c-section-head h2,
  .v438c-section-head h3{
    font-size:11px;
  }
  .v438c-health-grid,
  .v438c-compare-grid{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .v438c-health-grid article,
  .v438c-compare-grid article,
  .v438c-attention-grid article,
  .v438c-forecast-grid article{
    min-height:82px;
    padding:9px;
  }
  .v438c-health-grid article:last-child:nth-child(odd),
  .v438c-compare-grid article:last-child:nth-child(odd){
    grid-column:1/-1;
  }
  .v438c-health-grid b,
  .v438c-compare-grid b,
  .v438c-attention-grid b,
  .v438c-forecast-grid b{
    font-size:15px;
    overflow-wrap:anywhere;
  }
  .v438c-attention-grid{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .v438c-chart-card{
    padding:7px;
  }
  .v438c-chart-card .recharts-responsive-container{
    height:215px!important;
    min-height:215px!important;
  }
  .v438c-forecast-grid{
    grid-template-columns:1fr;
    gap:6px;
  }
}

@media(max-width:390px){
  .v438c-health-grid,
  .v438c-compare-grid,
  .v438c-attention-grid{
    grid-template-columns:1fr;
  }
  .v438c-health-grid article:last-child:nth-child(odd),
  .v438c-compare-grid article:last-child:nth-child(odd){
    grid-column:auto;
  }
}
