/* ============ Design System — padrão Brindefly ============ */
:root {
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --surface-2: #F0F1F5;      /* colunas do kanban, fundos secundários */
  --surface-3: #FFFFFF;      /* elementos sobre surface-2 (cards, contadores) */
  --row-hover: #FAFBFD;
  --skeleton: #EDEEF3;
  --primary: #1E3FC7;
  --primary-hover: #1834A4;
  --primary-soft: #EEF1FC;
  --navy: #0E1B4D;
  --text: #14172B;
  --text-2: #5A6072;
  --muted: #9096A8;
  --border: #E8EAF1;
  --green: #16A34A;
  --green-soft: #E8F7EE;
  --green-line: #BDE8CC;
  --red: #DC2626;
  --red-soft: #FDECEC;
  --red-line: #F5C6C6;
  --orange: #F59E0B;
  --orange-soft: #FEF3E2;
  --orange-line: #F8DFB9;
  --orange-ink: #C77700;
  --lilac: #EAE6FB;
  --lilac-ink: #7C6BD6;
  --lilac-line: #CFC6F2;
  --lilac-deep: #5A48B8;
  --yellow-soft: #FDEEC8;
  --yellow-ink: #E0A100;
  --teal-soft: #DDF5E6;
  --teal-ink: #35C46F;
  --teal-deep: #1d9e56;
  --blue-soft: #E3E9FD;
  --blue-line: #C4CFF5;
  --jbiz-bg: #F6F4FD;        /* fundo dos cards/colunas JBIZ */
  --bfly-bg: #F2F5FE;        /* fundo dos cards/colunas Brindefly */
  --bar-gray: #D9DCE6;
  --on-accent: #FFFFFF;      /* texto sobre azul/verde/vermelho sólidos */
  --shadow: 0 1px 3px rgba(20,23,43,.05), 0 6px 20px rgba(20,23,43,.05);
  --shadow-lg: 0 10px 40px rgba(20,23,43,.14);
  --shadow-card: 0 1px 3px rgba(20,23,43,.08);
  --shimmer: rgba(255,255,255,.7);
  --logo-filter: none;
  --radius: 16px;
  --sidebar-w: 264px;
  --sidebar-w-c: 68px;
  --header-h: 60px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============ Tema escuro ============ */
html[data-theme="dark"] {
  --bg: #0E1121;
  --card: #171B2E;
  --surface-2: #141829;
  --surface-3: #1E2338;
  --row-hover: #1C2136;
  --skeleton: #232840;
  --primary: #5B7BFF;
  --primary-hover: #7791FF;
  --primary-soft: #1E2645;
  --navy: #2A3154;
  --text: #E9EBF5;
  --text-2: #A9AFC6;
  --muted: #79809B;
  --border: #272D46;
  --green: #34D17F;
  --green-soft: #12301F;
  --green-line: #1D5638;
  --red: #FF6B6B;
  --red-soft: #35181C;
  --red-line: #5E2A2E;
  --orange: #F5A623;
  --orange-soft: #382812;
  --orange-line: #5C441C;
  --orange-ink: #F0B45C;
  --lilac: #2A2450;
  --lilac-ink: #A896FF;
  --lilac-line: #453B7A;
  --lilac-deep: #B3A4FF;
  --yellow-soft: #372A0E;
  --yellow-ink: #F2C24B;
  --teal-soft: #12301F;
  --teal-ink: #4ADE80;
  --teal-deep: #4ADE80;
  --blue-soft: #1B2450;
  --blue-line: #33407A;
  --jbiz-bg: #1C1B33;
  --bfly-bg: #171E38;
  --bar-gray: #333A55;
  --on-accent: #0B0E1A;
  --shadow: 0 1px 3px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.28);
  --shadow-lg: 0 12px 44px rgba(0,0,0,.55);
  --shadow-card: 0 1px 3px rgba(0,0,0,.4);
  --shimmer: rgba(255,255,255,.08);
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .nav-item.active { box-shadow: none; }
html[data-theme="dark"] .kpi::after { background: var(--primary); }

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }   /* o atributo hidden vence display:flex/grid dos componentes */
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
svg { flex-shrink: 0; }

/* ============ Sidebar ============ */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  overflow: visible;
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 50;
  transition: width .22s ease;
}
.sidebar-logo { display: flex; align-items: center; padding: 22px 20px 14px; min-height: 76px; }

