/* ============================================================================
   Central de Planos de Ação JCE  ·  Identidade visual PRUMAI
   Tema dark "financial intelligence": fundo near-black, ciano elétrico #4FC3F7
   com glow, Syne (display) + DM Sans (texto) + IBM Plex Mono (números).
   Tokens e estética alinhados aos mockups oficiais do produto PRUMAI.
   ========================================================================== */

:root {
  /* Superfícies (dark) */
  --bg:      #07090F;
  --bg-alt:  #0B0E16;
  --card:    #0F1420;
  --el:      #131926;
  --white:   #0F1420;   /* alias: o que era "card branco" agora é superfície dark */

  /* Tipografia */
  --display: 'Syne', sans-serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  /* Texto */
  --ink-deep: #F4F8FC;
  --ink:      #F0F4F8;
  --ink2:     rgba(240,244,248,.80);
  --muted:    rgba(240,244,248,.60);
  --faint:    rgba(240,244,248,.40);

  /* Linhas / bordas */
  --line: rgba(255,255,255,.07);
  --hair: rgba(255,255,255,.11);

  /* Ciano PRUMAI (acento) */
  --cyan:      #4FC3F7;
  --cyan-light:#7ED6F9;
  --blue:      #4FC3F7;            /* acento de texto/links */
  --blue-d:    #7ED6F9;            /* hover/realce */
  --blue-ink:  #0277BD;            /* azul profundo p/ gradientes */
  --blue-line: rgba(79,195,247,.35);
  --blue-soft: rgba(79,195,247,.12);
  --cyan-glow: rgba(79,195,247,.45);

  /* Semânticos */
  --green:  #22C55E;  --green-soft: rgba(34,197,94,.15);
  --amber:  #F59E0B;  --amber-soft: rgba(245,158,11,.15);
  --orange: #FB923C;  --orange-soft:rgba(251,146,60,.15);
  --red:    #EF4444;  --red-soft:   rgba(239,68,68,.15);
  --purple: #A78BFA;  --purple-soft:rgba(167,139,250,.16);
  --graph:  #94A3B8;  --graph-soft: rgba(148,163,184,.14);

  /* Sombras (profundas, para dark) */
  --shadow:    0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.55);
  --radius: 12px;
  --radius-sm: 9px;
  --sidebar-w: 264px;
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.serif { font-family: var(--display); }
.mono  { font-family: var(--mono); }
::selection { background: rgba(79,195,247,.28); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); }

/* ───────────────────────── Layout shell ───────────────────────── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: radial-gradient(140% 24% at 24% 0%, rgba(79,195,247,.10), transparent 60%), var(--bg);
  border-right: 1px solid var(--line);
  color: rgba(240,244,248,.62); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 16px; z-index: 40;
}
.brand { display: flex; justify-content: center; padding: 8px 8px 20px; }
.brand-logo { width: 178px; height: auto; display: block; }
/* Símbolo PRUMAI: ponto + linha + diamante (vertical) com glow */
.prumai-symbol { position: relative; width: 16px; height: 36px; flex: 0 0 16px; }
.prumai-symbol .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 8px var(--cyan), 0 0 14px var(--cyan-glow); }
.prumai-symbol .line { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 1.5px; height: 17px; background: linear-gradient(to bottom, var(--cyan), var(--blue-ink)); }
.prumai-symbol .diamond { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan), 0 0 14px var(--cyan-glow); }
.brand-txt .wm { font-family: var(--display); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .5px; line-height: 1; display: block; }
.brand-txt .wm .ai { color: var(--cyan); text-shadow: 0 0 10px var(--cyan-glow); }
.brand-txt span { font-family: var(--mono); font-size: 8px; color: rgba(79,195,247,.7); letter-spacing: 2.5px; text-transform: uppercase; margin-top: 5px; display: block; }

.nav-group-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(240,244,248,.34); padding: 18px 10px 8px; font-weight: 500; }
/* Accordion do menu lateral: grupos fechados; abrem ao clicar no título */
.nav-group { margin-bottom: 2px; }
.nav-group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(240,244,248,.38); padding: 14px 10px 8px; font-weight: 500; transition: color .15s;
}
.nav-group-head:hover { color: rgba(240,244,248,.72); }
.nav-group-chev { width: 13px; height: 13px; opacity: .55; transition: transform .2s ease; }
.nav-group.open .nav-group-head { color: rgba(240,244,248,.62); }
.nav-group.open .nav-group-chev { transform: rotate(90deg); opacity: .9; }
.nav-group-items { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.nav-group.open .nav-group-items { max-height: 480px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 9px;
  color: rgba(240,244,248,.66); font-weight: 500; font-size: 14px; margin-bottom: 2px; transition: .15s;
  position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.04); color: #eef4fa; }
.nav-item.active { background: rgba(79,195,247,.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(79,195,247,.28); }
.nav-item.active svg { color: var(--cyan); opacity: 1; }
.nav-item.active::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow); }
.nav-spacer { flex: 1; }
.nav-foot { border-top: 1px solid var(--line); padding-top: 14px; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.nav-user small { display: block; color: var(--faint); font-size: 11px; }
.nav-user b { color: #dfe7ef; font-size: 13px; font-weight: 600; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(7,9,15,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; padding: 0 30px;
}
.crumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; min-width: 0; }
.crumbs a { cursor: pointer; } .crumbs a:hover { color: var(--cyan); }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.topbar-spacer { flex: 1; }
.phase-badge { padding: 5px 11px; background: rgba(79,195,247,.12); border: 1px solid rgba(79,195,247,.35); border-radius: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--cyan); font-weight: 500; letter-spacing: .5px; white-space: nowrap; }
.phase-badge.zero { background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.3); color: var(--muted); }
@media (max-width: 880px) { .phase-badge { display: none; } }
.topbar-search {
  display: flex; align-items: center; gap: 8px; background: var(--el); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 13px; width: 300px; color: var(--muted);
}
.topbar-search svg { color: var(--cyan); }
.topbar-search input { border: none; background: none; outline: none; font-size: 12.5px; width: 100%; color: var(--ink2); font-family: var(--sans); }
.content { padding: 30px 36px 80px; max-width: 1380px; width: 100%; }

