/* Dashboard hero */
.gsv2-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px;max-width:1540px;margin:0 auto 18px;min-height:0;padding:0;position:relative}
.gsv2-top--single{grid-template-columns:minmax(0,1fr)}
.gsv2-top:after{content:none}
.gsv2-kicker{display:inline-flex;align-items:center;gap:10px;color:var(--gsv2-gold);font-size:11px;text-transform:uppercase;letter-spacing:.28em;font-weight:800}
.gsv2-hero{position:relative;z-index:1;align-self:end;width:100%;padding:clamp(10px,1.4vw,18px) 0 6px}
.gsv2-hero h1{font-family:var(--gsv2-serif);font-size:clamp(44px,6vw,76px);line-height:.96;font-weight:400;color:#fff;margin:0 0 14px}
.gsv2-hero h1 em{color:var(--gsv2-gold-light);font-style:italic}
.gsv2-hero p{max-width:620px;color:#d8d0c7;line-height:1.75;font-size:15px}
.gsv2-title-with-icon{display:flex;align-items:center;gap:16px}
.gsv2-title-icon{width:56px;height:56px;color:var(--gsv2-gold-light);display:grid;place-items:center;flex:0 0 auto}
.gsv2-title-icon svg{width:42px;height:42px;stroke-width:1.55}
.gsv2-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.gsv2-btn,.gsv2-icon-btn{border:1px solid rgba(201,168,76,.24);border-radius:16px;min-height:44px;padding:0 18px;background:rgba(201,168,76,.07);color:var(--gsv2-gold-light)!important;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-transform:uppercase;letter-spacing:.13em;font-size:11px;font-weight:900;cursor:pointer;transition:.18s ease}
.gsv2-btn.primary{background:linear-gradient(135deg,var(--gsv2-gold-dark),var(--gsv2-gold),var(--gsv2-gold-light));border-color:var(--gsv2-gold);color:var(--fived-input)!important}
.gsv2-btn.danger{border-color:rgba(255,82,82,.35);background:rgba(255,82,82,.08);color:#ffd1d1!important}
.gsv2-btn:hover,.gsv2-icon-btn:hover{transform:translateY(-2px);border-color:rgba(232,212,139,.55);box-shadow:0 14px 34px rgba(0,0,0,.24)}


/* 5D fix: título principal do Painel Staff deve manter Cormorant Garamond */
.ge-staff-v2 .gsv2-hero h1,
.ge-staff-v2 .gsv2-hero h1 > span:not(.gsv2-title-icon),
.ge-staff-v2 .gsv2-hero h1 em {
  font-family: var(--gsv2-serif, "Cormorant Garamond") !important;
}

.ge-staff-v2 .gsv2-hero h1 > span:not(.gsv2-title-icon) {
  display: block;
  font-weight: 400 !important;
  line-height: .96;
  color: #fff;
}

.ge-staff-v2 .gsv2-hero h1 em {
  color: var(--gsv2-gold-light, var(--fived-gold-light)) !important;
  font-style: italic;
  font-weight: 400 !important;
}

/* 5D fix: ações do hero no canto superior direito */
.ge-staff-v2 .gsv2-hero {
  position: relative;
  padding-right: 360px;
}

.ge-staff-v2 .gsv2-hero .gsv2-hero-actions {
  position: absolute;
  top: 18px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  z-index: 3;
}

.ge-staff-v2 .gsv2-hero .gsv2-btn {
  white-space: nowrap;
}

/* Mobile/tablet: volta para baixo do texto para não esmagar o título */
@media (max-width: 1024px) {
  .ge-staff-v2 .gsv2-hero {
    padding-right: 0;
  }

  .ge-staff-v2 .gsv2-hero .gsv2-hero-actions {
    position: static;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 18px;
  }
}

@media (max-width: 768px) {
  .ge-staff-v2 .gsv2-hero .gsv2-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ge-staff-v2 .gsv2-hero .gsv2-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 5D fix: no mobile os botões do hero ficam na vertical */
@media (max-width: 768px) {
  .ge-staff-v2 .gsv2-hero .gsv2-hero-actions {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .ge-staff-v2 .gsv2-hero .gsv2-btn {
    width: 100% !important;
    min-height: 44px;
  }
}

/* 5D fix: garantir botões do hero em coluna no mobile. */
@media (max-width: 768px){
  body.ge-staff-v2-template .ge-staff-v2 .gsv2-hero .gsv2-hero-actions{
    position: static!important;
    display: flex!important;
    flex-direction: column!important;
    align-items: stretch!important;
    justify-content: flex-start!important;
    flex-wrap: nowrap!important;
    width: 100%!important;
    gap: 10px!important;
  }

  body.ge-staff-v2-template .ge-staff-v2 .gsv2-hero .gsv2-hero-actions .gsv2-btn{
    width: 100%!important;
    max-width: none!important;
    justify-content: center!important;
  }
}

/* 5D ajuste: manter 'Baixar relatório' dourado no mobile */
@media (max-width: 768px) {
  body.ge-staff-v2-template .ge-staff-v2 .gsv2-hero .gsv2-hero-actions a.gsv2-btn:not(.primary),
  body.ge-staff-v2-template .ge-staff-v2 .gsv2-top .gsv2-hero .gsv2-hero-actions a.gsv2-btn:not(.primary),
  .ge-staff-v2 .gsv2-hero .gsv2-hero-actions a.gsv2-btn:not(.primary) {
    color: var(--gsv2-gold-light, var(--fived-gold-light)) !important;
    -webkit-text-fill-color: var(--gsv2-gold-light, var(--fived-gold-light)) !important;
    font-weight: 850 !important;
  }
}