/* seta de colapsar/expandir, na borda direita da sidebar */
.sb-toggle {
  position: absolute; top: 40px; right: -14px; z-index: 60;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--border); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 2px 8px rgba(20,23,43,.12); transition: all .2s;
}
.sb-toggle svg { width: 16px; height: 16px; stroke-width: 2.4; transition: transform .25s cubic-bezier(.4,1.4,.6,1); }
.sb-toggle:hover {
  background: var(--primary); border-color: var(--primary); color: var(--on-accent);
  box-shadow: 0 3px 12px rgba(30,63,199,.4);
}
.sb-toggle:active { transform: scale(.92); }
body.sb-collapsed .sb-toggle svg { transform: rotate(180deg); }
.sidebar-logo img { height: 38px; transition: opacity .15s; filter: var(--logo-filter); }
.sidebar-logo .logo-mini {
  display: none; width: 38px; height: 38px; border-radius: 11px;
  background: var(--primary); color: var(--on-accent); font-weight: 700; font-size: 18px;
  align-items: center; justify-content: center; overflow: hidden;
}
/* quando houver assets/img/logo_icone.* a imagem preenche o quadrado e dispensa o fundo azul */
.sidebar-logo .logo-mini:has(img) { background: none; border-radius: 0; }
.sidebar-logo .logo-mini img { width: 100%; height: 100%; object-fit: contain; filter: var(--logo-filter); }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.nav-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 16px 10px 6px; white-space: nowrap;
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin: 2px 0; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary); color: var(--on-accent); box-shadow: 0 4px 12px rgba(30,63,199,.28); }
.nav-item .chev { margin-left: auto; width: 15px; height: 15px; opacity: .55; }
.nav-tooltip { display: none; }
.nav-tooltip-float {
  position: fixed; transform: translateY(-50%) scale(.94);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 500;
}
.nav-tooltip-float.visivel { opacity: 1; transform: translateY(-50%) scale(1); }
.nav-tooltip-float::before {
  content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right-color: var(--navy);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden;
}
.sidebar-user .u-info { flex: 1; min-width: 0; }
.sidebar-user .u-nome { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .u-email { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .u-sair {
  margin-left: auto; color: var(--text-2); display: flex; padding: 8px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-user .u-sair svg { width: 16px; height: 16px; }
.sidebar-user .u-sair:hover { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }

/* colapsada */
body.sb-collapsed .sidebar { width: var(--sidebar-w-c); }
body.sb-collapsed .sidebar-logo { padding: 22px 0 14px; justify-content: center; }
body.sb-collapsed .sidebar-logo > img { display: none; }   /* esconde só a logo completa, não o ícone */
body.sb-collapsed .sidebar-logo .logo-mini { display: flex; }
body.sb-collapsed .nav-label { padding: 14px 0 4px; height: 10px; overflow: hidden; color: transparent; border-top: 1px solid var(--border); margin: 6px 8px 0; }
body.sb-collapsed .nav-item { justify-content: center; padding: 11px 0; }
body.sb-collapsed .nav-item .nav-text, body.sb-collapsed .nav-item .chev { display: none; }
body.sb-collapsed .sidebar-user { flex-direction: column; justify-content: center; gap: 10px; padding: 14px 8px; }
body.sb-collapsed .sidebar-user .u-info { display: none; }
body.sb-collapsed .sidebar-user .u-sair { margin-left: 0; }

/* ============ Área principal ============ */
.main { margin-left: var(--sidebar-w); min-height: 100vh; transition: margin-left .22s ease; }
body.sb-collapsed .main { margin-left: var(--sidebar-w-c); }
.header {
  height: var(--header-h); background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  position: sticky; top: 0; z-index: 40;
}
.header .btn-toggle { background: none; border: none; color: var(--text-2); display: flex; padding: 7px; border-radius: 8px; }
.header .btn-toggle:hover { background: var(--bg); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.breadcrumb .sep { opacity: .6; }
.breadcrumb .atual { color: var(--text); font-weight: 600; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-bell { position: relative; background: none; border: none; color: var(--text-2); display: flex; padding: 8px; border-radius: 50%; }
.btn-bell:hover { background: var(--bg); }

/* seletor de tema — pílula com sol/lua e indicador deslizante */
.tema-switch {
  position: relative; width: 58px; height: 30px; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  padding: 0; transition: background .25s, border-color .25s;
}
.tema-switch:hover { border-color: var(--primary); }
.tema-switch .ts-thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); box-shadow: 0 2px 6px rgba(20,23,43,.22);
  transition: transform .28s cubic-bezier(.4,1.4,.6,1);
}
.tema-switch .ts-ico {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; transition: color .25s, opacity .25s;
}
.tema-switch .ts-ico svg { width: 14px; height: 14px; }
.tema-switch .ts-sol { left: 7px; color: var(--yellow-ink); }
.tema-switch .ts-lua { right: 7px; color: var(--muted); opacity: .55; }
html[data-theme="dark"] .tema-switch { background: var(--primary-soft); }
html[data-theme="dark"] .tema-switch .ts-thumb { transform: translateX(28px); background: var(--card); }
html[data-theme="dark"] .tema-switch .ts-sol { color: var(--muted); opacity: .5; }
html[data-theme="dark"] .tema-switch .ts-lua { color: var(--primary); opacity: 1; }
.btn-bell .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--card); }

.content { padding: 28px 32px 48px; max-width: 1440px; }
.content.full { max-width: none; }   /* páginas que aproveitam toda a largura (Kanban) */
.page-title { font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* ============ Cards ============ */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.card-title { font-size: 16px; font-weight: 700; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 24px; }
.kpi {
  position: relative; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px 24px; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--primary-hover); border-radius: 0 0 var(--radius) var(--radius);
}
.kpi .kpi-titulo { font-weight: 700; font-size: 14.5px; }
.kpi .kpi-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.kpi .kpi-num { font-size: 34px; font-weight: 700; margin: 12px 0 10px; letter-spacing: -.02em; }
.kpi .kpi-comp { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.kpi .kpi-comp b { color: var(--primary); font-weight: 600; }
.kpi .kpi-icon {
  position: absolute; top: 18px; right: 20px; width: 52px; height: 52px;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.kpi .kpi-icon svg { width: 24px; height: 24px; }
.ic-lilac { background: var(--lilac); color: var(--lilac-ink); }
.ic-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.ic-green { background: var(--teal-soft); color: var(--teal-ink); }
.ic-blue { background: var(--primary); color: var(--on-accent); }

/* ============ Botões ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; font-size: 13.5px;
  padding: 10px 20px; border: none; transition: all .15s; text-align: center;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: var(--on-accent); box-shadow: 0 4px 14px rgba(30,63,199,.25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--muted); background: var(--bg); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger { background: var(--red); color: var(--on-accent); }
.btn-danger:hover { filter: brightness(.92); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-stack { display: flex; flex-direction: column; gap: 10px; }

/* ============ Badges ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
}
.badge svg { width: 14px; height: 14px; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--primary); }
.badge-gray { background: var(--bg); color: var(--text-2); }
.badge-orange { background: var(--orange-soft); color: var(--orange-ink); }
.badge-lilac { background: var(--lilac); color: var(--lilac-ink); }
.badge-funcao-SDR { background: var(--lilac); color: var(--lilac-ink); }
.badge-funcao-Closer { background: var(--blue-soft); color: var(--primary); }
.badge-funcao-Suporte { background: var(--teal-soft); color: var(--teal-deep); }
.badge-funcao-Colaborador { background: var(--yellow-soft); color: var(--yellow-ink); }
.badge-admin { background: var(--navy); color: #fff; }

/* ============ Avatar ============ */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
  color: var(--on-accent); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar.av-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.av-2 { background: #7C6BD6; } .avatar.av-3 { background: #35A46F; }
.avatar.av-4 { background: #E0A100; } .avatar.av-0 { background: #E2545B; }

/* ============ Formulários ============ */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-6 { grid-column: span 6; }
.c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-9 { grid-column: span 9; }
.fg label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fg label .req { color: var(--red); }
.input, select.input, textarea.input {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; color: var(--text); background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,63,199,.1); }
.input[readonly] { background: var(--bg); color: var(--text-2); }
.input.invalido { border-color: var(--red); }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 42px; }
.input-group .ig-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); padding: 6px; border-radius: 8px; display: flex;
}
.input-group .ig-btn:hover { background: var(--bg); color: var(--primary); }
.hint { font-size: 11.5px; color: var(--muted); }
.hint.carregando { color: var(--primary); }

/* toggle switch */
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: .2s; }
.switch .track::before {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--card); top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::before { transform: translateX(18px); }

