/* TIV Charts — frontend shortcode styles v2
   Every rule scoped under .tiv-viz — zero global rules */

.tiv-viz {
  display: block;
  margin: 1.5em 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  line-height: normal;
  color: inherit;
}

/* box-sizing on direct children only — NOT wildcard * which bleeds everywhere */
.tiv-viz > *,
.tiv-viz .tiv-inner,
.tiv-viz .tiv-inner > * {
  box-sizing: border-box;
}

.tiv-viz .tiv-inner {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

.tiv-viz canvas {
  display: block !important;
  max-width: none !important;
}

.tiv-viz .tiv-viz-title,
.tiv-viz .tiv-viz-caption {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.tiv-viz .tiv-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.tiv-viz .tiv-data-table th {
  padding: 10px 14px;
  border-bottom: 2px solid #e5e7eb;
  text-align: left;
  font-weight: 700;
  background: #f9fafb;
  white-space: nowrap;
}
.tiv-viz .tiv-data-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}
