/* Painel PJ Brasil Cred — mesmo sistema de design do site (Host Grotesk, navy + dourado, pílulas, folhas arredondadas, onda nos botões). */
:root {
  --c1: #000029; --c2: #fafbff; --c3: #edf0fb; --gold: #c9a96e; --gold-soft: #e3d3ae; --c5: #4b4f6e; --c6: #000051; --c8: #000036;
  --blue: #173ded; --on-gold: #0a1628;
  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r1: 3.5rem; --r2: 1.75rem; --r3: 62.5rem; --r4: 1.25rem; --r5: 0.875rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 41, 0.45);
  --s-novo: #173ded; --s-em_analise: #d99a1a; --s-pendente: #e4531b; --s-aprovada: #2cb98a; --s-contratada: #0b6e4f; --s-negada: #d64550; --s-cancelada: #8b8fa8;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c1); color: var(--c1); font-family: var(--font); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(84rem, 100% - clamp(2.25rem, 8.4vw, 7rem)); margin-inline: auto; }
.row { display: flex; gap: 0.625rem; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 0.1875rem solid var(--gold); outline-offset: 0.1875rem; }

/* ---------- estrutura de painel: menu lateral + conteúdo ---------- */
body { background: var(--c2); }
.app { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.75rem; padding: 1.5rem 1rem 1rem; color: var(--c2); z-index: 40; overflow-y: auto; border-radius: 0 var(--r2) var(--r2) 0;
  background: var(--c1); }
.side__brand { padding: 0.25rem 0.75rem; } .side__brand img { display: block; height: 1.9rem; width: auto; filter: brightness(0) invert(1); }
.side__nav { display: grid; gap: 0.3rem; }
.side__nav a { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem; border-radius: var(--r3); text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: color-mix(in srgb, var(--c2) 78%, transparent); transition: background 0.3s var(--ease), color 0.3s; }
.side__nav a svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side__nav a:hover { color: var(--c2); background: rgba(255, 255, 255, 0.09); }
.side__nav a.on { background: var(--gold); color: var(--on-gold); }
.side__nav .badge { margin-left: auto; }
.badge { min-width: 1.35rem; height: 1.35rem; padding: 0 0.4rem; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; }
.side__nav a.on .badge { background: var(--c1); color: var(--gold); }
.side__user { margin-top: auto; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem; border-radius: var(--r4); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); }
.side__who { display: grid; line-height: 1.2; min-width: 0; flex: 1; } .side__who b { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .side__who small { font-size: 0.72rem; color: var(--gold-soft); }
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-weight: 700; flex: none; border: 0; cursor: pointer; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0.0625rem solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; overflow: hidden; isolation: isolate; transition: color 0.3s; flex: none; }
.icon-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform-origin: 50% 100%; scale: 1 0; transition: scale 0.4s var(--ease); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .icon-btn:hover { color: var(--on-gold); } .icon-btn:hover::before { scale: 1 1; } }
.content { min-width: 0; padding: 1.75rem clamp(1.25rem, 3vw, 2.75rem) 4rem; width: 100%; }
.mtop, .scrim { display: none; }
@media (max-width: 58rem) {
  .app { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(18rem, 86vw); height: auto; translate: -105% 0; transition: translate 0.4s var(--ease); box-shadow: none; }
  body.menu-open .side { translate: 0 0; box-shadow: 0 0 4rem rgba(0, 0, 0, 0.5); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 41, 0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .mtop { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; padding: 0.7rem clamp(1rem, 3vw, 1.5rem); background: color-mix(in srgb, var(--c2) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 41, 0.07); }
  .mtop img { display: block; height: 1.6rem; width: auto; }
  .mtop .icon-btn { color: var(--c1); }
  .content { padding-top: 1.25rem; }
}

/* ---------- botões (pílula com onda, como no site) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.5rem; border: 0; border-radius: var(--r3); background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: filter 0.25s, transform 0.25s, opacity 0.2s; white-space: nowrap; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.15rem; font-size: 0.875rem; }
.btn--dark { background: var(--c1); color: var(--c2); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 0.0625rem color-mix(in srgb, currentColor 32%, transparent); }
.btn--danger { background: transparent; color: #b3303b; box-shadow: inset 0 0 0 0.0625rem color-mix(in srgb, #b3303b 40%, transparent); }
.btn--wa { background: #1fa855; color: #fff; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn__t { display: block; transition: translate 0.45s var(--ease); }
.bw { position: absolute; top: 50%; right: 0.9rem; display: flex; align-items: center; gap: 2px; height: 0.8rem; translate: 0 -50%; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.bw i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; scale: 1 0.35; }
@media (hover: hover) {
  .btn:hover .btn__t { translate: -0.45rem 0; } .btn:hover .bw { opacity: 1; }
  .btn:hover .bw i { animation: talk 0.7s ease-in-out infinite alternate; }
  .btn:hover .bw i:nth-child(2) { animation-delay: -0.35s; } .btn:hover .bw i:nth-child(3) { animation-delay: -0.6s; }
  .btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
}
@keyframes talk { from { scale: 1 0.3; } to { scale: 1 1; } }
.lnk { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 0.125rem no-repeat; padding-bottom: 0.125rem; transition: background-size 0.5s var(--ease); font-size: 0.875rem; }
.lnk:hover { background-size: 100% 0.125rem; }

/* ---------- cabeçalho de página e cartão de destaque ---------- */
.pg { display: grid; gap: 1.25rem; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; padding-bottom: 0.25rem; }
.top h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.top__sub { margin-top: 0.4rem; color: var(--c5); font-size: 1rem; }
.back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 0.6rem; color: var(--c5); text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.back:hover { color: var(--c1); }
.hcard { position: relative; color: var(--c2); border-radius: var(--r2); padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--c1); overflow: hidden; }
.rise > * { animation: rise 0.8s cubic-bezier(0.16, 0.84, 0.3, 1) backwards; }
.rise > *:nth-child(2) { animation-delay: 0.06s; } .rise > *:nth-child(3) { animation-delay: 0.12s; } .rise > *:nth-child(4) { animation-delay: 0.18s; } .rise > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; translate: 0 1.25rem; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rise > * { animation: none; } * { transition-duration: 0.01ms !important; } }