/* ============ Tabelas ============ */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th {
  text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.tabela td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.tabela tr:last-child td { border-bottom: none; }
.tabela tbody tr { transition: background .12s; }
.tabela tbody tr:hover { background: var(--row-hover); }
.tabela .t-main { font-weight: 600; }
.tabela .t-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.acoes-row { display: flex; gap: 4px; justify-content: flex-end; }
.btn-ico {
  background: none; border: none; color: var(--muted); padding: 7px; border-radius: 8px; display: flex;
}
.btn-ico svg { width: 16px; height: 16px; }
.btn-ico:hover { background: var(--primary-soft); color: var(--primary); }
.btn-ico.perigo:hover { background: var(--red-soft); color: var(--red); }

/* ============ Stepper (wizard) — cards coloridos por responsável ============ */
.stepper { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.stepper::-webkit-scrollbar { height: 6px; }
.stepper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.step {
  position: relative; cursor: pointer; flex: 1 1 0; min-width: 118px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px 12px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--border);
  transition: transform .18s, box-shadow .18s, background .2s, border-color .2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step .s-dot {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; background: var(--card); color: var(--muted);
  border: 2px solid var(--border); transition: all .2s;
}
.step .s-nome { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.3; }
.step .s-resp {
  font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; margin-top: auto;
}
/* conector entre os cards */
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 30px; left: 100%; width: 8px; height: 2px;
  background: var(--border); transition: background .3s;
}

/* tom do responsável */
.step.resp-jbiz { background: var(--jbiz-bg); border-color: var(--lilac-line); }
.step.resp-jbiz .s-dot { border-color: var(--lilac-line); color: var(--lilac-ink); }
.step.resp-bfly { background: var(--bfly-bg); border-color: var(--blue-line); }
.step.resp-bfly .s-dot { border-color: var(--blue-line); color: var(--primary); }

/* concluída */
.step.done { background: var(--green-soft); border-color: var(--green-line); }
.step.done .s-dot { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.step.done .s-nome { color: var(--green); }
.step.done::after { background: var(--green); }

/* atual — destaque máximo */
.step.atual {
  background: var(--card); border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); transform: translateY(-3px);
}
.step.atual .s-dot { background: var(--primary); border-color: var(--primary); color: var(--on-accent); }
.step.atual .s-nome { color: var(--primary); font-weight: 700; }

/* go-live concluído */
.step.golive { background: var(--green-soft); border-color: var(--green); }
.step.golive .s-dot { background: var(--green); border-color: var(--green); color: var(--on-accent); }

/* ============ Consulta de CNPJ na Receita ============ */
.campo-busca { position: relative; display: flex; }
.campo-busca .cb-spinner { display: none; }
.campo-busca.buscando .input { padding-right: 40px; border-color: var(--primary); background: var(--primary-soft); }
.campo-busca.buscando .cb-spinner {
  display: block; position: absolute; right: 13px; top: 50%; margin-top: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--blue-line); border-top-color: var(--primary);
  animation: girando .7s linear infinite;
}
@keyframes girando { to { transform: rotate(360deg); } }

