﻿/* ============================================================
   DESENVOLVE+ - Identidade visual v1.0 (paletaCores.md)
   ============================================================ */

:root {
  --primary:     #0F4C81;
  --primary-mid: #006B9A;
  --primary-dk:  #0a3a6b;
  --accent:      #00A86B;
  --accent-dk:   #008a58;
  --orange:      #FF8C42;
  --red:         #D64545;
  --blue-alt:    #2563EB;
  --purple:      #7C3AED;

  --text:        #1F2937;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --bg:          #F5F7FA;
  --white:       #FFFFFF;

  --gradient: linear-gradient(135deg, #0F4C81 0%, #006B9A 50%, #00A86B 100%);

  --sidebar-w: 292px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 999px;
  --sh-sm:  0 1px 3px rgba(15,76,129,.07), 0 1px 2px rgba(15,76,129,.04);
  --sh-md:  0 4px 16px rgba(15,76,129,.10);
  --sh-lg:  0 8px 32px rgba(15,76,129,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(180deg, rgba(0,168,107,.05), transparent 260px),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-shell { display: flex; flex-direction: row; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.14) transparent;
  z-index: 1050;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }

.sidebar-brand {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 0;
  background: var(--primary);
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
}
.brand-icon {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.brand-text { line-height: 1; }
.brand-logo {
  font-size: 1rem; font-weight: 900; letter-spacing: -.01em;
  color: #fff; display: flex; align-items: center; gap: 0;
}
.brand-logo .plus { color: var(--accent); font-size: 1.1rem; }
.brand-sub {
  display: block; font-size: .62rem; font-weight: 700;
  color: rgba(255,255,255,.45); margin-top: 3px;
  letter-spacing: .04em; text-transform: uppercase;
}

.sidebar-nav { padding: 10px 10px 28px; flex: 1; }
.sidebar-nav > ul,
#sidebarNav { list-style: none; display: block; width: auto; }
.sidebar-search-item,
.sidebar-group,
.modulo-item { list-style: none; }
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.56);
}
.sidebar-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,.48); }
.sidebar-group { margin-bottom: 8px; }
.sidebar-group-toggle {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}
.sidebar-group-toggle:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.sidebar-group-toggle > .bi-chevron-down { font-size: .68rem; opacity: .6; transition: transform .2s; }
.sidebar-group.open .sidebar-group-toggle > .bi-chevron-down { transform: rotate(180deg); opacity: 1; }
.sidebar-group-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: rgba(0,168,107,.18);
  color: #7df5c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-group-toggle strong {
  display: block;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.15;
}
.sidebar-group-toggle small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.48);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.25;
}
.sidebar-group-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .26s ease;
  padding-left: 8px;
  margin-top: 6px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.sidebar-group.open .sidebar-group-list { max-height: 980px; }
.modulo-toggle {
  width: 100%; background: transparent; border: none;
  color: rgba(255,255,255,.7);
  text-align: left;
  padding: 7px 8px;
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: .73rem;
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
  border-radius: var(--r-md);
}
.modulo-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.modulo-num {
  width: 25px; height: 25px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 900; flex-shrink: 0;
  transition: background .14s;
}
.modulo-nome { flex: 1; line-height: 1.25; }
.modulo-count {
  color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.08);
  border-radius: var(--r-full);
  padding: 1px 6px;
  font-size: .62rem;
  font-weight: 900;
}
.modulo-toggle .bi-chevron-down { font-size: .68rem; opacity: .45; flex-shrink: 0; transition: transform .22s; }
.modulo-item.open .modulo-toggle { background: rgba(0,168,107,.14); color: #fff; }
.modulo-item.open .modulo-toggle .bi-chevron-down { transform: rotate(180deg); opacity: 1; }
.modulo-item.open .modulo-num { background: var(--accent); color: #fff; box-shadow: 0 1px 6px rgba(0,168,107,.45); }

.submenu { list-style: none; overflow: hidden; max-height: 0; transition: max-height .26s ease; background: transparent; }
.modulo-item.open .submenu { max-height: 700px; }
.submenu-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: transparent; border: none;
  border-radius: var(--r-md);
  text-align: left;
  color: rgba(255,255,255,.58); font-size: .7rem; font-weight: 800;
  padding: 7px 8px 7px 42px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.submenu-link:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.88); }
