/* StringBI chart override — orbit-react ke MUI cards ke andar design clean rakho */

/* Inner wrapper jo index.js create karta hai — transparent + full height */
.chartContainer > .grid-stack-item-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

/* widgetBox — height chain complete karo */
.chartContainer .widgetBox {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* widgetHeading (title + edit buttons) — hide karo, MUI card ka apna header hai */
.chartContainer .widgetHeading {
  display: none !important;
}

/* chartBox — poora space lo, fixed 38px ki cut mat karo */
.chartContainer .chartBox {
  height: 100% !important;
  max-height: 100% !important;
  flex: 1 !important;
  min-height: 0 !important;
}

/* data_table scroll — height fill karo aur scroll enable karo */
.chartContainer .widgetTableSec {
  height: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
}

/* data_table — compact rows */
.chartContainer .widgetTableSec table {
  width: 100%;
  border-collapse: collapse;
}

.chartContainer .widgetTableSec table th {
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(128, 128, 128, 0.25) !important;
  color: inherit !important;
  white-space: nowrap;
}

.chartContainer .widgetTableSec table td {
  padding: 6px 12px !important;
  font-size: 13px !important;
  border: none !important;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1) !important;
  background: transparent !important;
  color: inherit !important;
}

.chartContainer .widgetTableSec table tr:last-child td {
  border-bottom: none !important;
}