.busca-receita {
  display: flex; align-items: center; gap: 13px;
  background: var(--primary-soft); border: 1px solid var(--blue-line);
  border-radius: 12px; padding: 13px 16px;
  animation: subir .25s ease;
}
.busca-receita .br-spinner {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--blue-line); border-top-color: var(--primary);
  animation: girando .7s linear infinite;
}
.busca-receita .br-titulo { font-weight: 700; font-size: 13.5px; color: var(--primary); }
.busca-receita .br-texto { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
/* resultado */
.busca-receita.br-ok { background: var(--green-soft); border-color: var(--green-line); }
.busca-receita.br-ok .br-titulo { color: var(--green); }
.busca-receita.br-ok .br-spinner { border: none; animation: none; background: var(--green); position: relative; }
.busca-receita.br-ok .br-spinner::after {
  content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--on-accent); font-size: 13px; font-weight: 700;
}
.busca-receita.br-aviso { background: var(--orange-soft); border-color: var(--orange-line); }
.busca-receita.br-aviso .br-titulo { color: var(--orange-ink); }
.busca-receita.br-aviso .br-spinner { border: none; animation: none; background: var(--orange); position: relative; }
.busca-receita.br-aviso .br-spinner::after {
  content: 'i'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--on-accent); font-size: 13px; font-weight: 700;
}
.busca-receita.br-erro { background: var(--red-soft); border-color: var(--red-line); }
.busca-receita.br-erro .br-titulo { color: var(--red); }
.busca-receita.br-erro .br-spinner { border: none; animation: none; background: var(--red); position: relative; }
.busca-receita.br-erro .br-spinner::after {
  content: '!'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--on-accent); font-size: 14px; font-weight: 700;
}

