@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ==========================================================================
   robo_Linx_Relatorios — cores extraídas da imagem de referência
   ========================================================================== */
:root {
  /* verde da marca */
  --green-900: #2E4A3B;        /* sidebar, botão principal, barra ativa */
  --green-800: #36543F;        /* hover na sidebar */
  --green-700: #3F5E4A;
  --sidebar-ink: #DCE3DE;      /* texto da sidebar */
  --sidebar-muted: #A9B8AE;

  /* superfícies (tons quentes) */
  --bg-page: #1F2A24;          /* fundo atrás do app */
  --bg-main: #EDECE7;          /* área principal */
  --card: #F3F2EE;             /* cards */
  --card-border: #DEDCD5;
  --control: #E5E4DF;          /* tab ativa / trilhos */
  --control-border: #D6D4CD;
  --white: #F8F8F5;

  /* texto */
  --ink: #1D221F;
  --ink-2: #3A3F3B;
  --muted: #7D807B;
  --muted-2: #A4A6A1;

  /* dados */
  --positive: #3AA365;
  --orange: #F07A1F;
  --green-bar: #56B77A;
  --chart-fill: #CFE2D5;
  --bar-grey: #D5D4CE;
  --track: #DDDCD6;

  /* badges */
  --hired-bg: #DDEEDF;  --hired-ink: #3C9A5E;
  --progress-bg: #FBE2CE; --progress-ink: #E27418;

  --r-app: 16px;
  --r-card: 12px;
  --r-ctrl: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 700px at 20% 10%, #4B5B52 0%, transparent 60%),
              radial-gradient(1000px 700px at 90% 90%, #7A5A3A 0%, transparent 60%),
              var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 40px 32px;
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- App ---------- */
.app {
  max-width: 1420px; margin: 0 auto;
  display: flex; border-radius: var(--r-app); overflow: hidden;
  background: var(--green-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .15);
}

/* ---------- Sidebar ---------- */
.sidebar { width: 252px; flex: none; padding: 20px 18px 18px; display: flex; flex-direction: column; color: var(--sidebar-ink); position: relative; }
.brand { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 2px; }
.brand__mark { width: 26px; height: 26px; color: #fff; }
.brand__name { font-size: 18px; font-weight: 500; color: #fff; letter-spacing: -.01em; }
.brand__toggle { margin-left: auto; background: none; border: 0; padding: 4px; color: var(--sidebar-muted); }

.nav { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: var(--r-ctrl);
  color: var(--sidebar-ink); text-decoration: none; font-size: 14px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--green-800); }
.nav a.is-active { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.nav a.is-active::before { content: ""; position: absolute; left: -20px; top: 12px; width: 4px; height: 16px; border-radius: 0 3px 3px 0; background: var(--white); }
.nav--bottom { margin-top: auto; gap: 4px; }

.user { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 4px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.user__name { font-size: 14px; color: #fff; font-weight: 500; }
.user__role { font-size: 12px; color: var(--sidebar-muted); margin-top: 2px; }
.user .ico { margin-left: auto; color: var(--sidebar-ink); }

/* ---------- Avatares (placeholder – troque por <img>) ---------- */
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: #CFC4B8; }
.avatar svg, .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 26px; height: 26px; }
.stack { display: flex; align-items: center; }
.stack > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.stack > *:first-child { margin-left: 0; }
.stack__more { width: 26px; height: 26px; border-radius: 50%; background: var(--control); display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.stack__more--lg { width: 32px; height: 32px; font-size: 16px; font-weight: 400; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; background: var(--bg-main); border-radius: var(--r-app) 0 0 var(--r-app); display: flex; flex-direction: column; }
.topbar { height: 72px; flex: none; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--card-border); }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.btn-primary {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-ctrl);
  background: var(--green-900); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 6px rgba(46, 74, 59, .35); transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-primary .ico { width: 15px; height: 15px; stroke-width: 2; }

.content { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 22px; }

.tabs { display: flex; gap: 8px; }
.tab {
  height: 34px; padding: 0 16px; border-radius: var(--r-ctrl);
  border: 1px solid var(--control-border); background: transparent;
  font-size: 12px; color: var(--muted); transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--control); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }

/* ---------- Cards ---------- */
.row { display: grid; gap: 22px; }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row--2 { grid-template-columns: minmax(0, 2.07fr) minmax(0, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-card);
  padding: 18px 18px 18px; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(0, 0, 0, .03);
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 28px -14px rgba(30, 40, 34, .28); }
.card__title { margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: -.005em; }
.kpi { font-size: 31px; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.kpi span { color: var(--muted); }
.delta { font-size: 11px; color: var(--muted); }
.delta b { color: var(--positive); font-weight: 500; margin-right: 4px; }

/* KPI cards (linha 1) */
.stat { height: 164px; display: flex; flex-direction: column; }
.stat__bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.stat__num .kpi { margin-bottom: 14px; }

.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.mini-bars i {
  width: 12px; height: var(--h); border-radius: 3px;
  background: linear-gradient(180deg, #D3D2CC 0%, #E4E3DE 70%, rgba(228, 227, 222, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d);
  transition: background .2s;
}
.mini-bars i.is-active { background: linear-gradient(180deg, #2E4A3B 0%, #36543F 100%); }
.mini-bars i:hover:not(.is-active) { background: linear-gradient(180deg, #B9C9BE, #DCE5DF); }

.mini-area { width: 170px; height: 76px; margin-right: -4px; }
.area-line { fill: none; stroke: var(--green-900); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.reveal { animation: reveal 1.4s cubic-bezier(.4, 0, .2, 1) both; }

.recruiters { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.recruiters .stack > * { box-shadow: 0 0 0 2px var(--card); }
.recruiters__total { font-size: 11px; color: var(--muted); }
.recruiters__total b { color: var(--ink); font-weight: 500; margin-right: 4px; }

/* Pipeline */
.pipeline { height: 326px; display: flex; flex-direction: column; }
.pipeline__head { display: flex; align-items: flex-start; justify-content: space-between; }
.segmented { display: flex; padding: 4px; gap: 2px; border-radius: 10px; background: var(--control); border: 1px solid var(--control-border); margin-top: 2px; }
.segmented button { height: 28px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-size: 11.5px; color: var(--muted); transition: background .2s, color .2s; }
.segmented button:hover { color: var(--ink); }
.segmented button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.pipeline .kpi { margin-top: 10px; }

.pipeline__body { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 94px; align-items: end; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.compare__col { text-align: center; }
.compare__col:first-child { border-right: 1px solid var(--control-border); }
.compare__col:last-child { border-left: 1px solid var(--control-border); }
.compare__label { font-size: 12.5px; color: var(--ink-2); }
.compare__pct { margin-top: 12px; font-size: 13px; }
.compare__sub { margin-top: 14px; font-size: 10.5px; color: var(--muted); }
.compare__vs { padding: 0 22px; font-size: 12px; color: var(--ink-2); }
.split-bar { display: flex; gap: 6px; height: 11px; margin-top: 26px; }
.split-bar span { border-radius: 2px; transform-origin: left; animation: growx 1s .3s cubic-bezier(.2, .8, .2, 1) both; }

.funnel { display: grid; grid-template-columns: 1.74fr 1fr; gap: 6px; }
.funnel__item { position: relative; padding: 0 0 0 12px; height: 92px; }
.funnel__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 14px; border-left: 1.5px dashed var(--c); }
.funnel__num { font-size: 13px; }
.funnel__lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
.funnel__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 11px; border-radius: 2px; background: var(--c); transform-origin: left; animation: growx 1s .45s cubic-bezier(.2, .8, .2, 1) both; }

/* Hiring trend */
.trend { height: 326px; display: flex; flex-direction: column; }
.trend__head { display: flex; justify-content: space-between; align-items: center; }
.trend__head .ico { color: var(--ink); }
.trend .kpi { margin-top: 22px; }
.trend__chart { height: 96px; margin-top: 18px; position: relative; }
.trend__chart svg { width: 100%; height: 100%; }
.trend__foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.trend__foot b { color: var(--ink); font-weight: 500; }
.btn-outline { margin-top: auto; height: 36px; border-radius: var(--r-ctrl); border: 1px solid var(--control-border); background: var(--white); font-size: 12.5px; color: var(--ink); transition: background .2s; }
.btn-outline:hover { background: #fff; }

/* Table */
.table-card { padding: 20px 18px 8px; }
.table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.table th { text-align: left; font-weight: 400; font-size: 11.5px; color: var(--muted); height: 38px; border-bottom: 1px solid var(--card-border); padding: 0 8px 0 0; }
.table td { height: 40px; padding: 0 8px 0 0; color: var(--ink); white-space: nowrap; }
.table tbody tr:first-child td { padding-top: 10px; height: 50px; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(46, 74, 59, .04); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge--hired { background: var(--hired-bg); color: var(--hired-ink); }
.badge--progress { background: var(--progress-bg); color: var(--progress-ink); }
.team { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ink-2); }
.team .stack > * { width: 20px; height: 20px; margin-left: -6px; box-shadow: 0 0 0 1.5px var(--card); }
.team .stack > *:first-child { margin-left: 0; }
.team .stack__more { font-size: 10px; background: #E7E6E1; }

/* ---------- Animações ---------- */
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1150px) {
  .row--3 { grid-template-columns: 1fr 1fr; }
  .row--2 { grid-template-columns: 1fr; }
  .pipeline__body { grid-template-columns: 1fr; gap: 28px; }
  .pipeline, .trend { height: auto; }
  .table-card { overflow-x: auto; }
}

/* ==========================================================================
   Painel do robô — acréscimos ao layout original (mesmos tokens de cor)
   ========================================================================== */
:root {
  --danger: #C8452F;
  --danger-bg: #F6DAD3;
  --warn-ink: #9A4A0E;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* topbar */
.signal { margin-left: auto; margin-right: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.signal i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.signal.is-live i { background: var(--positive); animation: ping 2s ease-out infinite; }
.signal.is-stale { color: var(--danger); }
.signal.is-stale i { background: var(--danger); }
.signal--demo { color: var(--progress-ink); }
.topbar .btn-primary { margin-left: 0; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(58, 163, 101, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(58, 163, 101, 0); } }
@keyframes pulsar { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* sidebar */
.nav--bottom .nav__title { padding: 0 12px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--sidebar-muted); }
.nav--bottom a { height: 34px; font-size: 13px; color: var(--sidebar-muted); }
.avatar--mascot { width: 38px; height: 38px; background: #E9DFCF; display: grid; place-items: center; }
.avatar--mascot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.35); transform-origin: 50% 25%; }

/* hero (estado do robô) */
.hero { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: center; min-height: 326px; padding: 20px 26px; }
.hero__mascot { position: relative; display: grid; place-items: center; height: 284px; }
.hero__mascot::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 4px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 74, 59, .20), rgba(46, 74, 59, 0)); }
.hero__mascot img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; animation: flutuar 4.6s ease-in-out infinite; }
.hero.is-descansando .hero__mascot img { animation: respirar 5.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes respirar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--control); color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-vendas .pill { background: var(--hired-bg); color: var(--hired-ink); }
.is-estoque .pill { background: var(--progress-bg); color: var(--progress-ink); }
.is-vendas .pill i, .is-estoque .pill i { animation: pulsar 1.4s ease-in-out infinite; }
.hero__title { margin: 14px 0 6px; font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.hero__sub { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.hero__sub b { color: var(--ink); font-weight: 500; }
.alert { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-ctrl); background: var(--progress-bg); color: var(--warn-ink); font-size: 12.5px; line-height: 1.45; }
.alert--erro { background: var(--danger-bg); color: var(--danger); }
.steps { margin-top: 18px; display: grid; gap: 10px; }
.steps__row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; }
.steps__lbl { font-size: 11.5px; color: var(--muted); }
.steps__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--control-border); background: transparent; font-size: 12px; color: var(--muted); }
.chip i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted-2); flex: none; }
.chip.is-rodando { color: var(--ink); border-color: var(--ink-2); background: var(--white); }
.chip.is-rodando i { border-color: var(--orange); background: var(--orange); animation: pulsar 1.2s ease-in-out infinite; }
.chip.is-ok { color: var(--hired-ink); background: var(--hired-bg); border-color: transparent; }
.chip.is-ok i { background: var(--positive); border-color: var(--positive); }
.chip.is-erro { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.chip.is-erro i { background: var(--danger); border-color: var(--danger); }

/* próxima atualização */
.next { min-height: 326px; display: flex; flex-direction: column; }
.next__head { display: flex; justify-content: space-between; align-items: center; }
.next__head .ico { color: var(--ink); }
.next .kpi { margin-top: 24px; font-size: 40px; }
.next__when { margin-top: 10px; font-size: 13px; color: var(--muted); }
.next__when b { color: var(--ink); font-weight: 500; }
.until { height: 6px; border-radius: 3px; background: var(--track); margin-top: 20px; overflow: hidden; }
.until span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--green-900); transition: width 1s linear; }
.next__note { margin-top: 10px; min-height: 18px; font-size: 12px; color: var(--muted); }
.agenda { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.agenda__lbl { width: 100%; font-size: 11.5px; color: var(--muted); }
.slot { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--control); color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.slot.is-past { opacity: .5; }
.slot.is-next { background: var(--green-900); color: #fff; opacity: 1; }

/* kpis */
.stat .kpi small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.mini-bars i { min-height: 4px; }
.portlist { display: grid; gap: 4px; margin-bottom: -2px; }
.prow { display: grid; grid-template-columns: 46px auto auto; align-items: center; gap: 6px; font-size: 12px; }
.prow b { font-weight: 500; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--control); color: var(--muted); font-size: 11px; }
.tag.is-ok { background: var(--hired-bg); color: var(--hired-ink); }
.tag.is-aviso { background: var(--progress-bg); color: var(--progress-ink); }
.tag.is-erro { background: var(--danger-bg); color: var(--danger); }

/* histórico */
.table-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge--erro { background: var(--danger-bg); color: var(--danger); }
.badge--none { background: var(--control); color: var(--muted); }
.table td.num { font-variant-numeric: tabular-nums; }
.table td.det { color: var(--muted); max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 26px 0 30px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 1150px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__mascot { height: 240px; }
  .next { min-height: 0; }
  .signal { display: none; }
}

/* ===== Dashboard de dados coletados ===== */
.row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row--checks { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.stat--sm { height: 132px; }
.stat--sm .kpi { font-size: 27px; }
.card--pad-table { padding: 20px 18px 10px; }
.ck { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--card-border); }
.ck:last-child { border-bottom: 0; }
.ck__dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.ck--ok .ck__dot { background: var(--positive); }
.ck--aviso .ck__dot { background: var(--orange, #E27418); }
.ck--erro .ck__dot { background: var(--danger); }
.ck__t { font-size: 13px; line-height: 1.3; }
.ck__d { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.health { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 6px; }
.health .kpi { font-size: 34px; }
.health small { color: var(--muted); font-size: 12px; }
.table--data td, .table--data th { padding-right: 12px; }
.table--data td.r, .table--data th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table--data tbody tr:first-child td { padding-top: 0; height: 40px; }
.table--data tfoot td { font-weight: 500; border-top: 1px solid var(--card-border); height: 42px; }
.bar-cell { display: inline-block; height: 6px; border-radius: 3px; background: var(--green-900); vertical-align: middle; margin-left: 8px; min-width: 2px; opacity: .8; }
.scroll { max-height: 420px; overflow: auto; }
.scroll thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 1; }
.tools { display: flex; gap: 10px; align-items: center; }
.search { height: 32px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--white); padding: 0 12px; font: inherit; font-size: 12.5px; width: 190px; color: var(--ink); }
.dias { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 16px; }
.dias div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; font-size: 10.5px; color: var(--muted); }
.dias i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: #B9C9BE; min-height: 3px; }
.dias div.hoje i { background: var(--green-900); }
.cols { font-size: 12px; color: var(--ink-2, var(--ink)); line-height: 1.6; }
.cols b { font-weight: 500; }
.cols code { background: var(--control); border-radius: 4px; padding: 1px 6px; font-size: 11.5px; }
.cols .usada { background: var(--hired-bg); color: var(--hired-ink); }
.nota { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 1150px) { .row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row--even, .row--checks { grid-template-columns: 1fr; } }
#detalhes td { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
#detalhes td.r, #detalhes th.r { max-width: none; }
#detalhes .table--data td, #detalhes .table--data th { padding-right: 10px; }
#detalhes .nota { word-break: break-all; margin: 6px 0 0; }

/* evolução por dia */
.evo-stats { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.evo-stats div { font-size: 11px; color: var(--muted); text-align: right; }
.evo-stats b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 2px; }
#evoChart svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.evo-bar { fill: #B9C9BE; } .evo-bar.hoje { fill: #6F9A82; }
.evo-line { fill: none; stroke: var(--green-900); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.evo-dot { fill: var(--white, #fff); stroke: var(--green-900); stroke-width: 2; }
.evo-avg { stroke: var(--muted-2, #9a9d97); stroke-width: 1.2; stroke-dasharray: 5 5; }
.evo-grid { stroke: var(--card-border); stroke-width: 1; }
.evo-t { font-size: 11.5px; fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.evo-x { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.evo-y { font-size: 10.5px; fill: var(--muted); text-anchor: end; }
.evo-avgt { font-size: 10.5px; fill: var(--muted); text-anchor: end; }
.scroll--6 { max-height: 292px; }
.evo-t { paint-order: stroke; stroke: #F3F2EE; stroke-width: 4px; stroke-linejoin: round; }
.evo-avgt { text-anchor: start; }
.scroll--6 { overflow-y: scroll; }

/* ===== Tela cheia (ocupa o monitor inteiro) ===== */
body { padding: 0; height: 100vh; overflow: hidden; }
.app { max-width: none; height: 100vh; border-radius: 0; box-shadow: none; }
.sidebar { overflow-y: auto; height: 100vh; }
.main { height: 100vh; overflow-y: auto; border-radius: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg-main, #ECEAE4); }
@media (max-width: 900px) { body { height: auto; overflow: auto; } .app { height: auto; flex-direction: column; } .sidebar { width: auto; height: auto; } .main { height: auto; } }

/* ===== Menu por módulos ===== */
.nav-group { margin-top: 22px; }
.nav-group:first-of-type { margin-top: 26px; }
.nav-group .nav { margin-top: 8px; gap: 4px; }
.nav__title { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--sidebar-muted); padding: 0 12px; }
.nav-group > .nav__title { display: block; }
.nav a.sub { height: 34px; font-size: 13px; }

/* ===== Módulo Análises ===== */
.modsec[hidden] { display: none; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.sec-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.select { height: 32px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--white); padding: 0 10px; font: inherit; font-size: 12.5px; color: var(--ink); min-width: 220px; }
.hb { display: grid; gap: 9px; margin-top: 14px; }
.hb__row { display: grid; grid-template-columns: minmax(90px, 200px) minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 12.5px; }
.hb__lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb__bar { height: 10px; border-radius: 5px; background: var(--track, #E5E4DF); overflow: hidden; }
.hb__bar i { display: block; height: 100%; border-radius: 5px; background: var(--green-900); }
.hb__val { text-align: right; font-variant-numeric: tabular-nums; }
.abc-tag { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.abc-A { background: var(--hired-bg); color: var(--hired-ink); }
.abc-B { background: var(--progress-bg); color: var(--progress-ink); }
.abc-C { background: var(--control); color: var(--muted); }
.stackbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 12px; background: var(--track, #E5E4DF); }
.stackbar i { display: block; height: 100%; }
.stackbar .A { background: var(--green-900); } .stackbar .B { background: #6F9A82; } .stackbar .C { background: #C9D5CC; }
.abc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.abc-cards .card { padding: 16px 18px; }
.abc-cards .kpi { font-size: 24px; margin-top: 8px; }
.insights { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.45; }
.insights li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.insights .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); margin-top: 6px; }
.insights .dot.aviso { background: var(--orange, #E27418); } .insights .dot.erro { background: var(--danger); }
.row--tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row--65 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.aviso-box { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-ctrl); background: var(--progress-bg); color: var(--warn-ink); font-size: 12.5px; line-height: 1.45; }
.scroll--tall { max-height: 520px; }
.kpi-mini { font-size: 12px; color: var(--muted); }
@media (max-width: 1150px) { .row--tri, .row--65, .abc-cards { grid-template-columns: 1fr; } }
.nav a.is-active::before { display: none; }
.modsec { flex-direction: column; gap: 22px; }

/* Filtros, chips e paginação (Análises) */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.filtros .select { min-width: 160px; }
.filtros input.select { min-width: 220px; }
.btn-csv { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--control-border); background: var(--white); color: var(--ink); font-size: 12px; cursor: pointer; }
.btn-csv:hover { border-color: var(--ink-2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--control-border); background: transparent; font-size: 12px; color: var(--muted); cursor: pointer; }
.chips button b { color: var(--ink); font-weight: 600; }
.chips button.is-active { background: var(--white); color: var(--ink); border-color: var(--ink-2); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.st { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; white-space: nowrap; }
.st-P { background: #fff1d6; color: #8a5a00; } .st-R { background: #fde2e1; color: #a02722; } .st-B { background: #ffe9d9; color: #a4510c; }
.st-E { background: #e4ecfb; color: #2c4f9e; } .st-N { background: #f1dcf5; color: #7a2a8c; } .st-T { background: #fff6bf; color: #7a6200; } .st-O { background: #e3f4e6; color: #25702f; }
.pager { display: flex; align-items: center; gap: 14px; padding: 10px 4px 2px; }
.card--pad-table td:first-child { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insights .ins-h { display: block; list-style: none; margin: 14px 0 2px; padding: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.insights .ins-h:first-child { margin-top: 0; }

/* tabelas de 3 colunas (tipos de venda, fornecedores, vendedores) */
.tbl-3 { table-layout: fixed; width: 100%; }
.tbl-3 th:nth-child(2), .tbl-3 td:nth-child(2) { width: 84px; }
.tbl-3 th:nth-child(3), .tbl-3 td:nth-child(3) { width: 128px; }
.tbl-3 td:first-child, .tbl-3 th:first-child { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* menu: módulos que abrem/fecham */
.nav__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--sidebar-muted); padding: 6px 12px; border-radius: 8px; text-align: left; }
.nav__toggle:hover { background: var(--green-800); color: var(--sidebar-ink); }
.nav__toggle .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-group.is-closed .chev { transform: rotate(-90deg); }
.nav-group.is-closed > .nav { display: none; }
/* reposição */
.param-card { padding: 14px 18px; }
.param-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.param-row label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.num-in { height: 30px; width: 76px; border: 1px solid var(--control-border); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12.5px; background: var(--white); color: var(--ink); text-align: right; }
.num-in--lg { height: 32px; width: 110px; }
.btn-mini { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--green-900); background: var(--green-900); color: #fff; font-size: 12px; cursor: pointer; }
.btn-mini:hover { opacity: .9; }
.nw { white-space: nowrap; }
tr.lnk { cursor: pointer; } tr.lnk:hover { background: rgba(0,0,0,.025); }
tr.is-exp td { opacity: .55; }
tr.subtab > td { background: rgba(0,0,0,.02); padding: 6px 10px 14px; }
.nav-group > .nav__toggle { display: flex; }

/* ================= CELULAR / TABLET ================= */
.menu-btn { display: none; }
.side-backdrop { display: none; }
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  body { height: 100dvh; overflow: hidden; }
  .app { height: 100dvh; flex-direction: row; }
  .main { height: 100dvh; width: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .sidebar { background: var(--green-900); position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(82vw, 300px); height: 100dvh; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 6px 0 24px rgba(0,0,0,.25); overflow-y: auto; }
  body.menu-aberto .sidebar { transform: none; }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.menu-aberto .side-backdrop { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: 10px; border: 1px solid var(--control-border); border-radius: var(--r-ctrl); background: var(--white); color: var(--ink); }
  .menu-btn svg { width: 20px; height: 20px; }
  .topbar { height: auto; min-height: 60px; padding: 10px 14px; gap: 8px; flex-wrap: nowrap; }
  .topbar h1 { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .signal { font-size: 11px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .btn-primary { margin-left: 0; height: 36px; padding: 0 12px; flex: none; }
  .content { padding: 14px 12px 28px; gap: 16px; }
  .row, .row--2, .row--3, .row--tri, .row--65, .row--even, .row--checks, .abc-cards { grid-template-columns: 1fr !important; }
  .row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .card { min-width: 0; }
  .card:has(table), .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card table { min-width: 560px; }
  .tbl-3 { min-width: 0 !important; }
  .kpi { font-size: 22px; }
  .hero { grid-template-columns: 1fr; padding: 16px; min-height: 0; gap: 8px; }
  .hero__mascot { display: flex; align-items: center; justify-content: center; height: 190px; width: 100%; overflow: hidden; }
  .hero__mascot img { height: 180px !important; width: auto !important; max-width: 100% !important; max-height: 180px !important; object-fit: contain; flex: none; }
  .hero__info { min-width: 0; }
  .hero__title { font-size: 22px; }
  .filtros { justify-content: flex-start; }
  .filtros .select, .filtros input.select, select, input[type=text], input[type=search], input[type=date], input[type=number] { max-width: 100%; font-size: 16px; }
  .filtros .select { min-width: 0; flex: 1 1 140px; }
  .filtros input.select { min-width: 0; flex: 1 1 100%; }
  .card__head, .card__top { flex-wrap: wrap; gap: 8px; }
  .param-row { flex-wrap: wrap; gap: 10px; }
  .segmented { flex-wrap: wrap; }
  .tabs { flex-wrap: wrap; }
  .pager { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .row--4 { grid-template-columns: 1fr 1fr !important; }
  .topbar .signal { display: none; }
  .btn-primary { font-size: 0; gap: 0; padding: 0 11px; }
  .btn-primary .ico { width: 18px; height: 18px; }
  .kpi { font-size: 20px; }
}
.row--1 { grid-template-columns: minmax(0, 1fr); }

/* estoque por produto: setor multi, modal, produto novo */
.st-V { background: #dff3ee; color: #0b6b5c; }
.msel { position: relative; }
.msel__btn { cursor: pointer; text-align: left; min-width: 170px; }
.msel__panel { position: absolute; z-index: 60; top: 100%; left: 0; margin-top: 4px; min-width: 260px; max-height: 320px; overflow: auto; background: var(--white); border: 1px solid var(--control-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 6px; }
.msel__panel[hidden] { display: none; }
.msel__panel label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; cursor: pointer; }
.msel__panel label:hover { background: var(--control); }
.msel__panel label span { flex: 1; }
.msel__panel label b { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.msel__top { padding: 2px 4px 6px; border-bottom: 1px solid var(--control-border); margin-bottom: 4px; }
.msel__top button { border: 0; background: none; color: var(--green-900); font-size: 12px; cursor: pointer; text-decoration: underline; }
.inl-par { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ico-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 4px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--white); color: var(--green-900); cursor: pointer; vertical-align: middle; padding: 0; font-size: 12px; }
.ico-btn:hover { background: var(--control); }
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 28, 23, .5); align-items: center; justify-content: center; padding: 16px; }
.modal__box { background: var(--card); border-radius: 14px; width: min(860px, 100%); max-height: 88vh; overflow: auto; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal__head h3 { margin: 0; font-size: 16px; }

/* redistribuição: gráficos, painel do produto */
#rdCharts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card { padding: 16px 18px; }
.rb { display: grid; grid-template-columns: minmax(90px, 36%) 1fr minmax(110px, auto); align-items: center; gap: 10px; margin-top: 7px; font-size: 12px; }
.rb__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rb__t { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--control); }
.rb__t.big { height: 18px; margin-top: 10px; }
.rb__t i { display: block; height: 100%; background: var(--green-900); }
.rb__t i.rb--n, .rb-leg i.rb--n { background: #C9D5CC; }
.rb__v { text-align: right; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.rb-leg { font-size: 11.5px; color: var(--muted); margin: 6px 0 2px; }
.rb-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--green-900); margin: 0 4px 0 8px; vertical-align: -1px; }
.rb-leg i:first-child { margin-left: 0; }
.geo-lista { display: grid; gap: 6px; margin-top: 8px; }
.geo-i { display: grid; grid-template-columns: minmax(160px, 1fr) 90px minmax(140px, 220px); gap: 8px; align-items: center; color: var(--ink); }
.modal__box--lg { width: min(1040px, 100%); }
.mini-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mini { background: var(--white); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mini span { font-size: 11.5px; color: var(--muted); } .mini b { font-size: 20px; font-weight: 600; } .mini small { font-size: 11px; color: var(--muted); }
.flow { display: grid; grid-template-columns: minmax(220px, 300px) 28px 1fr; gap: 10px; align-items: start; }
.flow__o { background: var(--white); border: 1px solid var(--card-border); border-radius: 12px; padding: 14px; position: sticky; top: 0; }
.flow__o b { display: block; font-size: 14px; margin-top: 2px; } .flow__o small { color: var(--muted); font-size: 12px; }
.flow__t { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.flow__arr { align-self: center; font-size: 22px; color: var(--muted); text-align: center; }
.flow__d { display: grid; gap: 10px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.dcard { background: var(--white); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; }
.dcard__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.dcard__h b { display: block; font-size: 13.5px; } .dcard__h small { color: var(--muted); font-size: 11.5px; }
.dcard__in { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dcard__in .num-in { width: 84px; font-weight: 600; color: var(--ink); }
.dcard__m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; } .dcard__m b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { #rdCharts { grid-template-columns: 1fr; } .mini-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow { grid-template-columns: 1fr; } .flow__arr { display: none; } .geo-i { grid-template-columns: 1fr; } .flow__o { position: static; } }

/* modelos de gráfico (anel, pirulito, lista com barra, bolhas) */
:root { --gx-lime: #D8EE58; }
.gx { padding: 18px 20px; }
.gx-head { display: flex; align-items: center; gap: 10px; }
.gx-pill { margin-left: auto; height: 26px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--control); font-size: 12px; color: var(--ink-2); }
.gx-pill b { margin-left: 4px; color: var(--ink); }
.gx-rings { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.gx-ring { position: relative; width: 150px; height: 150px; }
.gx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gx-ring circle { fill: none; stroke-width: 14; }
.gx-ring .bg { stroke: var(--control); } .gx-ring .fg { stroke-linecap: round; }
.gx-ring__t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22px; font-size: 12px; color: var(--ink-2); line-height: 1.25; }
.gx-ring__t b { margin-top: 4px; font-size: 19px; font-weight: 600; color: var(--ink); }
.gx-alert { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-size: 12.5px; }
.gx-alert b { font-weight: 700; }
.gx-lolli { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 232px; padding-top: 6px; }
.gx-lcol { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: default; }
.gx-stem { position: relative; width: 2px; height: var(--h); margin-bottom: 8px; border-radius: 2px; background: linear-gradient(180deg, #CBD0CD, #E6E8E4); }
.gx-stem::before { content: ""; position: absolute; left: 50%; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #B8C0BB; }
.gx-lic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: var(--green-900); background: var(--control); }
.gx-lcol small { margin-top: 5px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.gx-lcol.is-active .gx-stem { background: var(--gx-lime); } .gx-lcol.is-active .gx-stem::before { background: var(--gx-lime); box-shadow: 0 0 0 3px rgba(216, 238, 88, .4); }
.gx-lcol.is-active .gx-lic, .gx-lcol:hover .gx-lic { background: var(--gx-lime); }
.gx-tip { display: none; position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 62px); white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--green-900); color: #fff; font-size: 11.5px; line-height: 16px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.gx-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--green-900); }
.gx-lcol.is-active .gx-tip, .gx-lcol:hover .gx-tip { display: block; }
.gx-lolli:hover .gx-lcol.is-active:not(:hover) .gx-tip { display: none; }
.gx-list { list-style: none; margin: 6px 0 0; padding: 0; }
.gx-list li { padding: 10px 0 12px; border-bottom: 1px solid var(--card-border); }
.gx-list li:last-child { border-bottom: 0; }
.gx-list__top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.gx-list__top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.gx-list__top small { font-size: 12px; white-space: nowrap; color: var(--muted); } .gx-list__top small b { color: var(--ink); font-weight: 700; }
.gx-bar { margin-top: 9px; height: 8px; border-radius: 8px; background: var(--control); overflow: hidden; } .gx-bar i { display: block; height: 100%; border-radius: 8px; }
.gx-bub { position: relative; margin: 4px 0 0; }
.gx-b { position: absolute; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 12px; transition: transform .25s; box-shadow: 0 0 0 4px var(--card); }
.gx-b:hover { transform: scale(1.04); z-index: 9 !important; }
.gx-b span { display: flex; flex-direction: column; line-height: 1.2; padding: 0 6px; } .gx-b b { font-size: 18px; font-weight: 600; }
.dcard__r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* faixa de KPIs, colunas flutuantes, área */
.gx-lcol.is-link { cursor: pointer; }
.gx-trend { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 8px; }
.gx-trend > div { padding: 0 18px; border-left: 1px solid var(--card-border); }
.gx-trend > div:first-child { padding-left: 0; border-left: 0; }
.gx-trend__l { font-size: 12.5px; color: var(--muted); }
.gx-trend__v { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; flex-wrap: wrap; }
.gx-trend__s { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.gx-tr { font-size: 12px; font-weight: 600; color: var(--green-900); letter-spacing: 0; }
.gx-tr.is-down { color: var(--danger); }
.gx-leg { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 4px 0 12px; }
.gx-leg__l { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.gx-leg__v { margin-top: 3px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.gx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.gx-cols, .gx-area { position: relative; padding-left: 46px; }
.gx-plot { position: relative; height: var(--H, 230px); }
.gx-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--card-border); }
.gx-gy { position: absolute; left: -46px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); }
.gx-cgs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.gx-cg { position: relative; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.gx-cgi { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.gx-cgi.is-stack { flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 3px; }
.gx-pb { display: block; width: 19px; max-width: 70%; min-height: 2px; border-radius: 10px; transition: filter .2s; }
.gx-cgs:hover .gx-cg:not(:hover) .gx-pb { filter: saturate(.4) opacity(.55); }
.gx-xs { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 8px; }
.gx-xs span { text-align: center; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.gx-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gx-axs { position: relative; height: 22px; margin-top: 8px; }
.gx-axs span { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.gx-hit { position: absolute; top: 0; bottom: 0; }
.gx-band { display: none; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(216, 238, 88, .08), rgba(216, 238, 88, .5)); border-left: 1.5px solid var(--gx-lime); border-right: 1.5px dotted rgba(46, 74, 59, .3); }
.gx-pdot { display: none; position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--green-900); }
.gx-atip { display: none; position: absolute; left: 50%; transform: translate(-50%, -100%); margin-top: -12px; z-index: 5; white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--green-900); color: #fff; font-size: 11.5px; line-height: 16px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.gx-hit:hover .gx-band, .gx-hit:hover .gx-pdot, .gx-hit:hover .gx-atip { display: block; }
@media (max-width: 760px) { .gx-cols, .gx-area { padding-left: 38px; } .gx-gy { left: -38px; } .gx-trend > div { padding: 8px 0; border-left: 0; border-top: 1px solid var(--card-border); } .gx-trend > div:first-child { border-top: 0; } }

.gx-slot:empty { display: none; }
.gx-slot { display: flex; flex-direction: column; gap: 22px; }
.gx-lcol.is-link { cursor: pointer; }

#s-resumo .row--65 { align-items: start; }
.evo-prev { fill: none; stroke: #9bb08c; stroke-width: 2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.gx-cgi.is-stack { max-width: 64px; margin-inline: auto; width: 100%; }
.gx-cgi.is-group { max-width: 96px; margin-inline: auto; width: 100%; }
.gx-cols, .gx-area { margin-top: 12px; }
.st-S { background: #ececec; color: #666; }
.gx-rings { justify-content: center; }
#s-resumo .row--65 > .card:nth-child(2) { max-height: 430px; overflow: auto; }
.row > .card.gx .gx-rings { margin-block: auto; }
