/* - - - - - - - - - - - - - - - - -

CSS TEMA COMUM (MEU PERFIL)

- - - - - - - - - - - - - - - - - */

*:not(.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-light, .fa-brands) {
  font-family: 'Roboto', sans-serif !important;
}

.fa, .fas, .fa-solid { font-family: "Font Awesome 5 Free" !important; font-weight: 900 !important; }
.far, .fa-regular   { font-family: "Font Awesome 5 Free" !important; font-weight: 400 !important; }
.fab, .fa-brands    { font-family: "Font Awesome 5 Brands" !important; font-weight: 400 !important; }

i[class^="fa"],
i[class*=" fa-"] {
  font-style: normal !important;
}


body{
  color: #141414 !important;
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 0.9rem !important;
}

body .body-page {
  background: #f9f6f3 !important;
}

.main-page{
    margin-top: 30px !important;
}

.header-main{
    display: none !important;
}


 .main-menu{
    display: none !important;
 }

.text-gray {
    color: #141414 !important;
}

.topbar {
  background: #1C1C1C;
  height: 40px;
  display: flex;
  align-items: center; 
  justify-content: space-between;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #fff;
}

/* grupos */
.left-group,
.right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.right-group{
  text-transform: lowercase !important;
}

.topbar a {
  color: #fff;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.topbar a:hover {
  text-decoration: underline !important;
  color: #fff !important;
}

.ip-link::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background: url("/sites/default/files/epic/ip-icone-branco.svg") no-repeat center center;
  background-size: contain;
}

.perfil-link::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  background: url("/sites/default/files/epic/user-branco.svg") no-repeat center center;
  background-size: contain;
}



.header-main .branding {
  display: flex;
  align-items: center;
}

.header-main .branding .site-branding-logo {
  display: flex;
  align-items: center;
}

.header-main .branding .logo-site {
  height: auto;
}

header.header-2 .main-menu {
  background: #f26522 !important;
}

.navigation .gva_menu>li:first-child>a {
  padding-left: 0 !important;
}

.gavias_sliderlayer .tp-bullets .tp-bullet,
#gavias_slider_single .tp-bullets .tp-bullet {
  width: 10px !important;
  height: 10px !important;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, 0.4) !important;
}

.gavias_sliderlayer .tp-bullets .tp-bullet.selected,
#gavias_slider_single .tp-bullets .tp-bullet.selected {
  background: #fff !important;
}

.gavias_sliderlayer .tparrows,
#gavias_slider_single .tparrows {
  width: 36px !important;
  height: 36px !important;
  border-radius: 99px !important;
  line-height: 36px !important;
  color: rgb(0, 0, 0) !important;
  font-size: 18px !important;
  background: rgba(255, 255, 255) !important;
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.05) !important;
}

.seccao-parceiros {
  color: #ffffff !important;
}

.btn {
  border: none !important;
  background-color: #0000ff !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 13px 35px 13px 35px !important;
  border-radius: 99px !important;
}

.btn:hover {
  background-color: #000 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.h2azul{
    font-family: "Nunito", sans-serif !important;
    text-align: center;
    color: #0000ff;
    font-weight: bold;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

.h2branco{
    font-family: "Nunito", sans-serif !important;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.seccao-noticias .h2azul{
    margin-bottom: 10px;
}

.seccao-parceiros .h2branco{
    margin-bottom: 30px;
}

/*ocultar o título do bloco notícias na página inicial*/
.seccao-noticias .block-title{
    display: none !important;
}

#footer {
    color: #fff !important;
    background: #1C1C1C !important;
}

.perfil-tabs-pill {
  display: inline-flex !important;
  background: #b3b3b333 !important;     
  border-radius: 9999px !important;   
  padding: 4px !important;
  gap: 4px !important;
  margin-bottom: 10px !important;
}

.perfil-tabs-pill .perfil-tab {
  flex: 1 1 auto !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  text-align: center !important;
  font-size: 0.8rem !important;
  color: #222222 !important;         
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease !important;
}

body.path-formador .perfil-tabs-pill .tab-formador {
  background: #f26522 !important;
  color: #fff !important;
}

body.path-formando .perfil-tabs-pill .tab-formando {
  background: #f26522 !important;
  color: #fff !important;
}


.atividade-lista {
  font-family: "Roboto", Arial, sans-serif !important;
  background-color: #fff;
  /*border: 1px solid #ddd;*/
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  justify-content: space-between;
}

.atividade-lista:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.atividade-lista h3 {
  font-family: "Roboto", Arial, sans-serif !important;
  margin-top: 0;
  font-size: 1.05rem !important;
  color: #333;
  font-weight: bold;
  margin-bottom: 0.9rem !important;
}

.atividade-lista p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

.card-atividade a {
  color: #3f3f3f !important;
  text-decoration: none !important;
}

.card-atividade a:hover {
  color: #3f3f3f !important;
  text-decoration: underline !important;
}


.card-atividade-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}