/* etapas sem acesso (perfil equipe nas etapas da Brindefly): visíveis, porém travadas */
.step.step-travada { cursor: not-allowed; opacity: .62; background: var(--surface-2); border-style: dashed; }
.step.step-travada:hover { transform: none; box-shadow: none; }
.step.step-travada .s-dot { background: var(--surface-2); border-style: dashed; font-size: 12px; }
.step.step-travada .s-nome { color: var(--muted); }
.lt-marco.lt-travado { cursor: not-allowed; opacity: .55; }
.lt-marco.lt-travado:hover .ltm-ponto { transform: none; border-color: var(--border); color: var(--muted); }

/* ============ Ação de enviar briefing (etapa 5) ============ */
.briefing-acao {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--primary-soft), var(--bfly-bg));
  border: 1px solid var(--blue-line); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px;
}
.briefing-acao .ba-info { flex: 1; min-width: 240px; }
.briefing-acao .ba-titulo { font-weight: 700; font-size: 15px; }
.briefing-acao .ba-texto { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.btn-briefing { padding: 13px 24px; font-size: 14.5px; box-shadow: 0 6px 18px rgba(30,63,199,.32); }
.btn-briefing:hover:not(:disabled) { transform: translateY(-1px); }
.btn-briefing .br-spinner { border-color: rgba(255,255,255,.45); border-top-color: #fff; }
.briefing-link {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
}
.briefing-link a { font-size: 12.5px; font-weight: 600; color: var(--primary); word-break: break-all; }
.briefing-link a:hover { text-decoration: underline; }

/* ============ Card de criação de cobrança (etapa 3) ============ */
.cobranca-card {
  background: var(--card); border: 1.5px solid var(--blue-line); border-radius: 14px;
  padding: 20px 22px; margin-top: 4px;
}
.cobranca-card .cc-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cobranca-card .cc-titulo { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; }
.cobranca-card .cc-titulo svg { width: 18px; height: 18px; color: var(--primary); }
.cobranca-card .cc-sub { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; flex-wrap: wrap; }
.cc-metodos { display: flex; gap: 14px; padding-top: 8px; }
.cc-check { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.cc-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.cc-cliente {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2);
  background: var(--bg); border-radius: 10px; padding: 11px 14px;
}
.cc-cliente b { color: var(--text); font-weight: 600; }

/* ============ Linha do tempo da jornada ============ */
.linha-tempo { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.lt-topo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.lt-titulo { font-size: 13.5px; font-weight: 700; display: block; }
.lt-sub { font-size: 12px; color: var(--muted); }
.lt-direita { display: flex; align-items: center; gap: 10px; }
.lt-pct { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: -.02em; }

.lt-trilho {
  position: relative; height: 6px; border-radius: 999px; background: var(--border);
  margin: 0 16px 42px;
}
.lt-preenchido {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--primary));
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}

.lt-marco {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  background: none; border: none; padding: 0; display: flex; flex-direction: column;
  align-items: center; gap: 7px; z-index: 1;
}
.ltm-ponto {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--card); color: var(--muted);
  border: 2px solid var(--border); transition: all .2s;
}
.ltm-data {
  position: absolute; top: 30px; font-size: 10px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.lt-marco:hover .ltm-ponto { transform: scale(1.18); border-color: var(--primary); color: var(--primary); }

.lt-marco.lt-feito .ltm-ponto { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.lt-marco.lt-feito .ltm-data { color: var(--green); }
.lt-marco.lt-atual .ltm-ponto {
  background: var(--primary); border-color: var(--primary); color: var(--on-accent);
  width: 30px; height: 30px; font-size: 12px;
  box-shadow: 0 0 0 4px var(--primary-soft);
  animation: pulsoMarco 2s ease infinite;
}
.lt-marco.lt-atual .ltm-data { color: var(--primary); font-weight: 700; }
.lt-marco.lt-futuro .ltm-ponto { background: var(--card); border-style: dashed; }
@keyframes pulsoMarco {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-soft); }
  50% { box-shadow: 0 0 0 8px var(--primary-soft); }
}
/* último marco (Go-Live) não pode vazar da caixa */
.lt-marco:last-child { transform: translate(-70%, -50%); }
.lt-marco:first-child { transform: translate(-30%, -50%); }

@media (max-width: 860px) {
  .ltm-data { display: none; }
  .lt-trilho { margin-bottom: 24px; }
}

