/* Command Center predictions: overview cards, map layers, Predictions tab (front/js/predictionsTab.js) */

/* ── Overview rail ── */
.cc-sec-count.pc-auto-count { background: var(--accent-bg); color: var(--accent); }
.cc-q.pc-auto { border-color: rgba(var(--accent-rgb),.18); background: var(--accent-bg-2); }
.cc-q.pc-hi { box-shadow: 0 0 0 2px var(--accent); }
.pc-changed { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.pc-changed span:first-child { font-weight: 600; color: var(--text-dim); }
.pc-note { font-size: 11.5px; color: var(--text-dim); }
.cc-qb[disabled] { opacity: .5; cursor: default; }
.cc-q-btns { align-items: center; }
.pc-empty-cards { font-size: 11.5px; color: var(--text-dim); padding: 2px 0 10px; }

/* ── Right rail: Predictions · 30d ── */
.pc-rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pc-rp-head .cc-rp-title { margin-bottom: 0; white-space: nowrap; min-width: 0; }
.pc-rp-head .cc-rp-sub { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; }
.pc-ledger-link { white-space: nowrap; flex-shrink: 0; }
.pc-ledger-link { background: none; border: none; padding: 0; color: var(--accent); font: 600 11px var(--fn); cursor: pointer; }
.pc-ledger-link:hover { color: var(--accent-hover); }
.pc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.pc-tile-l { font: 600 9.5px var(--fm); color: var(--text-dim); text-transform: uppercase; letter-spacing: .7px; }
.pc-tile-v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 3px; }

/* ── Badges (log + ledger) ── */
.pc-badge, .badge.pc-badge-accent, .badge.pc-badge-blue, .badge.pc-badge-amber, .badge.pc-badge-dim {
  font: 700 9px var(--fm); letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; white-space: nowrap; display: inline-block;
}
.pc-badge-accent { background: var(--accent-bg); color: var(--accent); }
.pc-badge-blue   { background: var(--blue-bg); color: var(--blue); }
.pc-badge-amber  { background: var(--amber-bg); color: var(--amber); }
.pc-badge-dim    { background: var(--surface-3); color: var(--text-muted); }
.pc-badge-red    { background: rgba(var(--danger-rgb), .10); color: var(--danger); }

/* ── Map ── */
.pc-map-tip { font-size: 11px; line-height: 1.5; }
.pc-map-tip b { color: var(--purple); }
.pc-map-tip .dim { color: var(--text-dim); }

/* ── Predictions tab (CC spec 4 Oct 2026, C10–C13) ── */
.pc-page { height: 100%; overflow-y: auto; min-height: 0; }
.pc-wrap { max-width: 1440px; margin: 0 auto; padding: 22px 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.pc-toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-cap { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 -10px 2px; }
.pc-tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-panel { padding-bottom: 8px; }
.pc-panel .nt-card-head { margin-bottom: 6px; }
.pc-panel .nt-krow { align-items: center; }
.pc-per { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.pc-empty { font-size: 12px; color: var(--text-dim); padding: 8px 0 6px; }
.pc-foot { font-size: 10.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* Activity by type */
.pc-act { overflow-x: auto; }
.pc-act-row {
  display: grid; grid-template-columns: minmax(160px, 1fr) repeat(5, 84px); gap: 8px; align-items: center; min-width: 600px;
  padding: 9px 0; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-soft); text-align: right; font-variant-numeric: tabular-nums;
}
.pc-act-row.pc-act-head { border-top: none; font: 600 10.5px var(--fn); color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.pc-act-name { text-align: left; min-width: 0; overflow-wrap: anywhere; color: var(--text); }

/* Open predictions */
.pc-open-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.pc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pc-act-btn { font: 600 12px var(--fn); padding: 6px 11px; border-radius: 7px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap; flex: none; }
.pc-act-btn:hover { background: var(--surface-3); }
.pc-act-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pc-act-btn.primary:hover { background: var(--accent-hover); }
.pc-act-btn[disabled] { opacity: .5; cursor: default; }

/* Ledger */
.pc-ledger { display: flex; flex-direction: column; gap: 10px; }
.pc-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pc-chip { font: 600 11.5px var(--fn); padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-soft); cursor: pointer; font-variant-numeric: tabular-nums; }
.pc-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pc-count { margin-left: auto; font-size: 11.5px; color: var(--text-dim); }
.pc-table { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pc-row {
  display: grid; grid-template-columns: 60px minmax(0, 2fr) minmax(0, 1fr) 90px minmax(0, 1.6fr);
  gap: 14px; padding: 11px 16px; font-size: 12.5px; border-bottom: 1px solid var(--border-soft); align-items: start;
}
.pc-row:last-child { border-bottom: none; }
.pc-row[data-pred-id] { cursor: pointer; }
.pc-row[data-pred-id]:hover { background: var(--row-hover); }
.pc-row.pc-head { font: 600 10.5px var(--fn); color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); cursor: default; }
.pc-row > * { min-width: 0; overflow-wrap: anywhere; }
.pc-when, .pc-conf { color: var(--text-mid); font-variant-numeric: tabular-nums; line-height: 1.4; }
.pc-title { font-weight: 500; line-height: 1.4; }
.pc-sub { font-size: 11px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.pc-dec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-by { font-size: 11.5px; color: var(--text-mid); }
.pc-fact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; line-height: 1.4; }

/* Next 7 days */
.pc-week { padding: 16px 20px 18px; }
.pc-week-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-week-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-info { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border-4); color: var(--text-dim); font: italic 600 9.5px Georgia, serif; display: inline-flex; align-items: center; justify-content: center; cursor: help; }
.pc-week-tot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-mid); }
.pc-week-tot b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.pc-day { background: var(--surface-3); border: 1px solid transparent; border-radius: 10px; padding: 12px 13px; min-width: 0; }
.pc-day-danger { border-color: rgba(var(--danger-rgb), .32); background: var(--surface-2); }
.pc-day-amber { border-color: rgba(var(--amber-rgb), .32); background: var(--surface-2); }
.pc-day-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 600; }
.pc-day-top span:last-child { font-size: 10.5px; font-weight: 400; color: var(--text-dim); }
.pc-day-n { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.pc-day-n span:first-child { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.pc-day-pace { font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.pc-day-bar { height: 4px; border-radius: 2px; background: var(--surface-4); margin: 9px 0 8px; overflow: hidden; }
.pc-day-bar div { height: 100%; background: var(--accent); border-radius: 2px; }
.pc-day-staff { font-size: 11px; color: var(--text-mid); }
.pc-day-st { font-size: 11px; font-weight: 600; margin-top: 3px; }

@media (max-width: 1100px) {
  .pc-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pc-wrap { padding: 16px 16px 48px; }
  .pc-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-row { grid-template-columns: 52px minmax(0, 1fr); }
  .pc-row.pc-head span:nth-child(n+3) { display: none; }
  .pc-row > :nth-child(n+3) { grid-column: 2; }
  .pc-count { margin-left: 0; width: 100%; }
}
.pc-wrap a.nt-link { text-decoration: none; }
.pc-wrap a.nt-link:hover { color: var(--accent-hover); }
.pc-more { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--border-soft); }