/* ───────────────────────── Tipografia / headers ───────────────────────── */
.page-head { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-deep); line-height: 1.08; text-wrap: balance; }
.page-head .subtitle { color: var(--ink2); font-size: 15px; margin-top: 8px; max-width: 70ch; line-height: 1.55; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eyebrow::before { content:''; width: 16px; height: 1.5px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
/* Título de seção: Syne + "pipe" ciano (assinatura PRUMAI) */
.section-title { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 11px; }
.section-title::before { content: ''; width: 3px; height: 15px; background: var(--cyan); border-radius: 2px; box-shadow: 0 0 8px var(--cyan-glow); flex: 0 0 3px; }
.section-title svg { width: 17px; height: 17px; color: var(--cyan); }
.section-title .count { font-family: var(--mono); color: var(--faint); font-weight: 500; font-size: 13px; }

/* ───────────────────────── Botões ───────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; transition: .15s; border: 1px solid transparent; white-space: nowrap; font-family: var(--sans); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--cyan); color: #06121c; box-shadow: 0 0 18px rgba(79,195,247,.25); }
.btn-primary:hover { background: var(--cyan-light); box-shadow: 0 0 24px rgba(79,195,247,.4); }
.btn-ghost { background: transparent; color: var(--cyan); border-color: rgba(79,195,247,.4); }
.btn-ghost:hover { background: rgba(79,195,247,.10); border-color: var(--cyan); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }

/* ───────────────────────── Cards ───────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.g-6 { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.row { display: flex; gap: 18px; }
.mt-16 { margin-top: 18px; } .mt-24 { margin-top: 26px; } .mt-28 { margin-top: 32px; } .mt-40 { margin-top: 40px; }

/* KPI / indicador — superfície dark, barra de acento no topo, número em mono */
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.kpi::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent 80%); opacity: .55; }
.kpi.accent-green::before { background: linear-gradient(90deg, var(--green), transparent 80%); }
.kpi.accent-red::before { background: linear-gradient(90deg, var(--red), transparent 80%); }
.kpi.accent-amber::before { background: linear-gradient(90deg, var(--amber), transparent 80%); }
.kpi.accent-purple::before { background: linear-gradient(90deg, var(--purple), transparent 80%); }
.kpi.accent-graph::before { background: linear-gradient(90deg, var(--graph), transparent 80%); }
.kpi.accent-blue::before { background: linear-gradient(90deg, var(--cyan), transparent 80%); }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .3px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kpi-label svg { width: 15px; height: 15px; color: var(--faint); flex: 0 0 15px; }
.kpi.accent-green .kpi-label svg { color: var(--green); } .kpi.accent-red .kpi-label svg { color: var(--red); }
.kpi.accent-blue .kpi-label svg { color: var(--cyan); } .kpi.accent-amber .kpi-label svg { color: var(--amber); }
.kpi.accent-purple .kpi-label svg { color: var(--purple); } .kpi.accent-graph .kpi-label svg { color: var(--graph); }
.kpi-value { font-family: var(--mono); font-size: 29px; font-weight: 500; color: var(--ink-deep); letter-spacing: -.01em; margin-top: 12px; line-height: 1.05; }
.kpi-value.sm { font-size: 21px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.kpi-sub .up { color: var(--green); font-weight: 600; } .kpi-sub .down { color: var(--red); font-weight: 600; }

/* Faixa de indicadores compacta (resumo executivo em uma linha) */
.stat-strip { display: flex; overflow-x: auto; padding: 0; }
.stat { flex: 1 0 auto; min-width: 152px; padding: 18px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-v { font-family: var(--mono); font-size: 25px; font-weight: 500; color: var(--ink-deep); line-height: 1; }
.stat-l { font-size: 11.5px; color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .5px; }
.stat.a-red .stat-v { color: #fca5a5; } .stat.a-amber .stat-v { color: #fbd38d; } .stat.a-green .stat-v { color: #6ee7a0; }
.stat.a-cyan .stat-v { color: var(--cyan-light); } .stat.a-purple .stat-v { color: #c4b4fb; }

/* Cards do Índice de Impacto (dashboard / cliente) */
.idx-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.idx-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 15px; }
.idx-ico svg { width: 19px; height: 19px; }
.idx-card.a-green .idx-ico { background: var(--green-soft); color: var(--green); }
.idx-card.a-blue .idx-ico { background: var(--blue-soft); color: var(--cyan); }
.idx-card.a-purple .idx-ico { background: var(--purple-soft); color: var(--purple); }
.idx-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.idx-value { font-family: var(--mono); font-size: 25px; font-weight: 600; color: var(--ink-deep); margin-top: 8px; line-height: 1.05; }
.idx-value.sm { font-size: 19px; }
.idx-arrow { color: var(--faint); } .idx-up { color: var(--green); font-size: 12px; font-weight: 600; }
.idx-sub { font-size: 12px; color: var(--faint); margin-top: 8px; }
.idx-bar { height: 7px; background: var(--el); border-radius: 100px; position: relative; margin-top: 13px; }
.idx-bar-now { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #5bbbe6, var(--cyan)); box-shadow: 0 0 8px var(--cyan-glow); }
.idx-bar-was { position: absolute; top: -2px; height: 11px; width: 2px; background: var(--faint); border-radius: 2px; }
.stat-v { display: inline-flex; align-items: center; }
.semaforo { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 9px; }
.semaforo.s-red { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,.6); }
.semaforo.s-amber { background: var(--amber); box-shadow: 0 0 8px rgba(245,158,11,.6); }
.semaforo.s-green { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.6); }

/* Briefing PRUMAI (banner de inteligência no topo do dashboard) */
.briefing { background: linear-gradient(135deg, rgba(79,195,247,.10), rgba(2,119,189,.07)); border: 1px solid rgba(79,195,247,.25); border-radius: 12px; padding: 17px 19px; margin-bottom: 26px; display: flex; align-items: flex-start; gap: 15px; }
.briefing-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(79,195,247,.15); display: grid; place-items: center; flex: 0 0 42px; box-shadow: 0 0 18px var(--cyan-glow); }
.briefing-icon svg { width: 20px; height: 20px; color: var(--cyan); fill: var(--cyan); stroke: none; }
.b-label { font-family: var(--mono); font-size: 10.5px; color: var(--cyan); font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.b-text { font-size: 14.5px; color: var(--ink2); line-height: 1.55; } .b-text b { color: #fff; font-weight: 600; }

/* ───────────────────────── Badges ───────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 7px; font-size: 12px; font-weight: 500; letter-spacing: .2px; white-space: nowrap; line-height: 1.5; border: 1px solid transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.s-backlog       { background: var(--graph-soft); color: #b9c2cf; border-color: rgba(148,163,184,.25); }
.s-priorizada    { background: var(--blue-soft); color: var(--cyan-light); border-color: rgba(79,195,247,.3); }
.s-andamento     { background: var(--purple-soft); color: #c4b4fb; border-color: rgba(167,139,250,.3); }
.s-aguardando    { background: var(--amber-soft); color: #fbd38d; border-color: rgba(245,158,11,.3); }
.s-validacao     { background: var(--orange-soft); color: #fdba74; border-color: rgba(251,146,60,.3); }
.s-concluida     { background: var(--green-soft); color: #6ee7a0; border-color: rgba(34,197,94,.3); }
.s-cancelada, .s-suspensa { background: rgba(148,163,184,.10); color: var(--faint); border-color: rgba(148,163,184,.18); }
.p-alta  { background: var(--red-soft); color: #fca5a5; border-color: rgba(239,68,68,.3); }
.p-media { background: var(--amber-soft); color: #fbd38d; border-color: rgba(245,158,11,.3); }
.p-baixa { background: var(--graph-soft); color: #b9c2cf; border-color: rgba(148,163,184,.22); }
.i-fin  { background: var(--green-soft); color: #6ee7a0; border-color: rgba(34,197,94,.28); }
.i-gov  { background: var(--blue-soft); color: var(--cyan-light); border-color: rgba(79,195,247,.28); }
.i-ctrl { background: var(--purple-soft); color: #c4b4fb; border-color: rgba(167,139,250,.28); }
.badge-abbr { font-family: var(--mono); letter-spacing: .4px; cursor: help; padding: 4px 9px; }
.badge-soft { background: var(--el); color: var(--ink2); border: 1px solid var(--line); font-weight: 500; }
.tag { background: var(--el); border: 1px solid var(--line); color: var(--muted); padding: 3px 9px; border-radius: 6px; font-size: 11.5px; }

/* ───────────────────────── Tabelas ───────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.tbl thead th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 500; padding: 13px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; background: var(--bg-alt); }
.imp-dots { display: inline-flex; gap: 6px; align-items: center; }
.imp-dot { width: 9px; height: 9px; border-radius: 50%; }
.tbl tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink2); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; cursor: pointer; }
.tbl tbody tr:hover { background: rgba(79,195,247,.06); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl .strong { color: var(--ink); font-weight: 600; }
.cell-title { color: var(--ink); font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 12px; }
.code-pill { font-family: var(--mono); font-size: 11.5px; color: var(--cyan-light); background: var(--blue-soft); padding: 3px 8px; border-radius: 6px; font-weight: 500; border: 1px solid rgba(79,195,247,.22); white-space: nowrap; }

/* ───────────────────────── Avatares ───────────────────────── */
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #06121c; font-size: 11px; font-weight: 700; flex: 0 0 auto; background: linear-gradient(135deg, var(--cyan), var(--blue-ink)); }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who-pair { display: inline-flex; align-items: center; }
.who-pair .avatar { margin-right: -7px; box-shadow: 0 0 0 2px var(--card); }
.who-pair .avatar:last-child { margin-right: 0; }
.avatar.cli { background: linear-gradient(135deg, #9aa6b2, #5b6b7b); }

/* ───────────────────────── Filtros ───────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.select, .input { font-family: var(--sans); font-size: 13px; color: var(--ink2); background: var(--el); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; outline: none; transition: .15s; }
.select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%234FC3F7' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.select option { background: var(--card); color: var(--ink); }
.select:focus, .input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--blue-soft); }
.input::placeholder { color: var(--faint); }
.chip-toggle { font-size: 12.5px; color: var(--muted); background: var(--el); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; font-weight: 500; transition: .15s; }
.chip-toggle:hover { border-color: rgba(79,195,247,.4); color: var(--cyan-light); }
.chip-toggle.on { background: rgba(79,195,247,.14); color: var(--cyan-light); border-color: rgba(79,195,247,.5); }
.filter-dd { position: relative; }
.filter-btn { display: inline-flex; align-items: center; gap: 7px; }
.filter-btn svg { width: 14px; height: 14px; }
.filter-badge { background: var(--cyan); color: #06121c; border-radius: 100px; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 5px; display: inline-grid; place-items: center; font-family: var(--mono); }
.filter-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: var(--card); border: 1px solid var(--hair); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 230px; display: none; }
.filter-panel.open { display: block; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.filter-opt:hover { background: var(--el); }
.filter-opt input { accent-color: var(--cyan); width: 15px; height: 15px; cursor: pointer; }
.filter-clear { width: 100%; text-align: center; margin-top: 6px; padding: 9px; border-radius: 8px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.filter-clear:hover { color: var(--cyan); }

/* ───────────────────────── Kanban ───────────────────────── */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.kcol { flex: 0 0 272px; width: 272px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: 76vh; }
.kcol-head { padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg-alt); border-radius: var(--radius) var(--radius) 0 0; }
.kcol-head .ttl { font-family: var(--display); font-size: 12.5px; font-weight: 700; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.kcol-head .ttl::before { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 6px currentColor; }
.kcol[data-k="Backlog"] .ttl::before{background:var(--graph);color:var(--graph)} .kcol[data-k="Priorizada"] .ttl::before{background:var(--cyan);color:var(--cyan)} .kcol[data-k="Em andamento"] .ttl::before{background:var(--purple);color:var(--purple)} .kcol[data-k="Aguardando cliente"] .ttl::before{background:var(--amber);color:var(--amber)} .kcol[data-k="Em validação"] .ttl::before{background:var(--orange);color:var(--orange)} .kcol[data-k="Concluída"] .ttl::before{background:var(--green);color:var(--green)}
.kcol-head .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--el); border: 1px solid var(--line); border-radius: 100px; padding: 1px 8px; font-weight: 500; }
.kcol-body { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px; cursor: pointer; transition: .15s; }
.kcard:hover { border-color: rgba(79,195,247,.35); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.kcard[draggable] { cursor: grab; }
.kcard.dragging { opacity: .45; cursor: grabbing; }
.kcol.drop-over { background: rgba(79,195,247,.07); box-shadow: inset 0 0 0 2px rgba(79,195,247,.5); }
.kcard .kc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.kcard .kc-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 10px; }
.kcard .kc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kcard .kc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.kcard .kc-client { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kcard .kc-val { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--green); }

/* ───────────────────────── Matriz impacto x esforço ───────────────────────── */
.matrix { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 18px 46px; }
.matrix-grid { position: relative; height: 460px; border-left: 2px solid var(--hair); border-bottom: 2px solid var(--hair); }
.matrix-quad { position: absolute; width: 50%; height: 50%; }
.q-tl { top: 0; left: 0; background: rgba(34,197,94,.09); } .q-tr { top: 0; left: 50%; background: rgba(245,158,11,.09); }
.q-bl { top: 50%; left: 0; background: rgba(148,163,184,.06); } .q-br { top: 50%; left: 50%; background: rgba(239,68,68,.09); }
.matrix-cross-v { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(130,140,150,.3); }
.matrix-cross-h { position: absolute; top: 50%; left: 0; right: 0; border-top: 1px dashed rgba(130,140,150,.3); }
.matrix-dot { position: absolute; transform: translate(-50%, 50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #06121c; font-family: var(--mono); font-size: 9px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .15s, box-shadow .15s; border: 2px solid rgba(7,9,15,.5); z-index: 2; }
.matrix-dot:hover { transform: translate(-50%, 50%) scale(1.18); z-index: 5; }
.axis-y { position: absolute; left: 8px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.axis-x { text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 10px; }

/* Cards de quadrante (abaixo da matriz) */
.quad-grid { align-items: start; }
.quad-card { padding: 0; overflow: hidden; }
.quad-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.quad-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 11px; }
.quad-head-txt { flex: 1; min-width: 0; }
.quad-title { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink); }
.quad-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.quad-count { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ink-deep); }
.quad-list { padding: 8px 9px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.quad-item { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.quad-item:hover { background: var(--blue-soft); }
.quad-item-t { font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.quad-empty { font-size: 12.5px; color: var(--faint); padding: 10px 8px; }

/* ───────────────────────── Score / barras ───────────────────────── */
.score-bars { display: flex; gap: 14px; flex-wrap: wrap; }
.score-item { flex: 1; min-width: 90px; }
.score-item .lab { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 7px; display: flex; justify-content: space-between; }
.score-item .lab b { color: var(--ink); font-family: var(--mono); }
.bar { height: 6px; background: var(--el); border-radius: 100px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 100px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.bar.green > span { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.5); } .bar.amber > span { background: var(--amber); box-shadow: none; } .bar.red > span { background: var(--red); box-shadow: none; }

/* Evolução antes>depois */
.evo { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); white-space: nowrap; }
.evo .a { color: var(--faint); font-weight: 500; } .evo .arrow { color: var(--faint); } .evo .b { color: var(--ink); font-weight: 600; }
.evo .delta { color: var(--green); font-weight: 600; font-size: 11px; }
.maturity-track { display: flex; gap: 3px; }
.maturity-track i { width: 16px; height: 6px; border-radius: 2px; background: var(--el); display: block; }
.maturity-track i.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); } .maturity-track i.was { background: rgba(79,195,247,.35); }

/* ───────────────────────── Impacto blocos ───────────────────────── */
.impact-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.impact-head { padding: 14px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.impact-head .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.impact-head.fin .ico { background: var(--green-soft); color: var(--green); }
.impact-head.gov .ico { background: var(--blue-soft); color: var(--cyan); }
.impact-head.ctrl .ico { background: var(--purple-soft); color: var(--purple); }
.impact-head b { font-size: 14px; color: var(--ink); } .impact-head small { color: var(--muted); font-size: 12px; display: block; }
.impact-body { padding: 16px; }
.kv { display: flex; flex-direction: column; gap: 12px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; align-items: baseline; }
.kv-row .k { color: var(--muted); flex: 0 0 auto; } .kv-row .v { color: var(--ink); font-weight: 600; text-align: right; font-family: var(--mono); }
.kv-row .v.green { color: var(--green); }
/* Lançamentos de impacto (plano contínuo) */
.lanc-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lanc-tot { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; background: var(--bg-alt); }
.lt-l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lt-v { font-family: var(--mono); font-size: 21px; font-weight: 600; color: var(--ink-deep); margin-top: 6px; }
.lt-v.green { color: var(--green); } .lt-v.cyan { color: var(--cyan); }
.lanc-del { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); transition: .12s; }
.lanc-del svg { width: 13px; height: 13px; }
.lanc-del:hover { color: var(--red); background: var(--red-soft); }
@media (max-width: 880px) { .lanc-totals { grid-template-columns: 1fr; } }

/* Definição / texto */
.def { display: grid; grid-template-columns: 1fr; gap: 16px; }
.def-item .lab { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--cyan); font-weight: 500; margin-bottom: 5px; }
.def-item p { color: var(--ink2); font-size: 14px; line-height: 1.6; }

/* Timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content:''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot { position: absolute; left: -25px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.tl-item.green .dot { border-color: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.5); } .tl-item.amber .dot { border-color: var(--amber); box-shadow: none; } .tl-item.graph .dot { border-color: var(--graph); box-shadow: none; }
.tl-item .tl-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tl-item .tl-type { font-size: 13px; font-weight: 600; color: var(--ink); }
.tl-item .tl-date { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.tl-item .tl-desc { font-size: 13px; color: var(--ink2); margin-top: 3px; }
.tl-item .tl-who { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }

/* Checklist */
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-item:last-child { border-bottom: none; }
.check-box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--hair); flex: 0 0 18px; display: grid; place-items: center; transition: .15s; }
.check-item.done .check-box { background: var(--green); border-color: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.45); }
.check-item.done .ci-title { color: var(--faint); text-decoration: line-through; }
.check-box svg { width: 11px; height: 11px; color: #06121c; opacity: 0; }
.check-item.done .check-box svg { opacity: 1; }
.ci-title { font-size: 13.5px; color: var(--ink2); flex: 1; }
/* Estado da tarefa (clicável): andamento / bloqueado / concluído */
.ci-state-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--el); flex: 0 0 26px; cursor: pointer; transition: .15s; }
.ci-state-btn svg { width: 13px; height: 13px; }
.ci-state-btn.st-prog { color: var(--amber); border-color: rgba(245,158,11,.45); box-shadow: 0 0 8px rgba(245,158,11,.18); }
.ci-state-btn.st-block { color: var(--red); border-color: rgba(239,68,68,.45); box-shadow: 0 0 8px rgba(239,68,68,.18); }
.ci-state-btn.st-done { color: var(--green); border-color: rgba(34,197,94,.45); box-shadow: 0 0 8px rgba(34,197,94,.18); }
.ci-state-btn:hover { transform: scale(1.1); }
.ci-meta { font-size: 11.5px; color: var(--faint); display: flex; gap: 10px; white-space: nowrap; }
.ci-del { opacity: 0; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); flex: 0 0 24px; transition: .12s; }
.ci-del svg { width: 13px; height: 13px; }
.check-item:hover .ci-del { opacity: 1; }
.ci-del:hover { color: var(--red); background: var(--red-soft); }
.check-add { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.check-add #ck-new { flex: 1 1 150px; }
.check-add .select { flex: 0 1 auto; }
.check-add input[type="date"] { flex: 0 0 auto; width: auto; }
.task-counters { display: flex; gap: 8px; }
.tc { font-size: 11px; color: var(--muted); background: var(--el); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; white-space: nowrap; }
.tc b { font-family: var(--mono); color: var(--ink); margin-left: 5px; }
.tc-venc.on { background: var(--red-soft); border-color: rgba(239,68,68,.32); color: var(--red); }
.tc-venc.on b { color: var(--red); }

/* Evidências */
.evid { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.evid:last-child { border-bottom: none; }
.evid .e-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-soft); color: var(--cyan); display: grid; place-items: center; flex: 0 0 34px; }
.evid .e-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.evid .e-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.evid .e-meta { font-size: 11.5px; color: var(--faint); margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Progress */
.progress { height: 7px; background: var(--el); border-radius: 100px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--cyan); border-radius: 100px; box-shadow: 0 0 8px var(--cyan-glow); }
.progress.green > span { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.5); }

