/* ============================================================
   FOURLINE — identidade visual do Workspace
   Mesma marca do Portal ITSM (FOURLINE Connect): verde da marca,
   barra lateral verde-escura, títulos em Rajdhani, cantos suaves.
   Camada aditiva: só cores, tipografia e acabamento; estrutura e
   comportamento continuam em main.css.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

:root {
  /* Marca */
  --fl-green: #068A4F;
  --fl-green-light: #A8CF45;
  --fl-green-dark: #045c34;
  --fl-green-xdark: #033d22;

  /* Ações do sistema usam o verde da marca */
  --brand-primary: #068A4F;
  --brand-primary-hover: #045c34;
  --brand-accent-green: #068A4F;
  --brand-accent-green-hover: #045c34;

  /* Barra lateral verde-escura */
  --sidebar-bg: #033d22;
  --sidebar-header-bg: #033d22;
  --sidebar-nav-text: rgba(255, 255, 255, 0.80);
  --sidebar-nav-hover: rgba(255, 255, 255, 0.08);
  --sidebar-nav-active: rgba(168, 207, 69, 0.18);
  --sidebar-section-title: rgba(255, 255, 255, 0.55);
  --sidebar-width: 248px;

  /* Superfícies e texto */
  --bg-body: #F3F7F4;
  --bg-surface-subtle: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e6eaf0;

  /* Cantos e sombras do design system FOURLINE */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-modal: 0 10px 30px rgba(16, 24, 40, 0.12);

  --font-display: 'Rajdhani', 'Inter', sans-serif;
}

/* Fundo: o mesmo degradê suave do portal, fixo ao rolar */
body {
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(168, 207, 69, 0.10), transparent 60%),
    linear-gradient(160deg, #F2F8F4 0%, #E7F3EA 100%) fixed;
  background-color: var(--bg-body);
}
::selection { background: rgba(168, 207, 69, 0.35); }

/* ===== Barra lateral ===== */
.sidebar { border-right: 1px solid rgba(255, 255, 255, 0.06); }
.sidebar-header {
  height: auto;
  min-height: var(--header-height);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-header .brand-logo-icon { display: none; }
.sidebar-logo { display: block; width: 168px; max-width: 100%; height: auto; }
.brand-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.nav-section-title { color: var(--sidebar-section-title); padding: 16px 12px 6px; }
.nav-link, .nav-group-header { border-radius: var(--radius-sm); font-size: 14.5px; padding: 9px 12px; }
.nav-link:hover, .nav-group-header:hover { color: #ffffff; }
.nav-link.active { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.nav-icon, .nav-group-header .nav-icon { color: rgba(168, 207, 69, 0.8); }
.nav-link:hover .nav-icon, .nav-link.active .nav-icon { color: var(--fl-green-light); }
.nav-group-chevron { color: rgba(255, 255, 255, 0.45); }
.nav-group.open .nav-group-chevron { color: rgba(255, 255, 255, 0.7); }
.nav-sublink { color: rgba(255, 255, 255, 0.68); border-radius: var(--radius-sm); }
.nav-sublink:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.06); }
.sublink-bullet { color: rgba(168, 207, 69, 0.55); }
.nav-sublink:hover .sublink-bullet, .nav-sublink.active .sublink-bullet { color: var(--fl-green-light); }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.user-avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.user-role-badge { color: rgba(255, 255, 255, 0.62); }
.sidebar a:focus-visible, .sidebar button:focus-visible, .sidebar .nav-group-header:focus-visible { outline-color: var(--fl-green-light); }

/* ===== Topo translúcido ===== */
.topbar { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(6, 138, 79, 0.10);
    -webkit-backdrop-filter: saturate(170%) blur(12px);
    backdrop-filter: saturate(170%) blur(12px);
  }
}
.user-header-pill { border-radius: var(--radius-pill, 999px); }
.user-header-avatar { background: var(--fl-green); border-radius: 50%; }
.menu-toggle, .notif-btn { border-radius: var(--radius-sm); }

/* ===== Cabeçalho da página: ícone da tela + título em Rajdhani ===== */
.page-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-heading-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0a9d5a, #067a45);
  box-shadow: 0 3px 8px rgba(3, 61, 34, 0.22);
}
.page-heading-ic:empty { display: none; }
.page-heading-ic svg { width: 20px; height: 20px; }
.page-title-group h1 {
  font-family: var(--font-display);
  font-size: 27.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
}
.page-subtitle { font-size: 14px; }

