﻿/* ================================================================
   BIOMEDICAL — Portal Corporativo
   Identidade visual: azul corporativo + verde vitalidade
   Poppins (títulos) + Inter (texto)
   ================================================================ */

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

:root {
  /* Brand — azul */
  --bm-blue-900: #002E5D;
  --bm-blue-800: #003B7E;
  --bm-blue-700: #0A4FA0;
  --bm-blue-600: #1565C0;
  --bm-blue-500: #1E88E5;
  --bm-blue-100: #E3F0FB;
  --bm-blue-50:  #F0F7FD;

  /* Brand — verde */
  --bm-green-700: #1FA838;
  --bm-green-600: #27D045;
  --bm-green-500: #4DD968;
  --bm-green-100: #DCF7E2;

  /* Neutros */
  --bg:         #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #EEF2F7;
  --surface-3:  #E2E8F0;
  --border:     #E2E8F0;
  --border-2:   #CBD5E1;
  --border-3:   #B8C2CF;
  --text:       #0F172A;
  --text-2:     #334155;
  --text-3:     #64748B;
  --text-4:     #94A3B8;

  /* Estados */
  --danger:     #DC2626;
  --danger-bg:  #FEE2E2;
  --warning:    #D97706;
  --warning-2:  #EA580C;
  --warning-bg: #FEF3C7;
  --info:       #2563EB;
  --success:    var(--bm-green-600);

  /* Tokens */
  --radius:     10px;
  --radius-lg:  16px;
  --radius-md:  10px;
  --radius-sm:  6px;
  --shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow:     0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);
  --ring:       0 0 0 3px rgba(30, 136, 229, 0.15);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--bm-blue-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--bm-blue-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bm-blue-900);
  letter-spacing: -0.01em;
  margin: 0;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* Páginas de departamento usam toda a largura (app shell) */
body.dept .container { max-width: 1860px; padding-left: clamp(16px, 1.6vw, 28px); padding-right: clamp(20px, 3vw, 48px); }
body.dept .area-grid { padding-top: 32px; }

/* ================================================================
   HEADER  (com busca Ctrl+K)
   ================================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-fallback {
  display: none;
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--bm-blue-900); letter-spacing: 0.02em;
}
.brand-logo[data-failed="true"] { display: none; }
.brand-logo[data-failed="true"] + .brand-fallback { display: inline; }

.header-divider { width: 1px; height: 28px; background: var(--border-2); flex-shrink: 0; }

.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: all .15s var(--ease);
}
.header-nav a:hover { color: var(--bm-blue-900); background: var(--bm-blue-50); }

.header-spacer { flex: 1; }

.header-search {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-3); font-size: 13px; font-family: var(--font-body);
  cursor: pointer; transition: all .15s var(--ease); min-width: 220px;
}
.header-search:hover { border-color: var(--border-2); background: #fff; }
.header-search svg { color: var(--text-4); flex-shrink: 0; }
.header-search .ph { flex: 1; text-align: left; }
.header-search .kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  background: #fff; border: 1px solid var(--border-2); border-radius: 4px;
  padding: 2px 6px; line-height: 1;
}

/* ================================================================
   COMMAND PALETTE  (Ctrl+K)
   ================================================================ */
.cmdk-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000; display: none;
  align-items: flex-start; justify-content: center;
  padding: 14vh 20px 20px;
}
.cmdk-overlay.open { display: flex; }
.cmdk {
  width: 100%; max-width: 560px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: cmdk-in .16s var(--ease);
}
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(0.99); } to { opacity: 1; transform: none; } }
.cmdk-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.cmdk-input-wrap svg { color: var(--text-3); flex-shrink: 0; }
.cmdk-input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 16px; color: var(--text); background: transparent;
}
.cmdk-input::placeholder { color: var(--text-4); }
.cmdk-esc {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--border-2); border-radius: 4px; padding: 3px 7px;
}
.cmdk-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-4); padding: 10px 12px 6px; font-weight: 600;
}
.cmdk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  color: var(--text); transition: background .1s var(--ease);
}
.cmdk-item:hover, .cmdk-item.active { background: var(--bm-blue-50); color: var(--bm-blue-900); }
.cmdk-item .ci-icon {
  width: 30px; height: 30px; border-radius: 7px; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bm-blue-700); flex-shrink: 0;
}
.cmdk-item .ci-icon img { width: 16px; height: 16px; object-fit: contain; }
.cmdk-item .ci-body { flex: 1; min-width: 0; }
.cmdk-item .ci-name { font-size: 14px; font-weight: 500; }
.cmdk-item .ci-cat { font-size: 12px; color: var(--text-3); }
.cmdk-item .ci-arrow { color: var(--text-4); }
.cmdk-empty { padding: 32px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ================================================================
   HOME — HERO (azul, gradiente)
   ================================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bm-blue-900) 0%, var(--bm-blue-700) 60%, var(--bm-blue-600) 100%);
  color: #fff; overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 85% 20%, rgba(39, 208, 69, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 80%, rgba(30, 136, 229, 0.25), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero-eyebrow .live-dot {
  position: relative; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bm-green-500);
}
.hero-eyebrow .live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--bm-green-500); opacity: 0.6;
  animation: pulse-ring 2s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }

.hero h1 {
  font-size: 56px; line-height: 1.05; font-weight: 700; color: #fff;
  max-width: 820px; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--bm-green-500); }

.hero-lead {
  font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.82);
  max-width: 620px; margin: 0 0 36px;
}

/* HERO NAV — tiles (estilo mantido do redesign) */
.hero-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.hero-nav-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #fff; transition: all .18s var(--ease); position: relative;
}
.hero-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(77, 217, 104, 0.5);
  transform: translateY(-2px);
}
.hero-nav-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bm-green-500); margin-bottom: 10px;
  transition: all .18s var(--ease);
}
.hero-nav-item:hover .hero-nav-icon {
  background: var(--bm-green-500); border-color: var(--bm-green-500); color: var(--bm-blue-900);
}
.hero-nav-icon svg { width: 19px; height: 19px; }
.hero-nav-item .t {
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; letter-spacing: -0.01em;
}
.hero-nav-item .d { font-size: 13px; color: rgba(255, 255, 255, 0.62); line-height: 1.45; }
.hero-nav-item .arrow {
  position: absolute; top: 18px; right: 16px;
  color: rgba(255, 255, 255, 0.35); transition: all .18s var(--ease);
}
.hero-nav-item:hover .arrow { color: var(--bm-green-500); transform: translate(3px, -3px); }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-header {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 40px; gap: 24px;
}
.section-header .left h2 { font-size: 36px; margin-bottom: 8px; }
.section-header .left p { color: var(--text-3); font-size: 16px; margin: 0; }
.section-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bm-green-700); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--bm-green-600); }

/* ================================================================
   RECENTES (faixa compacta acima de Departamentos)
   ================================================================ */
.recentes-section { padding: 36px 0 0; background: var(--bg); }
.recentes-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.recentes-head .rc-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); display: inline-flex; align-items: center; gap: 8px;
}
.recentes-head .rc-tag svg { width: 15px; height: 15px; color: var(--bm-blue-600); }
.recentes-head .rc-clear {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text-4);
  display: inline-flex; align-items: center; gap: 5px; transition: color .15s var(--ease);
}
.recentes-head .rc-clear:hover { color: var(--danger); }
.recentes-list { display: flex; flex-wrap: wrap; gap: 10px; }
.recente-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  text-decoration: none; transition: all .16s var(--ease); box-shadow: var(--shadow-xs);
}
.recente-chip:hover { transform: translateY(-2px); border-color: var(--bm-blue-500); box-shadow: var(--shadow); }
.recente-chip .rc-ic {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bm-blue-50); color: var(--bm-blue-700);
}
.recente-chip .rc-ic svg { width: 15px; height: 15px; }
.recente-chip .rc-ic img { width: 16px; height: 16px; object-fit: contain; }
.recente-chip .rc-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.recente-chip .rc-meta { font-size: 11px; color: var(--text-4); white-space: nowrap; }
.recente-chip .rc-ext { color: var(--text-4); margin-left: 2px; }
.recentes-empty { font-size: 13px; color: var(--text-4); }
@media (max-width: 640px) {
  .recentes-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .recente-chip { flex-shrink: 0; }
}