/* Relatório executivo (documento dark premium) */
.report-doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 880px; margin: 0 auto; overflow: hidden; }
.report-band { height: 4px; background: linear-gradient(90deg, var(--blue-ink), var(--cyan)); box-shadow: 0 0 14px var(--cyan-glow); }
.report-inner { padding: 40px 48px 46px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.report-head h2 { font-family: var(--display); font-size: 24px; color: var(--ink-deep); font-weight: 800; }
.report-head .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.7; }
.report-lead { font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--blue-soft); border: 1px solid rgba(79,195,247,.22); padding: 16px 18px; border-radius: 10px; margin-bottom: 26px; }
.report-sec { margin-bottom: 24px; }
.report-sec h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--cyan); font-weight: 500; margin-bottom: 11px; }
.report-sec ul { list-style: none; }
.report-sec li { font-size: 14px; color: var(--ink2); padding: 6px 0 6px 20px; position: relative; line-height: 1.55; }
.report-sec li::before { content:''; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: rgba(79,195,247,.55); }
.report-sec li b { color: var(--ink); }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.report-stat { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg-alt); }
.report-stat .l { font-size: 11.5px; color: var(--muted); } .report-stat .v { font-family: var(--mono); font-size: 19px; font-weight: 500; color: var(--ink-deep); margin-top: 4px; }
/* Plano em aberto com próximas etapas (relatório) */
.report-plan { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--bg-alt); }
.rp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.rp-title { font-weight: 600; color: var(--ink); font-size: 14px; flex: 1; min-width: 0; }
.rp-meta { font-size: 12px; color: var(--muted); margin-bottom: 11px; }
.rp-meta b { color: var(--ink2); font-weight: 600; }
.rp-steps { border-top: 1px dashed var(--hair); padding-top: 10px; }
.rp-steps-l { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--cyan); font-weight: 500; }
.rp-steps ul { list-style: none; margin-top: 7px; }
.rp-steps li { font-size: 13px; color: var(--ink2); padding: 4px 0 4px 18px; position: relative; line-height: 1.45; }
.rp-steps li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: rgba(79,195,232,.7); }
/* Histórico recente (relatório) */
.report-history { display: flex; flex-direction: column; }
.rh-item { display: flex; align-items: baseline; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.rh-item:last-child { border-bottom: none; }
.rh-date { font-family: var(--mono); font-size: 11px; color: var(--faint); flex: 0 0 78px; }
.rh-type { font-weight: 600; color: var(--ink); }
.rh-desc { color: var(--ink2); flex: 1; min-width: 160px; }

/* ════════════ RELATÓRIO EXECUTIVO — documento claro premium ════════════ */
.rpt-toolbar { max-width: 880px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rpt { max-width: 880px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.4); color: #1b2632; font-family: var(--sans); }
.rpt-cover { background: radial-gradient(120% 100% at 88% 0%, rgba(79,195,247,.22), transparent 58%), linear-gradient(135deg, #0F1B2A, #16314d); padding: 32px 44px 30px; color: #fff; position: relative; }
.rpt-cover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #4FC3F7, rgba(79,195,247,0)); }
.rpt-cover-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.rpt-brand-wm { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 2px; color: #fff; }
.rpt-brand-wm span { color: #4FC3F7; }
.rpt-brand-by { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-left: 7px; text-transform: uppercase; }
.rpt-cover-date { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.6); }
.rpt-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #7ED6F9; margin-bottom: 11px; }
.rpt-client { font-family: var(--display); font-size: 32px; font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -.01em; }
.rpt-cover-sub { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 9px; }
.rpt-body { padding: 30px 44px 38px; }
/* hero */
.rpt-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #e7ecf2; border-radius: 14px; padding: 22px 26px; background: linear-gradient(135deg, #f2faf5, #fff 70%); margin-bottom: 26px; flex-wrap: wrap; }
.rpt-hero-l { font-size: 11.5px; color: #6a7685; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.rpt-hero-v { font-family: var(--mono); font-size: 38px; font-weight: 600; color: #1f8a52; line-height: 1.03; margin-top: 8px; }
.rpt-hero-n { font-size: 13px; color: #6a7685; margin-top: 9px; } .rpt-hero-n b { color: #1b2632; font-weight: 600; }
.rpt-hero-side { display: flex; gap: 26px; }
.rpt-mini-v { font-family: var(--mono); font-size: 21px; font-weight: 600; color: #0F1B2A; }
.rpt-mini-l { font-size: 11px; color: #6a7685; margin-top: 3px; }
/* lead */
.rpt-lead { font-size: 14.5px; line-height: 1.7; color: #3a4654; margin-bottom: 8px; }
.rpt-phrase { font-size: 14px; line-height: 1.65; color: #3a4654; margin-top: 14px; } .rpt-phrase b { color: #1b2632; }
/* h2 de seção */
.rpt-h2 { font-family: var(--display); font-size: 17px; font-weight: 700; color: #0F1B2A; margin: 30px 0 0; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #ebeff3; }
.rpt-h2::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: #1488BE; flex: 0 0 4px; }
.rpt-h2-c { font-family: var(--mono); font-size: 13px; color: #9aa6b2; font-weight: 500; }
.rpt-h2-sub { font-size: 12.5px; color: #6a7685; margin: 9px 0 2px; }
/* maturidade */
.rpt-mats { display: flex; flex-direction: column; gap: 17px; margin-top: 16px; }
.rpt-mat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; font-size: 13px; }
.rpt-mat-name { font-weight: 600; color: #1b2632; }
.rpt-mat-delta { font-family: var(--mono); color: #6a7685; } .rpt-mat-delta b { color: #0F1B2A; } .rpt-arrow { color: #9aa6b2; }
.rpt-mat-up { color: #1f8a52; font-weight: 600; margin-left: 6px; }
/* gráfico de evolução mensal da maturidade */
.rpt-mat-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; font-size: 13px; color: #44505f; }
.rml { display: inline-flex; align-items: center; gap: 8px; }
.rml-dot { width: 10px; height: 10px; border-radius: 50%; }
.rml b { color: #0F1B2A; font-family: var(--mono); } .rml-up { color: #1f8a52; font-weight: 600; }
.rpt-chart { border: 1px solid #e7ecf2; border-radius: 12px; padding: 14px 16px 8px; margin-top: 14px; background: #fff; }
.rpt-chart-svg { width: 100%; height: auto; display: block; }
.rpt-mat-bar { height: 9px; background: #eef2f6; border-radius: 100px; position: relative; }
.rpt-mat-now { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #5bbbe6, #1488BE); }
.rpt-mat-was { position: absolute; top: -3px; height: 15px; width: 2px; background: #8b97a4; border-radius: 2px; }
/* tiles */
.rpt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.rpt-tile { border: 1px solid #e7ecf2; border-radius: 11px; padding: 15px 16px; }
.rpt-tile-l { font-size: 11.5px; color: #6a7685; font-weight: 600; }
.rpt-tile-v { font-family: var(--mono); font-size: 23px; font-weight: 600; color: #0F1B2A; margin-top: 7px; }
.rpt-tile.t-green .rpt-tile-v { color: #1f8a52; } .rpt-tile.t-red .rpt-tile-v { color: #c2362c; } .rpt-tile.t-cyan .rpt-tile-v { color: #1577a8; }
.rpt-tile-s { font-size: 11.5px; color: #9aa6b2; margin-top: 5px; }
/* plano em aberto */
.rpt-plan { border: 1px solid #e7ecf2; border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.rpt-plan-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rpt-code { font-family: var(--mono); font-size: 11.5px; color: #1577a8; background: #eaf4fb; padding: 3px 8px; border-radius: 6px; font-weight: 500; }
.rpt-code.sm { font-size: 10.5px; padding: 2px 6px; }
.rpt-plan-title { font-weight: 600; color: #1b2632; font-size: 14.5px; flex: 1; min-width: 0; }
.rpt-pill { font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 100px; white-space: nowrap; }
.rpt-plan-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #6a7685; margin-bottom: 13px; }
.rpt-plan-meta b { color: #1b2632; font-weight: 600; }
.rpt-steps { background: #f7f9fb; border: 1px solid #eef2f6; border-radius: 10px; padding: 12px 15px; }
.rpt-steps-l { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #1488BE; font-weight: 500; }
.rpt-steps ul { list-style: none; margin-top: 7px; }
.rpt-steps li { font-size: 13px; color: #3a4654; padding: 4px 0 4px 18px; position: relative; line-height: 1.45; }
.rpt-steps li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #1488BE; }
/* concluídos */
.rpt-done { display: flex; flex-direction: column; margin-top: 14px; }
.rpt-done-item { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid #eef2f6; }
.rpt-done-item:last-child { border-bottom: none; }
.rpt-check { width: 20px; height: 20px; border-radius: 6px; background: #1f8a52; display: grid; place-items: center; flex: 0 0 20px; }
.rpt-check svg { width: 12px; height: 12px; color: #fff; }
.rpt-done-t { flex: 1; font-size: 13.5px; color: #1b2632; }
.rpt-done-v { font-family: var(--mono); font-weight: 600; color: #1f8a52; font-size: 13px; }
/* histórico de planos concluídos */
.rpt-hist { display: flex; flex-direction: column; margin-top: 14px; }
.rpt-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eef2f6; }
.rpt-hist-item:last-child { border-bottom: none; }
.rpt-hist-l { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.rpt-hist-t { font-size: 14px; font-weight: 600; color: #1b2632; }
.rpt-hist-d { font-family: var(--mono); font-size: 11.5px; color: #9aa6b2; margin-top: 3px; }
.rpt-hist-imp { text-align: right; font-family: var(--mono); font-size: 15px; font-weight: 600; color: #1f8a52; white-space: nowrap; }
.rpt-hist-an { display: block; font-size: 11px; color: #9aa6b2; font-weight: 500; margin-top: 2px; }
/* timeline */
.rpt-timeline { margin-top: 14px; }
.rpt-tl { display: flex; gap: 12px; padding: 9px 0; }
.rpt-tl-date { font-family: var(--mono); font-size: 11px; color: #9aa6b2; flex: 0 0 70px; padding-top: 2px; }
.rpt-tl-dot { width: 9px; height: 9px; border-radius: 50%; background: #cfe3f0; border: 2px solid #1488BE; flex: 0 0 9px; margin-top: 4px; }
.rpt-tl-body { flex: 1; font-size: 13px; color: #1b2632; }
.rpt-tl-desc { font-size: 12.5px; color: #6a7685; margin-top: 2px; }
/* riscos */
.rpt-list { list-style: none; margin-top: 14px; }
.rpt-list li { font-size: 13.5px; color: #3a4654; padding: 9px 0; border-bottom: 1px solid #f0f3f6; line-height: 1.5; } .rpt-list li:last-child { border-bottom: none; }
.rpt-list b { color: #1b2632; }
.rpt-li-tag { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-right: 8px; white-space: nowrap; }
.tag-amber { background: #fbf1de; color: #9a6a0a; } .tag-red { background: #fbe9e7; color: #c2362c; } .tag-cyan { background: #eaf4fb; color: #1577a8; }
/* recomendação */
.rpt-reco { background: linear-gradient(135deg, #0F1B2A, #16314d); border-radius: 12px; padding: 20px 22px; margin-top: 28px; }
.rpt-reco-l { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: #7ED6F9; margin-bottom: 9px; }
.rpt-reco p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.86); }
/* footer */
.rpt-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid #ebeff3; font-family: var(--mono); font-size: 10px; color: #9aa6b2; text-transform: uppercase; letter-spacing: .5px; }
.rpt-empty { font-size: 13px; color: #9aa6b2; padding: 12px 0; }
@media (max-width: 880px) {
  .rpt-cover, .rpt-body { padding-left: 22px; padding-right: 22px; }
  .rpt-tiles { grid-template-columns: repeat(2, 1fr); }
  .rpt-hero { flex-direction: column; align-items: flex-start; } .rpt-hero-side { gap: 20px; }
  .rpt-client { font-size: 26px; }
}
@media print {
  .rpt-toolbar, .sidebar, .topbar, .scrim { display: none !important; }
  .rpt { box-shadow: none; max-width: 100%; border-radius: 0; }
  body, .content, .main, .app { background: #fff !important; }
  .content { padding: 0 !important; max-width: 100% !important; }
}

/* Cliente header (briefing PRUMAI) */
.client-hero { background: linear-gradient(135deg, rgba(79,195,247,.12), rgba(2,119,189,.07)), var(--card); border: 1px solid rgba(79,195,247,.22); border-radius: var(--radius); padding: 26px 28px; color: var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.client-hero::after { content:''; position: absolute; right: -50px; top: -50px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(79,195,247,.18), transparent 70%); }
.client-hero h1 { font-family: var(--display); font-size: 26px; font-weight: 800; position: relative; color: #fff; }
.client-hero .ch-seg { color: var(--cyan-light); font-size: 13.5px; margin-top: 5px; }
.client-hero .ch-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; position: relative; }
.client-hero .ch-meta .m .l { font-family: var(--mono); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }
.client-hero .ch-meta .m .v { font-size: 13.5px; color: var(--ink); font-weight: 600; margin-top: 3px; }
.ch-edit { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cyan-light); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 7px 12px; transition: .15s; white-space: nowrap; }
.ch-edit svg { width: 14px; height: 14px; }
.ch-edit:hover { background: rgba(79,195,247,.18); border-color: rgba(79,195,247,.4); color: #fff; }
/* Dados cadastrais / administrativo */
.adm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; }
.adm-l { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.adm-v { font-size: 13.5px; color: var(--ink); margin-top: 5px; font-weight: 500; }
.team-list { display: flex; flex-direction: column; gap: 2px; }
.team-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.team-item:last-child { border-bottom: none; }
.team-info { flex: 1; min-width: 0; }
.team-n { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.team-lado { font-size: 9.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--el); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.team-lado.jce { color: var(--cyan-light); background: var(--blue-soft); border-color: rgba(79,195,247,.25); }
.team-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.team-del { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); flex: 0 0 24px; }
.team-del svg { width: 13px; height: 13px; }
.team-del:hover { color: var(--red); background: var(--red-soft); }
@media (max-width: 880px) { .adm-grid { grid-template-columns: 1fr 1fr; } }

/* misc */
.muted { color: var(--muted); } .faint { color: var(--faint); }
.flex { display: flex; } .between { justify-content: space-between; } .center-y { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap-w { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.empty { text-align: center; padding: 40px; color: var(--faint); font-size: 13px; }
.pill-link { color: var(--cyan); font-weight: 600; font-size: 12.5px; }
.pill-link:hover { text-decoration: underline; }
.dist-bar { display: flex; height: 10px; border-radius: 100px; overflow: hidden; background: var(--el); }
.dist-bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.legend .li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend b { font-family: var(--mono); }
.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; font-size: 13px; }
.hbar-row .hl { width: 130px; color: var(--ink2); flex: 0 0 130px; text-align: right; }
.hbar-row .ht { flex: 1; height: 18px; background: var(--el); border-radius: 5px; overflow: hidden; }
.hbar-row .ht > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-ink), var(--cyan)); border-radius: 5px; }
.hbar-row .hv { width: 90px; text-align: right; font-family: var(--mono); font-weight: 600; color: var(--ink); flex: 0 0 90px; }

/* Modal (formulário) */
.modal-bg { position: fixed; inset: 0; background: rgba(3,5,10,.7); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 760px; overflow: hidden; }
.modal-head { padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-head h3 { font-family: var(--display); font-size: 19px; color: var(--ink-deep); font-weight: 700; }
.modal-body { padding: 22px 26px; }
.modal-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-alt); }
.form-sec { margin-bottom: 24px; }
.form-sec > .fs-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--cyan); font-weight: 500; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.form-sec > .fs-title .n { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft); color: var(--cyan); display: grid; place-items: center; font-size: 10px; border: 1px solid rgba(79,195,247,.3); }
.field { margin-bottom: 14px; } .field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink2); margin-bottom: 6px; }
.field .input, .field .select, .field textarea { width: 100%; }
.field textarea { font-family: inherit; font-size: 13.5px; color: var(--ink2); background: var(--el); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; resize: vertical; min-height: 64px; outline: none; }
.field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--blue-soft); }
.f-row { display: grid; gap: 12px; } .f-row.c2 { grid-template-columns: 1fr 1fr; } .f-row.c3 { grid-template-columns: 1fr 1fr 1fr; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.checks input { accent-color: var(--cyan); }
.score-preview { background: var(--blue-soft); border: 1px solid rgba(79,195,247,.22); border-radius: 10px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; }
.score-preview .sp-num { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--cyan-light); }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--el); border: 1px solid rgba(79,195,247,.3); color: var(--ink); padding: 13px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: .25s; pointer-events: none; display: flex; align-items: center; gap: 9px; }
.toast svg { color: var(--cyan); width: 16px; height: 16px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Recolher barra lateral (rail só com ícones) */
.rail-toggle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--el); color: var(--muted); flex: 0 0 34px; transition: .15s; }
.rail-toggle:hover { color: var(--cyan); border-color: rgba(79,195,247,.4); }
.rail-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.app.collapsed .rail-toggle svg { transform: rotate(180deg); }
.brand-symbol { display: none; width: 26px; height: auto; margin: 0 auto; filter: drop-shadow(0 0 5px var(--cyan-glow)); }
.sidebar { transition: width .2s ease, flex-basis .2s ease; }
@media (min-width: 881px) {
  .app.collapsed .sidebar { width: 78px; flex-basis: 78px; padding-left: 12px; padding-right: 12px; }
  .app.collapsed .brand { padding: 8px 0 18px; }
  .app.collapsed .brand-logo { display: none; }
  .app.collapsed .brand-symbol { display: block; }
  .app.collapsed .nav-group-label { display: none; }
  .app.collapsed .nav-group-head { display: none; }
  .app.collapsed .nav-group-items { max-height: none; overflow: visible; }
  .app.collapsed .nav-item { justify-content: center; padding: 11px 0; gap: 0; }
  .app.collapsed .nav-item span { display: none; }
  .app.collapsed .nav-item.active::before { left: -12px; }
  .app.collapsed .nav-user { justify-content: center; }
  .app.collapsed .nav-user > div { display: none; }
}

/* Estado vazio (sistema zerado) */
.empty-state { text-align: center; padding: 52px 32px; }
.empty-state .es-icon { width: 58px; height: 58px; border-radius: 15px; background: var(--blue-soft); color: var(--cyan); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 0 24px var(--cyan-glow); }
.empty-state .es-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-family: var(--display); font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 52ch; margin: 0 auto 22px; line-height: 1.6; }
.empty-state .es-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Controle de dados na sidebar */
.data-actions { display: flex; gap: 8px; margin-top: 12px; }
.data-link { flex: 1; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--el); border: 1px solid var(--line); border-radius: 7px; padding: 7px 6px; transition: .15s; }
.data-link:hover { color: var(--cyan); border-color: rgba(79,195,247,.3); }
.data-link.danger:hover { color: #fca5a5; border-color: rgba(239,68,68,.35); }
.app.collapsed .data-actions { display: none; }

/* Mobile */
.menu-btn { display: none; }
@media (max-width: 1080px) { .g-6 { grid-template-columns: repeat(3,1fr); } .g-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 880px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--el); color: var(--ink2); }
  .grid { grid-template-columns: 1fr !important; } .g-6 { grid-template-columns: repeat(2,1fr) !important; }
  .content { padding: 20px 16px 60px; } .topbar { padding: 0 16px; } .topbar-search { display: none; } .rail-toggle { display: none; }
  .report-inner { padding: 26px 22px; } .f-row.c2, .f-row.c3 { grid-template-columns: 1fr; }
  .report-head { flex-direction: column; gap: 10px; } .report-head .meta { text-align: left; }
}
.scrim { display: none; }
@media (max-width: 880px) { .scrim.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Alternador de tema (topbar) */
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--el); color: var(--muted); transition: .15s; flex: 0 0 36px; }
.theme-toggle:hover { color: var(--cyan); border-color: rgba(79,195,247,.4); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-moon { display: none; }
html.theme-light .theme-toggle .ic-sun { display: none; }
html.theme-light .theme-toggle .ic-moon { display: block; }

/* ════════════ TEMA CLARO (conteúdo claro · barra lateral permanece escura) ════════════ */
html.theme-light {
  --bg: #EDF1F6; --bg-alt: #F6F8FB; --card: #FFFFFF; --el: #EEF2F7; --white: #FFFFFF;
  --ink-deep: #0F1B2A; --ink: #18202B; --ink2: #3C4654; --muted: #5E6875; --faint: #98A2AE;
  --line: #E6EBF1; --hair: #D8DFE8;
  --cyan: #1488BE; --cyan-light: #1A7BAA; --blue: #1488BE; --blue-d: #0F6E99;
  --blue-line: #BFE0F2; --blue-soft: #E8F4FB; --cyan-glow: rgba(79,195,247,.22);
  --green-soft: rgba(34,197,94,.13); --amber-soft: rgba(245,158,11,.15); --orange-soft: rgba(251,146,60,.15);
  --red-soft: rgba(239,68,68,.12); --purple-soft: rgba(167,139,250,.15); --graph-soft: rgba(148,163,184,.15);
  --shadow: 0 1px 2px rgba(20,24,30,.05), 0 6px 16px rgba(20,24,30,.05);
  --shadow-sm: 0 1px 2px rgba(20,24,30,.06);
  --shadow-md: 0 1px 2px rgba(20,24,30,.05), 0 8px 20px rgba(20,24,30,.08);
  --shadow-lg: 0 20px 50px rgba(20,24,30,.14);
}
/* barra lateral continua escura, com seus brilhos */
html.theme-light .sidebar { background: radial-gradient(140% 24% at 24% 0%, rgba(79,195,247,.12), transparent 60%), #07090F; border-right-color: rgba(255,255,255,.05); }
html.theme-light .nav-foot { border-top-color: rgba(255,255,255,.08); }
html.theme-light .nav-item:hover { background: rgba(255,255,255,.05); }
html.theme-light .nav-user small { color: rgba(240,244,248,.42); }
html.theme-light .nav-user b { color: #dfe7ef; }
html.theme-light .data-link { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(240,244,248,.62); }
html.theme-light .data-link:hover { color: var(--cyan-light); border-color: rgba(79,195,247,.4); }
html.theme-light .brand-symbol { filter: drop-shadow(0 0 5px rgba(79,195,247,.5)); }
html.theme-light .nav-item.active::before { box-shadow: 0 0 12px rgba(79,195,247,.5); }
/* topbar claro */
html.theme-light .topbar { background: rgba(255,255,255,.82); border-bottom-color: var(--line); }
/* tabela hover claro */
html.theme-light .tbl tbody tr:hover { background: #EFF6FC; }
/* texto de badges legível em fundo claro */
html.theme-light .s-priorizada, html.theme-light .i-gov { color: #16719b; }
html.theme-light .s-andamento, html.theme-light .i-ctrl { color: #5b4b8a; }
html.theme-light .s-aguardando, html.theme-light .p-media { color: #93660a; }
html.theme-light .s-validacao { color: #b45309; }
html.theme-light .s-concluida, html.theme-light .i-fin { color: #1a7d4f; }
html.theme-light .p-alta { color: #b3392f; }
html.theme-light .s-backlog, html.theme-light .p-baixa, html.theme-light .s-cancelada, html.theme-light .s-suspensa { color: #51606f; }
html.theme-light .stat.a-red .stat-v { color: #c2362c; } html.theme-light .stat.a-amber .stat-v { color: #9a6a00; } html.theme-light .stat.a-green .stat-v { color: #1a7d4f; } html.theme-light .stat.a-cyan .stat-v { color: #16719b; } html.theme-light .stat.a-purple .stat-v { color: #5b4b8a; }
html.theme-light .kc-val { color: #1a7d4f; } html.theme-light .kv-row .v.green { color: #1a7d4f; }
html.theme-light .evo .delta { color: #1a7d4f; }
/* botões */
html.theme-light .btn-primary { color: #fff; }
/* briefing: negrito escuro em vez de branco */
html.theme-light .b-text b { color: var(--ink-deep); }
/* matriz: anel claro nos pontos */
html.theme-light .matrix-dot { border-color: #fff; box-shadow: 0 1px 4px rgba(20,24,30,.25); }
/* cabeçalho do cliente permanece escuro (acento premium) */
html.theme-light .client-hero { background: linear-gradient(135deg, rgba(79,195,247,.16), rgba(2,119,189,.05)), #fff; border-color: rgba(2,119,189,.18); }
html.theme-light .client-hero::after { background: radial-gradient(circle, rgba(79,195,247,.22), transparent 70%); }
html.theme-light .client-hero h1 { color: #0F1B2A; }
html.theme-light .client-hero .ch-meta .m .v { color: #1d2c3a; }
html.theme-light .client-hero .ch-meta .m .l { color: #7a8b9b; }
html.theme-light .client-hero .ch-seg { color: #0277BD; }
html.theme-light .ch-edit { color: #0b6aa3; background: rgba(2,119,189,.07); border-color: rgba(2,119,189,.22); }
html.theme-light .ch-edit:hover { background: rgba(2,119,189,.14); border-color: rgba(2,119,189,.4); color: #064d78; }
html.theme-light .ch-edit.ch-danger { color: #c2362c; }
html.theme-light .ch-edit.ch-danger:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #a02218; }

/* ============================ Melhorias 2026-07 ============================ */

/* Grid de checkboxes de áreas (edição do plano) */
.checks-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 14px; max-height: 190px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--el); }
.checks-wrap label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink2); cursor: pointer; }

/* Busca global (dropdown de resultados) */
.topbar-search { position: relative; }
.search-results { position: absolute; top: calc(100% + 6px); right: 0; left: auto; min-width: 340px; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); display: none; z-index: 90; max-height: 350px; overflow-y: auto; }
.search-results.open { display: block; }
.sr-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--el); }
.sr-kind { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--blue-soft); color: var(--cyan); flex: 0 0 auto; }
.sr-txt { min-width: 0; }
.sr-txt b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-txt small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-empty { padding: 14px; font-size: 12.5px; color: var(--muted); }

/* Ações do cabeçalho do cliente (editar / arquivar / excluir) */
.ch-actions { position: absolute; top: 18px; right: 20px; z-index: 2; display: flex; gap: 8px; }
.ch-actions .ch-edit { position: static; }
.ch-edit.ch-danger { color: #fca5a5; }
.ch-edit.ch-danger:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.45); color: #fff; }

/* Nomes completos nos gráficos horizontais */
.hbar-row .hl { width: 180px; flex: 0 0 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Apresentação semanal (imprimível) ---------------- */
.pres { display: flex; flex-direction: column; gap: 22px; max-width: 1080px; margin: 0 auto; }
.pres-slide { background: #fff; color: #16232f; border-radius: 12px; box-shadow: var(--shadow); padding: 42px 48px; min-height: 420px; }
.ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.ps-kicker { font-family: var(--display); font-weight: 800; font-size: 24px; color: #1577a8; letter-spacing: .5px; }
.ps-arrows { color: #4FC3F7; letter-spacing: -2px; }
.ps-title { font-family: var(--display); font-weight: 800; font-size: 17px; color: #0f5e86; text-transform: uppercase; margin-top: 4px; letter-spacing: .4px; }
.ps-brand { font-size: 12px; color: #5b6b7b; white-space: nowrap; }
.ps-brand b { font-family: var(--display); color: #16232f; }
.ps-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 26px 0 18px; font-size: 13.5px; color: #16232f; }
.ps-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #3d4c5a; }
.ps-legend i { display: inline-grid; }
.ps-ic { display: inline-grid; place-items: center; }
.ps-ic svg { width: 17px; height: 17px; stroke-width: 2.6; }
.ps-ic.ok { color: #1f9d55; }
.ps-ic.no { color: #dd4040; }
.ps-ic.prog { color: #e8a512; }
.ps-tbl { width: 100%; border-collapse: collapse; }
.ps-tbl thead th { padding: 8px 10px 12px; }
.ps-th { display: inline-block; background: #1577a8; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; padding: 6px 22px; border-radius: 100px; }
.ps-tbl tbody td { padding: 13px 10px; border-top: 1px solid #e3e9ee; font-size: 14.5px; color: #22313f; }
.ps-tbl .ps-st { text-align: center; }
.ps-none { color: #8a97a3; font-size: 13px; }
.pres-cover { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; min-height: 340px; background: linear-gradient(135deg, #0F1B2A, #14304a); color: #fff; }
.ps-cover-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 4px; color: #7ED6F9; }
.ps-cover-client { font-family: var(--display); font-weight: 800; font-size: 40px; }
.ps-cover-date { font-family: var(--mono); font-size: 14px; color: rgba(255,255,255,.75); }
.ps-cover-brand { margin-top: 26px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.ps-cover-brand b { font-family: var(--display); color: #fff; }
html.theme-light .pres-slide { box-shadow: 0 2px 10px rgba(15,30,45,.12); border: 1px solid #e2e8ee; }

@media print {
  .pres-toolbar, .page-head { display: none !important; }
  .pres { gap: 0; max-width: 100%; }
  .pres-slide { border-radius: 0; box-shadow: none; border: none; page-break-after: always; min-height: auto; padding: 34px 30px; }
  .pres-cover { background: #0F1B2A !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Kanban: barra de rolagem horizontal sempre visível e fácil de arrastar */
.kanban { overflow-x: scroll; scrollbar-width: auto; scrollbar-color: rgba(79,195,247,.55) var(--el); }
.kanban::-webkit-scrollbar { height: 13px; }
.kanban::-webkit-scrollbar-track { background: var(--el); border-radius: 10px; }
.kanban::-webkit-scrollbar-thumb { background: rgba(79,195,247,.45); border-radius: 10px; }
.kanban::-webkit-scrollbar-thumb:hover { background: rgba(79,195,247,.75); }
html.theme-light .kanban::-webkit-scrollbar-track { background: rgba(15,30,45,.08); }
html.theme-light .kanban::-webkit-scrollbar-thumb { background: rgba(2,119,189,.45); }
html.theme-light .kanban::-webkit-scrollbar-thumb:hover { background: rgba(2,119,189,.7); }
