/* ==========================================================================
   UBI Statistical Analysis Toolkit - Tables & Report CSS
   ========================================================================== */

.stat-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.stat-table th, .stat-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.stat-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.stat-table td.num {
  text-align: right;
  font-family: var(--font-mono);
}

.stat-table tr:last-child td {
  border-bottom: none;
}

.stat-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Significance Badges */
.p-sig-star {
  color: #ff7b72;
  font-weight: 700;
  margin-left: 2px;
}

.badge-sig {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-sig.sig-yes {
  background: rgba(46, 160, 67, 0.2);
  color: var(--accent-success);
  border: 1px solid rgba(46, 160, 67, 0.4);
}

.badge-sig.sig-no {
  background: rgba(210, 153, 34, 0.15);
  color: var(--accent-warning);
}

/* Report Section Container */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-section-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Print Mode for Student Lab Report */
@media print {
  body {
    overflow: visible !important;
    background: white !important;
    color: black !important;
  }
  .app-header, .wizard-sidebar, .chart-nav-tabs, .header-actions {
    display: none !important;
  }
  .app-main, .results-dashboard {
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .chart-body {
    height: 350px !important;
  }
}
