/* ============================================================================
   REPORTS v4 — BENTO (compact). One distinct visualization per card, no donut
   repetition, no wasted space. Loaded AFTER reference-dashboard.css so these
   rules win the cascade. Scoped to the Reports tab (.ref-view-reports).
   Row 1: distribution rings · on-time gauge · engineer workload · type columns
   Row 2: pipeline flow · account table
   ============================================================================ */

/* ---------- Header: operational-health stat (rebuilt, no glow) ---------- */
.ref-view-reports .ref-reports>header {
  align-items: center !important;
}

.ref-view-reports .ref-report-health-card.ref-rhc {
  display: grid !important;
  grid-template-columns: 66px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 5px 14px !important;
  height: 108px !important;
  min-height: 0 !important;
  align-self: center !important;
  padding: 12px 17px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 16px !important;
  background: linear-gradient(140deg, #20252d 0%, #181c22 100%) !important;
  box-shadow: none !important;
}

.ref-view-reports .ref-report-health-card.ref-rhc::before,
.ref-view-reports .ref-report-health-card.ref-rhc::after {
  content: none !important;
  display: none !important;
}

.ref-view-reports .ref-rhc .ref-score-ring {
  grid-row: 1 / 3 !important;
  width: 66px !important;
  height: 66px !important;
}

.ref-view-reports .ref-rhc .ref-ring-fill {
  filter: none !important;
}

/* kill the glow */
.ref-view-reports .ref-rhc .ref-ring-label strong {
  font-size: 19px !important;
}

.ref-view-reports .ref-rhc-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

.ref-view-reports .ref-rhc-copy span {
  display: block !important;
  color: #9aa2ad !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: .9px !important;
  text-transform: uppercase !important;
}

.ref-view-reports .ref-rhc-copy strong {
  display: block !important;
  margin: 2px 0 !important;
  font-size: 19px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.ref-view-reports .ref-rhc-copy strong.good {
  color: #4fd598 !important;
}

.ref-view-reports .ref-rhc-copy strong.ok {
  color: var(--orange, #f5842e) !important;
}

.ref-view-reports .ref-rhc-copy strong.warn {
  color: #ffc971 !important;
}

.ref-view-reports .ref-rhc-copy strong.bad {
  color: #ff8f7f !important;
}

.ref-view-reports .ref-rhc-copy small {
  display: block !important;
  color: #8b929c !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}

.ref-view-reports .ref-rhc-meters {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  gap: 16px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  min-width: 0 !important;
}

.ref-view-reports .ref-rhc-meters>div {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
}

.ref-view-reports .ref-rhc-meters span {
  color: #9aa2ad !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
}

.ref-view-reports .ref-rhc-meters i {
  height: 5px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, .08) !important;
}

.ref-view-reports .ref-rhc-meters em {
  position: static !important;
  display: block !important;
  height: 100% !important;
  border-radius: 4px !important;
  transition: width .9s cubic-bezier(.2, .85, .25, 1) !important;
}

.ref-view-reports .ref-rhc-meters em.del {
  background: linear-gradient(90deg, #38e0e0, #12b5cc) !important;
}

.ref-view-reports .ref-rhc-meters em.clr {
  background: linear-gradient(90deg, #b79dff, #7c5cf0) !important;
}

.ref-view-reports .ref-rhc-meters b {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* ---------- Header: month volume bars (readable, no fading alternates) ---------- */
.ref-view-reports .ref-report-hero-chart {
  height: 108px !important;
  align-self: center !important;
  position: relative !important;
  padding: 11px 14px 7px !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 16px !important;
  background: linear-gradient(140deg, #20252d 0%, #181c22 100%) !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart {
  height: 100% !important;
  gap: 5px !important;
  padding-top: 2px !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart>span {
  gap: 5px !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart i,
.ref-view-reports .ref-report-hero-chart .ref-bar-chart>span:nth-child(2n) i {
  width: 66% !important;
  min-height: 3px !important;
  border-radius: 3px 3px 2px 2px !important;
  background: linear-gradient(180deg, #ffb989, #f5842e) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart small {
  width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  color: #c9c5d6 !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart.is-interactive>span.active>i {
  background: linear-gradient(180deg, #ffe2c6, var(--orange, #f5842e)) !important;
  filter: none !important;
  box-shadow: 0 0 10px rgba(245, 132, 46, .5) !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart.is-interactive>span.active>small {
  color: #fff !important;
  font-weight: 800 !important;
}

.ref-view-reports .ref-report-hero-chart .ref-bar-chart.is-interactive:has(span.active)>span:not(.active)>i {
  filter: saturate(.5) brightness(.66) !important;
}

/* ---------- Grid: 12-col bento, two compact rows ---------- */
.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4 {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: 216px 126px 298px !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 2px 22px 22px !important;
}

/* Row 1: distribution · gauge · roomy workload.  Row 2: full-width pipeline strip.
   Row 3: type columns + the prominent account table. */
.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-rings {
  grid-row: 1 !important;
  grid-column: 1 / span 3 !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-delivery {
  grid-row: 1 !important;
  grid-column: 4 / span 3 !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-workload {
  grid-row: 1 !important;
  grid-column: 7 / span 6 !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-status {
  grid-row: 2 !important;
  grid-column: 1 / span 12 !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-types-card {
  grid-row: 3 !important;
  grid-column: 1 / span 5 !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-demand--compact {
  grid-row: 3 !important;
  grid-column: 6 / span 7 !important;
}

/* ---------- Outer section: not a card at all ----------
   The report tiles (KPIs, grid articles, health, chart) are already their own
   cards. The section that wraps them was a big dark rounded panel sitting on
   the lighter shell — a card full of cards. Strip its frame, fill and radius so
   the content sits straight on the page background, like the other views. */
.ref-view-reports .ref-reports,
.ref-view-reports .reference-content>.ref-reports {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- Filter toolbar: a row, not a card ----------
   The filter pills are already their own bordered controls; wrapping them in a
   full bordered/filled card was a big empty card-inside-a-card. Strip the frame
   and the overlap so the filters read as a clean toolbar row sitting under the
   header, aligned with the KPI cards below. */
.ref-view-reports .ref-report-controls {
  margin: 6px 22px 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Each filter was a pill-inside-a-pill: an outer .ref-filter-control (filled,
   radius 14) wrapping the .ref-filter-trigger button (filled + border, radius
   20) of the exact same size — two fills and mismatched radii reading as an
   overlapping double outline. Flatten to a single pill: the outer becomes a
   transparent wrapper, the trigger is the only visible surface. */
.ref-view-reports .ref-report-controls .ref-filter-control {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}

.ref-view-reports .ref-report-controls .ref-filter-trigger {
  border-radius: 12px !important;
}

/* ---------- Card shell ---------- */
.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>article {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid #2a2e35 !important;
  border-radius: 18px !important;
  padding: 14px 15px !important;
  background: linear-gradient(160deg, #1e2229 0%, #191c22 100%) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>article:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(245, 132, 46, .4) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .3) !important;
}

.ref-view-reports .ref-report-grid--v4>article>header {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
}

.ref-view-reports .ref-report-grid--v4>article>header>div {
  min-width: 0 !important;
}

.ref-view-reports .ref-report-grid--v4>article>header span {
  color: #f5a15a !important;
  font-size: 8px !important;
  font-weight: 750 !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
}

.ref-view-reports .ref-report-grid--v4>article>header h3 {
  margin: 3px 0 0 !important;
  color: #f4f6f8 !important;
  font-size: 14px !important;
  letter-spacing: -.2px !important;
  white-space: nowrap !important;
}

.ref-view-reports .ref-report-grid--v4>article>.ref-panel-empty.compact {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-types-card {
  min-height: 0 !important;
}

/* ---------- Card 1: operational distribution (concentric rings) ---------- */
.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-stat {
  grid-template-columns: 84px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  align-content: center !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-visual {
  max-width: 84px !important;
  margin: 0 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-visual strong {
  font-size: 20px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-visual span {
  font-size: 7px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-list {
  gap: 5px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-list p {
  padding: 5px 8px !important;
  border-radius: 9px !important;
  grid-template-columns: 9px minmax(0, 1fr) auto 30px !important;
  gap: 7px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-list i {
  width: 9px !important;
  height: 9px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-list span {
  font-size: 9px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-list b {
  font-size: 11px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-rings .ref-report-ring-list small {
  font-size: 8px !important;
}

/* ---------- Card 2: on-time delivery (semicircle gauge) ---------- */
.ref-semi-gauge {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.ref-semi-dial {
  position: relative;
  width: 100%;
  max-width: 178px;
}

.ref-semi-dial svg {
  display: block;
  width: 100%;
  height: auto;
}

.ref-semi-gauge .track {
  stroke: rgba(255, 255, 255, .09);
}

.ref-semi-gauge .fill {
  transition: stroke-dashoffset 1.2s cubic-bezier(.2, .85, .25, 1);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .35));
}

.ref-semi-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.ref-semi-center strong {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.ref-semi-center span {
  margin-top: 3px;
  color: #9aa2ad;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ref-semi-sub {
  color: #8b929c;
  font-size: 8px;
  text-align: center;
  line-height: 1.35;
}

/* ---------- Card 3: engineer workload (ranked split bars + avatars) ---------- */
.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars {
  flex: 1 1 auto !important;
  justify-content: space-evenly !important;
  gap: 8px !important;
  padding: 0 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p {
  grid-template-columns: minmax(0, 1fr) minmax(56px, 1.4fr) 22px !important;
  gap: 9px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-name>i {
  width: 22px !important;
  height: 22px !important;
  flex-basis: 22px !important;
  border-radius: 7px !important;
  font-size: 7px !important;
}

/* categorical avatar colours so the roster reads varied, like the overview */
.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p:nth-child(1) .ref-eng-name>i {
  background: linear-gradient(145deg, #6fc0ff, #3b8fe0) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p:nth-child(2) .ref-eng-name>i {
  background: linear-gradient(145deg, #c9a3ff, #8b5cf6) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p:nth-child(3) .ref-eng-name>i {
  background: linear-gradient(145deg, #5fe6c0, #17a86a) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p:nth-child(4) .ref-eng-name>i {
  background: linear-gradient(145deg, #ffe08a, #eea62e) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p:nth-child(5) .ref-eng-name>i {
  background: linear-gradient(145deg, #ffa9c7, #ec4f8c) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-name strong {
  font-size: 9px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bar {
  height: 8px !important;
  background: #14171c !important;
}

/* fresh cyan → violet duo instead of the green/orange everywhere else */
.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bar em.done {
  background: linear-gradient(90deg, #38e0e0, #12b5cc) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bar em.act {
  background: linear-gradient(90deg, #c9a3ff, #7c5cf0) !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-eng-bars>p>b {
  font-size: 10px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-workload-legend {
  flex: 0 0 auto !important;
  display: flex !important;
  gap: 14px !important;
  margin-top: 7px !important;
  padding-top: 7px !important;
  border-top: 1px solid #2a2e35 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-workload-legend span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #9aa2ad !important;
  font-size: 8px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-workload-legend i {
  width: 8px !important;
  height: 8px !important;
  border-radius: 3px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-workload-legend i.done {
  background: #22d3ee !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-workload .ref-workload-legend i.act {
  background: #8b5cf6 !important;
}

/* ---------- Card 4: customer-type mix (categorical VERTICAL columns) ---------- */
.ref-view-reports .ref-report-grid--v4>.ref-report-types-card .ref-types-cap {
  flex: 0 0 auto !important;
  color: #7f828c !important;
  font-size: 7.5px !important;
  font-weight: 700 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.ref-typecol {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 18px;
  padding: 6px 6px 2px;
}

.ref-typecol-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ref-typecol-item>b {
  font-size: 13px;
  font-weight: 800;
}

.ref-typecol-bar {
  flex: 1 1 auto;
  width: 100%;
  max-width: 54px;
  min-height: 0;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 10px;
  background: #14171c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.ref-typecol-bar em {
  display: block;
  width: 100%;
  border-radius: 10px 10px 5px 5px;
  transition: height .9s cubic-bezier(.2, .85, .25, 1);
}

.ref-typecol-item.c0>b {
  color: #7cc6ff;
}

.ref-typecol-item.c0 .ref-typecol-bar em {
  background: linear-gradient(180deg, #7cc6ff, #3b8fe0);
}

.ref-typecol-item.c1>b {
  color: #c9a3ff;
}

.ref-typecol-item.c1 .ref-typecol-bar em {
  background: linear-gradient(180deg, #c9a3ff, #8b5cf6);
}

.ref-typecol-item.c2>b {
  color: #5fe6c0;
}

.ref-typecol-item.c2 .ref-typecol-bar em {
  background: linear-gradient(180deg, #5fe6c0, #17a86a);
}

.ref-typecol-item.c3>b {
  color: #ffd479;
}

.ref-typecol-item.c3 .ref-typecol-bar em {
  background: linear-gradient(180deg, #ffe08a, #eea62e);
}

.ref-typecol-item.c4>b {
  color: #ffa9c7;
}

.ref-typecol-item.c4 .ref-typecol-bar em {
  background: linear-gradient(180deg, #ffa9c7, #ec4f8c);
}

.ref-typecol-item>strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e6e9ee;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.ref-typecol-item>small {
  color: #8b8e98;
  font-size: 9px;
  font-weight: 600;
}

/* ---------- Card 5: service-order pipeline (horizontal PROCESS FLOW) ---------- */
.ref-view-reports .ref-report-grid--v4>.ref-report-status .ref-flow {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
}

.ref-flow-spine {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 2px;
  transform: translateY(-11px);
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  z-index: 0;
}

.ref-flow-node {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: ref-pop .5s cubic-bezier(.2, .8, .25, 1) both;
  animation-delay: var(--d, 0ms);
}

.ref-flow-node>i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.ref-flow-node>i>b {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.ref-flow-node>i.zero {
  background: #232830 !important;
  box-shadow: none;
  border: 1px solid #333944;
}

.ref-flow-node>i.zero>b {
  color: #6b7280;
}

.ref-flow-node>small {
  color: #aeb2bb;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .2px;
  text-align: center;
}

.ref-flow-node>i.t-blue {
  background: radial-gradient(circle at 35% 30%, #7cc6ff, #3b8fe0);
}

.ref-flow-node>i.t-orange {
  background: radial-gradient(circle at 35% 30%, #ffbe86, #ef7d33);
}

.ref-flow-node>i.t-green {
  background: radial-gradient(circle at 35% 30%, #4ce3e3, #12b5cc);
}

.ref-flow-node>i.t-amber {
  background: radial-gradient(circle at 35% 30%, #ffe08a, #eea62e);
}

.ref-flow-node>i.t-red {
  background: radial-gradient(circle at 35% 30%, #ffa79d, #e8505f);
}

/* ---------- Card 6: account performance (compact, seamless, 5 clear rows) ---------- */
.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-demand--compact {
  height: 100% !important;
  overflow: hidden !important;
  padding: 0 0 8px !important;
  gap: 0 !important;
}

/* slim header so the table owns the height — accounts are the point of this card */
.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact>header {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  align-items: center !important;
  padding: 7px 14px !important;
  border-bottom: 1px solid #26292f !important;
  background: radial-gradient(circle at 99% -120%, rgba(245, 132, 46, .16), transparent 42%), #1c1f24 !important;
}

.ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-table {
  margin: 0 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact>header span {
  font-size: 7px !important;
  line-height: 1.1 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact>header h3 {
  font-size: 13px !important;
  line-height: 1.1 !important;
  margin-top: 2px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact>header .ref-demand-summary b {
  font-size: 10px !important;
}

/* seamless: the table is NOT its own card — no inner border/background, it sits flush in the article */
.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-table {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-head {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: 28px !important;
  padding: 0 16px !important;
  align-items: center !important;
  background: transparent !important;
  border-bottom: 1px solid #26292f !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-body {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: visible !important;
}

/* exactly five fixed-height rows → always all visible, never smushed or chopped (deterministic) */
.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-body>button {
  flex: 0 0 auto !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid #23262c !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-body>button:last-child {
  border-bottom: 0 !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-body .account>i {
  width: 26px !important;
  height: 26px !important;
  flex-basis: 26px !important;
  border-radius: 8px !important;
  font-size: 7px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-body .account strong {
  font-size: 9px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-body .account small {
  font-size: 7px !important;
  margin-top: 1px !important;
}

.ref-view-reports .ref-report-grid--v4>.ref-report-demand--compact .ref-demand-compact-pagination {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: 34px !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #26292f !important;
  background: transparent !important;
  padding: 0 14px !important;
}

@media (max-width: 1150px) {
  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4 {
    grid-template-rows: 170px 170px auto auto !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-rings {
    grid-row: 1 !important;
    grid-column: 1 / span 6 !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-delivery {
    grid-row: 1 !important;
    grid-column: 7 / span 6 !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-workload {
    grid-row: 2 !important;
    grid-column: 1 / span 6 !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-types-card {
    grid-row: 2 !important;
    grid-column: 7 / span 6 !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-status {
    grid-row: 3 !important;
    grid-column: 1 / span 12 !important;
    min-height: 172px !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>.ref-report-demand--compact {
    grid-row: 4 !important;
    grid-column: 1 / span 12 !important;
    min-height: 240px !important;
  }
}

@media (max-width: 720px) {
  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(158px, auto) !important;
  }

  .ref-view-reports .reference-content>.ref-reports>.ref-report-grid.ref-report-grid--v4>article {
    grid-column: 1 / span 12 !important;
    grid-row: auto !important;
  }
}