/* ===== Cartões ===== */
.card { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.card-title-with-icon { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.card-title-with-icon svg { color: var(--fl-green); }
.kpi-stat-box { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.kpi-stat-value { font-family: var(--font-display); font-weight: 700; }
.kpi-stat-icon-wrapper { border-radius: 10px; }

/* ===== Botões: verde da marca, texto forte, cantos arredondados ===== */
.btn { font-weight: 600; border-radius: var(--radius-sm); transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease, transform .04s ease; }
.btn:active { transform: translateY(1px); }
.btn-sm { border-radius: 7px; }
.btn-primary, .btn-green { background-color: var(--fl-green); border-color: var(--fl-green); color: #ffffff; }
.btn-primary:hover, .btn-green:hover { background-color: var(--fl-green-dark); border-color: var(--fl-green-dark); }
.btn-outline:hover { color: var(--fl-green-dark); background-color: rgba(6, 138, 79, 0.08); border-color: rgba(6, 138, 79, 0.45); }
.btn-link { color: var(--fl-green); }

/* ===== Campos ===== */
.form-control { border-radius: var(--radius-sm); }
.form-control:focus { border-color: var(--fl-green); box-shadow: 0 0 0 3px rgba(6, 138, 79, 0.15); outline: none; }

/* ===== Selos ===== */
.badge { border-radius: 999px; padding: 2px 8px; }
.badge-info, .badge-primary { background: rgba(6, 138, 79, 0.08); color: var(--fl-green-dark); border-color: rgba(6, 138, 79, 0.25); }

/* ===== Tabelas ===== */
.data-table th { background: #f6f9f7; }
.data-table tr:hover td { background-color: rgba(6, 138, 79, 0.035); }

/* ===== Notificações, toasts, modais ===== */
.notif-item.nao-lida { background: rgba(168, 207, 69, 0.10); }
.toast { border-radius: 12px; }
.modal-content { border-radius: var(--radius-lg); }
.modal-header h3 { font-family: var(--font-display); font-size: 19px; }

/* ===== Foco visível na cor da marca ===== */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .nav-link:focus-visible, .nav-sublink:focus-visible {
  outline-color: var(--fl-green);
}

/* Barras de rolagem finas e discretas */
* { scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }

.kpi-stat-icon-wrapper { background: rgba(6, 138, 79, 0.08); }

/* ===== Revisão (regras da Vercel + Taste Skill) ===== */

/* Toque: sem atraso de duplo toque, destaque de toque intencional */
a, button, select, input, textarea, [role="button"], .nav-link, .nav-sublink {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(6, 138, 79, 0.12);
}
/* Em telas de toque, todo controle tem ao menos 44px de altura */
@media (pointer: coarse) {
  .btn, .btn-sm, .form-control, .nav-link, .nav-sublink, .menu-toggle, .notif-btn, .caro-btn-acao { min-height: 44px; }
  .caro-btn-acao, .notif-btn, .menu-toggle { min-width: 44px; }
}

/* Modais e menu lateral não "arrastam" a página de trás ao rolar */
.modal-content, .notif-lista, .sidebar-nav { overscroll-behavior: contain; }

/* Títulos sem palavra solta na última linha */
h1, h2, h3, .page-title-group h1, .card-title-with-icon, .caro-header-titulo { text-wrap: balance; }

/* Link para pular direto ao conteúdo (aparece ao receber foco pelo teclado) */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--fl-green-xdark); color: #ffffff; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--fl-green-light); outline-offset: 2px; }

/* Cartões que são links sobem 2px e respondem ao ponteiro */
a.kpi-stat-box { color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
a.kpi-stat-box:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08); border-color: rgba(6, 138, 79, 0.35); }
a.kpi-stat-box:focus-visible { outline: 2px solid var(--fl-green); outline-offset: 2px; }
.node-card[role="button"]:focus-visible { outline: 2px solid var(--fl-green); outline-offset: 2px; }

/* Janelas e área principal recebem foco por código (tabindex=-1): sem anel, o foco segue para dentro */
#global-modal-content:focus, #main-content-view:focus { outline: none; }

/* ===== Cabeçalho da barra lateral: empresa em destaque e botão de recolher ===== */
.sidebar-header { position: relative; }
.sidebar-logo-mini { display: none; }
/* Empresa: ícone de prédio + rótulo "EMPRESA" + nome em destaque */
.sidebar-empresa { display: flex; align-items: center; gap: 7px; width: 100%; max-width: 100%; margin-top: 6px; }
.sidebar-empresa-ic { flex-shrink: 0; display: inline-flex; color: rgba(255, 255, 255, 0.62); }
.sidebar-empresa-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sidebar-empresa-rotulo { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fl-green-light); opacity: 0.85; }
.sidebar-empresa .brand-title { font-size: 14px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, 0.72); }
/* Puxador redondo na borda do menu */
.sidebar-recolher {
  position: absolute; top: 34px; right: -13px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  border-radius: 50%; border: 1px solid #dfe8e2; background: #ffffff; color: var(--fl-green-dark);
  box-shadow: 0 2px 6px rgba(3, 61, 34, 0.18); cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.1s ease-out, box-shadow 0.16s ease;
}
.sidebar:hover .sidebar-recolher, .sidebar-recolher:focus-visible { opacity: 1; }
.sidebar-recolher:hover { background: var(--fl-green); color: #ffffff; border-color: var(--fl-green); box-shadow: 0 4px 10px rgba(6, 138, 79, 0.35); }
.sidebar-recolher:active { transform: scale(0.92); }
.sidebar-recolher:focus-visible { outline: 2px solid var(--fl-green-light); outline-offset: 2px; }
.sidebar-recolher svg { transition: transform 0.2s ease; }

/* Menu recolhido (só telas largas): só ícones, rótulos como dica ao passar o mouse */
@media (min-width: 901px) {
  .sidebar, .main-wrapper { transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1), margin-left 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
  body.sidebar-recolhido { --sidebar-width: 68px; }
  body.sidebar-recolhido .sidebar-header { align-items: center; padding: 14px 8px 12px; gap: 10px; }
  body.sidebar-recolhido .sidebar-logo, body.sidebar-recolhido .sidebar-empresa { display: none; }
  body.sidebar-recolhido .sidebar-logo-mini { display: block; width: 32px; height: 32px; }
  body.sidebar-recolhido .sidebar-recolher svg { transform: rotate(180deg); }
  body.sidebar-recolhido .nav-section-title { font-size: 0; height: 1px; margin: 10px 14px; padding: 0; background: rgba(255, 255, 255, 0.08); }
  body.sidebar-recolhido .nav-link, body.sidebar-recolhido .nav-group-header { justify-content: center; padding-left: 0; padding-right: 0; }
  body.sidebar-recolhido .nav-link > span:not(.nav-icon),
  body.sidebar-recolhido .nav-group-header > div > span:not(.nav-icon),
  body.sidebar-recolhido .nav-group-chevron,
  body.sidebar-recolhido .nav-submenu { display: none !important; }
  body.sidebar-recolhido .sidebar-footer { flex-direction: column; gap: 10px; padding: 12px 8px; }
  body.sidebar-recolhido .user-details { display: none; }
}
@media (max-width: 900px) { .sidebar-recolher { display: none; } }
@media (prefers-reduced-motion: reduce) { .sidebar, .main-wrapper { transition: none !important; } }

/* Cartão destacado ao chegar por um atalho do menu (ex.: Usuários & Acessos) */
.card { scroll-margin-top: 80px; }
.card-em-foco { box-shadow: 0 0 0 3px rgba(6, 138, 79, 0.35), var(--shadow-card) !important; transition: box-shadow 0.4s ease; }

/* Menu: a seção Administração (uso eventual) desce para o fim, separada do trabalho do dia a dia */
.nav-section-admin { margin-top: auto; padding-top: 18px; }

/* Colaboradores: foto e nome abrem a ficha do Carômetro */
.colab-ficha-btn { padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; border-radius: 4px; }
.colab-ficha-nome { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--text-main); text-align: left; }
.colab-ficha-nome:hover { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.colab-ficha-btn:focus-visible, .colab-ficha-nome:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* ===== Admissões ===== */
.adm-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-ajuda { margin: 0; max-width: 640px; font-size: 14px; color: var(--text-muted); text-wrap: pretty; }
.adm-aviso { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; color: #78350f; font-size: 14px; }
.adm-nome { font-weight: 600; color: var(--text-main); }
.adm-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; margin: 2px 4px 2px 0; }
.adm-st-espera { background: #fef9c3; color: #854d0e; }
.adm-st-correcao { background: #ffedd5; color: #9a3412; }
.adm-st-analise { background: rgba(6, 138, 79, 0.1); color: var(--fl-green-dark); }
.adm-st-contab { background: #ccfbf1; color: #0f766e; }
.adm-st-ok { background: #dcfce7; color: #166534; }
.adm-st-vencido { background: #fee2e2; color: #991b1b; }
.adm-acoes { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.adm-det-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-motivo { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: 14px; }
.adm-sub { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--text-main); }
.adm-dados { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 12px 14px; background: var(--bg-surface-subtle, #f8fafc); border: 1px solid var(--border-color); border-radius: 10px; }
.adm-dados dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.adm-dados dd { margin: 1px 0 0; font-size: 14px; color: var(--text-main); overflow-wrap: anywhere; }
.adm-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-doc { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff; color: var(--brand-primary); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.adm-doc:hover { background: rgba(6, 138, 79, 0.06); border-color: rgba(6, 138, 79, 0.35); }
.adm-doc svg { width: 14px; height: 14px; }
.adm-opcao { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; }
.adm-opcao:has(input:checked) { border-color: var(--brand-primary); background: rgba(6, 138, 79, 0.05); }
.adm-opcao input { margin-top: 3px; accent-color: var(--brand-primary); }
.adm-opcao > span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 600px) { .adm-dados { grid-template-columns: minmax(0, 1fr); } }

/* Painel da contabilidade: admissões encaminhadas */
.contab-nav-num { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fl-green-light); color: #033d22; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.contab-nav-num[hidden] { display: none; }
.contab-adm { margin-bottom: 16px; }
.contab-adm-dados { margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.contab-adm-dados dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.contab-adm-dados dd { margin: 1px 0 0; font-size: 14px; color: var(--text-main); overflow-wrap: anywhere; }
.contab-adm-docs { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .contab-adm-dados { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .contab-adm-dados { grid-template-columns: minmax(0, 1fr); } }

/* Configurações: logo da empresa */
.cfg-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cfg-logo-previa { width: 160px; height: 64px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px dashed var(--border-color); border-radius: 10px; background: #fff; }
.cfg-logo-previa img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cfg-logo-previa span { font-size: 13px; color: var(--text-muted); }
.cfg-logo-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.cfg-logo-acoes label.btn { cursor: pointer; }

/* Usuário de login na lista de usuários */
.usuario-login { font-size: 13px; padding: 2px 8px; border-radius: 6px; background: rgba(6, 138, 79, 0.08); color: var(--fl-green-dark); }

/* Superadmin: todos os usuários */
.su-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.su-filtros input { flex: 1 1 260px; }
.su-filtros select { flex: 0 1 240px; }
.su-total { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ===== Menu da conta (canto superior direito) ===== */
.conta { position: relative; margin-left: 4px; }
.conta-btn {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px;
  border: 0; border-radius: 999px; background: transparent; color: #0f172a;
  cursor: pointer; font: inherit; transition: background-color 0.15s ease;
}
.conta-btn:hover, .conta-btn[aria-expanded="true"] { background: rgba(15, 23, 42, 0.05); }
.conta-btn:focus-visible { outline: 2px solid var(--fl-green); outline-offset: 2px; }
.conta-avatar {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fl-green); color: #ffffff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.conta-nome { font-size: 14px; font-weight: 600; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-seta { color: #94a3b8; transition: transform 0.15s ease; }
.conta-btn[aria-expanded="true"] .conta-seta { transform: rotate(180deg); }

.conta-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 300; width: 248px;
  padding: 4px; border-radius: 12px; background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
  opacity: 0; transform: scale(0.97) translateY(-2px); transform-origin: top right;
  transition: opacity 0.12s ease-out, transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}
.conta-menu.is-aberto { opacity: 1; transform: none; }
.conta-menu-topo { padding: 10px 12px 8px; }
.conta-menu-nome { font-size: 14px; font-weight: 600; color: #0f172a; }
.conta-menu-email { margin-top: 1px; font-size: 13px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-menu-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: #94a3b8; }
.conta-menu-meta span:empty { display: none; }
.conta-menu-sep { height: 1px; margin: 4px 8px; background: rgba(15, 23, 42, 0.06); }
.conta-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: none; color: #334155; font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.conta-item svg { flex-shrink: 0; color: #94a3b8; }
.conta-item:hover, .conta-item:focus-visible { background: rgba(15, 23, 42, 0.04); color: #0f172a; outline: none; }
.conta-item:hover svg, .conta-item:focus-visible svg { color: #475569; }
@media (prefers-reduced-motion: reduce) { .conta-menu, .conta-seta { transition: none; } }
/* Celular: só o avatar no topo */
@media (max-width: 600px) {
  .conta-nome, .conta-seta { display: none; }
  .conta-btn { padding: 3px; }
  .conta-menu { width: min(248px, calc(100vw - 24px)); }
}

/* Sair sempre à vista, ao lado da conta */
.topo-sair {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 2px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #64748b; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease-out;
}
.topo-sair:hover { background: #fef2f2; color: #b91c1c; }
.topo-sair:active { transform: scale(0.97); }
.topo-sair:focus-visible { outline: 2px solid #b91c1c; outline-offset: 2px; }
.conta-sair, .conta-sair svg { color: #b91c1c !important; }
.conta-sair:hover, .conta-sair:focus-visible { background: #fef2f2 !important; }

/* Topo do superadmin: rótulo, seletor de empresa, plano e quantidade */
.superadmin-switcher { display: flex; align-items: center; gap: 10px; }
.switcher-rotulo { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; }
.superadmin-switcher .switcher-control { position: relative; display: flex; align-items: center; }
.superadmin-switcher .switcher-select {
  min-width: 220px; height: 36px; padding: 0 34px 0 34px; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 10px;
  background: #ffffff; color: #0f172a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.superadmin-switcher .switcher-select:hover { border-color: rgba(6, 138, 79, 0.4); }
.superadmin-switcher .switcher-select:focus-visible { outline: none; border-color: var(--fl-green); box-shadow: 0 0 0 3px rgba(6, 138, 79, 0.15); }
.switcher-plano { padding: 3px 9px; border-radius: 999px; background: rgba(6, 138, 79, 0.1); color: var(--fl-green-dark); font-size: 12px; font-weight: 600; }
.switcher-plano[hidden] { display: none; }
.switcher-qtd { font-size: 13px; color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .switcher-rotulo, .switcher-qtd { display: none; } .superadmin-switcher .switcher-select { min-width: 0; max-width: 46vw; } }

/* Menu lateral: foco indicado pelo fundo, sem contorno verde */
.sidebar .nav-link:focus-visible, .sidebar .nav-sublink:focus-visible { outline: none !important; box-shadow: none; background-color: rgba(255, 255, 255, 0.12); color: #ffffff; }
.sidebar .nav-link:focus:not(:focus-visible) { outline: none; }

/* Avisos (toast): sem a faixa colorida na lateral (o tipo já aparece no ícone) */
.toast.success, .toast.error, .toast.info { border-left: 1px solid var(--border-color); }

/* Visão "Geral" do superadmin: só Dashboard (e Usuários) no menu */
body.modo-geral .sidebar .nav-link:not([data-view="dashboard"]):not([data-view="usuarios"]),
body.modo-geral .sidebar .nav-section-title:not(.nav-section-admin) { display: none; }
.geral-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .geral-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .geral-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.geral-grid { grid-template-columns: minmax(0, 1fr); }
.geral-num { font-variant-numeric: tabular-nums; }
.geral-empresa { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text-main); cursor: pointer; text-align: left; }
.geral-empresa:hover { color: var(--fl-green); text-decoration: underline; text-underline-offset: 2px; }
.geral-empresa:focus-visible { outline: 2px solid var(--fl-green); outline-offset: 2px; }
.geral-recente { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
@media (max-width: 900px) { .geral-grid { grid-template-columns: minmax(0, 1fr); } }

/* Notificações: painel e botão "Marcar como lidas" mais limpos */
.notif-dropdown { border-radius: 12px; border-color: rgba(15, 23, 42, 0.08); box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18); overflow: hidden; }
.notif-header { padding: 12px 14px; }
.notif-marcar {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; margin: -4px -6px -4px 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--fl-green-dark);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease;
}
.notif-marcar[hidden] { display: none; }
.notif-marcar:hover { background: rgba(6, 138, 79, 0.08); }
.notif-marcar:active { transform: scale(0.97); }
.notif-marcar:focus { outline: none; }
.notif-marcar:focus-visible { box-shadow: 0 0 0 2px rgba(6, 138, 79, 0.35); }
