/* ══════════════════════════════════════════════════════════════
   reports.css — page-specific styles for /reports
   Requires disa.css + marketing.css loaded first
   ══════════════════════════════════════════════════════════════ */

/* ── SHARED AVATAR ────────────────────────────────────────── */
.rpt-av {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 9px; font-weight: 700; line-height: 1;
  width: 24px; height: 24px; flex-shrink: 0;
}
.rpt-av-lg { width: 36px; height: 36px; font-size: 11px; }
.rpt-av-a { background: rgba(41, 184, 176, 0.15); color: var(--color-primary); }
.rpt-av-b { background: rgba(232, 168, 32, 0.15); color: var(--color-warning); }
.rpt-av-c { background: rgba(78, 99, 117, 0.15); color: var(--color-slate); }

/* ── SHARED STAT COLOURS ──────────────────────────────────── */
.rpt-stat-done  { color: var(--color-success); }
.rpt-stat-over  { color: var(--color-danger); font-weight: 600; }
.rpt-stat-hours { color: var(--color-primary); font-weight: 600; }
.rpt-stat-mu    { color: var(--color-slate); opacity: 0.45; }

/* ── HERO (navy) ──────────────────────────────────────────── */
.rpt-hero {
  position: relative; overflow: hidden;
  background: var(--color-navy); padding: 100px 24px;
}
.rpt-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(41, 184, 176, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}
.rpt-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.rpt-hero-inner > *,
.rpt-row > * { min-width: 0; }
.rpt-hero-text .mkt-section-tag { color: var(--color-primary); }
.rpt-hero-text .mkt-section-title { color: var(--color-white); }
.rpt-hero-text .mkt-section-sub { color: rgba(255, 255, 255, 0.62); }
.rpt-hero-accent { color: var(--color-primary); }

.rpt-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rpt-hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; padding: 5px 12px;
}
.rpt-hero-pill i { font-size: 14px; color: var(--color-primary); }
.rpt-hero-mock { display: flex; align-items: center; justify-content: center; }

/* ── HERO SUMMARY TABLE ───────────────────────────────────── */
.rpt-sum {
  background: var(--color-white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%; max-width: 480px;
}
.rpt-sum-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.rpt-sum-title { font-size: 13px; font-weight: 600; color: var(--color-navy); }
.rpt-sum-filters { display: flex; align-items: center; gap: 6px; }
.rpt-sum-filter {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--color-slate);
  background: var(--color-surface); border: 0.5px solid var(--color-border);
  border-radius: 5px; padding: 3px 8px;
}
.rpt-sum-filter i { font-size: 12px; color: var(--color-primary); }
.rpt-sum-export {
  width: 24px; height: 24px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 0.5px solid var(--color-border);
  font-size: 13px; color: var(--color-slate); cursor: default;
}

.rpt-sum-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.rpt-sum-tbl thead th {
  padding: 6px 12px; text-align: right;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-slate);
  border-bottom: 0.5px solid var(--color-border);
  background: var(--color-surface); white-space: nowrap;
}
.rpt-sum-tbl thead th:first-child { text-align: left; }
.rpt-sum-tbl tbody tr { border-bottom: 0.5px solid var(--color-border); }
.rpt-sum-tbl tbody tr:last-child { border-bottom: none; }
.rpt-sum-tbl tfoot tr {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.rpt-sum-tbl tfoot td { padding: 8px 12px; }

.rpt-sum-name {
  padding: 9px 12px; display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; color: var(--color-navy);
}
.rpt-sum-stat { padding: 9px 12px; text-align: right; font-size: 11px; color: var(--color-navy); }
.rpt-sum-total { font-weight: 700; }
.rpt-sum-total-lbl {
  font-size: 10px; font-weight: 700; color: var(--color-slate);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── CONTENT SECTIONS ─────────────────────────────────────── */
.rpt-section { padding: 88px 24px; }
.rpt-section-white { background: var(--color-white); }
.rpt-section-surface { background: var(--color-surface); }

.rpt-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.rpt-row-rev { direction: rtl; }
.rpt-row-rev > * { direction: ltr; }

.rpt-text .mkt-section-tag { color: var(--color-primary); }
.rpt-title {
  font-size: clamp(22px, 2.8vw, 34px); font-weight: 800;
  color: var(--color-navy); letter-spacing: -0.6px;
  line-height: 1.2; margin-bottom: 14px;
}
.rpt-sub { font-size: 16px; color: var(--color-slate); line-height: 1.7; margin-bottom: 24px; }

.rpt-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.rpt-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--color-slate); line-height: 1.5;
}
.rpt-bullets li i { font-size: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 1px; }

.rpt-mock { display: flex; align-items: center; justify-content: center; }

/* ── TASK CONTEXT BADGE ───────────────────────────────────── */
.rpt-task-ctx {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--color-primary);
  background: rgba(41, 184, 176, 0.08);
  border: 1px solid rgba(41, 184, 176, 0.20);
  border-radius: 6px; padding: 5px 10px; margin-bottom: 10px;
}
.rpt-task-ctx i { font-size: 13px; }

/* ── TIME LOG MOCK ────────────────────────────────────────── */
.rpt-timelog {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow); min-width: 280px;
}
.rpt-timelog-hdr {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 11px; font-weight: 600; color: var(--color-navy);
}
.rpt-timelog-hdr i { font-size: 14px; color: var(--color-primary); }
.rpt-timelog-row {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-bottom: 0.5px solid var(--color-border);
}
.rpt-timelog-info { flex: 1; }
.rpt-timelog-user { display: block; font-size: 11px; font-weight: 500; color: var(--color-navy); }
.rpt-timelog-date { display: block; font-size: 9px; color: var(--color-slate); margin-top: 1px; }
.rpt-timelog-dur { font-size: 12px; font-weight: 700; color: var(--color-primary); }
.rpt-timelog-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: var(--color-surface);
  font-size: 11px; font-weight: 600; color: var(--color-navy);
}
.rpt-timelog-total { color: var(--color-primary); font-size: 13px; }

