* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --pri: #1a2b5e;
  --sec: #0e6ff5;
  --acc: #00c9a7;
  --bg: #f0f4f9;
  --card: #fff;
  --txt: #222;
  --muted: #6b7280;
  --sidebar: 230px;
}


/* ── CONTENT ── */
.content {
  padding: 22px 26px;
  flex: 1;
}

/* WELCOME */
.welcome {
  background: linear-gradient(
    130deg,
    var(--pri) 0%,
    #1e4bb8 55%,
    var(--sec) 100%
  );
  border-radius: 16px;
  padding: 26px 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.welcome::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.welcome::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.welcome h2 {
  font-size: 1.3125rem;
  margin-bottom: 5px;
  position: relative;
}
.welcome p {
  opacity: 0.8;
  font-size: 0.8125rem;
  position: relative;
}
.welcome-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  position: relative;
}
.btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.7812rem;
  font-weight: 600;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-light {
  background: #fff;
  color: var(--pri);
}
.btn-light:hover {
  background: #e8efff;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}
.welcome-art {
  font-size: 4.5rem;
  opacity: 0.18;
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* ALERT BANNER */
.alert-strip {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.8125rem;
}
.alert-strip strong {
  color: #92400e;
}
.alert-strip span {
  color: #78350f;
}
.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #92400e;
  font-size: 1rem;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.stat-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat p {
  font-size: 0.7188rem;
  color: var(--muted);
  margin-top: 2px;
}
.stat .trend {
  font-size: 0.6562rem;
  font-weight: 600;
  margin-top: 2px;
}
.up {
  color: #22c55e;
}
.dn {
  color: #ef4444;
}

/* QUICK */
.section-title {
  font-size: 0.8438rem;
  font-weight: 700;
  color: var(--pri);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.qc {
  background: #fff;
  border-radius: 11px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--txt);
  border: 1px solid transparent;
}
.qc:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
  border-color: #dde3ed;
}
.qc .qi {
  font-size: 1.625rem;
  margin-bottom: 6px;
}
.qc p {
  font-size: 0.6562rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

/* MAIN GRID */
.grid-main {
  display: grid;
  /* minmax(0,1fr): permite a coluna esquerda encolher (tabela rola dentro)
     em vez de empurrar a coluna direita pra fora e ser cortada. */
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-bottom: 18px;
}
.grid-bot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-head h3 {
  font-size: 0.8438rem;
  font-weight: 700;
  color: var(--pri);
}
.lk {
  font-size: 0.7188rem;
  color: var(--sec);
  text-decoration: none;
}
.lk:hover {
  text-decoration: underline;
}

/* NEWS */
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ni-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ni-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ni-body {
  flex: 1;
}
.ni-body h4 {
  font-size: 0.8438rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.45;
  color: #1e293b;
}
.ni-meta {
  font-size: 0.6875rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.t-blue {
  background: #eff6ff;
  color: #1e4bb6;
}
.t-green {
  background: #f0fdf4;
  color: #16a34a;
}
.t-orange {
  background: #fff7ed;
  color: #ea580c;
}
.t-red {
  background: #fef2f2;
  color: #dc2626;
}
.t-purple {
  background: #faf5ff;
  color: #7c3aed;
}

/* EVENTS */
.evt {
  display: flex;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f6fb;
  align-items: center;
}
.evt:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.evt-date {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.evt-date .d {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}
.evt-date .m {
  font-size: 0.5312rem;
  text-transform: uppercase;
  opacity: 0.85;
}
.evt h4 {
  font-size: 0.7812rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.evt p {
  font-size: 0.6562rem;
  color: var(--muted);
}
.evt-badge {
  margin-left: auto;
  font-size: 0.625rem;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* BIRTHDAYS */
.bday-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f6fb;
}
.bday-item:last-child {
  border-bottom: none;
}
.av-s {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.bday-item h4 {
  font-size: 0.7812rem;
  font-weight: 600;
}
.bday-item p {
  font-size: 0.6562rem;
  color: var(--muted);
}
.bday-tag {
  margin-left: auto;
  font-size: 0.625rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #fce7f3;
  color: #9d174d;
  font-weight: 600;
}

/* ONLINE */
.online-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f6fb;
}
.online-item:last-child {
  border-bottom: none;
}
.av-s {
  position: relative;
}
.dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.dg {
  background: #22c55e;
}
.dy {
  background: #f59e0b;
}
.dr {
  background: #9ca3af;
}
.online-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
}
.online-item p {
  font-size: 0.6562rem;
  color: var(--muted);
}
.dept-tag {
  margin-left: auto;
  font-size: 0.5938rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: #f0f4f9;
  color: var(--muted);
}

/* DOCS */
.doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f6fb;
}
.doc:last-child {
  border-bottom: none;
}
.doc-ic {
  font-size: 1.25rem;
}
.doc h4 {
  font-size: 0.7812rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.doc p {
  font-size: 0.6562rem;
  color: var(--muted);
}
.doc-btn {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.6562rem;
  border: 1px solid #dde3ed;
  background: #fff;
  cursor: pointer;
  color: var(--sec);
  font-weight: 600;
}

/* OKR */
.prog {
  margin-bottom: 12px;
}
.prog:last-child {
  margin-bottom: 0;
}
.prog-h {
  display: flex;
  justify-content: space-between;
  font-size: 0.7188rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.prog-bar {
  height: 6px;
  background: #f0f4f9;
  border-radius: 3px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: 3px;
}

/* WEATHER / INFO */
.info-card {
  background: linear-gradient(135deg, #0e6ff5, #00c9a7);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
}
.info-card h3 {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-bottom: 6px;
}
.info-card .temp {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}
.info-card p {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 4px;
}
.weather-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.wf {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.6875rem;
}
.wf .wfi {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

@media (max-width: 1200px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .grid-bot {
    grid-template-columns: 1fr 1fr;
  }
}

/* Birthday tag colors */
.bday-tag-today {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.bday-tag-other {
    background: #e8f0fe !important;
    color: #1a73e8 !important;
}

/* ── CARD DE ANIVERSARIANTES COMPACTO ──
   Deixa o card menor na tela de 15": menos padding, avatar menor e o nome do
   setor/cargo em UMA linha com reticencias (antes quebrava em 2-3 linhas e
   esticava o card). Escopado em .bday-card p/ nao mexer no card grande. */
.bday-card {
  padding: 14px 16px;
}
.bday-card .card-head {
  margin-bottom: 8px;
}
.bday-card .bday-item {
  gap: 9px;
  padding: 7px 0;
}
.bday-card .av-s {
  width: 30px;
  height: 30px;
  font-size: 0.6875rem;
}
/* bloco nome+setor: ocupa o espaco restante e permite truncar o texto */
.bday-info {
  flex: 1;
  min-width: 0;
}
.bday-card .bday-item h4 {
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bday-card .bday-item p {
  font-size: 0.625rem;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bday-card .bday-tag {
  flex-shrink: 0;
  align-self: center;
}

/* ── Balão flutuante dos aniversariantes (celular) ──
   No mobile o card ocupava espaço que devia ser dos chamados. Ele some do
   fluxo normal e vira um botão flutuante (FAB); tocar abre o card como um
   painel por cima da tela. No desktop nada muda (fab/backdrop/close ficam
   ocultos e o card segue no lugar de sempre). */
.bday-fab,
.bday-backdrop,
.bday-close {
  display: none;
}

@media (max-width: 768px) {
  .bday-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 18px;
    bottom: 84px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
    z-index: 1060;
  }

  .bday-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1064;
  }

  /* O card some do fluxo normal e vira um painel fixo, escondido por padrão */
  .bday-card {
    display: none;
    position: fixed;
    left: 5%;
    right: 5%;
    top: 12%;
    max-height: 76vh;
    overflow-y: auto;
    z-index: 1065;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
  .bday-card.show-mobile {
    display: block;
  }

  .bday-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
  }

  /* Abre espaço pro botão de fechar (absoluto) não cobrir o link "Ver todos" */
  .bday-card .card-head {
    padding-right: 38px;
  }
}

/* ── CARD DE PRÓXIMOS EVENTOS (DASHBOARD) ── */
.upcoming-events-card {
  padding: 14px 16px;
}
.upcoming-card-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
.upcoming-calendar-icon {
  font-size: 1.05rem;
}
.upcoming-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sec, #0d6efd);
  transition: all 0.15s ease;
}
.upcoming-card-link:hover {
  color: #0a58ca;
  text-decoration: underline !important;
}
.upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.upcoming-event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid #f8fafc;
  transition: all 0.15s ease;
  border-radius: 8px;
}
.upcoming-event-item:hover {
  background-color: #f8fafc;
  transform: translateX(2px);
}
.upcoming-event-item:last-child {
  border-bottom: none;
}
.upcoming-date-box {
  width: 36px;
  height: 40px;
  border-radius: 9px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.upcoming-day {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
}
.upcoming-month {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.92;
  margin-top: 1px;
}
.upcoming-info {
  flex: 1;
  min-width: 0;
}
.upcoming-event-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.upcoming-event-meta {
  font-size: 0.63rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-tag {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50rem;
  white-space: nowrap;
}