.footer-card-atividade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.footer-card-left {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-card-right {
  text-align: right;
  font-weight: 500;
}

.eixo-card {
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.30rem 0.55rem !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  color: #f26522 !important;
  background-color: #b3b3b333 !important;
  font-weight: 600;
}

.eixo-card:not(:last-child) {
  margin-right: 6px !important;
}

/* Variações */
.eixo-card-rosa {
  background-color: #b3b3b333 !important;
  color: #ff4da5 !important;
}

.eixo-card-verde {
  background-color: #b3b3b333 !important;
  color: #7cb342 !important;
}

.eixo-card-laranja {
  background-color: #b3b3b333 !important;
  color: #ff4a00 !important;
}

.eixo-card-azul {
  background-color: #b3b3b333 !important;
  color: #0000ff !important;
}

.eixo-card-azul-ip {
  background-color: #b3b3b333 !important;
  color: #00a9f0 !important;
}

.eixo-card-amarelo-ufm {
  background-color: #f6c567 !important;
  color: #fff !important;
}

.tooltip-pers {
  position: relative;
  overflow: visible;
}

.tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  background-color: #b3b3b333 !important;
  color: #555 !important; /*f26522*/
  font-size: .75rem !important;
  padding: .14rem .65rem;
  border-radius: 99px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
  font-weight: normal !important;
  z-index: 999;
}

.tooltip-bubble .tooltip-arrow{
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent; 
  border-top: 6px solid #b3b3b333 !important;
}

.tooltip-pers:hover .tooltip-bubble,
.tooltip-pers:focus-visible .tooltip-bubble{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

body.path-formador .viewmyregistration,
body.path-formando .viewmyregistration {
  margin-bottom: 20px !important;
}

body.path-formador #edit-actions,
body.path-formando #edit-actions {
  display: none !important;
}

/* Campos de texto dentro do form (formador e formando) */
body.path-formador .form-text,
body.path-formando .form-text {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  padding: 10px 18px !important;
  border: 1px solid #ddd !important;
  background: #faf7f4 !important;
  outline: none;
}

body.path-formador .form-item,
body.path-formando .form-item {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}


/* ===== BASE (outline fino + fill da esquerda p/ direita) ===== */
.btn-card {
  --btn-color: #000;              /* cor por defeito se nenhuma classe definir */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem !important;
  font-weight: bold;
  background: transparent;
  color: var(--btn-color);
  border: 1px solid var(--btn-color);  /* borda mantém a cor do tema */
  overflow: hidden;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 0;
}

.btn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-color);   /* usa a variável, não currentColor */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;                    /* fica atrás do conteúdo */
}

.btn-card:hover {
  color: #fff !important;         /* letras a branco no hover */
}
.btn-card:hover::before {
  transform: scaleX(1);           /* enche da esquerda p/ direita */
}