/* ================================================================
   ÁREAS GRID
   ================================================================ */
.areas-section { padding: 80px 0; background: var(--bg); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.area-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px 24px;
  transition: all .25s var(--ease);
  display: flex; flex-direction: column; min-height: 200px; overflow: hidden;
}
.area-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--bm-blue-700), var(--bm-green-500));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.area-card:hover { transform: translateY(-4px); border-color: var(--bm-blue-500); box-shadow: var(--shadow-lg); }
.area-card:hover::before { transform: scaleX(1); }

.area-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bm-blue-50); color: var(--bm-blue-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: all .2s var(--ease);
}
.area-card:hover .area-card-icon { background: var(--bm-blue-700); color: #fff; }

.area-card h3 { font-size: 18px; margin-bottom: 6px; font-weight: 600; }
.area-card p { font-size: 13px; color: var(--text-3); line-height: 1.5; margin: 0; flex: 1; }
.area-card-arrow {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--bm-blue-700);
}
.area-card-arrow svg { transition: transform .2s var(--ease); }
.area-card:hover .area-card-arrow svg { transform: translateX(4px); }

/* Variantes de cor por departamento */
.area-card[data-area="financeiro"] .area-card-icon { background: #FEF3C7; color: #B45309; }
.area-card[data-area="comercial"]  .area-card-icon { background: #DBEAFE; color: #1D4ED8; }
.area-card[data-area="logistica"]  .area-card-icon { background: #E0E7FF; color: #4338CA; }
.area-card[data-area="marketing"]  .area-card-icon { background: #FCE7F3; color: #BE185D; }
.area-card[data-area="operacoes"]  .area-card-icon { background: #CFFAFE; color: #0E7490; }
.area-card[data-area="pessoas"]    .area-card-icon { background: var(--bm-green-100); color: var(--bm-green-700); }
.area-card[data-area="qualidade"]  .area-card-icon { background: #EDE9FE; color: #6D28D9; }
.area-card[data-area="ti"]         .area-card-icon { background: var(--bm-blue-100); color: var(--bm-blue-800); }
.area-card:hover[data-area="financeiro"] .area-card-icon { background: #B45309; color: #fff; }
.area-card:hover[data-area="comercial"]  .area-card-icon { background: #1D4ED8; color: #fff; }
.area-card:hover[data-area="logistica"]  .area-card-icon { background: #4338CA; color: #fff; }
.area-card:hover[data-area="marketing"]  .area-card-icon { background: #BE185D; color: #fff; }
.area-card:hover[data-area="operacoes"]  .area-card-icon { background: #0E7490; color: #fff; }
.area-card:hover[data-area="pessoas"]    .area-card-icon { background: var(--bm-green-700); color: #fff; }
.area-card:hover[data-area="qualidade"]  .area-card-icon { background: #6D28D9; color: #fff; }
.area-card:hover[data-area="ti"]         .area-card-icon { background: var(--bm-blue-800); color: #fff; }

/* ================================================================
   SISTEMAS & LINKS
   ================================================================ */
.sistemas-section { padding: 80px 0; background: var(--surface-2); border-top: 1px solid var(--border); }
.sistemas-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; }
.sistemas-tab {
  border: 1px solid transparent; background: transparent;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  cursor: pointer; font-family: var(--font-body); transition: all .15s var(--ease);
}
.sistemas-tab:hover { color: var(--bm-blue-900); background: #fff; }
.sistemas-tab.active { background: var(--bm-blue-900); color: #fff; border-color: var(--bm-blue-900); }

.sistemas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sistema-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 14px;
  transition: all .18s var(--ease); position: relative; text-decoration: none; box-shadow: var(--shadow-xs);
}
.sistema-card:hover { transform: translateY(-2px); border-color: var(--bm-blue-500); box-shadow: var(--shadow); }
.sistema-card .icon {
  width: 42px; height: 42px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--bm-blue-700);
}
.sistema-card .icon svg { width: 20px; height: 20px; }
.sistema-card .icon img { width: 22px; height: 22px; object-fit: contain; }
.sistema-card .body { min-width: 0; flex: 1; }
.sistema-card .name { font-weight: 600; color: var(--text); font-size: 14.5px; margin-bottom: 3px; display: block; }
.sistema-card .desc { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.sistema-card .ext-mark {
  position: absolute; top: 16px; right: 16px;
  color: var(--text-4); opacity: 0; transition: opacity .15s var(--ease);
}
.sistema-card:hover .ext-mark { opacity: 1; }

/* ================================================================
   CENTRAL DE ARQUIVOS
   ================================================================ */
.upload-section { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); }
.upload-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.upload-zone {
  position: relative; background: linear-gradient(180deg, var(--bm-blue-50) 0%, #FBFCFE 100%);
  border: 2px dashed var(--bm-blue-500); border-radius: var(--radius-lg);
  padding: 56px 32px; text-align: center; cursor: pointer; transition: all .25s var(--ease);
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.upload-zone:hover, .upload-zone.dragover {
  background: linear-gradient(180deg, #E9F2FB 0%, #F4F8FC 100%);
  border-color: var(--bm-blue-700); transform: translateY(-2px);
}
.upload-zone.dragover { border-style: solid; box-shadow: 0 0 0 6px rgba(30, 136, 229, 0.12); }
.upload-icon {
  width: 84px; height: 84px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bm-blue-700); margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); transition: all .25s var(--ease);
}
.upload-zone:hover .upload-icon, .upload-zone.dragover .upload-icon { background: var(--bm-blue-700); color: #fff; transform: scale(1.08); }
.upload-zone h3 { font-size: 24px; margin-bottom: 8px; }
.upload-zone p { font-size: 14px; color: var(--text-3); margin: 0 0 24px; max-width: 420px; }
.btn-browse {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px;
  background: var(--bm-green-600); color: #fff; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; font-family: var(--font-body); transition: all .15s var(--ease);
}
.btn-browse:hover { background: var(--bm-green-700); transform: translateY(-1px); }
.upload-formats { margin-top: 18px; font-size: 12px; color: var(--text-4); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.upload-formats .pill-format {
  background: #fff; border: 1px solid var(--border); padding: 3px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
}
.upload-sidebar {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.upload-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.upload-stat .label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 6px; }
.upload-stat .value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--bm-blue-900); line-height: 1; }
.upload-meta-list { display: flex; flex-direction: column; gap: 10px; }
.upload-meta { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.upload-meta svg { color: var(--bm-green-600); flex-shrink: 0; margin-top: 2px; }
.upload-meta strong { color: var(--text); }
.upload-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; margin-top: 28px; }
.upload-list-header h4 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.upload-list-header .btn-clear {
  background: none; border: none; color: var(--text-3); font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}
.upload-list-header .btn-clear:hover { color: var(--danger); }
.upload-list { display: flex; flex-direction: column; gap: 10px; }
.upload-list:empty::before {
  content: 'Nenhum arquivo carregado ainda.'; color: var(--text-4); font-size: 14px;
  text-align: center; padding: 32px; border: 1px dashed var(--border-2); border-radius: var(--radius); display: block;
}
.upload-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
}
.upload-item .file-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--bm-blue-50); color: var(--bm-blue-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
}
.upload-item .file-icon.pdf { background: #FEE2E2; color: #B91C1C; }
.upload-item .file-icon.img { background: #DCFCE7; color: #15803D; }
.upload-item .file-icon.doc { background: #DBEAFE; color: #1D4ED8; }
.upload-item .file-icon.sheet { background: #DCFCE7; color: #047857; }
.upload-item .file-icon.zip { background: #FEF3C7; color: #B45309; }
.upload-item .file-body { min-width: 0; }
.upload-item .file-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.upload-item .file-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.upload-item .progress-bar { flex: 1; height: 4px; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 80px; }
.upload-item .progress-fill { height: 100%; background: var(--bm-blue-600); border-radius: 999px; width: 0%; transition: width .15s linear; }
.upload-item.done .progress-fill { background: var(--bm-green-600); }
.upload-item.done .file-meta .status { color: var(--bm-green-700); font-weight: 600; }
.upload-item .file-actions { display: flex; gap: 4px; }
.upload-item .file-actions button {
  width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: 6px;
  color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s var(--ease);
}
.upload-item .file-actions button:hover { color: var(--danger); border-color: var(--danger); background: #FEF2F2; }
.upload-toolbar { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ================================================================
   AVISOS & COMUNICADOS  (mural interno)
   ================================================================ */
.avisos-section { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); }
.avisos-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; }
.avisos-tab {
  border: 1px solid transparent; background: transparent;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  cursor: pointer; font-family: var(--font-body); transition: all .15s var(--ease);
}
.avisos-tab:hover { color: var(--bm-blue-900); background: var(--surface-2); }
.avisos-tab.active { background: var(--bm-blue-900); color: #fff; border-color: var(--bm-blue-900); }

.avisos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.aviso-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: all .22s var(--ease); position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.aviso-card:hover { transform: translateY(-3px); border-color: var(--bm-blue-500); box-shadow: var(--shadow-lg); }
.aviso-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--bm-blue-600); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.aviso-card:hover::before { transform: scaleX(1); }
.aviso-card[data-cat="diretoria"]::before { background: var(--bm-blue-700); }
.aviso-card[data-cat="pessoas"]::before   { background: var(--bm-green-600); }
.aviso-card[data-cat="eventos"]::before   { background: #C2410C; }
.aviso-card[data-cat="qualidade"]::before { background: #6D28D9; }
.aviso-card[data-cat="ti"]::before        { background: #0E7490; }

.aviso-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aviso-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.aviso-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aviso-badge.b-diretoria { background: var(--bm-blue-100); color: var(--bm-blue-800); }
.aviso-badge.b-pessoas   { background: var(--bm-green-100); color: var(--bm-green-700); }
.aviso-badge.b-eventos   { background: #FFEDD5; color: #C2410C; }
.aviso-badge.b-qualidade { background: #EDE9FE; color: #6D28D9; }
.aviso-badge.b-ti        { background: #CFFAFE; color: #0E7490; }

.aviso-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-4); white-space: nowrap; }
.aviso-card h3 { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--bm-blue-900); margin: 0; letter-spacing: -0.01em; text-wrap: pretty; }
.aviso-card p { font-size: 14px; color: var(--text-3); line-height: 1.55; margin: 0; flex: 1; }
.aviso-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.aviso-author { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.aviso-author .av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--bm-blue-100); color: var(--bm-blue-800);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
}
.aviso-readmore { font-size: 13px; font-weight: 600; color: var(--bm-blue-700); display: inline-flex; align-items: center; gap: 5px; }
.aviso-readmore svg { transition: transform .2s var(--ease); }
.aviso-card:hover .aviso-readmore svg { transform: translateX(3px); }

/* Card em destaque */
.aviso-card.featured {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(135deg, var(--bm-blue-900) 0%, var(--bm-blue-700) 100%);
  border-color: var(--bm-blue-800); justify-content: space-between;
}
.aviso-card.featured::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 90% 10%, rgba(39, 208, 69, 0.18), transparent 60%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}
.aviso-card.featured > * { position: relative; z-index: 1; }
.aviso-card.featured h3 { color: #fff; font-size: 30px; line-height: 1.15; }
.aviso-card.featured p { color: rgba(255, 255, 255, 0.78); font-size: 15.5px; line-height: 1.6; flex: 0; }
.aviso-card.featured .aviso-date { color: rgba(255, 255, 255, 0.6); }
.aviso-card.featured .aviso-foot { border-top-color: rgba(255, 255, 255, 0.15); }
.aviso-card.featured .aviso-author { color: rgba(255, 255, 255, 0.75); }
.aviso-card.featured .aviso-author .av { background: rgba(255, 255, 255, 0.15); color: #fff; }
.aviso-card.featured .aviso-readmore { color: var(--bm-green-500); }
.aviso-card.featured .aviso-badge.b-diretoria { background: rgba(255, 255, 255, 0.14); color: #fff; }
.aviso-card.featured::before { display: none; }
.aviso-card.featured .aviso-lead-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex; align-items: center; justify-content: center; color: var(--bm-green-500);
  margin-bottom: 4px;
}

/* ================================================================
   CONTATO
   ================================================================ */
.contato-section { padding: 80px 0; background: var(--surface-2); border-top: 1px solid var(--border); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.contato-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .2s var(--ease); }
.contato-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.contato-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bm-blue-700); margin-bottom: 12px; font-weight: 600; }
.contato-card p { font-size: 15px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ---- Banner "modelo" (esqueleto p/ preencher) ---- */
.molde-note {
  display: flex; align-items: center; gap: 10px;
  background: var(--warning-bg); border: 1px solid #FDE68A; color: #92400E;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 18px;
}
.molde-pill {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--warning); color: #fff; padding: 3px 8px; border-radius: 4px; flex-shrink: 0;
}

/* ---- FCA — formulário de inclusão ---- */
.fca-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fca-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.fca-form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.fca-field { display: flex; flex-direction: column; gap: 6px; }
.fca-field.col-2 { grid-column: span 2; }
.fca-field label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.fca-field input, .fca-field select {
  height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 10px; font-family: var(--font-body); font-size: 13.5px; color: var(--text); background: #fff;
  transition: all .15s var(--ease);
}
.fca-field input:focus, .fca-field select:focus { outline: none; border-color: var(--bm-blue-500); box-shadow: var(--ring); }
.fca-add-btn {
  height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--bm-green-600); color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0 16px;
  transition: all .15s var(--ease); white-space: nowrap;
}
.fca-add-btn:hover { background: var(--bm-green-700); }
.fca-del { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-sm); color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s var(--ease); }
.fca-del:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
@media (max-width: 900px) { .fca-form-grid { grid-template-columns: repeat(2, 1fr); } .fca-field.col-2 { grid-column: span 2; } }

/* ================================================================
   ÁREA INTERNA — HEADER
   ================================================================ */
.area-header {
  background:
    radial-gradient(ellipse 760px 480px at 82% -25%, rgba(39, 208, 69, 0.22), transparent 62%),
    linear-gradient(135deg, var(--bm-blue-900) 0%, var(--bm-blue-800) 48%, var(--bm-blue-700) 100%);
  color: #fff; padding: 54px 0 58px; position: relative; overflow: hidden;
}
/* dot-grid esmaecido para a direita */
.area-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 28%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 28%, #000 100%);
  opacity: 0.7; pointer-events: none;
}
/* marca d'água decorativa (ícone de atividade) à direita */
.area-header::after {
  content: ''; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; opacity: 0.11; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
}
.area-header .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; }
.breadcrumb span { color: #fff; font-weight: 500; }
.area-header h1 { font-size: 42px; color: #fff; margin-bottom: 8px; letter-spacing: -0.025em; }
.area-header p { font-size: 16px; color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 600px; }
.area-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.area-actions { display: flex; gap: 10px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid transparent; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s var(--ease); white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--bm-green-600); color: #fff; border-color: var(--bm-green-600); }
.btn-primary:hover { background: var(--bm-green-700); border-color: var(--bm-green-700); }
.btn-secondary { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.45); }

/* ================================================================
   SOURCE NOTICE
   ================================================================ */
.source-notice { background: #FFFBEB; border-bottom: 1px solid #FDE68A; padding: 10px 0; font-size: 13px; color: #92400E; }
.source-notice .container { display: flex; align-items: center; gap: 10px; }
.source-notice svg { color: #B45309; flex-shrink: 0; }
.source-link { margin-left: auto; color: #B45309; font-weight: 600; }
.source-link:hover { color: #78350F; }

/* ================================================================
   ÁREA — CONTEÚDO GENÉRICO
   ================================================================ */
.area-content { padding: 56px 0 80px; background: var(--surface-2); min-height: 50vh; }

/* ---- Layout com sidebar (home de departamento) ---- */
.area-body {
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.04) 1px, transparent 0) 0 0 / 24px 24px,
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(30, 136, 229, 0.06), transparent 60%),
    linear-gradient(180deg, #F6F8FC 0%, #EBEFF5 100%);
  min-height: 60vh;
}
.area-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 36px 0 56px;
}
.area-grid > * { min-width: 0; }
.area-sidebar { position: sticky; top: 60px; height: calc(100vh - 60px); align-self: start; display: flex; flex-direction: column; margin-left: calc(-1 * clamp(16px, 1.6vw, 28px)); }
.area-sidebar .sb-card { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 14px 14px 14px 18px; box-shadow: var(--shadow-xs);
}
.area-sidebar .sb-head {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px 14px;
  margin-bottom: 6px; border-bottom: 1px solid var(--border);
}
/* ── User footer ── */
.sb-user-footer {
  margin-top: auto; padding: 10px 10px 4px; border-top: 1px solid var(--border);
}
.sb-user-row {
  display: flex; align-items: center; gap: 9px;
}
.sb-user-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bm-blue-600);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-email { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-logout-btn {
  flex-shrink: 0; background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 7px; cursor: pointer; color: var(--text-3); display: flex; align-items: center;
  transition: all .15s;
}
.sb-logout-btn:hover { background: #FEF2F2; border-color: #FCA5A5; color: #DC2626; }
.sb-logout-btn .sb-logout-lbl { font-size: 12px; font-weight: 600; }
/* Rodapé de usuário no sidebar escuro (departamentos) */
.area-sidebar .sb-user-footer { border-top-color: rgba(255,255,255,.16); padding-bottom: 8px; }
.area-sidebar .sb-user-name { color: #fff; }
.area-sidebar .sb-user-email { color: rgba(255,255,255,.85); }
.area-sidebar .sb-logout-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.30); color: #fff; gap: 6px; padding: 6px 11px; }
.area-sidebar .sb-logout-btn:hover { background: #DC2626; border-color: #DC2626; color: #fff; }
[data-theme="dark"] .sb-user-footer { border-top-color: rgba(255,255,255,.12); }
[data-theme="dark"] .sb-user-name { color: #fff; }
[data-theme="dark"] .sb-user-email { color: rgba(255,255,255,.5); }
[data-theme="dark"] .sb-logout-btn { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5); }
[data-theme="dark"] .sb-logout-btn:hover { background: rgba(220,38,38,.2); border-color: #EF4444; color: #FCA5A5; }
.area-sidebar .sb-head .sb-ic {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--bm-blue-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.area-sidebar .sb-head .sb-tt { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--bm-blue-900); line-height: 1.1; }
.area-sidebar .sb-head .sb-st { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.area-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.area-sidebar nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  transition: all .15s var(--ease);
}
.area-sidebar nav a:hover { background: var(--bm-blue-50); color: var(--bm-blue-900); }
.area-sidebar nav a.active { background: var(--bm-blue-900); color: #fff; }
.area-sidebar nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.area-sidebar nav a .sb-badge {
  margin-left: auto; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--bm-green-100); color: var(--bm-green-700);
}
.area-sidebar nav a.active .sb-badge { background: rgba(255,255,255,0.2); color: #fff; }
.area-sidebar .sb-divider { height: 1px; background: var(--border); margin: 8px 4px; }

/* ---- Grupos expansíveis na sidebar ---- */
.area-sidebar .sb-group { display: flex; flex-direction: column; }
.area-sidebar .sb-parent {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 8px; border: none; background: none;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all .15s var(--ease); text-align: left;
}
.area-sidebar .sb-parent:hover { background: var(--bm-blue-50); color: var(--bm-blue-900); }
.area-sidebar .sb-parent > svg:first-child { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.area-sidebar .sb-parent .sb-caret { margin-left: auto; width: 14px; height: 14px; color: var(--text-4); transition: transform .18s var(--ease); }
.area-sidebar .sb-group.open .sb-parent { color: var(--bm-blue-900); }
.area-sidebar .sb-group.open .sb-parent .sb-caret { transform: rotate(90deg); color: var(--bm-blue-700); }
.area-sidebar .sb-children {
  display: none; flex-direction: column; gap: 1px;
  margin: 2px 0 4px 26px; padding-left: 10px; border-left: 1px solid var(--border);
}
.area-sidebar .sb-group.open .sb-children { display: flex; }
.area-sidebar .sb-children a {
  padding: 7px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-3);
  transition: all .15s var(--ease);
}
.area-sidebar .sb-children a:hover { background: var(--bm-blue-50); color: var(--bm-blue-900); }
.area-sidebar .sb-children a.active { background: var(--bm-blue-900); color: #fff; }

/* ---- Sidebar tema escuro (estilo painel · igual referência) ---- */
.area-sidebar .sb-card { background: var(--bm-blue-900); border-color: var(--bm-blue-800); box-shadow: var(--shadow); }
.area-sidebar .sb-head { border-bottom-color: rgba(255, 255, 255, 0.12); }
.area-sidebar .sb-head .sb-ic { background: #3B82F6; color: #fff; }
.area-sidebar .sb-head .sb-tt { color: #fff; }
.area-sidebar .sb-head .sb-st { color: rgba(255, 255, 255, 0.55); }
.area-sidebar .sb-section { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); padding: 15px 11px 6px; }
.area-sidebar nav a { color: rgba(255, 255, 255, 0.72); }
.area-sidebar nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.area-sidebar nav a.active { background: #3B82F6; color: #fff; }
.area-sidebar nav a > svg { opacity: 0.85; }
.area-sidebar nav a .sb-badge { background: rgba(255, 255, 255, 0.18); color: #fff; }
.area-sidebar nav a.active .sb-badge { background: rgba(255, 255, 255, 0.25); color: #fff; }
.area-sidebar .sb-divider { background: rgba(255, 255, 255, 0.12); }
.area-sidebar .sb-parent { color: rgba(255, 255, 255, 0.72); }
.area-sidebar .sb-parent:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.area-sidebar .sb-group.open .sb-parent { color: #fff; }
.area-sidebar .sb-parent .sb-caret { color: rgba(255, 255, 255, 0.45); }
.area-sidebar .sb-group.open .sb-parent .sb-caret { color: #3B82F6; }
.area-sidebar .sb-children { border-left-color: rgba(255, 255, 255, 0.16); }
.area-sidebar .sb-children a { color: rgba(255, 255, 255, 0.6); }
.area-sidebar .sb-children a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.area-sidebar .sb-children a.active { background: #3B82F6; color: #fff; }
.area-sidebar .sb-back {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 10px 12px; font-size: 13px; font-weight: 500; color: var(--text-3);
}
.area-sidebar .sb-back:hover { color: var(--bm-blue-700); }

/* dentro do main, sections viram blocos transparentes de largura total */
.area-main .container { max-width: none; padding: 0; margin: 0; }
.area-main > section { background: transparent; padding: 0 0 30px; border-top: none; }
.area-main > section:first-child { padding-top: 4px; }
.area-main > section.fin-section--last { padding-bottom: 8px; }

@media (max-width: 980px) {
  .area-body { overflow-x: clip; }
  .area-sidebar { position: static; height: auto; margin-left: 0; }
  .area-sidebar .sb-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .area-sidebar .sb-head { border-bottom: none; padding: 4px 6px; margin: 0; flex: 1 1 100%; }
  .area-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .area-sidebar nav a .sb-badge, .area-sidebar .sb-divider, .area-sidebar .sb-back { display: none; }
  .area-sidebar .sb-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .area-sidebar .sb-parent { width: auto; }
  .area-sidebar .sb-parent .sb-caret { display: none; }
  .area-sidebar .sb-children { display: flex; flex-direction: row; flex-wrap: wrap; margin: 0; padding: 0; border-left: none; }
}
.placeholder { background: #fff; border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-3); font-size: 14px; line-height: 1.7; }
.placeholder strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--bm-blue-900); margin-bottom: 10px; }
.placeholder code { background: var(--surface-2); padding: 2px 8px; border-radius: 4px; font-size: 12px; color: var(--bm-blue-700); }

/* ================================================================
   COBRANÇA AUTOMÁTICA
   ================================================================ */
.cob-section { padding: 48px 0 80px; background: var(--surface-2); }
.cob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cob-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.cob-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.cob-card.vencidos::before { background: linear-gradient(90deg, var(--danger), var(--warning-2)); }
.cob-card.avencer::before { background: linear-gradient(90deg, var(--bm-green-600), var(--bm-blue-500)); }
.cob-card-head { display: flex; align-items: flex-start; gap: 16px; }
.cob-card-icon { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cob-card.vencidos .cob-card-icon { background: #FEE2E2; color: var(--danger); }
.cob-card.avencer .cob-card-icon { background: var(--bm-green-100); color: var(--bm-green-700); }
.cob-card h3 { font-size: 22px; margin: 0 0 4px; }
.cob-card .cob-card-sub { font-size: 14px; color: var(--text-3); line-height: 1.5; margin: 0; }
.cob-card-body { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.cob-drop { background: linear-gradient(180deg, var(--bm-blue-50) 0%, #FBFCFE 100%); border: 2px dashed var(--bm-blue-500); border-radius: var(--radius); padding: 32px 24px; text-align: center; cursor: pointer; transition: all .2s var(--ease); }
.cob-drop:hover, .cob-drop.dragover { border-color: var(--bm-blue-700); background: linear-gradient(180deg, #E9F2FB 0%, #F4F8FC 100%); }
.cob-drop.dragover { border-style: solid; box-shadow: 0 0 0 6px rgba(30, 136, 229, 0.12); }
.cob-drop-icon { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--bm-green-700); margin-bottom: 12px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.cob-drop h4 { font-size: 16px; margin: 0 0 4px; color: var(--bm-blue-900); font-weight: 600; }
.cob-drop p { font-size: 13px; color: var(--text-3); margin: 0 0 12px; line-height: 1.5; }
.cob-drop .cob-formats { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-4); font-family: var(--font-mono); }
.cob-drop .cob-formats span { background: #fff; border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; }
.cob-file-pill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.cob-file-pill .icon-x { width: 36px; height: 36px; background: #DCFCE7; color: #047857; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; flex-shrink: 0; }
.cob-file-pill .body { flex: 1; min-width: 0; }
.cob-file-pill .name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cob-file-pill .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cob-file-pill .remove { border: 1px solid var(--border); background: #fff; width: 28px; height: 28px; border-radius: 6px; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cob-file-pill .remove:hover { color: var(--danger); border-color: var(--danger); background: #FEF2F2; }
.cob-info-list { background: var(--bm-blue-50); border: 1px solid #C7DDF3; border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.cob-info-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cob-info-item svg { color: var(--bm-blue-700); flex-shrink: 0; margin-top: 2px; }
.cob-info-item strong { color: var(--text); }
.cob-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cob-summary-item { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.cob-summary-item .l { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.cob-summary-item .v { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--bm-blue-900); margin-top: 2px; }
.cob-cta { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border-radius: 12px; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; border: none; transition: all .2s var(--ease); width: 100%; letter-spacing: 0.01em; text-transform: uppercase; }
.cob-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.cob-cta-danger { background: var(--bm-green-600); color: #fff; box-shadow: 0 4px 12px rgba(39, 208, 69, 0.25); }
.cob-cta-danger:not(:disabled):hover { background: var(--bm-green-700); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(39, 208, 69, 0.35); }
.cob-cta-info { background: var(--bm-blue-700); color: #fff; box-shadow: 0 4px 12px rgba(10, 79, 160, 0.25); }
.cob-cta-info:hover { background: var(--bm-blue-800); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10, 79, 160, 0.35); }
.cob-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bm-blue-900); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; z-index: 1000; opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
.cob-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.cob-toast svg { color: var(--bm-green-500); }

/* ================================================================
   MATERIAIS & RECURSOS (Marketing)
   ================================================================ */
.mat-group { margin-bottom: 26px; }
.mat-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bm-blue-700); margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
}
.mat-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 12px; }
.mat-card {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); transition: all .16s var(--ease); position: relative; text-decoration: none;
}
.mat-card:hover { transform: translateY(-2px); border-color: var(--bm-blue-500); box-shadow: var(--shadow); }
.mat-card .mc-emoji {
  width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--bm-blue-50); border: 1px solid var(--border);
}
.mat-card .mc-txt { min-width: 0; flex: 1; }
.mat-card .mc-t { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.3; }
.mat-card .mc-s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mat-card .mc-ext { color: var(--text-4); flex-shrink: 0; transition: color .16s var(--ease); }
.mat-card:hover .mc-ext { color: var(--bm-blue-600); }
.mat-card.soon { opacity: 0.65; pointer-events: none; }
.mat-card .mc-soon { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warning-2); background: var(--warning-bg); padding: 2px 7px; border-radius: 999px; }

.proc-callout {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px;
  background: var(--bm-blue-50); border: 1px solid var(--bm-blue-100); border-radius: var(--radius-lg);
}
.proc-callout .pc-emoji { font-size: 32px; line-height: 1; flex-shrink: 0; }
.proc-callout h3 { font-size: 17px; margin: 0 0 8px; }
.proc-callout p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0; }
.proc-warn {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-top: 14px;
  background: var(--warning-bg); border: 1px solid #FDE68A; border-radius: var(--radius);
}
.proc-warn svg { color: var(--warning-2); flex-shrink: 0; margin-top: 2px; }
.proc-warn p { font-size: 13.5px; color: #78350F; line-height: 1.6; margin: 0; }
.proc-warn a { color: var(--bm-blue-700); font-weight: 600; }

.proc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proc-step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-xs); position: relative;
}
.proc-step .ps-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #fff;
  background: var(--bm-blue-800); width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.proc-step h4 { font-size: 15px; margin: 0 0 7px; }
.proc-step p { font-size: 13px; color: var(--text-3); line-height: 1.55; margin: 0 0 12px; }
.proc-step .ps-tag {
  font-size: 11px; font-weight: 600; color: var(--bm-blue-700);
  background: var(--bm-blue-50); border-radius: 999px; padding: 4px 11px; display: inline-flex; align-items: center; gap: 6px;
}
.proc-step .ps-tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) { .proc-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proc-steps { grid-template-columns: 1fr; } .mat-grid { grid-template-columns: 1fr; } }

/* ================================================================
   FINANCEIRO — KPI / CHARTS / TABLE
   ================================================================ */
.fin-section { padding: 28px 0; background: var(--surface-2); }
.fin-section--last { padding-bottom: 64px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; transition: all .2s var(--ease); }
.kpi-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.kpi-card--danger::before { background: var(--danger); }
.kpi-card--critical::before { background: var(--warning-2); }
.kpi-card--warning::before { background: var(--warning); }
.kpi-card--positive::before { background: var(--bm-green-600); }
.kpi-icon { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-card--danger .kpi-icon { background: #FEE2E2; color: var(--danger); }
.kpi-card--critical .kpi-icon { background: #FFEDD5; color: var(--warning-2); }
.kpi-card--warning .kpi-icon { background: #FEF3C7; color: var(--warning); }
.kpi-card--positive .kpi-icon { background: var(--bm-green-100); color: var(--bm-green-700); }
.kpi-body { flex: 1; min-width: 0; }
.kpi-label { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.kpi-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; margin-bottom: 6px; }
.kpi-sub { font-size: 12px; color: var(--text-3); }
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.chart-card-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.chart-card-header h3 { font-size: 16px; color: var(--text); font-weight: 600; }
.chart-sub { font-size: 12px; color: var(--text-3); }
.chart-wrap { height: 280px; position: relative; }
.chart-wrap--donut { height: 200px; }
.chart-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-label { flex: 1; }
.legend-count { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.table-toolbar { background: #fff; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.table-toolbar-left { display: flex; align-items: baseline; gap: 12px; }
.table-title { font-size: 16px; font-weight: 600; color: var(--text); }
.table-count { font-size: 13px; color: var(--text-3); }
.table-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 10px; color: var(--text-4); pointer-events: none; }
.search-input { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 8px 32px; font-size: 13px; font-family: var(--font-body); width: 240px; background: #fff; color: var(--text); transition: all .15s var(--ease); }
.search-input:focus { outline: none; border-color: var(--bm-blue-500); box-shadow: var(--ring); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; font-family: var(--font-body); transition: all .15s var(--ease); }
.pill:hover { border-color: var(--border-2); color: var(--text); }
.pill.active { background: var(--bm-blue-900); border-color: var(--bm-blue-900); color: #fff; }
.pill--critico.active { background: var(--danger); border-color: var(--danger); }
.pill--grave.active { background: var(--warning-2); border-color: var(--warning-2); }
.pill--moderado.active { background: var(--warning); border-color: var(--warning); }
.pill--recente.active { background: var(--bm-blue-700); border-color: var(--bm-blue-700); }
.pill--avencer.active { background: var(--bm-green-600); border-color: var(--bm-green-600); }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table thead th { background: var(--surface-2); text-align: left; padding: 12px 16px; font-weight: 600; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.fin-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.fin-table tbody tr:last-child td { border-bottom: none; }
.fin-table tbody tr:hover { background: var(--bm-blue-50); }
.fin-table strong { color: var(--text); font-weight: 600; }
.col-num { text-align: right; font-variant-numeric: tabular-nums; }
.col-mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.col-nome { min-width: 200px; }
.dias-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #FEE2E2; color: var(--danger); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.dias-badge--ok { background: var(--bm-green-100); color: var(--bm-green-700); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge--critico { background: #FEE2E2; color: var(--danger); }
.badge--grave { background: #FFEDD5; color: var(--warning-2); }
.badge--moderado { background: #FEF3C7; color: var(--warning); }
.badge--recente { background: var(--bm-blue-100); color: var(--bm-blue-700); }
.badge--avencer { background: var(--bm-green-100); color: var(--bm-green-700); }
.action-group { display: flex; gap: 4px; }
.action-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s var(--ease); }
.action-btn:hover { background: var(--bm-blue-50); color: var(--bm-blue-700); border-color: var(--bm-blue-500); }
.action-btn--success:hover { background: var(--bm-green-100); color: var(--bm-green-700); border-color: var(--bm-green-600); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty-state svg { color: var(--text-4); margin-bottom: 12px; }
.empty-state p { margin: 0; font-size: 14px; }
.hidden { display: none !important; }

/* ================================================================
   FINANCEIRO — ACESSO RÁPIDO + RELATÓRIOS
   ================================================================ */
.fin-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fin-subhead h2 { font-size: 20px; letter-spacing: -0.01em; }
.fin-subhead .sub { font-size: 13px; color: var(--text-3); }
.fin-subhead .more { font-size: 13px; font-weight: 600; color: var(--bm-blue-700); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fin-subhead .more svg { transition: transform .2s var(--ease); }
.fin-subhead .more:hover svg { transform: translateX(3px); }

.fin-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fin-tool {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; position: relative; min-height: 132px;
  transition: all .18s var(--ease); box-shadow: var(--shadow-xs);
}
.fin-tool:hover { transform: translateY(-2px); border-color: var(--bm-blue-500); box-shadow: var(--shadow); }
.fin-tool .ft-icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--bm-blue-50); color: var(--bm-blue-700);
  display: inline-flex; align-items: center; justify-content: center; transition: all .18s var(--ease);
}
.fin-tool .ft-icon svg { width: 20px; height: 20px; }
.fin-tool:hover .ft-icon { background: var(--bm-blue-700); color: #fff; }
.fin-tool .ft-name { font-weight: 600; color: var(--text); font-size: 14.5px; letter-spacing: -0.01em; }
.fin-tool .ft-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.fin-tool .ft-stat { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--bm-blue-900); font-variant-numeric: tabular-nums; }
.fin-tool .ft-stat small { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--text-3); display: block; margin-top: 1px; }
.fin-tool .ft-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.02em;
}
.fin-tool .ft-tag.soon { background: var(--surface-2); color: var(--text-3); }
.fin-tool .ft-tag.active { background: var(--bm-green-100); color: var(--bm-green-700); }
.fin-tool .ft-tag.alert { background: #FEE2E2; color: var(--danger); }

/* tons por módulo */
.fin-tool[data-tone="receber"]    .ft-icon { background: var(--bm-green-100); color: var(--bm-green-700); }
.fin-tool[data-tone="pagar"]      .ft-icon { background: #FEE2E2; color: #B91C1C; }
.fin-tool[data-tone="fluxo"]      .ft-icon { background: var(--bm-blue-100); color: var(--bm-blue-700); }
.fin-tool[data-tone="cobranca"]   .ft-icon { background: var(--bm-green-100); color: var(--bm-green-700); }
.fin-tool[data-tone="conciliacao"].ft-icon { background: #EDE9FE; color: #6D28D9; }
.fin-tool[data-tone="nf"]         .ft-icon { background: #CFFAFE; color: #0E7490; }
.fin-tool[data-tone="dre"]        .ft-icon { background: #FEF3C7; color: #B45309; }
.fin-tool[data-tone="inadim"]     .ft-icon { background: #FEE2E2; color: #B91C1C; }
.fin-tool:hover[data-tone="receber"]    .ft-icon,
.fin-tool:hover[data-tone="cobranca"]   .ft-icon { background: var(--bm-green-700); color: #fff; }
.fin-tool:hover[data-tone="pagar"]      .ft-icon,
.fin-tool:hover[data-tone="inadim"]     .ft-icon { background: #B91C1C; color: #fff; }
.fin-tool:hover[data-tone="conciliacao"].ft-icon { background: #6D28D9; color: #fff; }
.fin-tool:hover[data-tone="nf"]         .ft-icon { background: #0E7490; color: #fff; }
.fin-tool:hover[data-tone="dre"]        .ft-icon { background: #B45309; color: #fff; }

@media (max-width: 1024px) { .fin-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .fin-tools-grid { grid-template-columns: 1fr; } }

/* ---- MÓDULOS (cards principais — home do departamento) ---- */
.modulos-section { padding: 40px 0 28px; background: var(--surface-2); }
.modulos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modulo-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; position: relative; overflow: hidden;
  transition: all .2s var(--ease); box-shadow: var(--shadow-xs); min-height: 220px;
}
.modulo-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.modulo-card[data-tone="receber"]::before { background: var(--bm-green-600); }
.modulo-card[data-tone="pagar"]::before    { background: #B91C1C; }
.modulo-card[data-tone="dre"]::before       { background: #B45309; }
.modulo-card:hover { transform: translateY(-4px); border-color: var(--bm-blue-500); box-shadow: var(--shadow-lg); }
.modulo-card:hover::before { transform: scaleX(1); }

.modulo-card .mc-top { display: flex; align-items: center; justify-content: space-between; }
.modulo-card .mc-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s var(--ease);
}
.modulo-card .mc-icon svg { width: 26px; height: 26px; }
.modulo-card[data-tone="receber"] .mc-icon { background: var(--bm-green-100); color: var(--bm-green-700); }
.modulo-card[data-tone="pagar"]    .mc-icon { background: #FEE2E2; color: #B91C1C; }
.modulo-card[data-tone="dre"]       .mc-icon { background: #FEF3C7; color: #B45309; }
.modulo-card:hover[data-tone="receber"] .mc-icon { background: var(--bm-green-700); color: #fff; }
.modulo-card:hover[data-tone="pagar"]    .mc-icon { background: #B91C1C; color: #fff; }
.modulo-card:hover[data-tone="dre"]       .mc-icon { background: #B45309; color: #fff; }
.modulo-card .mc-tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bm-green-100); color: var(--bm-green-700);
}
.modulo-card .mc-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--bm-blue-900); letter-spacing: -0.01em; }
.modulo-card .mc-desc { font-size: 14px; color: var(--text-3); line-height: 1.5; margin-top: -8px; }
.modulo-card .mc-stats { display: flex; gap: 24px; margin-top: auto; }
.modulo-card .mc-stat .v { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--bm-blue-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.modulo-card .mc-stat .l { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.modulo-card .mc-open {
  display: inline-flex; align-items: center; gap: 6px; padding-top: 16px;
  border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--bm-blue-700);
}
.modulo-card .mc-open svg { transition: transform .2s var(--ease); }
.modulo-card:hover .mc-open svg { transform: translateX(4px); }

@media (max-width: 1024px) { .modulos-grid { grid-template-columns: 1fr; } }

/* ================================================================
   AZURE — DASHBOARD DE CUSTO
   ================================================================ */
.az-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.az-years { display: flex; gap: 4px; }
.az-year {
  padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff;
  font-weight: 600; font-size: 13px; color: var(--text-3); cursor: pointer;
  font-family: var(--font-body); transition: all .15s var(--ease);
}
.az-year:hover { border-color: var(--border-2); color: var(--text); }
.az-year.active { background: var(--bm-blue-900); color: #fff; border-color: var(--bm-blue-900); }
.az-toolbar-sep { width: 1px; height: 24px; background: var(--border-2); }
.az-filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text-3); cursor: pointer; transition: all .15s var(--ease);
}
.az-filter:hover { border-color: var(--border-2); }
.az-filter svg { color: var(--text-4); flex-shrink: 0; }
.az-filter-label { font-weight: 600; color: var(--text-2); }
.az-filter select {
  border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--bm-blue-900);
  cursor: pointer; padding: 4px 2px;
}

/* ---- Matriz Faturamento (categoria expansível × mês) ---- */
.az-matrix-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.az-matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
.az-matrix thead th {
  background: var(--surface-2); text-align: right; padding: 12px 14px;
  font-weight: 600; font-size: 11px; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.04em; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.az-matrix thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface-2); z-index: 2; }
.az-matrix tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.az-matrix tbody td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.az-matrix tbody tr:hover td, .az-matrix tbody tr:hover td:first-child { background: var(--bm-blue-50); }
.az-matrix .row-cat { cursor: pointer; }
.az-matrix .row-cat td { font-weight: 600; color: var(--text); }
.az-matrix .row-cat td:first-child { display: flex; align-items: center; gap: 8px; }
.az-matrix .row-cat .caret { transition: transform .18s var(--ease); color: var(--text-4); flex-shrink: 0; }
.az-matrix .row-cat.open .caret { transform: rotate(90deg); color: var(--bm-blue-700); }
.az-matrix .row-sub td:first-child { padding-left: 38px; color: var(--text-3); font-weight: 400; }
.az-matrix .row-sub td { color: var(--text-3); font-size: 12.5px; }
.az-matrix .row-sub { background: var(--bm-blue-50); }
.az-matrix .row-sub.hidden { display: none; }
.az-matrix .row-total td, .az-matrix .row-total td:first-child { background: var(--bm-blue-900); color: #fff; font-weight: 700; border-bottom: none; }
.az-matrix td.col-hi { background: var(--bm-green-100); }
.az-matrix thead th.col-hi { background: var(--bm-green-100); color: var(--bm-green-700); }
.az-matrix .row-total td.col-hi { background: var(--bm-green-700); }

.az-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.az-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; position: relative; overflow: hidden; box-shadow: var(--shadow-xs);
}
.az-stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bm-blue-600); }
.az-stat-card.pos::before { background: var(--bm-green-600); }
.az-stat-card.neg::before { background: var(--danger); }
.az-stat-card .v { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--bm-blue-900); letter-spacing: -0.02em; line-height: 1; }
.az-stat-card.pos .v { color: var(--bm-green-700); }
.az-stat-card.neg .v { color: var(--danger); }
.az-stat-card .l { font-size: 12.5px; color: var(--text-3); margin-top: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.az-stat-card .chip {
  position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.az-stat-card .chip.down { background: var(--danger-bg); color: var(--danger); }
.az-stat-card .chip.up { background: var(--bm-green-100); color: var(--bm-green-700); }

.az-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.az-grid-trend { margin-top: 0; }
.az-chart-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-xs);
}
.az-chart-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.az-chart-card .az-sub { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.az-canvas-wrap { position: relative; height: 280px; }
.az-canvas-wrap.tall { height: 320px; }
.az-canvas-wrap.donut { height: 260px; }

.az-dolar-list { display: flex; flex-direction: column; gap: 2px; }
.az-dolar-big {
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.az-dolar-big .v { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--bm-blue-900); }
.az-dolar-big .d { font-size: 13px; font-weight: 600; color: var(--danger); }
.az-dolar-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.az-dolar-row:last-child { border-bottom: none; }
.az-dolar-row .m { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.az-dolar-row .vv { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.az-dolar-row .pp { font-size: 12px; font-weight: 600; min-width: 56px; text-align: right; }
.az-dolar-row .pp.neg { color: var(--danger); }
.az-dolar-row .pp.pos { color: var(--bm-green-700); }

.var-cell { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.var-cell.neg { color: var(--danger); }
.var-cell.pos { color: var(--bm-green-700); }
.var-cell svg { width: 13px; height: 13px; }

/* ---- Barra de utilização (tabela de licenciamento) ---- */
.util-bar { display: inline-flex; align-items: center; gap: 9px; justify-content: flex-end; }
.util-track { width: 84px; height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.util-fill { height: 100%; background: var(--bm-green-600); border-radius: 999px; }
.util-fill.warn { background: var(--warning); }
.util-fill.full { background: var(--danger); }
.util-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); min-width: 44px; text-align: right; }
.sys-name { display: inline-flex; align-items: center; gap: 10px; }
.sys-name img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.sys-name .sys-ic { width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

@media (max-width: 1024px) {
  .az-stats { grid-template-columns: 1fr; }
  .az-grid-2 { grid-template-columns: 1fr; }
}



.site-footer {
  background: var(--bm-blue-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
  font-size: 14px;
}
.bm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.bm-footer-col .footer-logo { height: 56px; width: auto; display: block; margin-bottom: 22px; }
.bm-footer-col h5 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; color: #fff;
  margin: 0 0 16px; letter-spacing: 0.01em;
}
.bm-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bm-footer-col ul li a, .bm-footer-col ul li span { color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.4; transition: color .15s var(--ease); }
.bm-footer-col ul li a:hover { color: var(--bm-green-500); }

/* Unidades */
.bm-units { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.bm-unit { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; }
.bm-unit .city { color: #fff; font-weight: 600; min-width: 118px; }
.bm-unit a { color: rgba(255, 255, 255, 0.7); transition: color .15s var(--ease); }
.bm-unit a:hover { color: var(--bm-green-500); }

.bm-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bm-green-600); color: #fff; font-weight: 600; font-size: 14px;
  transition: all .18s var(--ease); width: fit-content;
}
.bm-whatsapp:hover { background: var(--bm-green-700); color: #fff; transform: translateY(-1px); }
.bm-whatsapp svg { width: 20px; height: 20px; }

.bm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255, 255, 255, 0.55);
}
.bm-footer-bottom a { color: rgba(255, 255, 255, 0.78); font-weight: 500; }
.bm-footer-bottom a:hover { color: #fff; }
.bm-footer-meta { font-family: var(--font-mono); font-size: 12px; }

/* legado (páginas internas que ainda usam o footer simples) */
.site-footer .container > span,
.footer-left { color: rgba(255, 255, 255, 0.75); }
.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-meta { text-align: right; font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }

@media (max-width: 1024px) {
  .bm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .bm-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bm-unit .city { min-width: 110px; }
  .bm-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .sistemas-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .upload-wrap { grid-template-columns: 1fr; }
  .cob-grid { grid-template-columns: 1fr; }
  .hero-nav { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
  .avisos-grid { grid-template-columns: repeat(2, 1fr); }
  .aviso-card.featured { grid-column: span 2; grid-row: auto; }
  .aviso-card.featured h3 { font-size: 26px; }
}
@media (max-width: 760px) {
  .header-nav, .header-search .ph, .header-search .kbd { display: none; }
  .header-search { min-width: 0; width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-header .container { height: 60px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .areas-section, .sistemas-section, .upload-section, .contato-section { padding: 56px 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header .left h2 { font-size: 28px; }
  .areas-grid, .sistemas-grid, .kpi-grid { grid-template-columns: 1fr; }
  .hero-nav { grid-template-columns: 1fr; }
  .avisos-grid { grid-template-columns: 1fr; }
  .aviso-card.featured { grid-column: auto; }
  .aviso-card.featured h3 { font-size: 24px; }
  .area-header h1 { font-size: 28px; }
  .area-header-top { flex-direction: column; align-items: flex-start; }
  .search-input { width: 100%; }
  .fin-table { font-size: 12px; }
  .fin-table thead th, .fin-table tbody td { padding: 10px 8px; }
}

/* ================================================================
   COBRANÇA — LOG TERMINAL
   ================================================================ */
.cob-log { border-radius: var(--radius); overflow: hidden; border: 1px solid #1e293b; margin-top: 4px; }
.cob-log-header { background: #1e293b; padding: 8px 14px; display: flex; align-items: center; gap: 8px; }
.cob-log-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cob-log-dot--r { background: #ff5f57; }
.cob-log-dot--y { background: #ffbd2e; }
.cob-log-dot--g { background: #28c840; }
.cob-log-title { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.6); margin-left: 4px; }
.cob-log-body { background: #0f172a; padding: 14px 16px; max-height: 280px; overflow-y: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }
.log-line { padding: 1px 0; } .log-ts { color: #475569; margin-right: 8px; }
.log-ok { color: #4ade80; } .log-err { color: #f87171; } .log-step { color: #7dd3fc; font-weight: 600; }
.log-warn { color: #fbbf24; } .log-dim { color: #64748b; } .log-info { color: #94a3b8; }
.cob-status--success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #14532D; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; }
.cob-status--error   { background: #FEF2F2; border: 1px solid #FECACA; color: #7F1D1D; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; }
.cob-status-icon { display: inline-flex; align-items: center; flex-shrink: 0; margin-top: 1px; }
.cob-status p { margin: 4px 0 0; font-size: 13px; opacity: .85; }

/* ================================================================
   COPILOT WIDGET — chat flutuante (canto inferior esquerdo)
   ================================================================ */
/* pointer-events: none no container — só o botão e o painel aberto capturam eventos */
#cp-widget { position: fixed; left: 24px; bottom: 24px; z-index: 9000; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
#cp-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--bm-blue-900); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,46,93,0.40); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; position: relative; color: #fff; flex-shrink: 0; pointer-events: auto; }
#cp-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,46,93,0.50); }
#cp-btn.active { background: #1e293b; }
.cp-tooltip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: #1e293b; color: #fff; font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s var(--ease); }
#cp-btn:hover .cp-tooltip { opacity: 1; }
.cp-tooltip::before { content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-right-color: #1e293b; }
#cp-panel { width: 380px; height: 520px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(15,23,42,0.18), 0 4px 16px rgba(15,23,42,0.08); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px) scale(0.97); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); transform-origin: bottom left; }
#cp-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
#cp-panel.expanded { width: 520px; height: 680px; }
.cp-header { background: var(--bm-blue-900); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.cp-header-left { display: flex; align-items: center; gap: 12px; }
.cp-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); display: inline-flex; align-items: center; justify-content: center; color: var(--bm-green-500); flex-shrink: 0; }
.cp-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2; }
.cp-status { font-size: 11px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.cp-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bm-green-500); display: inline-block; box-shadow: 0 0 0 2px rgba(77,217,104,0.3); animation: pulse-ring 2s var(--ease) infinite; }
.cp-header-actions { display: flex; align-items: center; gap: 4px; }
.cp-expand, .cp-close-btn { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.80); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s var(--ease); }
.cp-expand:hover, .cp-close-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.cp-body { flex: 1; overflow: hidden; }
#cp-iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 480px) { #cp-panel, #cp-panel.expanded { width: calc(100vw - 48px); height: 70vh; } }

/* ================================================================
   COMPACT — redução precisa sem quebrar layouts
   Afeta apenas tamanhos, nunca display/grid/flex/position
   ================================================================ */

/* Hero: menos padding, título menor */
.hero                                { padding: 56px 0 60px; }
.hero h1                             { font-size: 40px; margin-bottom: 14px; }
.hero-lead                           { font-size: 15px; margin-bottom: 28px; }
.hero-eyebrow                        { margin-bottom: 16px; padding: 5px 12px; font-size: 11px; }
.hero-nav-item                       { padding: 14px 16px; }
.hero-nav-icon                       { width: 30px; height: 30px; margin-bottom: 8px; }
.hero-nav-item .t                    { font-size: 14px; }
.hero-nav-item .d                    { font-size: 12px; }

/* Seções: menos espaçamento vertical */
.areas-section,
.sistemas-section,
.avisos-section,
.contato-section                     { padding: 56px 0; }
.recentes-section                    { padding: 20px 0 0; }
.section-header                      { margin-bottom: 28px; }
.section-header .left h2             { font-size: 28px; margin-bottom: 6px; }
.section-header .left p              { font-size: 14px; }

/* Cards de área: menos padding, menor altura mínima */
.areas-grid                          { gap: 16px; }
.area-card                           { padding: 22px 20px 18px; min-height: 168px; }
.area-card h3                        { font-size: 16px; margin-bottom: 4px; }
.area-card p                         { font-size: 12.5px; }
.area-card-icon                      { width: 38px; height: 38px; margin-bottom: 14px; }
.area-card-arrow                     { margin-top: 14px; font-size: 12.5px; }

/* Cards de sistema: mais compactos */
.sistemas-grid                       { gap: 10px; }
.sistema-card                        { padding: 13px 15px; }
.sistema-card .icon                  { width: 36px; height: 36px; }
.sistema-card .name                  { font-size: 13.5px; }
.sistema-card .desc                  { font-size: 11.5px; }
.sistemas-tab, .avisos-tab           { padding: 6px 12px; font-size: 12px; }

/* Cards de aviso */
.avisos-grid                         { gap: 16px; }
.aviso-card                          { padding: 18px; }
.aviso-card h3                       { font-size: 16px; }
.aviso-card p                        { font-size: 13px; }
.aviso-card.featured h3              { font-size: 24px; }
.aviso-foot                          { padding-top: 12px; }

/* Header */
.site-header .container             { height: 62px; }
.brand-logo                         { height: 38px; }
.header-nav a                       { padding: 6px 13px; font-size: 13px; }
.header-search                      { height: 36px; min-width: 200px; font-size: 13px; }

/* Contato */
.contato-card                        { padding: 22px; }
.contato-card h4                     { font-size: 12px; margin-bottom: 8px; }
.contato-card p                      { font-size: 13.5px; }

/* Footer */
.site-footer                         { padding: 48px 0 0; }
.bm-footer-grid                      { gap: 32px; padding-bottom: 40px; }
.bm-footer-col h5                    { font-size: 13px; margin-bottom: 12px; }
.bm-footer-col ul                    { gap: 7px; }
.bm-footer-col ul li a               { font-size: 13px; }
.bm-footer-col .footer-logo          { height: 46px; margin-bottom: 16px; }
.bm-units                            { gap: 6px; margin-bottom: 16px; }
.bm-unit                             { font-size: 13px; }
.bm-footer-bottom                    { padding: 16px 0; font-size: 12px; }

/* Cabeçalho área interna */
.area-header                         { padding: 38px 0 42px; }
.area-header h1                      { font-size: 34px; }
.area-header p                       { font-size: 14px; }
.breadcrumb                          { font-size: 12px; margin-bottom: 14px; }

/* Sidebar interna */
.area-grid                           { gap: 28px; padding: 28px 0 48px; }
.area-sidebar                        { top: 62px; height: calc(100vh - 62px); }
.area-sidebar .sb-card               { padding: 10px; }
.area-sidebar nav a                  { padding: 7px 10px; font-size: 13px; }

/* KPIs e tabelas */
.kpi-grid                            { gap: 13px; }
.kpi-card                            { padding: 16px; }
.kpi-value                           { font-size: 20px; }
.kpi-label                           { font-size: 11px; }
.chart-card                          { padding: 18px; }
.fin-table thead th                  { padding: 10px 14px; font-size: 11px; }
.fin-table tbody td                  { padding: 11px 14px; font-size: 12.5px; }
