/* =========================================================
   GesPref — UI v10 Teal/Blue/Green SaaS
   Paleta: teal #1abc9c · azul #2980b9 · verde #27ae60 · cinza #2c3e50
   100% compatível com todas as classes existentes
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette */
  --primary: #1abc9c;
  --primary-dark: #16a085;
  --primary-darker: #0e6655;
  --primary-50: #e8f8f5;
  --primary-100: #d1f2eb;
  --accent-blue: #2980b9;
  --accent-blue-dark: #2471a3;
  --accent-green: #27ae60;
  --accent-cyan: #17a2b8;

  /* Sidebar */
  --sidebar-bg: #2c3e50;
  --sidebar-bg-2: #243342;
  --sidebar-hover: rgba(255,255,255,.05);
  --sidebar-active-bg: #1e2d3d;
  --sidebar-text: #8faab8;
  --sidebar-muted: #4b6275;
  --sidebar-width: 200px;

  /* Surfaces */
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f0f4f8;

  /* Text */
  --text: #2c3e50;
  --text-2: #4a6274;
  --muted: #8faab8;
  --border: #e2e8f0;
  --border-strong: #d0dbe8;

  /* Semantic */
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #17a2b8;

  /* Geometry */
  --radius: 10px;
  --radius-sm: 7px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(44,62,80,.06);
  --shadow-sm: 0 2px 8px rgba(44,62,80,.08);
  --shadow: 0 4px 16px rgba(44,62,80,.1);
  --shadow-lg: 0 12px 32px rgba(44,62,80,.14);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  --grad-blue: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
  --grad-green: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  --grad-cyan: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  --grad-side: linear-gradient(180deg, #2c3e50 0%, #243342 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }

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

/* ─── Sidebar ────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--grad-side);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: #1e2d3d transparent;
  transition: transform .25s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #1e2d3d; border-radius: 4px; }

.sidebar .brand {
  padding: 18px 10px;
  background: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.sidebar .brand.brand-fixed { background: transparent; }
.sidebar .brand .brand-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar .brand .brand-name {
  font-size: .92rem;
  font-weight: 700;
  color: #1a252f;
  letter-spacing: .2px;
}
.sidebar .brand .logo-img {
  max-height: 110px;
  max-width: 200px;
  width: 100%;
  object-fit: contain;
  display: block;
  filter: none;
  padding: 2px 0;
}

.sidebar nav { display: flex; flex-direction: column; padding: 8px 0 24px; }

.sidebar .nav-group {
  padding: 14px 14px 4px;
  font-size: .6rem;
  letter-spacing: 1.6px;
  color: var(--sidebar-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--sidebar-text);
  font-size: .82rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .14s ease;
}
.sidebar nav a i { font-size: .95rem; width: 16px; text-align: center; flex-shrink: 0; }
.sidebar nav a:hover { background: var(--sidebar-hover); color: #cde0ec; }
.sidebar nav a.active {
  background: var(--sidebar-active-bg);
  color: #fff;
  border-left-color: var(--primary);
}
.sidebar nav a.active i { color: var(--primary); }

.sidebar .logout { color: #7f8fa6; }
.sidebar .logout:hover { background: rgba(231,76,60,.12); color: #ff8a80; }

/* ─── Nav Highlight — itens principais ──────────────── */
.sidebar nav a.nav-highlight {
  color: #d6f0ea;
  font-weight: 700;
  font-size: .82rem;
  background: rgba(26,188,156,.07);
  border-left-color: rgba(26,188,156,.35);
  position: relative;
}
.sidebar nav a.nav-highlight i {
  color: var(--primary);
  font-size: 1rem;
}
.sidebar nav a.nav-highlight::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  border-radius: 0 3px 3px 0;
}
.sidebar nav a.nav-highlight:hover {
  background: rgba(26,188,156,.14);
  color: #fff;
}
.sidebar nav a.nav-highlight.active {
  background: rgba(26,188,156,.18);
  color: #fff;
  border-left-color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(26,188,156,.15);
}
.sidebar nav a.nav-highlight.active i { color: #1abc9c; }

.sidebar nav a.nav-highlight.active i { color: #1abc9c; }

/* ─── Nav Accordion (sub-grupos colapsáveis) ─────────── */
.nav-group-parent { padding: 0; }

.nav-collapse-btn {
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sidebar-text);
  font-weight: 600;
  letter-spacing: normal !important;
  text-transform: none !important;
  transition: color .15s, background .15s;
  font-family: inherit;
  gap: 6px;
  border-left: 3px solid transparent;
}
.nav-collapse-btn span {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: inherit;
}
.nav-collapse-btn span i { font-size: .95rem; width:16px; text-align:center; color: var(--sidebar-text); transition: color .15s; }
.nav-collapse-btn:hover { color: #cde0ec; background: var(--sidebar-hover); }
.nav-collapse-btn:hover span i { color: #cde0ec; }
.nav-collapse-btn.open { color: #fff; }
.nav-collapse-btn.open span i { color: var(--primary); }

.nav-chevron {
  font-size: .65rem;
  transition: transform .22s ease;
  flex-shrink: 0;
}
.nav-collapse-btn.open .nav-chevron { transform: rotate(90deg); }

.nav-collapse-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.nav-collapse-body.show { max-height: 800px; }

.sidebar nav a.nav-sub {
  padding: 7px 14px 7px 38px;
  font-size: .85rem !important;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-left: 3px solid transparent;
}
.sidebar nav a.nav-sub i { font-size: .95rem; }
.sidebar nav a.nav-sub.active {
  background: var(--sidebar-active-bg);
  color: #fff;
  border-left-color: var(--primary);
}
.sidebar nav a.nav-sub.active i { color: var(--primary); }

/* ─── Content ────────────────────────────────────────── */
.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
}

/* ─── Topbar ────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}
.topbar h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.topbar .topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar .user {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.topbar .user .avatar {
  width: 26px; height: 26px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
  color: #fff;
}

/* ─── Page ────────────────────────────────────────── */
.page {
  padding: 22px 26px 64px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ─── KPI Cards ────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.card-stat {
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #fff;
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.card-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-stat::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 70px; height: 70px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
}
.card-stat.blue { background: var(--grad-blue); }
.card-stat.green { background: var(--grad-green); }
.card-stat.orange { background: var(--grad-cyan); }

.card-stat .label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .88;
  font-weight: 700;
}
.card-stat .value {
  font-size: 1.7rem;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -.03em;
  line-height: 1;
}
.card-stat .sub {
  font-size: .68rem;
  opacity: .82;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-stat .card-icon {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.2);
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: .95rem;
  color: #fff;
}

/* ─── Box ────────────────────────────────────────── */
.box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}
.box h2 {
  font-size: .9rem;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .8rem;
  padding: .48rem 1rem;
  transition: all .15s ease;
  border: 1px solid transparent;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.btn-sm { padding: .3rem .7rem; font-size: .74rem; border-radius: 6px; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,188,156,.35);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,188,156,.45);
  color: #fff;
}
.btn-outline-primary { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-50); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--grad-green); color: #fff; }
.btn-success:hover { background: #1e8449; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-secondary { background: #5d7a8a; border-color: #5d7a8a; color: #fff; }
.btn-light { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-light:hover { background: var(--surface-3); }

/* ─── Tables ────────────────────────────────────── */
table.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
}
table.tbl th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-2);
  font-size: .62rem;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: .8px;
  font-weight: 700;
}
table.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  vertical-align: middle;
  color: var(--text-2);
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td { background: var(--surface-3); }
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* ─── Badges ────────────────────────────────────── */
.badge-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-aberto { background: #fef3c7; color: #92400e; }
.badge-pago, .badge-recebido { background: #d1fae5; color: #065f46; }
.badge-vencido { background: #fee2e2; color: #991b1b; }

.actions a { margin-right: 6px; font-size: .95rem; color: var(--muted); transition: color .12s; }
.actions a:hover { color: var(--primary-dark); }

/* ─── Forms ────────────────────────────────────── */
.form-label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  display: block;
}
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  padding: .5rem .8rem;
  font-size: .875rem;
  transition: border .15s, box-shadow .15s;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  width: 100%;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,188,156,.15);
  outline: none;
}
.row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ─── Alerts ────────────────────────────────────── */
.alert {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 15px;
  font-size: .84rem;
  font-weight: 500;
}
.alert-success { background: #eafaf1; color: #1e8449; border-color: #a9dfbf; }
.alert-warning { background: #fef9e7; color: #9a7d0a; border-color: #f9e79f; }
.alert-danger { background: #fdedec; color: #c0392b; border-color: #f5b7b1; }
.alert-info { background: #e8f8f5; color: #0e6655; border-color: #a3e4d7; }

/* ─── Login ────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 440px;
  background: #1a252f;
  overflow: hidden;
  position: relative;
}
.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 20% 50%, rgba(26,188,156,.2), transparent 65%),
    radial-gradient(ellipse 400px 400px at 80% 20%, rgba(41,128,185,.18), transparent 60%);
  pointer-events: none;
}
.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  z-index: 1;
}
.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,188,156,.15);
  border: 1px solid rgba(26,188,156,.35);
  color: #1abc9c;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 24px;
  width: fit-content;
}
.login-hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 0 0 16px;
}
.login-hero h2 span { color: #1abc9c; }
.login-hero p { color: #7f8fa6; font-size: .95rem; line-height: 1.65; max-width: 360px; margin: 0; }

.login-box {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 42px;
  position: relative;
  z-index: 1;
  box-shadow: -30px 0 60px rgba(0,0,0,.25);
}
.login-box .brand { margin-bottom: 28px; }
.login-box .brand i {
  font-size: 1.4rem;
  color: #fff;
  background: var(--grad-primary);
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-grid; place-items: center;
  box-shadow: 0 10px 24px rgba(26,188,156,.4);
  margin-bottom: 18px;
}
.login-box .brand h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; color: var(--text); }
.login-box .brand p { color: var(--muted); font-size: .8rem; margin: 0; }
.logo-img { max-height: 56px; width: auto; max-width: 170px; object-fit: contain; display: block; margin: 0 auto; }
.logo-img-lg { max-height: 110px; width: auto; max-width: 340px; margin: 0 auto 18px; display: block; object-fit: contain; }
.login-box .brand { text-align: center; }

/* ─── Mobile ────────────────────────────────────── */
.menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.15rem;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(26,37,47,.6); z-index: 99; }
.sidebar-overlay.show { display: block; }
body.no-scroll { overflow: hidden; }

@media (max-width: 992px) {
  .page { padding: 18px 18px 56px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-box { padding: 44px 28px; min-height: 100vh; justify-content: center; }
}
@media (max-width: 768px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; z-index: 999; }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; width: 100%; }
  .topbar { padding: 0 14px; }
  .topbar h1 { font-size: .9rem; }
  .topbar .user span { display: none; }
  .page { padding: 14px 14px 56px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-stat .value { font-size: 1.3rem; }
  .row-form { grid-template-columns: 1fr; }

  table.tbl thead { display: none; }
  table.tbl, table.tbl tbody, table.tbl tr, table.tbl td { display: block; width: 100%; }
  table.tbl tr { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 10px 14px; }
  table.tbl td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .84rem; }
  table.tbl td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .6px; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===== Central de Alertas (sino) ===== */
.alert-center{position:relative;margin-right:.5rem}
.alert-bell{position:relative;background:transparent;border:1px solid var(--border,#e5e7eb);
  width:40px;height:40px;border-radius:12px;color:var(--text,#0f172a);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;transition:.18s}
.alert-bell:hover{background:#f1f5f9;color:#16a34a}
.alert-bell i{font-size:1.05rem}
.alert-bell-dot{position:absolute;top:-4px;right:-4px;background:#f97316;color:#fff;
  font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:9px;
  padding:0 5px;display:inline-flex;align-items:center;justify-content:center;
  border:2px solid #fff;box-shadow:0 2px 6px rgba(249,115,22,.4)}
.alert-panel{position:absolute;top:48px;right:0;width:380px;max-width:92vw;
  background:#fff;border:1px solid #e5e7eb;border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.18);opacity:0;visibility:hidden;
  transform:translateY(-6px);transition:.18s;z-index:1000;overflow:hidden}
.alert-panel.show{opacity:1;visibility:visible;transform:translateY(0)}
.alert-panel-head{display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;background:linear-gradient(135deg,#16a34a,#166534);color:#fff}
.alert-panel-head strong i{margin-right:6px}
.alert-panel-count{background:rgba(255,255,255,.2);color:#fff;font-size:.75rem;
  padding:2px 10px;border-radius:999px;font-weight:700}
.alert-panel-body{max-height:65vh;overflow-y:auto}
.alert-empty{text-align:center;padding:36px 16px;color:#64748b}
.alert-empty i{font-size:2.5rem;color:#16a34a;display:block;margin-bottom:8px}
.alert-empty p{margin:0;font-size:.9rem}
.alert-item{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;
  border-bottom:1px solid #f1f5f9;text-decoration:none;color:#0f172a;transition:.12s}
.alert-item:last-child{border-bottom:0}
.alert-item:hover{background:#f8fafc}
.alert-item > i:first-child{font-size:1.05rem;width:32px;height:32px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.alert-item.alert-danger > i:first-child{background:#fee2e2;color:#dc2626}
.alert-item.alert-warn   > i:first-child{background:#fef3c7;color:#d97706}
.alert-item.alert-info   > i:first-child{background:#dbeafe;color:#2563eb}
.alert-item-txt{flex:1;min-width:0}
.alert-item-title{font-size:.82rem;font-weight:600;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alert-item-desc{font-size:.72rem;color:#64748b;margin-top:2px}
.alert-item-arrow{color:#cbd5e1;font-size:.85rem;align-self:center}

/* ===== Mobile accordion (.tbl-mobile-acc) ===== */
@media (max-width: 768px){
  table.tbl-mobile-acc tbody tr.acc-row{cursor:pointer}
  table.tbl-mobile-acc tbody tr.acc-row td{display:none}
  table.tbl-mobile-acc tbody tr.acc-row td:first-child{
    display:block;padding:14px 14px;font-weight:600;font-size:.95rem;
    border-bottom:1px solid #f1f5f9}
  table.tbl-mobile-acc tbody tr.acc-row td:first-child::before{content:'' !important}
  table.tbl-mobile-acc tbody tr.acc-row.open td{display:block;padding:6px 14px;
    font-size:.85rem;background:#fafafa;border:0}
  table.tbl-mobile-acc tbody tr.acc-row.open td:first-child{background:#f0fdf4}
  table.tbl-mobile-acc .acc-caret{display:inline-block;margin-right:8px;
    transition:transform .18s;color:#16a34a}
  table.tbl-mobile-acc tbody tr.acc-row.open .acc-caret{transform:rotate(90deg)}
}

/* ===== Fluxo de caixa ===== */
.fc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}
.fc-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;
  position:relative;overflow:hidden}
.fc-card.fc-in{border-left:4px solid #16a34a}
.fc-card.fc-out{border-left:4px solid #dc2626}
.fc-card.fc-saldo{border-left:4px solid #f97316;background:linear-gradient(135deg,#fff,#fff7ed)}
.fc-card.fc-proj{border-left:4px solid #0ea5e9}
.fc-card .fc-lbl{font-size:.72rem;color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.fc-card .fc-val{font-size:1.6rem;font-weight:800;margin-top:4px;color:#0f172a}
.fc-card.fc-in .fc-val{color:#16a34a}
.fc-card.fc-out .fc-val{color:#dc2626}
.fc-card.fc-saldo .fc-val{color:#ea580c}
.fc-card.fc-proj .fc-val{color:#0284c7}
.fc-card .fc-sub{font-size:.7rem;color:#94a3b8;margin-top:2px}

/* Recalcular massa */
.bulk-recalc{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#f0fdf4;
  border:1px dashed #16a34a;padding:10px 14px;border-radius:12px;margin-bottom:14px}
.bulk-recalc .btn{background:linear-gradient(135deg,#16a34a,#166534);color:#fff;border:0;
  padding:8px 16px;border-radius:10px;font-weight:600;cursor:pointer}
.bulk-recalc .btn:hover{filter:brightness(1.05)}