/* ===== TEMAS (definem a variável) ===== */
.cor-rosa .btn-card       { --btn-color: #ff4da5; }
.cor-verde .btn-card      { --btn-color: #7cb342; }
.cor-laranja .btn-card    { --btn-color: #ff4a00; }
.cor-azul .btn-card       { --btn-color: #0000ff; }
.cor-azul-ip .btn-card    { --btn-color: #00a9f0; }
.cor-laranja-ip .btn-card { --btn-color: #f26522; }
.cor-amarelo-ufm .btn-card    { --btn-color: #f6c567; }


/* Azul */
body.path-formador .cor-azul .form-text:focus,
body.path-formando .cor-azul .form-text:focus {
  border-color: #0000ff !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.25) !important;
}

/* Verde */
body.path-formador .cor-verde .form-text:focus,
body.path-formando .cor-verde .form-text:focus {
  border-color: #7cb342 !important;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.25) !important;
}

/* Laranja */
body.path-formador .cor-laranja .form-text:focus,
body.path-formando .cor-laranja .form-text:focus {
  border-color: #ff4a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 74, 0, 0.25) !important;
}

/* Rosa */
body.path-formador .cor-rosa .form-text:focus,
body.path-formando .cor-rosa .form-text:focus {
  border-color: #ff4da5 !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 165, 0.25) !important;
}


body.path-formador .view-header,
body.path-formando .view-header {
  margin-bottom: 0 !important;
}

.cor-rosa.btn-link {
  background-image: linear-gradient(#ff4da5, #ff4da5) !important;
  background-repeat: no-repeat !important;
  background-position: 0 100% !important;
  background-size: 0% 2px !important;
  transition: background-size 0.3s ease !important;
  text-decoration: none !important;
  color: #ff4da5 !important;
}

.cor-rosa.btn-link:hover {
  background-size: 100% 2px !important;
  text-decoration: none !important;
  color: #ff4da5 !important;
}

.cor-verde.btn-link {
  background-image: linear-gradient(#7cb342, #7cb342) !important;
  background-repeat: no-repeat !important;
  background-position: 0 100% !important;
  background-size: 0% 2px !important;
  transition: background-size 0.3s ease !important;
  text-decoration: none !important;
  color: #7cb342 !important;
}

.cor-verde.btn-link:hover {
  background-size: 100% 2px !important;
  text-decoration: none !important;
  color: #7cb342 !important;
}

.cor-laranja.btn-link {
  background-image: linear-gradient(#ff4a00, #ff4a00) !important;
  background-repeat: no-repeat !important;
  background-position: 0 100% !important;
  background-size: 0% 2px !important;
  transition: background-size 0.3s ease !important;
  text-decoration: none !important;
  color: #ff4a00 !important;
}

.cor-laranja.btn-link:hover {
  background-size: 100% 2px !important;
  text-decoration: none !important;
  color: #ff4a00 !important;
}

.cor-azul.btn-link {
  background-image: linear-gradient(#0000ff, #0000ff) !important;
  background-repeat: no-repeat !important;
  background-position: 0 100% !important;
  background-size: 0% 2px !important;
  transition: background-size 0.3s ease !important;
  text-decoration: none !important;
  color: #0000ff !important;
}

.cor-azul.btn-link:hover {
  background-size: 100% 2px !important;
  text-decoration: none !important;
  color: #0000ff !important;
}

#page-main-content {
  margin-bottom: 50px !important;
}


/* ----------------------------------------------
   HERO STATS (banner + cartões de indicadores)
   ---------------------------------------------- */

/* Secção ocupa 100% da largura do ecrã */
.dxp-hero-stats {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip; /* evita scroll lateral */
  background: #fff;
  margin-top: -31px !important;
}

/* Imagem full-width */
.dxp-hero-stats__img {
  display: block;
  width: 100%;
  height: 420px;           /* altura base — ajusta conforme o design */
  object-fit: cover;       /* recorta mantendo proporções */
}

/* Container interno (alinha com o resto do site) */
.dxp-hero-stats .container {
  position: relative;
  max-width: 1170px;       /* largura útil */
  margin: 0 auto;
  padding: 0 15px;         /* gutter Bootstrap */
}

/* Grid das estatísticas */
.dxp-hero-stats__grid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 25px;           /* faz os cartões “saltarem” fora da imagem */
  width: 100%;
  display: grid;
  grid-gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1170px;
}

/* Cores e estilo dos cartões */
:root {
  --dxp-yellow: #ffffff66;
}

.dxp-stat {
  font-family: "Roboto", Arial, sans-serif !important;
  background: var(--dxp-yellow);
  color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
  padding: 24px 20px;
  text-align: left;
}

.dxp-stat__num {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
}

.dxp-stat__label {
  font-family: "Roboto", Arial, sans-serif !important;
  margin-top: 8px;
  font-size: 18px;
}

/* Espaço entre o final da secção e o conteúdo seguinte */
.dxp-hero-stats + * {
  margin-top: 120px; /* ajusta conforme o bottom usado acima */
}

/* ------------------ RESPONSIVO ------------------ */

/* Tablets grandes (Bootstrap md–lg) */
@media (max-width: 1199.98px) {
  .dxp-hero-stats__grid {
    max-width: 960px;
  }
}

/* Tablets e pequenos laptops */
@media (max-width: 991.98px) {
  .dxp-hero-stats__img {
    height: 360px;
  }
  .dxp-hero-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    bottom: -50px;
  }
}

/* Telemóveis */
@media (max-width: 575.98px) {
  .dxp-hero-stats__img {
    height: 300px;
  }
  .dxp-hero-stats__grid {
    grid-template-columns: 1fr;
    bottom: -40px;
  }
  .dxp-stat__num {
    font-size: 44px;
  }
}

.footer-center{
  display: none !important;
}

#footer .footer-top {
  background: #1c1c1c !important;
}





/* ======= PERFIL – TOPO ======= */
.profile-top{
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.08);
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #ff7e32;
  --accent-ink: #fff;
  max-width: 1200px;
  margin: -30px auto 18px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
}

/* ======= BANNER ======= */
.profile-top .pt-hero{
  position: relative;
  aspect-ratio: 16/4.3;
  background: #ddd;
}
.profile-top .pt-hero img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======= META (avatar + métricas) ======= */
.profile-top .pt-meta{
  background: #fff;
  position: relative;
}
.profile-top .pt-meta-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 22px 22px;
  display: grid;
  grid-template-columns: auto 1fr; /* avatar+nome à esquerda, stats à direita */
  gap: 22px; /* menos espaço entre avatar e stats */
  align-items: center;
}

/* ======= UTILIZADOR (avatar + nome por baixo, alinhados à esquerda) ======= */
.profile-top .pt-user{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-top: -92px; /* faz o avatar subir sobre o banner */
}
.profile-top .pt-user .avatar{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 6px solid #fff; /* anel branco */
}
.profile-top .pt-username{
  font-weight: 700;
  font-size: 18px;
  margin-top: 10px;
}

/* ======= MÉTRICAS ======= */
.profile-top .pt-stats{
  display: grid;
  grid-template-columns: repeat(4, max-content); /* colunas só ocupam o necessário */
  column-gap: clamp(12px, 3.5vw, 50px);          /* espaços menores e fluidos */
  justify-content: end;                          /* encosta o grupo todo à direita */
  justify-items: start;                          /* texto à esquerda dentro de cada bloco */
  align-items: start;
  text-align: left;
}
.profile-top .pt-stat{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.profile-top .pt-num{
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}
.profile-top .pt-label{
  margin-top: 4px;
  font-size: 15px;
  white-space: nowrap;
}

/* ======= TABS ======= */
.profile-top .pt-tabs{
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--accent);
  padding: 10px 8px;
}
.profile-top .pt-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none !important;
  background: transparent;
  color: var(--accent-ink);
  opacity: .8;
  transition: opacity .2s ease, background-color .2s ease;
}
.profile-top .pt-tab:hover{ opacity: 1; }
.profile-top .pt-tab.is-active{
  background: rgba(255,255,255,.2);
  opacity: 1;
  font-weight: 600;
}

/* ======= RESPONSIVO ======= */
@media (max-width: 992px){
  .profile-top .pt-meta-inner{
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }
  .profile-top .pt-user{
    margin-top: -70px;
  }
  .profile-top .pt-user .avatar{
    width: 100px;
    height: 100px;
  }
  .profile-top .pt-stats{
    grid-template-columns: repeat(4, 1fr);
    justify-content: stretch;
  }
}
@media (max-width: 680px){
  .profile-top .pt-hero{ aspect-ratio: 16/7; }
  .profile-top .pt-user{
    margin-top: -60px;
  }
  .profile-top .pt-user .avatar{
    width: 88px;
    height: 88px;
  }
  .profile-top .pt-stats{
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;   /* não encostar no mobile */
    column-gap: 16px;
  }
  .profile-top .pt-tab{ min-width: 140px; }
}
@media (max-width: 420px){
  .profile-top .pt-num{ font-size: 34px; }
  .profile-top .pt-label{ font-size: 13px; }
}

.messages--status {
  font-size: 0.95rem;
  background-color: #e2e3e5;
  border-color: #d6d8db;
  position: relative;
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 2px solid transparent;
  border-radius: .25rem;
}



/* === GRID para organizar Email | IES | Nome | Botão === */
.views-exposed-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 20px;
  align-items: end;
  background: transparent !important;
  padding: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 30px;
}

/* Remover margens default dos items */
.views-exposed-form .form-item {
  margin: 0;
}

/* === LABELS === */
.views-exposed-form .form-item label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Fix específico para o campo IES */
.form-item-field-ies-value {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* === Inputs e Selects === */
.views-exposed-form input.form-text,
.views-exposed-form select.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  height: 42px;
  box-sizing: border-box;
}

/* === Botão Apply === */
#edit-actions {
  margin: 0 !important;
  display: flex;
  align-items: flex-end;
}

#edit-actions input[type="submit"] {
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: none;
  background: #f57f47;   /* laranja claro */
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

#edit-actions input[type="submit"]:hover {
  background: #f26522;   /* laranja NEA */
  box-shadow: none !important;
}

/* === Responsivo === */
@media (max-width: 700px) {
  .views-exposed-form {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
}

/* === BOTÕES ADICIONAR E EXCEL === */
.btn-adicionar,
.btn-excel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  background: #f57f47;  /* laranja claro */
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  cursor: pointer;
  transition: 0.2s ease;
  margin-bottom: 20px;
}

.btn-adicionar{
 margin-right: 10px;
}

.btn-adicionar:hover,
.btn-excel:hover {
  background: #f26522;   /* laranja NEA */
}

.btn-adicionar i,
.btn-excel i {
  color: #fff;
  font-size: 16px;
}

/* Esconder ícones feed */
.xlsx-feed,
.feed-icons {
  display: none !important;
}

/* ====== TABELA ====== */
.cols-6 {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e2e2;
}

/* Cabeçalho */
.cols-6 thead th {
  background: #f9f9f9;
  padding: 14px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #e2e2e2;
  color: #333;
}

/* Linhas */
.cols-6 tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: background 0.15s ease;
}