/* ---------- campos ---------- */
.inp, .sel { min-height: 3rem; padding: 0.6rem 1rem; border: 0.0625rem solid color-mix(in srgb, var(--c1) 30%, transparent); border-radius: var(--r5); background: var(--c2); color: var(--c1); font-size: 0.9375rem; max-width: 100%; }
.inp:focus-visible, .sel:focus-visible { border-color: var(--c1); outline: 0.125rem solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 0; }
textarea.inp { resize: vertical; min-height: 5rem; width: 100%; }
.sel { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000029' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1rem; cursor: pointer; }
.fld { display: grid; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--c5); min-width: 0; }
.fld .inp, .fld .sel { width: 100%; }
.seg { display: inline-flex; padding: 0.25rem; border-radius: var(--r3); background: var(--c3); gap: 0.125rem; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--c5); padding: 0.5rem 1rem; border-radius: var(--r3); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button:hover { background: rgba(0, 0, 41, 0.06); }
.seg button.on { background: var(--c1); color: var(--c2); }

/* ---------- cartões ---------- */
.card { background: var(--c3); border-radius: var(--r2); padding: 1.5rem 1.6rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.card h2 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__h span { color: var(--c5); font-size: 0.8125rem; }
.inner { background: var(--c2); border-radius: var(--r4); padding: 1rem 1.1rem; }
.grid { display: grid; gap: 1.25rem; }
.g2b { grid-template-columns: 1.3fr 1fr; align-items: start; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.detail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 62rem) { .g2b, .g2, .g3, .detail { grid-template-columns: 1fr; } }
.empty { padding: 2rem 1rem; text-align: center; color: var(--c5); }
.muted { color: var(--c5); } small { font-size: 0.78rem; color: var(--c5); }

/* ---------- pílulas e chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem 0.25rem 0.6rem; border-radius: var(--r3); background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c); }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: var(--r3); background: var(--c2); font-size: 0.8rem; font-weight: 600; color: var(--c5); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, #2cb98a 16%, #fff); color: #0b6e4f; }
.chip.warn { background: color-mix(in srgb, var(--gold) 28%, #fff); color: #6b4f12; }
.chip.bad { background: color-mix(in srgb, #d64550 14%, #fff); color: #a3242f; }
.chip.late { background: #d64550; color: #fff; }

/* chips sobre o cartão escuro */
.hcard .chip { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hcard .chip.ok { background: rgba(44, 185, 138, 0.3); }
.hcard .chip.bad { background: rgba(214, 69, 80, 0.42); }
.hcard .chip.warn { background: rgba(201, 169, 110, 0.34); }

/* ---------- logo / monograma dos bancos ---------- */
.bl { width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; object-fit: contain; background: #fff; flex: none; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 0.0625rem rgba(0, 0, 41, 0.08); padding: 0.2rem; }
.bl--m { background: var(--c); color: #fff; font-weight: 700; font-size: 0.78rem; letter-spacing: -0.02em; padding: 0; box-shadow: none; }
.bl--sm { width: 1.6rem; height: 1.6rem; border-radius: 0.5rem; font-size: 0.6rem; }
.bl--lg { width: 3.5rem; height: 3.5rem; border-radius: 1rem; font-size: 1.05rem; padding: 0.35rem; }
.bl--m.bl--lg { padding: 0; }
.bstack { display: inline-flex; align-items: center; }
.bstack .bwrap { position: relative; margin-left: -0.35rem; } .bstack .bwrap:first-child { margin-left: 0; }
.bstack .bl { border: 0.125rem solid var(--c2); box-shadow: none; }
.bstack .st { position: absolute; right: -0.1rem; bottom: -0.1rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 0.125rem solid var(--c3); background: var(--c); }
.bname { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 600; }

/* ---------- tabela ---------- */
.tools { display: flex; gap: 0.625rem; flex-wrap: wrap; align-items: center; }
.tools .inp[type=search] { flex: 1 1 18rem; }
.tablewrap { overflow-x: auto; margin-inline: -0.25rem; padding: 0 0.25rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0 0.4rem; min-width: 56rem; }
th { text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--c5); padding: 0.25rem 1rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
td { background: var(--c3); padding: 0.8rem 1rem; vertical-align: middle; transition: background 0.2s; }
td:first-child { border-radius: var(--r4) 0 0 var(--r4); color: var(--c5); font-weight: 600; } td:last-child { border-radius: 0 var(--r4) var(--r4) 0; }
tbody tr { cursor: pointer; } tbody tr:hover td { background: color-mix(in srgb, var(--gold) 20%, var(--c3)); } tbody tr:focus-visible { outline-offset: -0.125rem; }
td small { display: block; }
.r { text-align: right; } .nm { font-weight: 600; display: block; letter-spacing: -0.01em; }
.pager { display: flex; justify-content: space-between; align-items: center; color: var(--c5); font-size: 0.875rem; flex-wrap: wrap; gap: 0.5rem; }
.resp { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; }
.resp .av2 { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c1); color: var(--gold); display: grid; place-items: center; font-size: 0.7rem; flex: none; }

/* ---------- dashboard ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem; align-items: stretch; }
.hero__txt small { color: var(--gold-soft); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.hero__txt > b { display: block; font-size: clamp(2.4rem, 5vw, 4.25rem); letter-spacing: -0.05em; font-weight: 600; line-height: 1; margin: 0.4rem 0 0.7rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero__txt p { margin: 0 0 1.4rem; color: #b8bfe6; font-size: 0.95rem; }
.hchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.hchip { background: var(--c8); border-radius: var(--r4); padding: 0.8rem 1rem; min-width: 0; }
.hchip small { display: block; color: #aab2e0; font-weight: 500; font-size: 0.72rem; }
.hchip b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; margin: 0.1rem 0; white-space: nowrap; }
.hchip span { font-size: 0.72rem; color: #8f98cf; }
.hero__chart { min-width: 0; display: flex; }
.chartbox { position: relative; width: 100%; display: flex; flex-direction: column; }
.achart { width: 100%; height: 100%; min-height: 13rem; flex: 1; display: block; cursor: crosshair; }
.clegend { display: flex; gap: 1rem; justify-content: flex-end; font-size: 0.75rem; color: #aab2e0; padding-top: 0.2rem; }
.clegend i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.35rem; }
.ctip { position: absolute; top: 0.2rem; background: rgba(0, 0, 20, 0.9); border: 1px solid rgba(201, 169, 110, 0.4); border-radius: 0.8rem; padding: 0.5rem 0.75rem; font-size: 0.74rem; display: flex; flex-direction: column; gap: 0.1rem; pointer-events: none; min-width: 7.5rem; color: #fff; }
.hero__none { margin: auto; color: #8f98cf; }
@media (max-width: 62rem) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .hchips { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.tile { display: grid; gap: 0.2rem; padding: 1.15rem 1.3rem; border-radius: var(--r2); background: var(--c3); text-decoration: none; transition: background 0.3s var(--ease), translate 0.3s var(--ease); }
.tile:hover { background: color-mix(in srgb, var(--gold) 22%, var(--c3)); translate: 0 -0.2rem; }
.tile small { font-weight: 600; } .tile b { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile.alert { background: var(--c1); color: var(--c2); } .tile.alert small { color: var(--gold-soft); } .tile.alert b { color: var(--gold); }
.funnel { display: flex; gap: 4px; height: 3.25rem; border-radius: var(--r4); overflow: hidden; }
.fseg { flex: var(--w) 1 0; min-width: 2.4rem; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; text-decoration: none; transition: filter 0.2s, scale 0.2s; }
.fseg:hover { filter: brightness(1.12); scale: 1 1.06; }
.fempty { margin: auto; color: var(--c5); }
.pipe__leg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pipe__leg a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border-radius: var(--r3); background: var(--c2); text-decoration: none; font-size: 0.8rem; color: var(--c5); font-weight: 500; }
.pipe__leg a:hover { background: #fff; color: var(--c1); } .pipe__leg i { width: 0.55rem; height: 0.55rem; border-radius: 50%; } .pipe__leg b { color: var(--c1); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.rank a { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.9rem; align-items: center; padding: 0.65rem 0.6rem; border-radius: var(--r4); text-decoration: none; }
.rank a:hover { background: var(--c2); }
.rank__l { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.rank small { display: block; }
.bar { height: 0.45rem; background: color-mix(in srgb, var(--c1) 10%, transparent); border-radius: 9px; overflow: hidden; margin: 0.4rem 0 0.3rem; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--gold); }
.recent, .fila { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.recent a, .fila li { display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.6rem; border-radius: var(--r4); text-decoration: none; }
.recent a:hover, .fila li:hover { background: var(--c2); }
.av { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--c1); color: var(--gold); display: grid; place-items: center; font-weight: 700; flex: none; }
.recent__t { flex: 1; min-width: 0; } .recent__t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; } .recent__t small { display: block; }
.fila a.go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }

/* ---------- kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 1fr); gap: 0.9rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x proximity; margin-inline: -0.25rem; padding-inline: 0.25rem; }
.col { background: var(--c3); border-radius: var(--r2); padding: 0.9rem; display: grid; align-content: start; gap: 0.6rem; min-height: 14rem; scroll-snap-align: start; transition: background 0.2s; }
.col.over { background: color-mix(in srgb, var(--gold) 28%, var(--c3)); }
.col__h { display: flex; justify-content: space-between; align-items: center; padding: 0.15rem 0.35rem; font-weight: 600; font-size: 0.9rem; }
.col__h span { display: inline-flex; align-items: center; gap: 0.45rem; } .col__h i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); }
.col__h em { font-style: normal; font-size: 0.78rem; color: var(--c5); background: var(--c2); padding: 0.1rem 0.55rem; border-radius: 99px; }
.kcard { display: grid; gap: 0.45rem; background: var(--c2); border-radius: var(--r4); padding: 0.85rem 0.95rem; text-decoration: none; cursor: grab; transition: translate 0.25s var(--ease), box-shadow 0.25s; }
.kcard:hover { translate: 0 -0.15rem; box-shadow: var(--shadow); } .kcard.drag { opacity: 0.4; }
.kcard b { letter-spacing: -0.01em; } .kcard .row { gap: 0.4rem; }

/* ---------- detalhe ---------- */
.stepper { display: flex; gap: 0.35rem; margin-top: 1.25rem; }
.stepper div { flex: 1; display: grid; gap: 0.45rem; font-size: 0.78rem; font-weight: 600; color: color-mix(in srgb, var(--c2) 55%, transparent); }
.stepper div::before { content: ""; height: 0.45rem; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.stepper div.done { color: var(--c2); } .stepper div.done::before { background: var(--gold); }
.stepper div.now::before { background: var(--gold); }
.alertbar { margin-top: 1.25rem; padding: 0.8rem 1.1rem; border-radius: var(--r4); background: color-mix(in srgb, #d64550 22%, transparent); border: 1px solid rgba(214, 69, 80, 0.5); font-weight: 600; }
.quick { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.elig { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.95rem 1.4rem; margin: 0; }
.dl dt { font-size: 0.75rem; font-weight: 600; color: var(--c5); } .dl dd { margin: 0.1rem 0 0; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cp { border: 0; background: transparent; cursor: pointer; padding: 0.1rem 0.35rem; margin-left: 0.2rem; border-radius: 0.4rem; color: var(--c5); font-size: 0.72rem; font-weight: 600; vertical-align: middle; }
.cp:hover { background: var(--c2); color: var(--c1); }
.regua { display: flex; gap: 0.4rem; align-items: center; }
.regua i { width: 1.9rem; height: 0.5rem; border-radius: 99px; background: color-mix(in srgb, var(--c1) 14%, transparent); } .regua i.on { background: var(--gold); }
.check { display: grid; gap: 0.3rem; }
.check label { display: flex; gap: 0.75rem; align-items: center; padding: 0.7rem 0.85rem; border-radius: var(--r5); background: var(--c2); cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: background 0.2s; }
.check label:hover { background: #fff; }
.check input { appearance: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 0.125rem solid color-mix(in srgb, var(--c1) 35%, transparent); flex: none; margin: 0; cursor: pointer; transition: all 0.25s var(--ease); }
.check input:checked { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.8rem no-repeat; border-color: var(--gold); }
.check input:checked + span { color: var(--c5); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--c5) 45%, transparent); }
.an { background: var(--c2); border-radius: var(--r4); padding: 1.1rem 1.15rem; display: grid; gap: 0.85rem; }
.an__h { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.an__f { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.7rem; }
.tl { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 0.125rem solid color-mix(in srgb, var(--c1) 12%, transparent); display: grid; gap: 0.85rem; }
.tl li { position: relative; font-size: 0.9rem; } .tl li::before { content: ""; position: absolute; left: -1.5rem; top: 0.35rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c3); border: 0.125rem solid var(--c5); }
.tl li.nota::before, .tl li.contato::before { background: var(--gold); border-color: var(--gold); } .tl li.status::before { background: var(--c1); border-color: var(--c1); } .tl li.checklist::before { background: #2cb98a; border-color: #2cb98a; }
.tl small { display: block; margin-top: 0.1rem; }
.quickdays { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.quickdays button { border: 0; background: var(--c2); padding: 0.3rem 0.75rem; border-radius: 99px; font-weight: 600; font-size: 0.78rem; cursor: pointer; } .quickdays button:hover { background: var(--gold); color: var(--on-gold); }
.msg { white-space: pre-wrap; font-size: 0.86rem; background: var(--c2); border-radius: var(--r5); padding: 0.8rem 0.95rem; color: var(--c5); }

/* ---------- bancos / equipe ---------- */
.bank { display: grid; gap: 1rem; } .bank.off { opacity: 0.6; }
.bank__h { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; text-align: center; }
.stats div { background: var(--c2); border-radius: var(--r5); padding: 0.55rem 0.2rem; } .stats b { display: block; font-size: 1.15rem; letter-spacing: -0.03em; } .stats small { font-size: 0.68rem; }
dialog { border: 0; border-radius: var(--r2); padding: 1.75rem; width: min(30rem, 100% - 2rem); background: var(--c2); color: var(--c1); box-shadow: 0 2rem 4rem -1rem rgba(0, 0, 41, 0.6); }
dialog::backdrop { background: rgba(0, 0, 41, 0.6); backdrop-filter: blur(4px); }
dialog h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
dialog .row.end { justify-content: flex-end; margin-top: 1.25rem; }
.upl { display: flex; align-items: center; gap: 0.9rem; }
.pwd { font-family: ui-monospace, Consolas, monospace; background: var(--c1); color: var(--gold); padding: 0.7rem 1rem; border-radius: var(--r5); font-size: 1.1rem; letter-spacing: 0.05em; user-select: all; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 60; background: var(--c1); color: #fff; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); padding: 0.8rem 1.4rem; border-radius: var(--r3); font-weight: 600; box-shadow: var(--shadow); animation: rise 0.4s var(--ease); max-width: calc(100% - 2rem); }
.toast.err { background: #a3242f; border-color: #a3242f; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(60rem 30rem at 100% -10%, rgba(201, 169, 110, 0.28), transparent 60%), radial-gradient(44rem 26rem at 0% 110%, rgba(23, 61, 237, 0.3), transparent 60%), var(--c1); }
.login__card { width: min(26rem, 100%); display: grid; gap: 0.85rem; padding: 2.25rem; border-radius: var(--r2); background: var(--c2); box-shadow: 0 2rem 4rem -1rem rgba(0, 0, 0, 0.5); animation: rise 0.8s cubic-bezier(0.16, 0.84, 0.3, 1) backwards; }
.login__logo { height: 2rem; width: auto; justify-self: start; margin-bottom: 0.5rem; }
.login h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; } .login p { color: var(--c5); margin-bottom: 0.5rem; }
.login__err { color: #a3242f; font-weight: 600; min-height: 1.4em; font-size: 0.9rem; }
.login .btn { width: 100%; margin-top: 0.4rem; }

@media (max-width: 40rem) {
  .card { padding: 1.2rem 1.15rem; } .stats { grid-template-columns: repeat(2, 1fr); }
  .tools .inp[type=date], .tools .sel { flex: 1 1 8rem; }
}

/* mobile: nada passa da largura da tela */
.fila li { flex-wrap: wrap; }
.fila li .btn { margin-left: auto; }
.card__h { flex-wrap: wrap; }
@media (max-width: 40rem) { .fila a.go { flex-basis: 100%; } .recent a { flex-wrap: wrap; } }
@media (max-width: 62rem) { .achart { height: 14rem; flex: none; } }

/* ---------- bancos (mesmo padrão dos cartões do painel: fundo sólido, sem linhas) ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.strip > div { display: grid; gap: 0.2rem; padding: 1.15rem 1.3rem; border-radius: var(--r2); background: var(--c3); }
.strip small { font-weight: 600; } .strip b { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1rem; }
.bk { display: grid; gap: 1.25rem; padding: 1.5rem 1.6rem; border-radius: var(--r2); background: var(--c3); transition: background 0.3s var(--ease), translate 0.3s var(--ease); }
.bk:hover { background: color-mix(in srgb, var(--gold) 14%, var(--c3)); translate: 0 -0.2rem; }
.bk.off { opacity: 0.55; }
.bk__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.bk__id { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.bk__id b { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.bk__id small { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #b9bdd3; display: inline-block; } .dot.on { background: #2cb98a; box-shadow: 0 0 0 0.2rem rgba(44, 185, 138, 0.18); }
.bk__ed { color: var(--c1); }
.bk__v { display: grid; gap: 0.1rem; }
.bk__v small { font-weight: 600; } .bk__v b { font-size: clamp(1.8rem, 2.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bk__v span { font-size: 0.82rem; color: var(--c5); }
.bk__bar { display: flex; gap: 3px; height: 0.6rem; border-radius: 99px; overflow: hidden; background: var(--c2); }
.bk__bar i { display: block; min-width: 0.4rem; } .bk__bar i.vz { flex: 1; background: transparent; }
.bk__s { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 0; }
.bk__s div { padding: 0.6rem 0.75rem; border-radius: var(--r4); background: var(--c2); min-width: 0; }
.bk__s dt { font-size: 0.72rem; font-weight: 600; color: var(--c5); } .bk__s dd { margin: 0.1rem 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bk__f { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--c5); }
.bk__f b { color: var(--c1); }
@media (max-width: 40rem) { .bgrid { grid-template-columns: 1fr; } }
