/* Reports & Charts: KPI tiles, line/bar/pie/treemap charts and data table. */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.kv {
  font: 700 clamp(26px, 3vw, 34px) "Exo 2";
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}
.kv small {
  font: 500 13px Inter;
  color: var(--dim);
}
.fig {
  position: relative;
  height: 240px;
}
.fig svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tip {
  position: absolute;
  pointer-events: none;
  background: #02141b;
  border: 1px solid var(--cy);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
  translate: -50% -110%;
}
.bars {
  display: grid;
  gap: 10px;
}
.hb {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.hb .t {
  height: 16px;
  background: rgba(54, 214, 239, 0.1);
  border-radius: 0 4px 4px 0;
}
.hb .t i {
  display: block;
  height: 100%;
  background: var(--cy);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(54, 214, 239, 0.4);
}
.hb:hover .t i {
  background: #8cefff;
}
.hb span:last-child {
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chd h3 {
  margin: 4px 0 0;
}
.ctype {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
}
.ctype select {
  width: auto;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 14px;
}
.sfig {
  min-height: 240px;
}
.cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 240px;
  padding-top: 18px;
}
.cols .c {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  gap: 4px;
}
.cols .c i {
  display: block;
  width: 70%;
  background: var(--cy);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 8px rgba(54, 214, 239, 0.4);
}
.cols .c:hover i {
  background: #8cefff;
}
.cols b {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.cols span {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  line-height: 1.15;
  height: 2.4em;
  overflow: hidden;
}
.pw {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.pie {
  width: min(220px, 100%);
  flex: none;
}
.pie path:hover {
  filter: brightness(1.25);
}
.lgd {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  flex: 1;
  min-width: 150px;
}
.lgd span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lgd b {
  margin-left: auto;
  font-weight: 600;
}
.lgd i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}
.tmap {
  position: relative;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}
.tm {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #06141e;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}
.tm b {
  display: block;
  font-size: 14px;
}
.tm:hover {
  filter: brightness(1.2);
}
.tbl {
  margin-top: 16px;
}
.tbl summary {
  cursor: pointer;
  color: var(--cy);
  min-height: 44px;
  display: flex;
  align-items: center;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
td,
th {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(54, 214, 239, 0.2);
  text-align: left;
}
td:last-child,
th:last-child {
  text-align: right;
}
@media (max-width: 520px) {
  .hb {
    grid-template-columns: 96px minmax(0, 1fr) 44px;
  }
}