/* Linhas alternadas */
.cols-6 tbody tr:nth-child(even) {
  background: #fcfcfc;
}

/* Hover em laranja suave */
.cols-6 tbody tr:hover {
  background: #ffe9e1;  /* laranja muito suave */
}

/* Células */
.cols-6 td {
  padding: 12px 12px;
  vertical-align: middle;
  color: #444;
}

/* Coluna editar — botão */
.cols-6 .views-field-edit-user a {
  display: inline-flex;
  padding: 6px 14px;
  background: #f57f47;  /* laranja claro */
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.cols-6 .views-field-edit-user a:hover {
  background: #f26522;  /* laranja NEA */
}

/* Largura da coluna editar */
.cols-6 .views-field-edit-user {
  width: 80px;
  text-align: center;
}


.pager ul.pager__items > li.is-active a {
    background: #f26522 !important;
    color: #fff;
    border-color: #f26522 !important;
}

.pager ul.pager__items > li a:hover {
    background: #f26522 !important;
    color: #fff;
    border-color: #f26522 !important;
}



/* ============================================
   TABELAS UNIVERSAIS BONITAS
   ============================================ */

/* Wrapper para evitar que tabelas largas ultrapassem o ecrã */
.views-entity-form,
.views-view,
.page-content,
.layout-content,
.region-content {
  overflow-x: auto;
}

/* Tabelas — estilo base */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 15px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  overflow: hidden; /* necessário para o arredondado funcionar */
  margin-bottom: 25px;
}