/* ── ACCOUNTANT CARDS ─────────────────────────────────────── */
.rpt-acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rpt-acc-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
}
.rpt-acc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rpt-acc-name { font-size: 12px; font-weight: 600; color: var(--color-navy); }
.rpt-acc-period { font-size: 9px; color: var(--color-slate); margin-top: 2px; }

.rpt-acc-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rpt-acc-bar {
  flex: 1; height: 5px; border-radius: 99px;
  background: var(--color-surface); overflow: hidden;
}
.rpt-acc-seg { height: 100%; background: var(--color-success); border-radius: 99px; }
.rpt-acc-pct { font-size: 10px; font-weight: 600; color: var(--color-success); white-space: nowrap; }

.rpt-acc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.rpt-acc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rpt-acc-val { font-size: 14px; font-weight: 700; color: var(--color-navy); }
.rpt-acc-lbl { font-size: 8px; color: var(--color-slate); text-align: center; }

/* ── CLIENT EFFORT TABLE ──────────────────────────────────── */
.rpt-client-tbl {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow); width: 100%; max-width: 420px;
}
.rpt-client-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.rpt-client-title { font-size: 13px; font-weight: 600; color: var(--color-navy); }
.rpt-client-filter {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--color-slate);
  background: var(--color-surface); border: 0.5px solid var(--color-border);
  border-radius: 5px; padding: 3px 8px;
}
.rpt-client-filter i { font-size: 12px; color: var(--color-primary); }

.rpt-client-head {
  display: grid; grid-template-columns: 1fr 52px 64px;
  padding: 6px 16px; gap: 8px;
  background: var(--color-surface); border-bottom: 0.5px solid var(--color-border);
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-slate);
}
.rpt-client-head span:not(:first-child) { text-align: right; }

.rpt-client-row {
  display: grid; grid-template-columns: 1fr 52px 64px;
  gap: 8px; padding: 10px 16px; align-items: center;
  border-bottom: 0.5px solid var(--color-border);
}
.rpt-client-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; color: var(--color-navy);
  min-width: 0;
}
.rpt-client-name i { font-size: 13px; color: var(--color-slate); flex-shrink: 0; }
.rpt-client-tasks { font-size: 11px; color: var(--color-slate); text-align: right; }
.rpt-client-hours { font-size: 11px; font-weight: 600; color: var(--color-primary); text-align: right; }

.rpt-client-foot {
  display: grid; grid-template-columns: 1fr 52px 64px;
  gap: 8px; padding: 10px 16px;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
}
.rpt-client-total-lbl {
  font-size: 9px; font-weight: 700; color: var(--color-slate);
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center;
}
.rpt-ct-total { font-size: 12px; font-weight: 700; color: var(--color-navy); text-align: right; }
.rpt-ct-hours { color: var(--color-primary); }

/* ── FEATURES (navy) ──────────────────────────────────────── */
.rpt-feat {
  position: relative; overflow: hidden;
  background: var(--color-navy); padding: 88px 24px;
}
.rpt-feat-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(41, 184, 176, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}
.rpt-feat-inner { position: relative; z-index: 1; }
.rpt-feat-hdr { margin-bottom: 52px; }
.rpt-feat-hdr .mkt-section-tag { color: var(--color-primary); }
.rpt-feat-title {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 800;
  color: var(--color-white); letter-spacing: -0.8px;
  line-height: 1.15; margin-bottom: 0;
}
.rpt-feat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}
.rpt-feat-item { display: flex; flex-direction: column; gap: 12px; }
.rpt-feat-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(41, 184, 176, 0.12);
  border: 1px solid rgba(41, 184, 176, 0.22);
  display: flex; align-items: center; justify-content: center;
}
.rpt-feat-ico i { font-size: 22px; color: var(--color-primary); }
.rpt-feat-text h3 { font-size: 17px; font-weight: 700; color: var(--color-white); margin: 0 0 6px; }
.rpt-feat-text p  { font-size: 15px; color: rgba(255, 255, 255, 0.62); line-height: 1.65; margin: 0; }

/* ── CTA ──────────────────────────────────────────────────── */
.rpt-cta { background: var(--color-surface); padding: 96px 24px; }
.rpt-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.rpt-cta-title {
  font-size: clamp(24px, 3vw, 38px); font-weight: 800;
  color: var(--color-navy); letter-spacing: -0.5px; margin-bottom: 14px;
}
.rpt-cta-sub { font-size: 17px; color: var(--color-slate); line-height: 1.65; margin-bottom: 36px; }
.rpt-cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .rpt-hero { padding: 72px 16px; }
  .rpt-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .rpt-section { padding: 64px 16px; }
  .rpt-row { grid-template-columns: 1fr; gap: 40px; }
  .rpt-row-rev { direction: ltr; }
  .rpt-acc-grid { grid-template-columns: 1fr; }
  .rpt-feat { padding: 64px 16px; }
  .rpt-feat-grid { grid-template-columns: 1fr; gap: 32px; }
  .rpt-cta { padding: 64px 16px; }
}
@media (max-width: 768px) {
  .rpt-hero-mock,
  .rpt-mock { display: none; }
}
@media (max-width: 600px) {
  .rpt-cta-actions { flex-direction: column; }
  .rpt-hero-pills { flex-direction: column; }
  .rpt-acc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .rpt-acc-grid { grid-template-columns: 1fr; }
}
