/* ============================================================
 * APEX SALES OS · DAILY OPERATIONS
 * Owner: Worker W15 (page-local styles only)
 * Namespace: .page-ops-*
 *
 * Pages: time-clock · schedule · booked-queue · my-calls-history
 *        · standup-live · notifications
 *
 * Tokens come from 00-tokens.css. Keyframe livePulse comes from
 * 01-base.css. Do NOT redefine resets / scrollbar / keyframes
 * here. Every block fits a 1440x900 viewport with no scroll.
 * Negative states (blocked, failed, no-show) use diagonal-purple
 * or muted-grey only — NEVER red.
 * ============================================================ */

/* ------------------------------------------------------------
 * Time clock · hero card
 * 2-col grid (info | giant punch button). Radial purple wash
 * top-right + gradient 64px clock readout.
 * ------------------------------------------------------------ */
.page-ops-tc-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(99,91,255,0.10), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.page-ops-tc-state {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-ops-tc-state.on { color: var(--primary); }
.page-ops-tc-state.on::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: livePulse 1.6s infinite;
}
.page-ops-tc-clock {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 10px 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.page-ops-tc-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.page-ops-tc-punch {
  font-size: 16px;
  height: 56px;
  padding: 0 28px;
}

/* ------------------------------------------------------------
 * Topbar punch chip — persistent header button mirrors the
 * current time-clock state. Off-the-clock: ghost grey. On-the-
 * clock: primary-soft purple wash + pulsing dot + live elapsed.
 * Dot is HIDDEN when not live (CSS-only — keeps DOM stable).
 * ------------------------------------------------------------ */
.topbar-punch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.topbar-punch-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: livePulse 1.6s infinite;
  flex: 0 0 auto;
}
.topbar-punch.is-live .topbar-punch-dot {
  display: inline-block;
}
.topbar-punch.is-live {
  background: var(--primary-soft, rgba(99,91,255,0.10));
  color: var(--primary);
  border: 1px solid var(--border);
}
.topbar-punch.is-live svg {
  color: var(--primary);
}

/* ------------------------------------------------------------
 * Schedule · 14-day calendar grid
 * 56px time gutter + 14 day columns. Today highlighted with
 * primary-soft tint. Blocked cells use a diagonal purple
 * repeating pattern — never red.
 * ------------------------------------------------------------ */
.page-ops-cal-grid {
  display: grid;
  grid-template-columns: 56px repeat(14, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-ops-cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  min-height: 44px;
  font-size: 11.5px;
  color: var(--text-soft);
  position: relative;
}
.page-ops-cal-cell.head {
  background: var(--bg-soft);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
  text-align: center;
  min-height: 30px;
  padding-top: 8px;
  font-weight: 500;
}
.page-ops-cal-cell.timecol {
  background: var(--bg-soft);
  text-align: right;
  padding-right: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.page-ops-cal-cell.today {
  background: var(--primary-soft);
}
.page-ops-cal-cell.blocked {
  background-image: repeating-linear-gradient(
    45deg,
    var(--bg-tint) 0 6px,
    rgba(99,91,255,0.16) 6px 12px
  );
}
.page-ops-cal-slot {
  background: var(--grad);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter var(--t);
}
.page-ops-cal-slot:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------
 * Booked queue · 1fr | 320px split
 * Left: active call hero (big name, eyebrow LIVE pulse, prep
 * grid of label/value pairs, primary CTA).
 * Right: next-up rail of mini rows.
 * ------------------------------------------------------------ */
.page-ops-queue-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.page-ops-queue-active {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.page-ops-queue-eye {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-ops-queue-eye::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: livePulse 1.6s infinite;
}
.page-ops-queue-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 8px 0 4px;
  color: var(--text);
}
.page-ops-queue-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.page-ops-queue-prep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.page-ops-queue-prep .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.page-ops-queue-prep .val {
  font-size: 13.5px;
  color: var(--text);
  margin-top: 2px;
}
.page-ops-queue-next-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-ops-queue-next-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  transition: border-color var(--t), background var(--t);
}
.page-ops-queue-next-row:hover {
  border-color: var(--border-strong);
  background: var(--hover);
}
.page-ops-queue-next-row .time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.page-ops-queue-next-row .name { font-size: 12.5px; font-weight: 500; color: var(--text); }
.page-ops-queue-next-row .sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ------------------------------------------------------------
 * Call history · search head + outcome chips
 * Search fills 1fr, filter chip group on the right. Outcome
 * chips: signed=status-done tint, no-show=bg-tint muted,
 * failed=bg-tint muted-grey. NEVER red for any negative.
 * ------------------------------------------------------------ */
.page-ops-hist-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.page-ops-hist-search {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--t);
}
.page-ops-hist-search:focus-within { border-color: var(--border-focus); }
.page-ops-hist-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}
.page-ops-hist-search input::placeholder { color: var(--text-faint); }
.page-ops-hist-row .outcome-chip {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-tint);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.page-ops-hist-row .outcome-chip.signed {
  background: var(--status-done-bg);
  color: var(--status-done-fg);
  border-color: var(--status-done-bd);
}
.page-ops-hist-row .outcome-chip.noshow {
  background: var(--bg-tint);
  color: var(--text-muted);
  border-color: var(--border);
}
/* "failed" stays muted-grey only — never red */
.page-ops-hist-row .outcome-chip.failed {
  background: var(--bg-tint);
  color: var(--text-muted);
  border-color: var(--border);
}

/* ------------------------------------------------------------
 * Stand-up live · 1fr | 320px split
 * Left: stage card 460px tall with radial top wash + dashed
 * speaker placeholder. Right: roster card with avatar rows.
 * ------------------------------------------------------------ */
.page-ops-su-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.page-ops-su-stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(99,91,255,0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  height: 460px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.page-ops-su-eye {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-ops-su-eye::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: livePulse 1.6s infinite;
}
.page-ops-su-title {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.page-ops-su-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.page-ops-su-speaker {
  flex: 1;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.page-ops-su-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.page-ops-su-roster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.page-ops-su-roster h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-ops-su-roster-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
}
.page-ops-su-roster-row:last-child { border-bottom: 0; }
.page-ops-su-roster-row .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.page-ops-su-roster-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: auto;
  animation: livePulse 1.6s infinite;
}

/* ------------------------------------------------------------
 * Notifications · 2-tier feed
 * Tier labels are small uppercase mono. Cards are a fixed 56px
 * 3-col row (avatar | text | time). Urgent cards get a primary
 * gradient left edge + soft purple wash.
 * ------------------------------------------------------------ */
.page-ops-notif-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.page-ops-notif-tier {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 14px 4px 6px;
}
.page-ops-notif-card {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  margin-bottom: 6px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  position: relative;
}
.page-ops-notif-card:hover {
  border-color: var(--border-strong);
  background: var(--hover);
}
.page-ops-notif-card.urgent {
  border-color: var(--status-done-bd);
  background: linear-gradient(90deg, var(--primary-soft) 0%, transparent 40%);
}
.page-ops-notif-card.urgent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  border-radius: var(--radius) 0 0 var(--radius);
}
.page-ops-notif-card .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}
.page-ops-notif-card .text {
  font-weight: 500;
  color: var(--text);
}
.page-ops-notif-card .meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.page-ops-notif-card .time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
 * Daily-ops hub (#/ops) - tile hover lift
 * ------------------------------------------------------------ */
.page-ops-hub-tile {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.page-ops-hub-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.page-ops-hub-tile:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