/* Cabeçalhos */
table thead th {
  background: #f9f9f9;
  padding: 14px 12px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #e2e2e2;
  color: #333;
  white-space: nowrap; /* evita cabeçalhos gigantes */
}

/* Linhas */
table tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: background 0.15s ease;
}

/* Linhas alternadas */
table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

/* Hover laranja suave */
table tbody tr:hover {
  background: #ffe9e1; /* laranja suave NEA */
}

/* Células */
table td {
  padding: 12px 12px;
  vertical-align: top;
  color: #444;
  word-break: break-word; /* evita rebentar layout */
}

/* Corrigir tabelas muito largas (11 colunas etc.) */
table th,
table td {
  min-width: 80px; 
}

/* ============================================
   *BOTÕES dentro das tabelas* (editar, eliminar)
   ============================================ */

table a {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 6px;
  background: #f57f47; /* laranja claro */
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: 0.2s ease;
  white-space: nowrap;
}

table a:hover {
  background: #f26522 !important; /* laranja NEA */
}

/* Colunas "editar" ou "eliminar" ficam centradas */
td.views-field-edit-user,
td.views-field-delete-registration {
  text-align: center;
}

/* ============================================
   CORREÇÃO: STICKY HEADER DO DRUPAL
   ============================================ */

/* Impedir que o sticky header sobreponha linhas */
table.sticky-header thead {
  position: static !important;
}

/* Prevenir bugs do sticky + overflow */
table.sticky-header {
  overflow: visible !important;
}


/* Select de Estado dentro da tabela — versão corrigida */
.views-entity-form table select.form-select {
  min-width: 130px;              /* impede que encolha */
  width: 100%;                   /* ocupa a coluna disponível */
  padding: 10px 12px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;

  cursor: pointer;
}

/* Hover */
.views-entity-form table select.form-select:hover {
  border-color: #999;
}

/* Focus (clicado) */
.views-entity-form table select.form-select:focus {
  border-color: #f26522;
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.25);
}
