* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #f0f2f5; color: #333; }

/* ── HEADER ── */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; font-size: 13px; color: #444; border-radius: 4px;
  text-decoration: none; font-weight: 500; transition: background .2s;
}
.main-nav a:hover, .main-nav a.active { background: #e8f4fb; color: #1a7abf; }

/* Dropdown Admin no nav */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 13px; color: #444; border-radius: 4px;
  font-weight: 500; background: none; border: none; cursor: pointer;
  transition: background .2s; font-family: inherit;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn.active { background: #e8f4fb; color: #1a7abf; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 170px; z-index: 200;
  overflow: hidden;
}
/* Ponte invisível que cobre o gap entre o botão e o menu,
   mantendo o hover ativo enquanto o mouse atravessa o espaço */
.nav-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; width: 100%; height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; font-size: 13px; color: #444; text-decoration: none;
  border-radius: 0; font-weight: 500; transition: background .15s;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: #e8f4fb; color: #1a7abf; }
.nav-dropdown-menu a + a { border-top: 1px solid #f0f2f5; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: #f0f4f8; border-radius: 20px; padding: 6px 14px; font-size: 13px;
  text-decoration: none; color: inherit; transition: background .18s;
}
.user-chip:hover { background: #e2e8f0; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a7abf; color: white; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: bold;
  flex-shrink: 0;
}
/* Foto de perfil — substitui iniciais em qualquer contexto de avatar */
.avatar-photo {
  border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0;
}
/* tamanhos herdados do container */
.avatar.avatar-photo       { width: 28px; height: 28px; }
.user-avatar-sm.avatar-photo { width: 32px; height: 32px; }
.avatar-preview-img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto; display: block;
}
.notif-btn {
  width: 36px; height: 36px; border-radius: 50%; background: #f0f4f8;
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
}
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  width: 14px; height: 14px; background: #e53e3e; border-radius: 50%;
  font-size: 9px; color: white; display: flex; align-items: center; justify-content: center;
}

/* ── HERO / SLIDER ── */
.hero {
  position: relative; height: 480px; overflow: hidden;
  background: linear-gradient(135deg, #0d2137 0%, #1a4a7a 50%, #1a7abf 100%);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23ffffff08" width="50" height="50"/><rect fill="%23ffffff04" x="50" y="50" width="50" height="50"/></svg>');
  opacity: .4;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,25,50,.85) 40%, rgba(10,25,50,.3) 100%);
}
.hero-slider-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.dot.active { background: white; width: 28px; border-radius: 5px; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 60px;
  width: 100%;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9);
  font-size: 11px; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-title { color: white; font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-title span { color: #5bc8f5; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 16px; max-width: 500px; margin-bottom: 32px; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; }
.btn-primary {
  background: #1a7abf; color: white; padding: 12px 24px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(26,122,191,.4);
}
.btn-outline {
  background: transparent; color: white; padding: 12px 24px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.5); cursor: pointer;
}
.hero-image-side {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 45%; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,122,191,.3), rgba(13,33,55,.6));
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px; color: rgba(255,255,255,.5); font-size: 13px;
}
.hero-img-icon { font-size: 64px; opacity: .4; }

/* ── HERO CAROUSEL (dinâmico) ── */
.hero-carousel {
  position: relative; height: 480px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide-bg {
  position: absolute; inset: -30px;
  background-size: cover; background-position: center;
  transition: filter .5s;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
}

/* Setas */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.15); border: none; cursor: pointer;
  color: white; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 5px;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.hero-dot.active { background: white; width: 28px; }

/* Botões do hero */
.btn-hero-primary {
  display: inline-block;
  background: #1a7abf; color: white; padding: 12px 24px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  text-decoration: none; box-shadow: 0 4px 15px rgba(26,122,191,.4);
  transition: background .2s;
}
.btn-hero-primary:hover { background: #1565a8; }
.btn-hero-outline {
  display: inline-block;
  background: transparent; color: white; padding: 12px 24px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.5); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-hero-outline:hover { border-color: white; background: rgba(255,255,255,.1); }

/* ── HERO SLIDE ANIVERSARIANTES ── */
.hero-bday-content {
  display: flex; align-items: center; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 0 60px; width: 100%;
}
.hero-bday-left { flex-shrink: 0; }
.hero-bday-list {
  display: flex; flex-wrap: wrap; gap: 12px; flex: 1;
}
.hero-bday-person {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); border-radius: 10px;
  padding: 8px 14px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  min-width: 140px;
}
.hero-bday-person.hero-bday-hoje {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}
.hero-bday-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}
.hero-bday-avatar--foto { object-fit: cover; }
.hero-bday-info { display: flex; flex-direction: column; }
.hero-bday-nome { font-size: 13px; font-weight: 600; color: white; line-height: 1.2; }
.hero-bday-data { font-size: 11px; color: rgba(255,255,255,.7); }
.hero-bday-mais {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border-radius: 10px;
  padding: 8px 14px; color: rgba(255,255,255,.7); font-size: 13px;
  border: 1px dashed rgba(255,255,255,.3);
}

