/* InterTraq local layout. Theme primitives live in theme/styles.css + theme/components.css. */
:root {
  --theme-accent: #0f766e;
  --theme-accent-contrast: #ffffff;
  --theme-success: #0f766e;
}
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 64px;
  position: relative;
  z-index: 1;
}
.it-banner {
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
  border-radius: var(--theme-radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--theme-muted);
}
.it-banner strong { color: var(--theme-text); }
.it-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}
a.btn {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.it-error {
  background: color-mix(in srgb, var(--theme-danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-danger) 28%, transparent);
  color: var(--theme-danger);
  border-radius: var(--theme-radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  padding: 14px;
}
.kpi-num {
  font-family: var(--theme-font-mono);
  font-size: 22px;
  font-weight: 800;
}
.kpi-label {
  font-family: var(--theme-font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--theme-muted);
  margin-top: 4px;
}
.bridge {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.bridge-head, .proof-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
.bridge-head {
  background: var(--theme-surface-alt);
  font-family: var(--theme-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--theme-muted);
}
.proof-row { border-top: 1px solid var(--theme-border); font-size: 14px; }
.proof-row.total {
  font-weight: 700;
  font-family: var(--theme-font-mono);
  background: color-mix(in srgb, var(--theme-accent) 6%, transparent);
}
.period-bar, .tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.period-btn, .tab-btn {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  font-size: 14px;
}
.period-btn.active, .tab-btn.active {
  background: var(--theme-accent);
  color: var(--theme-accent-contrast);
  border-color: var(--theme-accent);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  background: var(--theme-surface);
  max-width: 100%;
}
table { min-width: 640px; }
th, td {
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--theme-border);
  vertical-align: top;
}
th {
  background: var(--theme-table-header-bg);
  font-family: var(--theme-font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--theme-muted);
}
.mono { font-family: var(--theme-font-mono); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-green { background: color-mix(in srgb, var(--theme-accent) 12%, transparent); color: var(--theme-accent); }
.badge-warn { background: color-mix(in srgb, var(--theme-warn) 14%, transparent); color: var(--theme-warn); }
.badge-danger { background: color-mix(in srgb, var(--theme-danger) 12%, transparent); color: var(--theme-danger); }
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.muted { color: var(--theme-muted); font-size: 13px; }
.suggest-card {
  background: var(--theme-surface);
  border: 1px solid color-mix(in srgb, var(--theme-warn) 30%, transparent);
  border-left: 3px solid var(--theme-warn);
  border-radius: var(--theme-radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
@media (max-width: 760px) {
  .page-wrap { padding: 16px 16px 48px; }
  .kpi-row, .upload-grid { grid-template-columns: 1fr; }
  .it-actions { flex-direction: column; align-items: stretch; }
  .it-actions .btn, .it-actions a.btn { width: 100%; }
  table { min-width: 520px; }
  .logo { font-size: 28px; }
}