.submenu-link.active { background: rgba(0,168,107,.16); color: #fff; }
.submenu-link.active i { color: var(--accent); }
.submenu-link i { font-size: .78rem; flex-shrink: 0; opacity: .7; }

/* â”€â”€ MAIN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main { flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }

/* â”€â”€ TOPBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--sh-sm);
}
.sidebar-toggle-btn {
  display: none; width: 34px; height: 34px;
  border: 1px solid var(--border); background: var(--white);
  color: var(--text); border-radius: var(--r-md);
  align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; flex-shrink: 0;
  transition: background .14s;
}
.sidebar-toggle-btn:hover { background: var(--bg); }

.topbar-titulo { flex: 1; min-width: 0; }
.breadcrumb-mod {
  font-size: .67rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  display: flex; align-items: center; gap: 5px;
}
.breadcrumb-mod::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.topbar-titulo h1 {
  font-size: 1rem; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.topbar-titulo h1 i { color: var(--primary); }

/* Theme toggle */
.theme-toggle { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.theme-switch { position: relative; display: inline-block; width: 42px; height: 22px; margin: 0; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); transition: .3s; border-radius: 22px; }
.theme-slider:before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.theme-switch input:checked + .theme-slider { background: var(--primary); }
.theme-switch input:checked + .theme-slider:before { transform: translateX(20px); }
.theme-icon { font-size: 12px; }
.theme-icon-sun { color: #f59e0b; }
.theme-icon-moon { color: #94a3b8; }

/* â”€â”€ CONTENT AREA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main-content { flex: 1; padding: 22px 24px; }

/* â”€â”€ HOME / COCKPIT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.home-shell { display: flex; flex-direction: column; gap: 18px; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(15,76,129,.96), rgba(0,133,118,.94)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 16px);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 28px 32px;
  margin-bottom: 4px;
  overflow: hidden;
}
.home-hero-copy { min-width: 0; }
.wc-label {
  font-size: .69rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.65);
  margin-bottom: 7px; display: flex; align-items: center; gap: 6px;
}
.wc-label::before { content: ''; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; }
.home-hero h2 { font-size: 2rem; font-weight: 900; line-height: 1.05; margin-bottom: 9px; }
.home-hero h2 .plus { color: #6fffc4; }
.home-hero p { font-size: .92rem; color: rgba(255,255,255,.82); max-width: 680px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.hero-action {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.13);
  color: #fff;
  border-radius: var(--r-full);
  padding: 9px 13px;
  font-size: .78rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-action.modulo-card {
  min-height: auto;
  display: inline-flex;
  flex-direction: row;
  width: auto;
  background: rgba(255,255,255,.13);
  color: #fff;
  border-color: rgba(255,255,255,.24);
  box-shadow: none;
}
.hero-action.modulo-card::after { display: none; }
.hero-action.modulo-card:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.34);
  transform: translateY(-1px);
}
.home-pulse-panel { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.pulse-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.pulse-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: 16px;
}
.pulse-card span { display: block; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 800; }
.pulse-card strong { display: block; font-size: 1.55rem; font-weight: 900; margin-top: 4px; }
.pulse-card small { display: block; color: rgba(255,255,255,.7); font-weight: 700; margin-top: 3px; }
.pulse-card.is-hot { background: rgba(255,255,255,.18); }
.home-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.journey-board,
.today-panel,
.home-modules-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--sh-sm);
}
.section-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 13px; }
.section-title span {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-title strong { color: var(--text); font-size: 1rem; font-weight: 900; }
.journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.journey-card {
  min-height: 152px;
  align-items: flex-start;
}
.journey-card > i {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: rgba(0,168,107,.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.journey-card span { font-weight: 900; color: var(--text); font-size: .92rem; }
.journey-card small { color: var(--text-muted); font-size: .74rem; line-height: 1.45; }
.today-list { display: flex; flex-direction: column; gap: 10px; }
.today-item {
  min-height: auto;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.today-item i {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: rgba(255,140,66,.12);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.today-item span { color: var(--text); font-weight: 800; font-size: .78rem; line-height: 1.35; }
.featured-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.all-modules summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 900;
  font-size: .8rem;
  padding: 10px 2px;
}

/* â”€â”€ MÃ“DULOS GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modulos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 13px; }

.modulo-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 17px;
  cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column; gap: 9px;
  position: relative; overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.modulo-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.modulo-card:hover { border-color: var(--primary); box-shadow: var(--sh-md); transform: translateY(-2px); }
.modulo-card:hover::after { transform: scaleX(1); }
.modulo-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(0,168,107,.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background .16s;
}
.modulo-card:hover .modulo-card-icon { background: rgba(0,168,107,.18); }
.modulo-card h3 { font-size: .87rem; font-weight: 900; color: var(--text); line-height: 1.25; }
.modulo-card p { font-size: .75rem; color: var(--text-muted); line-height: 1.45; flex: 1; }
.modulo-card.featured {
  min-height: 160px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 26px;
  align-items: start;
}
.modulo-card.featured::after { transform: scaleX(1); height: 4px; }
.modulo-card-arrow {
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  background: rgba(15,76,129,.07);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* â”€â”€ CONTENT CARD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.content-card-header {
  background: linear-gradient(135deg, rgba(15,76,129,.08), rgba(0,168,107,.12));
  color: var(--text);
  padding: 18px 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  border-bottom: 1px solid rgba(15,76,129,.08);
}
.content-card-header h2 { font-size: 1rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.content-card-header h2 i {
  width: 30px; height: 30px; border-radius: var(--r-md);
  background: #fff; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
}
.content-card-header p { font-size: .78rem; color: var(--text-muted); margin-top: 5px; max-width: 780px; }
.content-card-body { padding: 18px 20px; }

.btn-new {
  background: var(--accent); border: 1px solid rgba(0,168,107,.4);
  color: white; font-weight: 900; font-size: .8rem;
  border-radius: var(--r-full); padding: 9px 15px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .14s, box-shadow .14s, background .14s; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,168,107,.24);
}
.btn-new:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,168,107,.32); }

/* â”€â”€ FILTROS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filtros-bar {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-bottom: 14px; align-items: center;
  padding: 11px 13px;
  background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--border);
}
.filtros-bar .form-control,
.filtros-bar .form-select { font-size: .83rem; border-color: var(--border); border-radius: var(--r-md); }
.filtros-bar .form-control:focus,
.filtros-bar .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,.1); }
.filtros-bar .busca-input { max-width: 270px; flex: 1 1 180px; }
.filtros-bar .form-select { max-width: 210px; }

/* â”€â”€ TABELA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-responsive-mod { overflow-x: auto; }
.table-mod { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: .82rem; }
.table-mod thead th {
  background: transparent; color: var(--primary);
  font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 13px; text-align: left; white-space: nowrap;
  border-bottom: none;
}
.table-mod tbody tr { transition: transform .14s, box-shadow .14s; }
.table-mod tbody tr:hover { transform: translateY(-1px); }
.table-mod tbody td {
  background: var(--white);
  padding: 12px 13px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-mod tbody td:first-child { border-left: 1px solid var(--border); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.table-mod tbody td:last-child { border-right: 1px solid var(--border); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.table-mod tbody tr:hover td { box-shadow: var(--sh-sm); border-color: rgba(0,168,107,.28); }
.celula-principal { font-weight: 800; color: var(--text); }
.celula-sub { font-size: .72rem; color: var(--text-muted); }

.acoes-tabela { display: flex; gap: 3px; justify-content: flex-end; white-space: nowrap; }
.btn-icon {
  border: none; background: transparent; color: var(--primary);
  font-size: .88rem; width: 28px; height: 28px; border-radius: var(--r-sm);
  cursor: pointer; transition: background .11s;
}
.btn-icon:hover { background: rgba(15,76,129,.08); }
.btn-icon.btn-icon-danger { color: var(--red); }
.btn-icon.btn-icon-danger:hover { background: rgba(214,69,69,.1); }

.paginacao-mock {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; font-size: .75rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* â”€â”€ BADGES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: .67rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.badge-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.badge-verde    { background: rgba(0,168,107,.1);   color: var(--accent); }
.badge-azul     { background: rgba(15,76,129,.1);   color: var(--primary); }
.badge-laranja  { background: rgba(255,140,66,.12); color: #c96a1a; }
.badge-vermelho { background: rgba(214,69,69,.1);   color: var(--red); }
.badge-cinza    { background: rgba(107,114,128,.1); color: var(--text-muted); }
.badge-roxo     { background: rgba(124,58,237,.1);  color: var(--purple); }

/* â”€â”€ FORMULÃRIO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-block { margin-bottom: 2px; }
.form-block label { font-size: .74rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; display: block; }
.form-block .form-control,
.form-block .form-select,
.form-block textarea,
.form-block .input-group-text { font-size: .86rem; border-color: var(--border); border-radius: var(--r-md); }
.form-block .form-control:focus,
.form-block .form-select:focus,
.form-block textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,.1); }
.swal-form-registro .swal2-html-container { margin: 0 1.2em 0.3em; overflow: visible; }
.swal-form-registro .swal2-title { font-size: 1.05rem; color: var(--text); line-height: 1.35; }
.swal-form-registro .form-registro {
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding: 2px 8px 8px 0;
}
.form-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.form-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.form-section h3 {
  color: var(--text);
  font-size: .86rem;
  font-weight: 900;
  margin-bottom: 2px;
}
.form-section p {
  color: var(--text-muted);
  font-size: .74rem;
  margin: 0;
}
.form-required { color: var(--red); font-weight: 900; }
.form-help {
  color: var(--text-muted);
  display: block;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
}
.form-check-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 10px 8px 34px;
}

.modulo-home-header {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  box-shadow: var(--sh-sm);
  margin-bottom: 16px;
}
.modulo-home-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: rgba(0,168,107,.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}
.modulo-home-texto span {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modulo-home-texto h2 {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 900;
  margin: 2px 0 4px;
}
.modulo-home-texto p {
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0;
  line-height: 1.5;
}
.modulo-kpis-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.modulo-kpi-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 13px;
}
.modulo-kpi-icone {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,76,129,.1);
  color: var(--primary);
  flex-shrink: 0;
}
.modulo-kpi-icone[data-cor="verde"] { background: rgba(0,168,107,.1); color: var(--accent); }
.modulo-kpi-icone[data-cor="laranja"] { background: rgba(255,140,66,.12); color: var(--orange); }
.modulo-kpi-icone[data-cor="vermelho"] { background: rgba(214,69,69,.1); color: var(--red); }
.modulo-kpi-mini strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}
.modulo-kpi-mini span {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
}
.telas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 13px;
}
.tela-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tela-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.tela-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(0,168,107,.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.tela-card h4 {
  color: var(--text);
  font-size: .9rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.tela-card p {
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.45;
  min-height: 44px;
}
.tela-card span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 900;
  margin-top: 8px;
}

.form-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1080;
}
.form-drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.form-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(980px, 94vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -18px 0 48px rgba(15,23,42,.22);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  z-index: 1090;
  display: flex;
  flex-direction: column;
}
.form-drawer.show { transform: translateX(0); }
.drawer-open { overflow: hidden; }
.form-drawer-hero {
  background: linear-gradient(135deg, #0F4C81 0%, #00A86B 100%);
  color: #fff;
  padding: 24px 26px 20px;
  position: relative;
}
.drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.14);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.drawer-kicker {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
  padding-right: 44px;
}
.form-drawer-hero h2 {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.2;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  padding-right: 44px;
}
.form-drawer-hero h2 i {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-drawer-hero p {
  max-width: 740px;
  color: rgba(255,255,255,.78);
  font-size: .84rem;
  line-height: 1.55;
}
.drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.drawer-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-full);
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 800;
}
.form-drawer-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  overflow: auto;
  padding: 20px 24px 96px;
}
.form-rail { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; align-self: start; }
.rail-card {
  border-radius: var(--r-lg);
  padding: 14px;
  background: linear-gradient(135deg, rgba(0,168,107,.12), rgba(37,99,235,.09));
  border: 1px solid rgba(0,168,107,.18);
}
.rail-label { display: block; color: var(--text-muted); font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.rail-card strong { display: block; margin-top: 4px; color: var(--text); font-size: .92rem; line-height: 1.2; }
.rail-card small { display: block; margin-top: 5px; color: var(--text-muted); font-weight: 700; line-height: 1.35; }
.rail-step {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-weight: 900;
  font-size: .76rem;
  color: var(--text-muted);
  background: var(--white);
}
.rail-step i { color: var(--primary); }
.rail-step.is-active { border-color: rgba(0,168,107,.32); color: var(--text); background: rgba(0,168,107,.06); }
.rail-step.is-active i { color: var(--accent); }
.rail-note {
  display: flex; gap: 8px;
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.45;
  padding: 12px 2px;
}
.rail-note i { color: var(--orange); flex-shrink: 0; }
.form-drawer .form-registro {
  align-content: start;
  background: linear-gradient(180deg, rgba(15,76,129,.025), transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
}
.form-drawer-actions {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-soft,
.btn-save {
  border: none;
  border-radius: var(--r-full);
  padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 900;
  font-size: .8rem;
  cursor: pointer;
}
.btn-soft { color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.btn-save { color: #fff; background: var(--accent); box-shadow: 0 8px 18px rgba(0,168,107,.24); }
.btn-save:hover { background: var(--accent-dk); }

/* â”€â”€ DASHBOARD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 13px; margin-bottom: 18px; }

.kpi-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px 17px;
  border-top: 4px solid var(--border);
  transition: box-shadow .16s, transform .16s;
}
.kpi-card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.kpi-card[data-cor="verde"]    { border-top-color: var(--accent); }
.kpi-card[data-cor="azul"]     { border-top-color: var(--primary); }
.kpi-card[data-cor="laranja"]  { border-top-color: var(--orange); }
.kpi-card[data-cor="vermelho"] { border-top-color: var(--red); }
.kpi-card[data-cor="cinza"]    { border-top-color: var(--text-muted); }
.kpi-card[data-cor="roxo"]     { border-top-color: var(--purple); }
.kpi-card[data-cor="blue-alt"] { border-top-color: var(--blue-alt); }

.kpi-icon {
  width: 34px; height: 34px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; margin-bottom: 10px; flex-shrink: 0;
}
.kpi-card[data-cor="verde"]    .kpi-icon { background: rgba(0,168,107,.1);   color: var(--accent); }
.kpi-card[data-cor="azul"]     .kpi-icon { background: rgba(15,76,129,.1);   color: var(--primary); }
.kpi-card[data-cor="laranja"]  .kpi-icon { background: rgba(255,140,66,.12); color: var(--orange); }
.kpi-card[data-cor="vermelho"] .kpi-icon { background: rgba(214,69,69,.1);   color: var(--red); }
.kpi-card[data-cor="cinza"]    .kpi-icon { background: rgba(107,114,128,.1); color: var(--text-muted); }
.kpi-card[data-cor="roxo"]     .kpi-icon { background: rgba(124,58,237,.1);  color: var(--purple); }
.kpi-card[data-cor="blue-alt"] .kpi-icon { background: rgba(37,99,235,.1);   color: var(--blue-alt); }

.kpi-valor { font-size: 1.6rem; font-weight: 900; color: var(--text); line-height: 1; }
.kpi-label { font-size: .71rem; color: var(--text-muted); font-weight: 700; margin-top: 4px; line-height: 1.3; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 16px; }
.grafico-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 17px 19px; }
.grafico-card h3 {
  font-size: .83rem; font-weight: 900; color: var(--text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.grafico-card h3::before { content: ''; width: 4px; height: 14px; background: var(--gradient); border-radius: 2px; flex-shrink: 0; }

.grafico-barras { display: flex; flex-direction: column; gap: 9px; }
.grafico-barra-row { display: flex; align-items: center; gap: 9px; font-size: .77rem; }
.grafico-barra-label { width: 185px; flex-shrink: 0; font-weight: 700; color: var(--text-muted); font-size: .73rem; }
.grafico-barra-track { flex: 1; background: var(--bg); border-radius: var(--r-full); height: 11px; overflow: hidden; border: 1px solid var(--border); }
.grafico-barra-fill { height: 100%; border-radius: var(--r-full); background: var(--gradient); transition: width .5s ease; }
.grafico-barra-valor { width: 68px; text-align: right; font-weight: 800; color: var(--text); flex-shrink: 0; }

/* â”€â”€ KANBAN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kanban-col {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); min-width: 248px; flex: 1 1 248px;
  display: flex; flex-direction: column;
}
.kanban-col-header {
  padding: 11px 13px; font-weight: 900; font-size: .78rem; color: var(--text);
  border-top: 4px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-col-count { background: rgba(15,76,129,.08); color: var(--primary); border-radius: var(--r-full); font-size: .66rem; font-weight: 800; padding: 2px 7px; }
.kanban-col[data-cor="verde"]    .kanban-col-header { border-top-color: var(--accent); }
.kanban-col[data-cor="azul"]     .kanban-col-header { border-top-color: var(--primary); }
.kanban-col[data-cor="laranja"]  .kanban-col-header { border-top-color: var(--orange); }
.kanban-col[data-cor="vermelho"] .kanban-col-header { border-top-color: var(--red); }
.kanban-col[data-cor="cinza"]    .kanban-col-header { border-top-color: var(--text-muted); }
.kanban-col[data-cor="roxo"]     .kanban-col-header { border-top-color: var(--purple); }
.kanban-col-body { padding: 0 9px 11px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--sh-sm); transition: box-shadow .14s; }
.kanban-card:hover { box-shadow: var(--sh-md); }
.kanban-card-titulo { font-weight: 900; font-size: .78rem; color: var(--text); margin-bottom: 3px; }
.kanban-card-sub { font-size: .72rem; color: var(--text-muted); margin-bottom: 7px; line-height: 1.4; }

/* â”€â”€ MAPA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mapa-placeholder {
  background: linear-gradient(135deg, rgba(15,76,129,.03), rgba(0,168,107,.03));
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  min-height: 260px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); gap: 9px; text-align: center; padding: 30px;
}
.mapa-placeholder i { font-size: 2.5rem; color: var(--primary); opacity: .28; }
.mapa-placeholder strong { font-weight: 900; font-size: .92rem; color: var(--text); }
.mapa-placeholder span { font-size: .8rem; max-width: 380px; }
.legenda-mapa { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 14px; }
.legenda-mapa-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--text); }
.legenda-mapa-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legenda-mapa-dot.cor-verde    { background: var(--accent); }
.legenda-mapa-dot.cor-azul     { background: var(--primary); }
.legenda-mapa-dot.cor-laranja  { background: var(--orange); }
.legenda-mapa-dot.cor-vermelho { background: var(--red); }
.legenda-mapa-dot.cor-cinza    { background: var(--text-muted); }
.mapa-observacao { font-size: .8rem; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }

/* â”€â”€ AVISO PROPOSTA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.aviso-proposta {
  background: rgba(37,99,235,.06); border: 1.5px solid rgba(37,99,235,.18);
  color: var(--primary); border-radius: var(--r-md);
  padding: 9px 14px; font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.aviso-proposta i { font-size: .95rem; flex-shrink: 0; }

/* â”€â”€ EMPTY STATE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state { padding: 48px 20px; text-align: center; color: var(--text-muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: 10px; opacity: .3; }
.empty-state p { font-weight: 800; font-size: .86rem; }

/* â”€â”€ DARK MODE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html[data-bs-theme="dark"] {
  --bg:        #111827;
  --white:     #1f2937;
  --border:    #374151;
  --text:      #e5e7eb;
  --text-muted:#9ca3af;
}
html[data-bs-theme="dark"] body { background: #111827; }
html[data-bs-theme="dark"] .topbar { background: #1f2937; border-color: #374151; }
html[data-bs-theme="dark"] .sidebar-toggle-btn { background: #1f2937; border-color: #374151; color: #e5e7eb; }
html[data-bs-theme="dark"] .content-card,
html[data-bs-theme="dark"] .modulo-card,
html[data-bs-theme="dark"] .journey-board,
html[data-bs-theme="dark"] .today-panel,
html[data-bs-theme="dark"] .home-modules-section,
html[data-bs-theme="dark"] .kpi-card,
html[data-bs-theme="dark"] .grafico-card,
html[data-bs-theme="dark"] .kanban-card { background: #1f2937; border-color: #374151; }
html[data-bs-theme="dark"] .filtros-bar { background: #111827; border-color: #374151; }
html[data-bs-theme="dark"] .table-mod thead th { background: #111827; color: #93c5fd; }
html[data-bs-theme="dark"] .table-mod tbody tr:hover { background: rgba(15,76,129,.07); }
html[data-bs-theme="dark"] .kanban-col { background: #111827; border-color: #374151; }
html[data-bs-theme="dark"] .grafico-barra-track { background: #111827; border-color: #374151; }
html[data-bs-theme="dark"] .mapa-placeholder { background: rgba(15,76,129,.06); border-color: #374151; }
html[data-bs-theme="dark"] .aviso-proposta { background: rgba(15,76,129,.15); border-color: rgba(15,76,129,.38); }
html[data-bs-theme="dark"] .badge-laranja { color: var(--orange); }
html[data-bs-theme="dark"] .content-card-header { background: linear-gradient(135deg, rgba(15,76,129,.32), rgba(0,168,107,.2)); }
html[data-bs-theme="dark"] .content-card-header h2 i { background: #111827; }
html[data-bs-theme="dark"] .table-mod tbody td { background: #1f2937; }
html[data-bs-theme="dark"] .form-drawer { background: #1f2937; }
html[data-bs-theme="dark"] .form-drawer .form-registro,
html[data-bs-theme="dark"] .rail-step,
html[data-bs-theme="dark"] .form-drawer-actions { background: #1f2937; }
html[data-bs-theme="dark"] .form-drawer-actions { border-color: #374151; }
html[data-bs-theme="dark"] .btn-soft { background: #111827; color: #e5e7eb; border-color: #374151; }
html[data-bs-theme="dark"] .modulo-home-header,
html[data-bs-theme="dark"] .modulo-kpi-mini,
html[data-bs-theme="dark"] .tela-card { background: #1f2937; border-color: #374151; }

/* â”€â”€ RESPONSIVO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 991.98px) {
  .form-drawer-body { grid-template-columns: 1fr; }
  .form-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-note { grid-column: 1 / -1; }
  .home-hero,
  .home-workspace { grid-template-columns: 1fr; }
  .journey-grid,
  .featured-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .main-content { padding: 13px; }
  .topbar { padding: 0 13px; }
  .content-card-body { padding: 13px 14px; }
  .home-hero { padding: 20px 18px; }
  .home-hero h2 { font-size: 1.45rem; }
  .pulse-row,
  .journey-grid,
  .featured-modules { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-action { justify-content: center; width: 100%; }
  .grafico-barra-label { width: 115px; font-size: .69rem; }
  .content-card-header { padding: 15px; }
  .btn-new { width: 100%; justify-content: center; }
  .form-drawer { width: 100vw; }
  .form-drawer-hero { padding: 20px 18px 16px; }
  .form-drawer-hero h2 { font-size: 1.05rem; }
  .form-drawer-body { padding: 16px 14px 104px; }
  .form-rail { grid-template-columns: 1fr; }
  .form-drawer-actions { padding: 12px 14px; }
  .btn-soft,
  .btn-save { flex: 1; justify-content: center; }
}

/* â”€â”€ SIDEBAR RESPONSIVO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.app-shell { flex-direction: row; }
.sidebar {
  width: var(--sidebar-w);
  min-height: 0;
  height: 100vh;
  flex-direction: column;
  align-items: stretch;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--primary);
  box-shadow: none;
}
.sidebar-brand {
  width: auto;
  min-height: 0;
  position: sticky;
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--primary);
}
.sidebar-nav {
  display: block;
  padding: 10px 10px 28px;
}
.sidebar-nav > ul,
#sidebarNav {
  display: block;
  width: auto;
}
.main {
  flex: 1;
  width: auto;
}
.topbar { top: 0; }

@media (max-width: 991.98px) {
  .app-shell { flex-direction: row; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    transform: translateX(-100%);
    flex-wrap: nowrap;
    box-shadow: var(--sh-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand { width: auto; min-height: 0; }
  .sidebar-nav { width: auto; padding: 10px 10px 28px; }
  .sidebar-toggle-btn { display: flex; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.32);
    z-index: 1040;
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop.show { display: block; }
  .topbar { top: 0; }
}

@media (max-width: 576px) {
  .topbar { top: 0; }
}