/* Card especial aniversariantes na listagem admin */
.banner-item--special { background: linear-gradient(135deg, #fffbeb, #fff); }

/* ── ADMIN BANNERS ── */
.banners-list { display: flex; flex-direction: column; gap: 12px; }
.banner-item {
  display: flex; align-items: center; gap: 16px;
  background: white; border-radius: 10px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07); border: 2px solid transparent;
}
.banner-item--inativo { opacity: .6; }
.banner-preview-mini {
  width: 140px; height: 80px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 8px;
  overflow: hidden; position: relative;
}
.banner-preview-text {
  position: relative; z-index: 1; color: white;
  font-size: 11px; line-height: 1.3;
}
.banner-preview-badge {
  display: block; font-size: 9px; opacity: .8; margin-bottom: 2px;
}
.banner-item-info { flex: 1; min-width: 0; }
.banner-item-titulo { font-weight: 600; font-size: 14px; color: #1e2d5a; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.banner-status { font-size: 12px; font-weight: 600; }
.banner-status.ativo { color: #059669; }
.banner-status.inativo { color: #aaa; }
.banner-item-btns-info { display: flex; gap: 6px; flex-wrap: wrap; }
.banner-btn-chip {
  font-size: 11px; padding: 2px 10px; border-radius: 12px;
}
.banner-btn-chip.primary { background: #1a7abf; color: white; }
.banner-btn-chip.outline { background: transparent; border: 1px solid #1a7abf; color: #1a7abf; }
.banner-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.order-btn {
  width: 28px; height: 28px; border: 1px solid #d1d9e0;
  background: white; border-radius: 4px; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: background .15s; color: #555;
}
.order-btn:hover { background: #e8f4fb; color: #1a7abf; }

/* Live preview no form */
.banner-live-preview {
  position: relative; height: 220px; border-radius: 12px; overflow: hidden;
  margin-bottom: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.blp-bg {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
}
.blp-overlay { position: absolute; inset: 0; }
.blp-content {
  position: relative; z-index: 2;
  padding: 28px 36px; color: white; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.blp-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9);
  font-size: 10px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blp-title { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.blp-sub { font-size: 13px; opacity: .8; margin-bottom: 14px; max-width: 420px; }
.blp-btns { display: flex; gap: 10px; }
.blp-btn1 {
  display: inline-block; background: #1a7abf; color: white;
  padding: 7px 18px; border-radius: 5px; font-size: 12px; font-weight: 600;
}
.blp-btn2 {
  display: inline-block; border: 2px solid rgba(255,255,255,.5); color: white;
  padding: 7px 18px; border-radius: 5px; font-size: 12px; font-weight: 600;
}

/* ── SEÇÃO: ACESSO RÁPIDO ── */
.section { padding: 60px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 26px; font-weight: 700; color: #1e2d5a; margin-bottom: 8px; }
.section-sub { color: #666; font-size: 15px; margin-bottom: 36px; }
.section-center { text-align: center; }

.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module-card {
  background: white; border-radius: 10px; padding: 24px 20px;
  text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: 2px solid transparent; cursor: pointer; transition: all .2s;
  position: relative;
}
.module-card:hover { border-color: #1a7abf; transform: translateY(-2px); }
.module-icon { font-size: 32px; margin-bottom: 10px; }
.module-name { font-size: 14px; font-weight: 600; color: #1e2d5a; margin-bottom: 4px; }
.module-desc { font-size: 11px; color: #888; line-height: 1.4; }
.module-badge {
  position: absolute; top: 10px; right: 10px;
  background: #e53e3e; color: white; font-size: 10px;
  padding: 2px 6px; border-radius: 10px; font-weight: 600;
}

/* ── SEÇÃO ESCURA: CTA ── */
.section-dark { background: #1e2d5a; padding: 48px 24px; }
.section-dark .section-title { color: white; }
.section-dark .section-sub { color: rgba(255,255,255,.7); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.btn-white {
  background: white; color: #1e2d5a; padding: 12px 28px;
  border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap; border: none;
}

/* ── COMUNICADOS + ANIVERSARIANTES ── */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.card-list { background: white; border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.card-list-title {
  font-size: 16px; font-weight: 700; color: #1e2d5a;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid #e8f4fb; display: flex; align-items: center; gap: 8px;
}
.news-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0; align-items: flex-start;
}
.news-item:last-child { border: none; }
.news-thumb {
  width: 56px; height: 40px; background: #e8f4fb; border-radius: 6px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.news-meta { font-size: 10px; color: #888; margin-bottom: 2px; }
.news-title { font-size: 13px; font-weight: 600; color: #333; }

.bday-card { background: white; border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.bday-month-label {
  text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: #1a7abf; font-weight: 600; margin-bottom: 16px;
}
.bday-person {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 8px; margin-bottom: 8px;
  background: #f8f9fa;
}
.bday-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #1a7abf, #0d5a8f);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold; flex-shrink: 0;
}
.bday-name { font-size: 13px; font-weight: 600; color: #333; }
.bday-date { font-size: 11px; color: #888; }
.bday-today { background: #fff8e1; border-left: 3px solid #f59e0b; }

/* ── BANNER TREINAMENTOS ── */
.section-accent { background: linear-gradient(135deg, #1a7abf, #0d5a8f); padding: 48px 24px; }
.section-accent .section-title { color: white; }
.section-accent .section-sub { color: rgba(255,255,255,.85); margin-bottom: 0; }
.btn-light {
  background: white; color: #1a7abf; padding: 10px 24px;
  border-radius: 6px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; white-space: nowrap;
}

/* ── ÚLTIMAS ATUALIZAÇÕES ── */
.section-gray { background: #f8f9fc; }
.updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.update-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.update-thumb {
  height: 120px; background: linear-gradient(135deg, #1e2d5a, #1a7abf);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  color: rgba(255,255,255,.5);
}
.update-body { padding: 16px; }
.update-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; color: #1a7abf; margin-bottom: 6px; letter-spacing: .5px;
}
.update-title { font-size: 14px; font-weight: 700; color: #1e2d5a; margin-bottom: 6px; }
.update-excerpt { font-size: 12px; color: #777; line-height: 1.5; margin-bottom: 10px; }
.update-date { font-size: 11px; color: #aaa; }

/* ── FOOTER ── */
.site-footer { background: #0d1a2e; padding: 32px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { color: white; font-size: 16px; font-weight: 800; opacity: .9; }
.footer-logo span { opacity: .5; font-weight: 400; font-size: 12px; display: block; margin-top: 2px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-dev { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .2px; }
.footer-dev a { color: rgba(255,255,255,.55) !important; text-decoration: none !important;
                font-weight: 700; letter-spacing: .4px; transition: color .2s; }
.footer-dev a:hover { color: rgba(255,255,255,.9) !important; text-decoration: none !important; }

/* ══════════════════════════════════════════
   MÓDULO DE USUÁRIOS — Estilos completos
   ══════════════════════════════════════════ */

/* ── Page wrapper ── */
.page-wrap { padding: 32px 24px; max-width: 1200px; margin: 0 auto; }

/* ── Page header ── */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.page-title { font-size: 26px; font-weight: 800; color: #1e2d5a; margin: 0; }
.page-subtitle { font-size: 13px; color: #888; margin: 4px 0 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: #1a7abf; text-decoration: none; font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* ── Botão com ícone ── */
.btn-icon {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; padding: 10px 20px; font-size: 13px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer;
}
.btn-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 15px; font-weight: 700;
  border-radius: 8px; border: none; cursor: pointer;
}
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: #555; background: white; border: 1.5px solid #dde1e7;
  border-radius: 8px; text-decoration: none; cursor: pointer; transition: border .2s;
}
.btn-ghost:hover { border-color: #aaa; }

/* ── Table card ── */
.table-card {
  background: white; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); overflow: hidden;
}

/* ── TABELA DE DADOS ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #f8f9fc; color: #6b7280; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 14px 20px; text-align: left; border-bottom: 1px solid #e8eaed;
}
.data-table td { padding: 14px 20px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: #fafbff; }
.row-inactive td { opacity: .55; }

/* User cell */
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.user-name { font-weight: 700; color: #1e2d5a; font-size: 13px; }
.user-id   { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.user-email { font-size: 13px; color: #374151; }
.user-setor { font-size: 13px; color: #374151; font-weight: 500; }
.user-cargo { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* ── BADGES ── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-blue  { background: #dbeafe; color: #1e40af; }
.badge-gray  { background: #f3f4f6; color: #374151; }

/* ── Action group ── */
.action-group {
  display: flex; align-items: center; gap: 4px; justify-content: flex-end;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; background: #f0f4f8; color: #1a7abf;
  transition: background .15s;
}
.action-btn:hover          { background: #dbeafe; }
.action-btn-secondary      { background: #f3f4f6; color: #374151; }
.action-btn-secondary:hover { background: #e5e7eb; }
.action-btn-danger         { background: #fef2f2; color: #dc2626; }
.action-btn-danger:hover   { background: #fee2e2; }
.action-btn-success        { background: #f0fdf4; color: #16a34a; }
.action-btn-success:hover  { background: #dcfce7; }

/* ── Alert ── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 24px;
  font-size: 14px; font-weight: 500;
}
.alert-error { background: #fff0f0; border: 1px solid #fca5a5; color: #b91c1c; }

/* ── Form layout (main + sidebar) ── */
.form-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start;
}
.form-main { display: flex; flex-direction: column; gap: 20px; }
.form-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── Form card ── */
.form-card {
  background: white; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.form-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.form-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-card-title { font-size: 15px; font-weight: 700; color: #1e2d5a; margin: 0; }

/* ── Fields ── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 4px; }
.field-group { margin-bottom: 20px; }
.field-label {
  display: block; font-size: 12px; font-weight: 700; color: #374151;
  margin-bottom: 8px; letter-spacing: .2px;
}
.required { color: #e53e3e; }
.field-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #dde1e7; border-radius: 8px;
  font-size: 14px; color: #111; outline: none; transition: border .2s, box-shadow .2s;
  box-sizing: border-box; background: white;
}
.field-input:focus { border-color: #1a7abf; box-shadow: 0 0 0 3px rgba(26,122,191,.1); }
.field-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-hint { font-size: 11px; color: #9ca3af; margin-top: 5px; display: block; }
.field-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 14px; border: 1.5px dashed #dde1e7; border-radius: 8px;
  font-size: 13px; color: #1a7abf; text-decoration: none; width: 100%;
  box-sizing: border-box; font-weight: 600;
}
.field-link-btn:hover { border-color: #1a7abf; background: #f0f8ff; }

/* ── Toggle switch ── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-input { display: none; }
.toggle-track {
  width: 44px; height: 24px; background: #dde1e7; border-radius: 12px;
  position: relative; flex-shrink: 0; transition: background .2s;
}
.toggle-input:checked + .toggle-track { background: #1a7abf; }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: white; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle-label { font-size: 14px; color: #374151; font-weight: 500; }

/* ── Password field ── */
.field-password-wrap { position: relative; }
.field-password-wrap .field-input { padding-right: 44px; }
.field-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px;
}
.field-eye:hover { color: #374151; }
.pwd-strength {
  height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.pwd-strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }

/* ── Form actions ── */
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.form-divider { border: none; border-top: 1px solid #f3f4f6; margin: 20px 0; }

/* ── User identity banner ── */
.user-identity-banner {
  display: flex; align-items: center; gap: 16px;
  background: #f8f9fc; border-radius: 10px; padding: 16px 20px; margin-bottom: 4px;
}

/* ── Avatar preview ── */
.avatar-preview {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 4px;
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; letter-spacing: 1px;
}

/* ── Tips card ── */
.tips-card { background: #f8f9fc; box-shadow: none; border: 1px solid #e8eaed; }
.tips-title { font-size: 13px; font-weight: 700; color: #1e2d5a; margin: 0 0 12px; }
.tips-list { margin: 0; padding-left: 16px; }
.tips-list li { font-size: 12px; color: #6b7280; margin-bottom: 6px; line-height: 1.5; }

/* ══════════════════════════════════════════
   RESPONSIVIDADE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-sidebar { flex-direction: row; flex-wrap: wrap; }
  .form-sidebar .form-card { flex: 1; min-width: 200px; }
}

@media (max-width: 768px) {
  .page-wrap { padding: 20px 16px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .action-group { gap: 2px; }
  .action-btn span, .action-btn svg { display: none; }
  .action-btn { padding: 8px 10px; font-size: 11px; }
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) { display: none; }
  .form-sidebar { flex-direction: column; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero-image-side { display: none; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 28px; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .main-nav { display: none; }
  .header-inner { padding: 0 16px; }
  .data-table th:nth-child(4),
  .data-table td:nth-child(4),
  .data-table th:nth-child(2),
  .data-table td:nth-child(2) { display: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ══════════════════════════════════
   LIGHTBOX NAV BUTTONS
   ══════════════════════════════════ */
.lb-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); color: white;
  width: 48px; height: 72px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.lb-nav-btn:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-50%) scale(1.05);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ══════════════════════════════════
   MURAL
   ══════════════════════════════════ */
.mural-wrap { max-width: 640px; margin: 0 auto; padding: 32px 24px; }

/* Compose */
.mural-compose {
  background: white; border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.compose-form { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.compose-textarea {
  width: 100%; border: none; outline: none; resize: none;
  font-size: 15px; color: #111; font-family: 'Segoe UI', sans-serif;
  min-height: 44px; background: transparent; line-height: 1.5;
}
.compose-textarea::placeholder { color: #aaa; }
.compose-footer {
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px; border-top: 1px solid #f0f0f0; flex-wrap: wrap;
}
.compose-foto-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; color: #1a7abf; background: #e8f4fb;
  flex-shrink: 0; transition: background .15s;
}
.compose-foto-btn:hover { background: #c8e4f7; }

/* Avatar sizes */
.mural-av    { width: 44px; height: 44px; font-size: 16px; flex-shrink: 0; }
.mural-av-sm { width: 32px; height: 32px; font-size: 12px; flex-shrink: 0; }

/* Feed */
.mural-feed { display: flex; flex-direction: column; gap: 16px; }
.mural-empty { text-align: center; padding: 60px 24px; color: #aaa; font-size: 15px; }

/* Post card */
.mural-post {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.mural-post-header {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px 0;
}
.mural-author-name {
  font-size: 14px; font-weight: 700; color: #1e2d5a;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.mural-post-meta { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.mural-delete-btn {
  background: none; border: none; cursor: pointer; color: #d1d5db;
  font-size: 24px; line-height: 1; padding: 2px 6px; border-radius: 6px;
  transition: color .15s; flex-shrink: 0;
}
.mural-delete-btn:hover { color: #e53e3e; background: #fff0f0; }
.mural-post-text {
  padding: 14px 20px; font-size: 14px; color: #374151;
  line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}
.mural-post-img img {
  width: 100%; max-height: 500px; object-fit: cover; display: block;
}

/* Actions bar */
.mural-actions {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px 10px; border-top: 1px solid #f3f4f6;
}
.mural-like-btn, .mural-comment-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: none; border: none; cursor: pointer;
  border-radius: 8px; font-size: 13px; color: #6b7280; font-weight: 500;
  transition: background .15s;
}
.mural-like-btn:hover, .mural-comment-toggle:hover { background: #f3f4f6; }
.mural-like-btn.liked { color: #e53e3e; font-weight: 700; }
.mural-like-btn.liked .like-icon { display: inline-block; animation: pop .2s ease; }
@keyframes pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* Comments section */
.mural-comments { padding: 4px 16px 16px; background: #fafbfc; border-top: 1px solid #f0f2f5; }
.mural-comment  { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.comment-bubble {
  flex: 1; background: white; border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); min-width: 0;
}
.comment-author { font-size: 12px; font-weight: 700; color: #1e2d5a; margin-bottom: 3px; }
.comment-text   { font-size: 13px; color: #374151; line-height: 1.5; word-break: break-word; }
.comment-form   { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.comment-input  {
  flex: 1; padding: 9px 14px; border: 1.5px solid #e5e7eb; border-radius: 20px;
  font-size: 13px; outline: none; transition: border .2s; min-width: 0;
}
.comment-input:focus { border-color: #1a7abf; }
.comment-send {
  width: 36px; height: 36px; border-radius: 50%; background: #1a7abf; color: white;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.comment-send:hover { background: #145f9a; }

/* Responsive */
@media (max-width: 680px) {
  .mural-wrap { padding: 16px 12px; }
  .mural-post-header { padding: 14px 14px 0; }
  .mural-post-text   { padding: 12px 14px; }
  .mural-actions     { padding: 4px 6px 8px; }
  .mural-comments    { padding: 4px 10px 14px; }
  .mural-like-btn, .mural-comment-toggle { padding: 6px 8px; font-size: 12px; }
}

/* ── Carousel ── */
.mural-carousel {
  position: relative; overflow: hidden; background: #111;
  /* Proporção 4:3 fixa — imagens sempre consistentes independente do tamanho original */
  aspect-ratio: 4 / 3;
}

/* Slide ocupa todo o container */
.carousel-slide {
  position: absolute; inset: 0; line-height: 0;
}
.carousel-slide.cs-hidden { display: none; }

/* Imagem preenche o frame com crop central */
.carousel-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: zoom-in; transition: transform .2s ease, filter .2s ease;
}
.carousel-img:hover { transform: scale(1.015); filter: brightness(.97); }

/* Botões de navegação — frosted glass pills */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  color: white; width: 40px; height: 56px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s; z-index: 3;
  opacity: 0; /* esconde por padrão, mostra no hover do carousel */
}
.mural-carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
  background: rgba(255,255,255,.35);
  transform: translateY(-50%) scale(1.06);
}
.carousel-btn svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Dots */
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.carousel-dot.active {
  background: white; width: 24px; border-radius: 4px;
}

/* Contador */
.carousel-counter {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  color: white; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; z-index: 3;
  letter-spacing: .3px;
}

@media (max-width: 480px) {
  .mural-carousel { aspect-ratio: 3 / 2; }
  .carousel-btn   { width: 34px; height: 48px; opacity: 1; }
}

/* ══════════════════════════════════════════
   COMUNICADOS
══════════════════════════════════════════ */

/* ── Toolbar ── */
.com-page { min-height: 80vh; }
.com-toolbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 64px; z-index: 50;
}
.com-toolbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.com-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.com-filter-btn {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  text-decoration: none; color: #555;
  background: #f0f2f5; border: 1px solid transparent;
  transition: all .18s;
}
.com-filter-btn:hover { background: #e2e8f0; color: #222; }
.com-filter-btn.active {
  background: #1a7abf; color: #fff; border-color: #1a7abf;
}
.com-btn-novo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 6px;
  background: #1a7abf; color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .18s, transform .12s;
}
.com-btn-novo:hover { background: #145f99; transform: translateY(-1px); }

/* ── Card grid ── */
.com-grid-wrap {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px;
}
.com-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.com-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex; gap: 16px; padding: 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
  border: 1px solid #edf0f4;
}
.com-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.com-card-emoji {
  font-size: 2rem; flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f9fc; border-radius: 10px;
}
.com-card-body { flex: 1; min-width: 0; }
.com-card-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.com-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
}
.com-card-date { font-size: 11px; color: #999; margin-left: auto; }
.com-card-title {
  font-size: 15px; font-weight: 700; color: #1a202c;
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.com-card-resumo {
  font-size: 13px; color: #666; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.com-card-autor { font-size: 12px; color: #aaa; margin-top: 8px; }

/* ── Empty state ── */
.com-empty {
  text-align: center; padding: 64px 24px; color: #aaa;
}
.com-empty p { margin-top: 12px; font-size: 15px; }

/* ── Pagination ── */
.com-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 32px;
}
.com-page-btn {
  padding: 8px 20px; border-radius: 6px; background: #fff;
  border: 1px solid #d1d9e0; color: #333; font-size: 14px;
  text-decoration: none; transition: all .18s;
}
.com-page-btn:hover { background: #f0f2f5; }
.com-page-info { font-size: 14px; color: #666; }

/* ── Show (detail) ── */
.com-show-wrap {
  max-width: 860px; margin: 0 auto; padding: 32px 24px 64px;
}
.com-show-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 40px 48px;
  border: 1px solid #edf0f4;
}
.com-back-link {
  display: inline-block; margin-bottom: 24px;
  font-size: 13px; color: #1a7abf; text-decoration: none;
}
.com-back-link:hover { text-decoration: underline; }
.com-show-header {
  display: flex; align-items: flex-start; gap: 18px; margin-bottom: 16px;
}
.com-show-emoji {
  font-size: 2.8rem;
  width: 64px; height: 64px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f7f9fc; border-radius: 12px;
}
.com-show-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px;
}
.com-show-date { font-size: 13px; color: #888; }
.com-show-autor { font-size: 13px; color: #aaa; }
.com-show-title {
  font-size: 1.7rem; font-weight: 800; color: #0d1a2e;
  line-height: 1.25; margin-bottom: 12px;
}
.com-show-resumo {
  font-size: 15px; color: #555; line-height: 1.6;
  padding: 14px 18px; background: #f7f9fc; border-radius: 8px;
  border-left: 3px solid #1a7abf; margin-bottom: 28px;
}
.com-show-body {
  font-size: 15px; line-height: 1.75; color: #333;
  border-top: 1px solid #edf0f4; padding-top: 24px;
}
/* Quill ql-editor reset for display mode */
.com-show-body.ql-editor {
  padding: 24px 0 0; border: none; min-height: unset;
}
.com-show-body h2 { font-size: 1.2rem; margin: 24px 0 10px; color: #0d1a2e; }
.com-show-body h3 { font-size: 1.05rem; margin: 20px 0 8px; color: #0d1a2e; }
.com-show-body p  { margin-bottom: 12px; }
.com-show-body ul,
.com-show-body ol { padding-left: 24px; margin-bottom: 12px; }
.com-show-body li { margin-bottom: 4px; }
.com-show-body a  { color: #1a7abf; }

.com-show-actions {
  display: flex; gap: 12px; align-items: center; margin-top: 32px;
  border-top: 1px solid #edf0f4; padding-top: 24px;
}
.com-btn-editar {
  padding: 8px 22px; border-radius: 6px;
  background: #1a7abf; color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .18s;
}
.com-btn-editar:hover { background: #145f99; }
.com-btn-deletar {
  padding: 8px 22px; border-radius: 6px;
  background: #fff; color: #c0392b; font-size: 14px; font-weight: 600;
  border: 1px solid #c0392b; cursor: pointer;
  transition: all .18s;
}
.com-btn-deletar:hover { background: #c0392b; color: #fff; }

/* ── Form ── */
.com-form-wrap {
  max-width: 820px; margin: 0 auto; padding: 32px 24px 64px;
}
.com-form-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 36px 44px;
  border: 1px solid #edf0f4;
}
.com-form-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
}
.com-form-header h2 { font-size: 1.35rem; font-weight: 800; color: #0d1a2e; }
.com-field { margin-bottom: 22px; }
.com-label {
  display: block; font-size: 13px; font-weight: 600; color: #374151;
  margin-bottom: 7px;
}
.com-label .req { color: #c0392b; }
.com-input, .com-select, .com-textarea {
  width: 100%; padding: 10px 14px; border-radius: 7px;
  border: 1px solid #d1d9e0; font-size: 14px; color: #1a202c;
  background: #fff; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.com-input:focus, .com-select:focus, .com-textarea:focus {
  outline: none; border-color: #1a7abf;
  box-shadow: 0 0 0 3px rgba(26,122,191,.12);
}
.com-textarea { resize: vertical; line-height: 1.5; }
.com-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Emoji picker */
.com-emoji-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.com-emoji-opt { cursor: pointer; }
.com-emoji-opt input { display: none; }
.com-emoji-opt span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px; font-size: 1.4rem;
  border: 2px solid transparent; background: #f0f2f5;
  transition: all .15s; cursor: pointer;
}
.com-emoji-opt input:checked + span {
  border-color: #1a7abf; background: #e8f4fb;
  box-shadow: 0 0 0 2px rgba(26,122,191,.18);
}
.com-emoji-opt span:hover { background: #e2e8f0; }

/* Quill editor area */
.com-quill-editor {
  border-radius: 0 0 7px 7px; min-height: 220px;
  font-size: 14px; font-family: 'Segoe UI', sans-serif;
}
/* Quill toolbar rounding */
.com-field .ql-toolbar { border-radius: 7px 7px 0 0; border-color: #d1d9e0; }
.com-field .ql-container { border-radius: 0 0 7px 7px; border-color: #d1d9e0; }
.com-field .ql-container:focus-within { border-color: #1a7abf; }

.com-form-footer {
  display: flex; justify-content: flex-end; gap: 12px; align-items: center;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid #edf0f4;
}
.com-btn-cancel {
  padding: 10px 24px; border-radius: 6px;
  background: #f0f2f5; color: #555; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .18s;
}
.com-btn-cancel:hover { background: #e2e8f0; }
.com-btn-submit {
  padding: 10px 28px; border-radius: 6px;
  background: #1a7abf; color: #fff; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; transition: background .18s, transform .12s;
}
.com-btn-submit:hover { background: #145f99; transform: translateY(-1px); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .com-show-card, .com-form-card { padding: 24px 18px; }
  .com-show-title { font-size: 1.3rem; }
  .com-grid { grid-template-columns: 1fr; }
  .com-toolbar-inner { flex-direction: column; align-items: flex-start; }
  .com-btn-novo { align-self: stretch; justify-content: center; }
}

/* ══════════════════════════════════════════
   FOTO DE PERFIL — botões de upload (sidebar usuários)
══════════════════════════════════════════ */
.btn-upload-foto {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: #1a7abf; color: #fff; cursor: pointer;
  border: none; transition: background .18s;
}
.btn-upload-foto:hover { background: #145f99; }
.btn-remove-foto {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #c0392b; font-weight: 600;
  padding: 4px 0; text-decoration: underline;
}
.btn-remove-foto:hover { color: #922b21; }

/* ══════════════════════════════════════════
   MEU PERFIL — página /perfil
══════════════════════════════════════════ */
.perfil-wrap {
  max-width: 620px; margin: 0 auto; padding: 36px 24px 64px;
}
.perfil-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
  padding: 40px 44px;
  border: 1px solid #edf0f4;
}
.perfil-header {
  display: flex; align-items: center; gap: 28px; margin-bottom: 28px;
}
/* Avatar grande com overlay de câmera */
.perfil-avatar-wrap {
  position: relative; flex-shrink: 0;
  width: 100px; height: 100px; border-radius: 50%;
  cursor: pointer;
}
.perfil-avatar-img,
.perfil-avatar-initials {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: white; letter-spacing: 1px;
}
.perfil-avatar-img { object-fit: cover; }

.perfil-avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: white; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  opacity: 0;
}
.perfil-avatar-wrap:hover .perfil-avatar-overlay {
  background: rgba(0,0,0,.45); opacity: 1;
}

.perfil-info { flex: 1; min-width: 0; }
.perfil-nome  { font-size: 1.4rem; font-weight: 800; color: #0d1a2e; margin-bottom: 4px; }
.perfil-cargo { font-size: 14px; color: #666; margin-bottom: 4px; }
.perfil-email { font-size: 13px; color: #999; }

.perfil-actions {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid #edf0f4;
  margin-bottom: 12px;
}
.perfil-hint {
  font-size: 12px; color: #bbb; line-height: 1.6; text-align: center;
}

/* Alert de sucesso */
.alert-success {
  display: flex; align-items: center; gap: 8px;
  background: #edf7ed; color: #2d7a2d; border-radius: 8px;
  padding: 12px 16px; font-size: 14px; font-weight: 500;
}

@media (max-width: 480px) {
  .perfil-card { padding: 24px 18px; }
  .perfil-header { flex-direction: column; text-align: center; }
  .perfil-actions { flex-direction: column; }
}

/* ══════════════════════════════════════════
   SETORES — pill genérico
══════════════════════════════════════════ */
.setor-pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
}

/* Pill clicável (picker) */
.setor-pill-opt {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; user-select: none;
  border: 2px solid transparent;
  background: #f0f2f5; color: #555;
  transition: all .15s;
}
.setor-pill-opt:hover { background: #e2e8f0; }
.setor-pill-opt.ativo {
  background: color-mix(in srgb, var(--cor) 15%, white);
  color: var(--cor);
  border-color: color-mix(in srgb, var(--cor) 40%, transparent);
}

.setor-picker { display: flex; flex-wrap: wrap; gap: 8px; }

/* Badge de visibilidade no card de comunicado */
.com-vis-badge {
  font-size: 14px; cursor: help;
}
.com-segmentacao-info {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; background: #f7f9fc; border-radius: 8px;
  font-size: 13px; color: #666; margin-bottom: 20px;
  border: 1px solid #edf0f4;
}
.com-segmentacao-info strong { color: #333; }

/* ── Seletor de visibilidade (form comunicado) ── */
.com-visibilidade-field { margin-top: 8px; }
.vis-options {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.vis-opt {
  flex: 1; min-width: 160px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 10px; cursor: pointer;
  border: 2px solid #e2e8f0; background: #fff;
  transition: all .18s;
}
.vis-opt:hover { border-color: #b0c4d8; }
.vis-opt.ativo { border-color: #1a7abf; background: #e8f4fb; }
.vis-opt input { display: none; }
.vis-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.vis-opt strong { display: block; font-size: 13px; color: #1a202c; margin-bottom: 2px; }
.vis-opt small  { font-size: 11px; color: #888; line-height: 1.4; }

.vis-panel {
  background: #f7f9fc; border-radius: 10px; padding: 16px;
  border: 1px solid #edf0f4; margin-top: 4px;
}
.vis-panel-hint { font-size: 13px; color: #666; margin-bottom: 12px; }

/* ── Picker de usuários ── */
.usuario-picker {
  display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px;
  overflow-y: auto;
}
.usuario-pick-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 24px;
  border: 2px solid #e2e8f0; background: #fff;
  cursor: pointer; font-size: 13px; color: #333;
  transition: all .15s; user-select: none;
}
.usuario-pick-item:hover { border-color: #b0c4d8; }
.usuario-pick-item.ativo { border-color: #1a7abf; background: #e8f4fb; color: #1a7abf; }
.usuario-pick-item.ativo .pick-check { opacity: 1; }
.user-pick-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  object-fit: cover;
}
.pick-check { opacity: 0; transition: opacity .15s; }

/* ── Admin setores page ── */
.setores-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.setores-form-card { width: 300px; flex-shrink: 0; }

@media (max-width: 768px) {
  .vis-options { flex-direction: column; }
  .vis-opt { min-width: unset; }
  .setores-form-card { width: 100%; }
  .setores-layout { flex-direction: column; }
}

/* ═══════════════════════════════════════
   DOCUMENTOS MODULE
   ═══════════════════════════════════════ */

/* Toolbar */
.docs-wrap        { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.docs-toolbar     { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
                    justify-content: space-between; margin-bottom: 28px; }
.docs-toolbar-left  { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-toolbar-right { display: flex; gap: 10px; align-items: center; }

.cat-pill { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
            background: #f0f2f5; color: #555; text-decoration: none; border: 1.5px solid transparent;
            transition: all .15s; }
.cat-pill:hover  { background: #e2e6ea; }
.cat-pill.ativo  { background: color-mix(in srgb, var(--cor, #1a7abf) 15%, white);
                   color: var(--cor, #1a7abf); border-color: var(--cor, #1a7abf); }

.fav-toggle { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
              background: #fff8e1; color: #b07d00; border: 1.5px solid #f6d860;
              text-decoration: none; cursor: pointer; transition: all .15s; }
.fav-toggle.ativo { background: #fef3c7; color: #92610a; border-color: #f59e0b; }

.btn-primary-sm { padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
                  background: #1a7abf; color: #fff; text-decoration: none; white-space: nowrap; }

/* Grid */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
             gap: 16px; }

.doc-card { background: #fff; border-radius: 12px; border: 1.5px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,.04); position: relative;
            transition: box-shadow .15s, border-color .15s; }
.doc-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.10); border-color: #cbd5e0; }

.doc-card-link { display: flex; gap: 14px; padding: 18px 44px 18px 18px;
                 text-decoration: none; color: inherit; }
.doc-card-icon { font-size: 36px; flex-shrink: 0; line-height: 1; }
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-title{ font-size: 14px; font-weight: 600; color: #1a202c; line-height: 1.4;
                 margin-bottom: 4px; }
.doc-card-desc { font-size: 12px; color: #718096; margin-bottom: 8px; line-height: 1.4; }
.doc-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.doc-cat-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.doc-meta-item { font-size: 11px; color: #a0aec0; }

.doc-fav-btn { position: absolute; top: 12px; right: 12px; background: none; border: none;
               font-size: 18px; cursor: pointer; opacity: .5; transition: opacity .15s; padding: 4px; }
.doc-fav-btn:hover, .doc-fav-btn.favoritado { opacity: 1; }

/* Empty */
.docs-empty { text-align: center; padding: 60px 20px; color: #718096; }

/* Show page */
.doc-show-wrap  { max-width: 860px; margin: 0 auto; padding: 32px 16px; }
.doc-show-card  { background: #fff; border-radius: 16px; padding: 36px 40px;
                  border: 1.5px solid #e2e8f0; }
.doc-show-header { margin: 16px 0 24px; }
.doc-show-title  { font-size: 26px; font-weight: 700; color: #1a202c; margin: 10px 0 8px; }
.doc-show-desc   { color: #718096; font-size: 15px; margin-bottom: 10px; }
.doc-show-meta   { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #a0aec0; margin-top: 10px; }
.doc-show-actions{ display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
                   margin-bottom: 24px; }
.doc-fav-btn-lg  { padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
                   background: #fff8e1; color: #b07d00; border: 1.5px solid #f6d860; cursor: pointer; }
.doc-fav-btn-lg.favoritado { background: #fef3c7; }

.doc-pdf-preview { border-radius: 8px; overflow: hidden; margin: 24px 0;
                   border: 1.5px solid #e2e8f0; background: #f7fafc; }
.doc-pdf-fallback { font-size: 13px; color: #718096; padding: 8px; text-align: center; display: none; }

/* Version history */
.doc-versoes       { margin-top: 32px; }
.doc-versoes-title { font-size: 16px; font-weight: 700; color: #2d3748; margin-bottom: 12px; }
.doc-versoes-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-versoes-table th { background: #f7fafc; padding: 8px 12px; text-align: left;
                         font-weight: 600; color: #4a5568; border-bottom: 2px solid #e2e8f0; }
.doc-versoes-table td { padding: 8px 12px; border-bottom: 1px solid #f0f2f5; }
.versao-atual td    { background: #f0f9ff; }
.badge-atual        { background: #1a7abf; color: #fff; font-size: 10px; font-weight: 700;
                      padding: 2px 6px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }

/* Doc form — dropzone */
.doc-dropzone { border: 2px dashed #cbd5e0; border-radius: 10px; padding: 28px 20px;
                text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
                background: #fafbfc; }
.doc-dropzone:hover, .doc-dropzone.dragover { border-color: #1a7abf; background: #f0f7ff; }
.doc-dropzone input[type=file] { display: none; }
.dropzone-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center;
                         color: #718096; cursor: pointer; }
.dropzone-chosen  { display: flex; align-items: center; justify-content: center;
                    gap: 8px; color: #2d7a2d; font-weight: 600; font-size: 14px; }

.doc-arquivo-atual { background: #f0f9ff; border: 1px solid #bee3f8; border-radius: 8px;
                     padding: 10px 14px; font-size: 13px; color: #2b6cb0; margin-bottom: 10px; }

/* Admin categories page */
.admin-page-wrap  { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.admin-page-header{ margin-bottom: 24px; }
.admin-page-title { font-size: 22px; font-weight: 700; color: #1a202c; }
.admin-two-col    { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 768px) { .admin-two-col { grid-template-columns: 1fr; } }
.admin-col-main   {}
.admin-col-side   {}
.admin-table      { width: 100%; border-collapse: collapse; background: #fff;
                    border-radius: 10px; overflow: hidden; border: 1.5px solid #e2e8f0; font-size: 14px; }
.admin-table th   { background: #f7fafc; padding: 10px 14px; text-align: left;
                    font-weight: 600; color: #4a5568; border-bottom: 2px solid #e2e8f0; }
.admin-table td   { padding: 10px 14px; border-bottom: 1px solid #f0f2f5; }
.admin-table tr:last-child td { border-bottom: none; }
.side-card        { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 22px; }
.side-card-title  { font-size: 15px; font-weight: 700; color: #2d3748; margin-bottom: 18px; }
.color-swatch     { display: inline-block; width: 14px; height: 14px; border-radius: 3px;
                    vertical-align: middle; margin-right: 4px; }
.btn-danger-sm    { background: none; border: 1px solid #fc8181; color: #c53030; border-radius: 6px;
                    padding: 4px 10px; font-size: 12px; cursor: pointer; }
.btn-danger-sm:hover { background: #fff5f5; }
.btn-edit-sm      { background: none; border: 1px solid #90cdf4; color: #2b6cb0; border-radius: 6px;
                    padding: 4px 10px; font-size: 12px; cursor: pointer; text-decoration: none; display:inline-block; }
.btn-edit-sm:hover, .btn-edit-sm.active { background: #ebf8ff; }
.actions-cell     { display: flex; gap: 6px; align-items: center; }
.row-editing      { background: #ebf8ff; }
.side-card--editing { border-color: #4299e1; }
/* Emoji picker */
.emoji-picker       { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px;
                      max-height: 220px; overflow-y: auto; background: #fafafa; }
.emoji-group        { margin-bottom: 8px; }
.emoji-group:last-child { margin-bottom: 0; }
.emoji-group-label  { display: block; font-size: 10px; font-weight: 700; color: #a0aec0;
                      text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.emoji-grid         { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-btn          { background: none; border: 1px solid transparent; border-radius: 6px;
                      font-size: 18px; width: 32px; height: 32px; cursor: pointer; line-height: 1;
                      padding: 0; display: flex; align-items: center; justify-content: center;
                      transition: background .12s; }
.emoji-btn:hover    { background: #edf2f7; border-color: #cbd5e0; }
.emoji-btn.selected { background: #bee3f8; border-color: #4299e1; }
.flash-ok  { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749;
             padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash-err { background: #fff5f5; border: 1px solid #fc8181; color: #c53030;
             padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.empty-msg { color: #a0aec0; font-size: 14px; padding: 20px 0; }
.form-field  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 5px; }
.form-input  { width: 100%; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px;
               font-size: 14px; outline: none; transition: border-color .15s; box-sizing: border-box; }
.form-input:focus { border-color: #1a7abf; }
.btn-primary { background: #1a7abf; color: #fff; border: none; border-radius: 8px;
               padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: #0d5a8f; }
.btn-secondary { background: #fff; color: #1a7abf; border: 1.5px solid #1a7abf;
                 border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600;
                 text-decoration: none; cursor: pointer; }
.btn-danger { background: #e53e3e; color: #fff; border: none; border-radius: 8px;
              padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn   { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
              background: #f0f2f5; color: #555; text-decoration: none; border: 1.5px solid transparent; }
.page-btn.active { background: #1a7abf; color: #fff; border-color: #1a7abf; }
.page-btn:hover  { background: #e2e6ea; }
}
