/* Insights channel usage — compact provider summary + expandable channel table. */
.insights-channel-grand-total {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.insights-provider-table,
.insights-channel-list {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.insights-provider-table {
  margin-bottom: 14px;
}

.insights-provider-table-head,
.insights-provider-table-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.3fr) 80px 90px 105px 105px 90px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
}

.insights-provider-table-head {
  color: #94a3b8;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.insights-provider-table-row {
  color: #475569;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
}

.insights-provider-table-row strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.insights-channel-table-head {
  display: grid;
  grid-template-columns: 18px minmax(180px, 1.6fr) 90px 105px 105px 90px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #94a3b8;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.insights-channel-group-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 90px 105px 105px 90px;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 0 14px 0 32px;
  color: #64748b;
  background: linear-gradient(90deg, #eef2ff 0%, #f8fafc 55%);
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
}

.insights-channel-group-head:first-of-type {
  border-top: none;
}

.insights-channel-group-head strong {
  overflow: hidden;
  color: #312e81;
  font-size: 12px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.insights-channel-group-head span {
  white-space: nowrap;
}

.insights-channel-item {
  border-top: 1px solid #e2e8f0;
}

.insights-channel-group-head + .insights-channel-item {
  border-top: 1px solid #e2e8f0;
}

.insights-channel-item:first-of-type {
  border-top: none;
}

.insights-channel-summary {
  display: grid;
  grid-template-columns: 18px minmax(180px, 1.6fr) 90px 105px 105px 90px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
  transition: background 0.15s ease;
}

.insights-channel-summary::-webkit-details-marker {
  display: none;
}

.insights-channel-summary:hover {
  background: #f8fafc;
}

.insights-channel-item[open] > .insights-channel-summary {
  background: #f8fafc;
}

.insights-channel-chevron {
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.insights-channel-item[open] .insights-channel-chevron {
  transform: rotate(90deg);
}

.insights-channel-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.insights-channel-name strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insights-channel-name small {
  color: #94a3b8;
  font-size: 10px;
  text-transform: capitalize;
}

.insights-channel-detail {
  padding: 0 14px 12px 44px;
  background: #f8fafc;
}

.insights-channel-model-head,
.insights-channel-model-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 90px 105px 105px minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
}

.insights-channel-model-head {
  min-height: 30px;
  color: #94a3b8;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insights-channel-model-row {
  min-height: 38px;
  color: #475569;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
}

.insights-channel-model-row:last-child {
  border-bottom: none;
}

.insights-channel-model-name {
  overflow: hidden;
  color: #0f172a;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insights-channel-model-cost {
  color: #0f172a;
  font-weight: 700;
}

.insights-channel-model-share {
  display: flex;
  gap: 8px;
  align-items: center;
}

.insights-channel-model-share i {
  display: block;
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.insights-channel-model-share b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.insights-channel-model-share em {
  min-width: 38px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

@media (max-width: 900px) {
  .insights-provider-table-head,
  .insights-provider-table-row {
    grid-template-columns: minmax(120px, 1.2fr) 70px 85px 95px 90px;
  }
  .insights-provider-table-head > :last-child,
  .insights-provider-table-row > :last-child {
    display: none;
  }
  .insights-channel-table-head,
  .insights-channel-summary {
    grid-template-columns: 18px minmax(150px, 1.4fr) 80px 95px 90px;
  }
  .insights-channel-group-head {
    grid-template-columns: minmax(150px, 1.4fr) 80px 95px 90px;
  }
  .insights-channel-table-head > :last-child,
  .insights-channel-summary > :last-child,
  .insights-channel-group-head > :last-child {
    display: none;
  }
  .insights-channel-model-head,
  .insights-channel-model-row {
    grid-template-columns: minmax(150px, 1.4fr) 80px 95px 90px;
  }
  .insights-channel-model-head > :last-child,
  .insights-channel-model-share {
    display: none;
  }
}

@media (max-width: 640px) {
  .insights-provider-table-head,
  .insights-provider-table-row {
    grid-template-columns: minmax(100px, 1fr) 80px 90px;
    gap: 8px;
    padding: 0 10px;
  }
  .insights-provider-table-head > :nth-child(2),
  .insights-provider-table-row > :nth-child(2),
  .insights-provider-table-head > :nth-child(3),
  .insights-provider-table-row > :nth-child(3),
  .insights-provider-table-head > :last-child,
  .insights-provider-table-row > :last-child {
    display: none;
  }
  .insights-channel-table-head,
  .insights-channel-summary {
    grid-template-columns: 16px minmax(100px, 1fr) 80px 90px;
    gap: 8px;
    padding: 0 10px;
  }
  .insights-channel-group-head {
    grid-template-columns: minmax(100px, 1fr) 80px 90px;
    gap: 8px;
    padding: 0 10px 0 26px;
  }
  .insights-channel-table-head > :nth-child(3),
  .insights-channel-summary > :nth-child(3),
  .insights-channel-table-head > :last-child,
  .insights-channel-summary > :last-child,
  .insights-channel-group-head > :nth-child(2),
  .insights-channel-group-head > :last-child {
    display: none;
  }
  .insights-channel-detail {
    padding: 0 10px 10px 34px;
    overflow-x: auto;
  }
  .insights-channel-model-head,
  .insights-channel-model-row {
    min-width: 420px;
    grid-template-columns: minmax(150px, 1.4fr) 70px 90px 90px;
  }
  .insights-channel-model-head > :last-child,
  .insights-channel-model-share {
    display: none;
  }
}