/* barra de responsabilidade (JBIZ × Brindefly) */
.resp-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.resp-seg {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 8px; border-radius: 9px; white-space: nowrap; overflow: hidden;
}
.resp-seg.resp-jbiz, .step .s-resp.resp-jbiz { background: var(--lilac); color: var(--lilac-ink); }
.resp-seg.resp-bfly, .step .s-resp.resp-bfly { background: var(--blue-soft); color: var(--primary); }

/* ============ Timeline (histórico) ============ */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--primary); border: 2.5px solid var(--card); box-shadow: 0 0 0 2px var(--primary);
}
.tl-item.tl-golive::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.tl-item .tl-desc { font-weight: 600; font-size: 13px; }
.tl-item .tl-data { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ============ Kanban ============ */
.kanban-wrap { overflow-x: auto; padding-bottom: 12px; }
.kanban-wrap::-webkit-scrollbar { height: 9px; }
.kanban-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9px; }
/* ocupa a altura útil da tela; as colunas rolam por dentro */
.kanban {
  display: flex; gap: 12px; align-items: stretch;
  height: calc(100vh - var(--header-h) - 232px); min-height: 430px;
}
/* colunas crescem para preencher telas grandes e rolam na horizontal nas pequenas */
.kb-col {
  flex: 1 1 218px; min-width: 218px; max-width: 420px;
  display: flex; flex-direction: column;
  background: var(--surface-2); border-radius: 14px; padding: 8px; border-top: 4px solid transparent;
}
/* "Ajustar à tela": comprime as colunas para caberem todas sem rolagem */
.kanban.ajustado { width: 100%; }
.kanban.ajustado .kb-col { min-width: 0; flex: 1 1 0; }
.kanban.ajustado .kb-titulo { font-size: 11.5px; }
.kanban.ajustado .kb-tag { display: none; }
/* colunas muito estreitas: cards enxutos (container query) */
.kb-col { container-type: inline-size; }
@container (max-width: 170px) {
  .kb-card { padding: 10px 11px; }
  .kb-card .kbc-empresa { font-size: 12px; }
  .kb-card .kbc-foot .badge { display: none; }
}
.kb-col.resp-col-jbiz { border-top-color: var(--lilac-ink); background: var(--jbiz-bg); }
.kb-col.resp-col-bfly { border-top-color: var(--primary); background: var(--bfly-bg); }
.kb-col-band {
  display: flex; align-items: center; gap: 7px; border-radius: 10px;
  padding: 8px 10px; margin-bottom: 9px;
}
.kb-col.resp-col-jbiz .kb-col-band { background: var(--lilac); }
.kb-col.resp-col-jbiz .kb-titulo { color: var(--lilac-deep); }
.kb-col.resp-col-bfly .kb-col-band { background: var(--blue-soft); }
.kb-col.resp-col-bfly .kb-titulo { color: var(--primary); }
.kb-col.col-golive .kb-col-band { background: var(--teal-soft); }
.kb-col.col-golive .kb-titulo { color: var(--green); }
.kb-tag {
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--surface-3); flex-shrink: 0;
}
.kb-col.resp-col-jbiz .kb-tag { color: var(--lilac-ink); }
.kb-col.resp-col-bfly .kb-tag { color: var(--primary); }
.kb-col.col-golive .kb-tag { color: var(--green); }
.kb-col-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; }
.kb-col-head .kb-titulo { font-size: 12.5px; font-weight: 700; }
.kb-col-head .kb-count {
  margin-left: auto; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 7px;
}
.kb-col.col-golive { background: var(--green-soft); }
.kb-col.col-golive .kb-titulo { color: var(--green); }
.kb-cards {
  display: flex; flex-direction: column; gap: 9px; min-height: 44px;
  border-radius: 10px; transition: background .15s;
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2px;
}
.kb-cards::-webkit-scrollbar { width: 6px; }
.kb-cards::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.kb-cards::-webkit-scrollbar-track { background: transparent; }
.kb-col.drag-over .kb-cards { background: var(--primary-soft); outline: 2px dashed var(--primary); outline-offset: -2px; }
.kb-card {
  background: var(--card); border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow-card);
  cursor: grab; transition: transform .15s, box-shadow .15s; border: 1px solid transparent;
}
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.kb-card.dragging { opacity: .45; transform: rotate(2deg); }
/* card fora da alçada do usuário: abre para consulta, mas não arrasta */
.kb-card.kb-travado { cursor: pointer; }
.kb-card.kb-travado::after {
  content: '🔒'; float: right; font-size: 10px; opacity: .45; margin-top: -2px;
}
.kb-card .kbc-empresa { font-weight: 700; font-size: 13px; line-height: 1.35; }
.kb-card .kbc-nome { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.kb-card .kbc-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.kb-card .kbc-foot .badge { font-size: 10.5px; padding: 3px 8px; }

/* ============ Modais ============ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(14,27,77,.45); backdrop-filter: blur(2px);
  display: none; align-items: flex-start; justify-content: center; z-index: 200; padding: 40px 20px; overflow-y: auto;
}
.modal-bg.aberto { display: flex; animation: fadeIn .18s ease; }
.modal {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; animation: subir .22s ease;
}
.modal.modal-lg { max-width: 880px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 20px 24px 0; }
.modal-head h3 { font-size: 17px; font-weight: 700; flex: 1; }
.modal-body { padding: 18px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.btn-fechar { background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.btn-fechar:hover { background: var(--red-soft); color: var(--red); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }

/* alerta laranja (padrão referência) */
.alerta {
  background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 12px;
  padding: 14px 16px; display: flex; gap: 11px; align-items: flex-start;
}
.alerta svg { width: 19px; height: 19px; color: var(--orange); margin-top: 1px; }
.alerta .al-titulo { font-weight: 700; font-size: 13.5px; }
.alerta .al-texto { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

/* ============ Toasts ============ */
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff;
  padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 500; animation: toastIn .25s ease; max-width: 360px;
}
.toast svg { width: 18px; height: 18px; }
.toast.sucesso svg { color: var(--teal-ink); }
.toast.erro { background: var(--red); }
.toast.saindo { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ============ Skeleton ============ */
.skeleton { position: relative; overflow: hidden; background: var(--skeleton); border-radius: 8px; color: transparent !important; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ============ Metas ============ */
.gauge-wrap { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.gauge-wrap svg { transform: rotate(-90deg); }
.gauge-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-centro .g-num { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.gauge-centro .g-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.gauge-centro .g-pct { font-size: 14px; font-weight: 700; margin-top: 6px; }
.frase-motiv { text-align: center; font-size: 17px; font-weight: 700; margin-top: 18px; min-height: 26px; }
.barras { display: flex; align-items: flex-end; gap: 18px; height: 190px; padding: 10px 6px 0; }
.barra-g { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barra-g .b-val { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.barra-g .b-bar { width: 100%; max-width: 54px; background: var(--primary); border-radius: 8px 8px 4px 4px; transition: height .9s cubic-bezier(.22,1,.36,1); min-height: 4px; }
.barra-g .b-bar.b-cinza { background: var(--bar-gray); }
.barra-g .b-bar.b-verde { background: var(--green); }
.barra-g .b-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-pos { font-weight: 700; font-size: 15px; color: var(--muted); width: 26px; text-align: center; }
.rank-pos.top1 { color: var(--yellow-ink); font-size: 18px; }
.rank-info { flex: 1; min-width: 0; }
.rank-nome { font-weight: 600; font-size: 13.5px; }
.rank-barra { height: 7px; background: var(--bg); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.rank-barra i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width 1s cubic-bezier(.22,1,.36,1); }
.rank-vendas { font-weight: 700; font-size: 15px; }
.rank-vendas small { font-weight: 500; color: var(--muted); font-size: 11px; display: block; text-align: right; }

/* confete */
.confete { position: fixed; top: -12px; border-radius: 3px; z-index: 400; pointer-events: none; animation: cair linear forwards; }
@keyframes cair { to { transform: translateY(105vh) rotate(720deg); opacity: .4; } }

/* pulso go-live */
@keyframes pulsoGo { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.35); } 50% { box-shadow: 0 0 0 10px rgba(22,163,74,0); } }
.pulso-golive { animation: pulsoGo 1.8s ease infinite; }

/* ============ Funil ============ */
.funil-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.funil-label { width: 175px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: right; flex-shrink: 0; }
.funil-track { flex: 1; }
.funil-bar {
  height: 30px; background: linear-gradient(90deg, var(--primary), #4A66E0); border-radius: 8px;
  display: flex; align-items: center; padding: 0 12px; color: var(--on-accent); font-weight: 700; font-size: 12.5px;
  min-width: 36px; transition: width .8s cubic-bezier(.22,1,.36,1);
}
.funil-taxa { width: 64px; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }

/* ============ Login ============ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }

/* lado da marca */
.login-brand {
  position: relative; overflow: hidden; display: flex; align-items: center;
  padding: 56px 60px; color: #fff;
  background: linear-gradient(150deg, #1E3FC7 0%, #2B31A8 48%, #0E1B4D 100%);
}
html[data-theme="dark"] .login-brand { background: linear-gradient(150deg, #24306E 0%, #1A2050 48%, #0B0E1F 100%); }
.lb-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.lb-blob-1 { width: 420px; height: 420px; background: #5B7BFF; top: -120px; right: -110px; animation: flutua 14s ease-in-out infinite; }
.lb-blob-2 { width: 340px; height: 340px; background: #7C6BD6; bottom: -110px; left: -80px; animation: flutua 18s ease-in-out infinite reverse; }
@keyframes flutua { 50% { transform: translate(24px, -22px) scale(1.08); } }
.lb-conteudo { position: relative; z-index: 1; max-width: 550px; }
.lb-logo { filter: brightness(0) invert(1); margin-bottom: 46px; }
.login-brand h2 { font-size: 33px; line-height: 1.28; font-weight: 700; letter-spacing: -.02em; }
.login-brand h2 span {
  background: linear-gradient(90deg, #9FB4FF, #6EE7B7); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.lb-lista { list-style: none; margin: 4px 0 0; display: flex; flex-direction: column; gap: 14px; }
.lb-lista li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: rgba(255,255,255,.86); line-height: 1.45; }
.lb-check {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #6EE7B7;
}

/* lado do formulário */
.login-form-lado {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 24px; gap: 18px;
}
.login-tema { position: absolute; top: 26px; right: 28px; }
.login-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  width: 100%; max-width: 424px; padding: 40px 38px 34px; box-shadow: var(--shadow);
}
.lf-logo-mobile { display: none; height: 40px; margin: 0 auto 26px; filter: var(--logo-filter); }
.login-card h1 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.login-card .l-sub { color: var(--muted); font-size: 13.5px; margin: 10px 0 30px; line-height: 1.5; }
.login-card .fg { gap: 8px; }
.login-card .fg label { font-size: 13px; }
.login-card .fg + .fg { margin-top: 18px; }
.login-card form > .flex-between { margin: 22px 0 26px; }
.login-rodape { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* campo com ícone à esquerda */
.campo-ico { position: relative; display: flex; align-items: center; }
.campo-ico > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; transition: color .15s; }
.campo-ico .input { padding: 12px 14px 12px 42px; }
.campo-ico:focus-within > svg { color: var(--primary); }
.campo-ico .ig-btn { position: absolute; right: 6px; background: none; border: none; color: var(--muted); padding: 7px; border-radius: 8px; display: flex; }
.campo-ico .ig-btn svg { width: 17px; height: 17px; }
.campo-ico .ig-btn:hover { background: var(--bg); color: var(--primary); }
.campo-ico .ig-btn.ativo { color: var(--primary); }
.campo-ico:has(.ig-btn) .input { padding-right: 44px; }
.link-suave { color: var(--primary); font-weight: 600; }
.link-suave:hover { text-decoration: underline; }
.btn-entrar { padding: 13px 20px; font-size: 14.5px; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .lf-logo-mobile { display: block; }
  .login-form-lado { padding-top: 74px; }
  .login-tema { top: 18px; right: 18px; }
  .login-card { box-shadow: var(--shadow-lg); padding: 32px 24px 28px; }
  .login-card h1 { font-size: 21px; }
  .login-card .l-sub { margin-bottom: 22px; }
}

/* ============ Utilidades ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layout-lateral { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex > svg { width: 18px; height: 18px; color: var(--muted); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.texto-muted { color: var(--muted); font-size: 12.5px; }
.sem-dados { text-align: center; color: var(--muted); padding: 34px 20px; font-size: 13.5px; }
.dado-linha { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.dado-linha:last-child { border-bottom: none; }
.dado-linha .dl-label { color: var(--muted); flex-shrink: 0; }
.dado-linha .dl-valor { font-weight: 600; text-align: right; word-break: break-word; }
.obs-item { margin-top: 8px; }
.obs-item p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-top: 4px; white-space: pre-wrap; }

@media (max-width: 1100px) {
  .layout-lateral { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .content { padding: 20px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .c-6, .c-4, .c-3, .c-8, .c-9 { grid-column: span 12; }
  body:not(.sb-collapsed) .sidebar { width: var(--sidebar-w-c); }
  body:not(.sb-collapsed) .main { margin-left: var(--sidebar-w-c); }
}
