/* Tema inspirado em joyn-group.com: header escuro, hero com gradiente radial navy,
   secções claras, cartões arredondados (20px) e títulos em fonte arredondada. */

:root {
  --joyn-primary: #3e90be;
  --joyn-secondary: #1f3545;
  --joyn-dark: #0d1114;
  --joyn-footer: #0f1b23;
  --joyn-light: #f1f1f1;
  --joyn-radius: 20px;
  --joyn-heading-font: "houschka rounded", "Nunito", "Segoe UI", sans-serif;
  --joyn-text-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --company: var(--joyn-primary);
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--joyn-text-font);
  color: var(--joyn-dark);
  background: #fff;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .brand-mark, .btn {
  font-family: var(--joyn-heading-font);
  font-weight: 700;
}

a {
  color: var(--joyn-primary);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--joyn-dark);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  padding-block: 1rem;
}

/* Empresa ativa: faixa na cor da empresa por baixo do header. */
.site-header.has-company {
  border-bottom: 4px solid var(--company);
}

/* Pastilha da empresa ativa + "Mudar de tenant" */
.tenant-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-left: 1rem;
  padding: .35rem .5rem .35rem .75rem;
  border-radius: 999px;
  background: var(--company);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
  text-decoration: none;
  transition: box-shadow .15s;
}

.tenant-pill:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7);
}

.tenant-pill-logo .company-logo {
  width: 5.5rem;
  height: 1.3rem;
}

.tenant-pill-switch {
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .25);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

/* ---------- Ecrã de escolha de tenant ---------- */

.tenant-screen {
  min-height: 100vh;
  padding-block: 2rem 4rem;
  background: radial-gradient(circle, #0e2b40, #0f2738, #0f2331, #101f2a, #101b23);
  color: #fff;
}

.tenant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.tenant-link {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: .9rem;
}

.tenant-link:hover {
  color: #fff;
}

/* Logótipo do Grupo Joyn (branco) no ecrã de entrada. */
.group-logo {
  height: 2.1rem;
  width: auto;
}

.group-divider {
  width: 1px;
  height: 2.2rem;
  background: rgba(255, 255, 255, .3);
}

/* Botão "Entrar" (SSO Google Workspace): logótipo G sobre fundo branco. */
.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.signin-g {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
}

.tenant-intro {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.tenant-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
}

.tenant-intro .lead {
  color: rgba(255, 255, 255, .75);
}

.tenant-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 2rem;
  border-radius: var(--joyn-radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .18), transparent 50%),
    var(--company);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .2s, box-shadow .2s;
}

.tenant-card:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 20px 45px rgba(0, 0, 0, .4);
}

.tenant-card.active {
  box-shadow: 0 0 0 3px #fff;
}

.tenant-card.disabled {
  opacity: .4;
  pointer-events: none;
  filter: grayscale(.7);
}

.tenant-card-logo .company-logo {
  width: min(100%, 15rem);
  height: 3.6rem;
}

.tenant-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem;
  margin-top: 2rem;
}

.tenant-card-status {
  font-size: .85rem;
  opacity: .9;
}

.tenant-card-account {
  display: block;
  font-size: .75rem;
  opacity: .8;
  word-break: break-all;
}

.site-header .nav-link {
  color: #fff !important;
  font-weight: 500;
  opacity: .85;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  opacity: 1;
  color: var(--joyn-primary) !important;
}

/* Logótipo JiS (família JIN): SVG em /img/jis-logo*.svg */
.brand-mark .brand-jis-logo {
  height: 2.2rem;
  width: auto;
}

.tenant-jis-logo {
  height: 2.6rem;
  width: auto;
}

.footer-jis-logo {
  height: 2.4rem;
  width: auto;
}

.auth-jis-logo {
  height: 2.6rem;
  width: auto;
}

@media (max-width: 575.98px) {
  .brand-mark .brand-jis-logo { height: 1.7rem; }
  .brand-mark .brand-group-logo { height: 1.15rem; }
}

/* Logótipo JIS — Joyn Internal Support (texto; já não usado no header) */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff !important;
}

/* Logótipo do Grupo Joyn (branco) à esquerda do JIS, em todas as páginas. */
.brand-mark .brand-group-logo {
  height: 1.45rem;
  width: auto;
  padding-right: .7rem;
  border-right: 1px solid rgba(255, 255, 255, .3);
  box-sizing: content-box;
}

.brand-mark .brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}

.brand-mark .brand-name::after {
  content: ".";
  color: var(--joyn-primary);
}

.brand-mark .brand-sub {
  font-family: var(--joyn-text-font);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.15;
  max-width: 7.5rem;
  padding-left: .7rem;
  border-left: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .7);
}

.user-box {
  max-width: 100%;
}

.dropdown-menu-dark {
  background: #151c22;
  border-radius: 12px;
}

.company-dot {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--company);
  margin-right: .5rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
  vertical-align: baseline;
}

/* ---------- Botões ---------- */

.btn {
  border-radius: 6px;
  font-weight: 600;
  padding: .55rem 1.25rem;
}

.btn-joyn {
  background: var(--joyn-primary);
  border: 1px solid var(--joyn-primary);
  color: #fff;
}

.btn-joyn:hover {
  background: #337aa2;
  color: #fff;
}

.btn-joyn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-joyn-outline:hover {
  background: #fff;
  color: var(--joyn-dark);
}

.btn-joyn-outline-dark {
  background: transparent;
  border: 1px solid var(--joyn-dark);
  color: var(--joyn-dark);
}

.btn-joyn-outline-dark:hover {
  background: var(--joyn-dark);
  color: #fff;
}

.btn-company {
  background: var(--company);
  border: 1px solid var(--company);
  color: #fff;
}

.btn-company:hover,
.btn-company:focus,
.btn-company:disabled {
  background: var(--company);
  border-color: var(--company);
  color: #fff;
  filter: brightness(1.15);
}

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(62, 144, 190, .35);
  border-color: var(--joyn-primary);
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle, #0e2b40, #0f2738, #0f2331, #101f2a, #101b23);
  color: #fff;
  padding-block: 5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  max-width: 18ch;
}

.hero .lead {
  color: rgba(255, 255, 255, .75);
  max-width: 55ch;
}

/* Sem título: a frase de boas-vindas passa a ser o destaque do hero. */
.hero .hero-lead {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  max-width: 48ch;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--joyn-primary);
  font-weight: 700;
}

.hero-compact {
  padding-block: 3rem 2.5rem;
}

/* Hero na cor da empresa (Fyld preto, Growin vermelho, Landskill verde) */
.hero-company {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .14), transparent 45%),
    var(--company);
}

.hero-company .hero-eyebrow {
  color: rgba(255, 255, 255, .8);
}

.hero-company .breadcrumb a {
  color: rgba(255, 255, 255, .8);
}

.hero .breadcrumb-item + .breadcrumb-item::before,
.hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, .6);
}

/* ---------- Secções ---------- */

.section {
  padding-block: 4rem;
}

.section-light {
  background: var(--joyn-light);
  padding-block: 4rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: .5rem;
}

.section-subtitle {
  color: #5b6770;
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* ---------- Atalhos de categorias (página da empresa) ---------- */

.category-nav {
  position: sticky;
  top: var(--header-height, 80px);
  z-index: 1020;
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
  box-shadow: 0 6px 18px rgba(13, 17, 20, .06);
}

.category-nav-list {
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: .75rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .95rem;
  border: 1px solid #d5dae0;
  border-radius: 999px;
  color: var(--joyn-dark);
  font-family: var(--joyn-heading-font);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}

.category-nav-link:hover,
.category-nav-link.active {
  background: var(--company);
  border-color: var(--company);
  color: #fff;
}

.category-nav-count {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(13, 17, 20, .08);
  font-size: .75rem;
  text-align: center;
}

.category-nav-link:hover .category-nav-count,
.category-nav-link.active .category-nav-count {
  background: rgba(255, 255, 255, .25);
}

.category-anchor {
  scroll-margin-top: calc(var(--header-height, 80px) + 4.5rem);
}

/* ---------- Cartões ---------- */

.joyn-card {
  background: #fff;
  border: 0;
  border-radius: var(--joyn-radius);
  box-shadow: 0 10px 30px rgba(13, 17, 20, .07);
}

.company-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 2rem;
  border-radius: var(--joyn-radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .18), transparent 50%),
    var(--company);
  color: #fff;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.company-card:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13, 17, 20, .25);
}

.company-card .company-name {
  font-family: var(--joyn-heading-font);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
}

/* Logótipos (versões brancas) numa área de tamanho fixo: proporções diferentes, peso visual semelhante. */
.company-logo {
  display: block;
  width: min(100%, 14rem);
  height: 3.2rem;
  object-fit: contain;
  object-position: left center;
}

.company-hero-logo .company-logo {
  width: min(100%, 22rem);
  height: 5rem;
}

.run-hero-logo .company-logo {
  width: min(100%, 9rem);
  height: 2rem;
  opacity: .9;
}

.company-card .company-meta {
  opacity: .8;
  font-size: .9rem;
}

.company-card .company-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 6px;
  padding: .35rem .9rem;
  font-family: var(--joyn-heading-font);
  font-weight: 700;
  font-size: .9rem;
}

/* Sem sessão no tenant desta empresa: continua clicável (leva ao login), mas menos destacado. */
.company-card.signin {
  opacity: .8;
}

.company-card.signin:hover {
  opacity: 1;
}

.company-card.locked {
  filter: grayscale(.85);
  opacity: .45;
  pointer-events: none;
}

.runbook-card {
  display: block;
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--joyn-radius);
  background: #fff;
  border-top: 6px solid var(--company);
  box-shadow: 0 10px 30px rgba(13, 17, 20, .07);
  color: var(--joyn-dark);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.runbook-card:hover {
  color: var(--joyn-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13, 17, 20, .12);
}

.runbook-card .runbook-category {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--company);
  font-weight: 700;
}

.runbook-card .runbook-link {
  font-family: var(--joyn-heading-font);
  font-weight: 700;
  color: var(--company);
}

.form-card {
  padding: 2rem;
}

/* Secções em formulários longos (ex.: pedido de computador). */
.form-section {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--company);
  margin: 1.75rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e9ecef;
}

.form-param:first-of-type + .form-section,
.runbook-form > .form-section:first-of-type {
  margin-top: .5rem;
}

.date-input {
  max-width: 14rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.choice-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #ced4da;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.choice-card:hover {
  border-color: var(--company);
}

.choice-card:has(input:checked) {
  border-color: var(--company);
  box-shadow: 0 0 0 2px var(--company);
}

.choice-card .form-check-input {
  margin-top: .2rem;
  flex-shrink: 0;
}

.choice-label {
  display: block;
  font-family: var(--joyn-heading-font);
  font-weight: 700;
}

.choice-description {
  display: block;
  font-size: .85rem;
  color: #5b6770;
}

.form-control, .form-select {
  border-radius: 10px;
  padding: .65rem .85rem;
}

/* ---------- Resultado ---------- */

.result-card {
  border-left: 6px solid #198754;
}

.result-card.failed {
  border-left-color: #dc3545;
}

.result-card.pending {
  border-left-color: #ffc107;
}

.result-fields dt {
  font-weight: 600;
  font-size: .8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.result-fields dd {
  margin-bottom: .75rem;
  word-break: break-all;
}

.sensitive-value {
  font-size: 1.15rem;
  background-color: #fff8e1 !important;
}

.sensitive-hint {
  color: #8a6100;
}

.badge {
  font-family: var(--joyn-heading-font);
  font-weight: 700;
  border-radius: 6px;
  padding: .4em .65em;
}

/* ---------- Tabelas ---------- */

.table-joyn {
  margin-bottom: 0;
}

.table-joyn thead th {
  font-family: var(--joyn-heading-font);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5b6770;
  border-bottom-width: 1px;
}

.details-cell {
  background: #f6f7f8;
}

.hero .breadcrumb a {
  text-decoration: none;
}

.hero .breadcrumb a:hover {
  text-decoration: underline;
}

pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: #fff;
  border-radius: 10px;
  padding: .75rem;
}

/* ---------- Backoffice ---------- */

.joyn-alert {
  border: 0;
  border-radius: 12px;
}

.avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--joyn-secondary);
  color: #fff;
  font-family: var(--joyn-heading-font);
  font-weight: 700;
  font-size: .9rem;
}

.avatar {
  position: relative;
  overflow: hidden;
}

/* Foto do Entra ID por cima das iniciais (se falhar, a imagem é removida e ficam as iniciais). */
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-group {
  border-radius: 10px;
  background: #5b6770;
}

.avatar-xl {
  width: 7.5rem;
  height: 7.5rem;
  font-size: 2.4rem;
  box-shadow: 0 0 0 5px #fff, 0 10px 30px rgba(13, 17, 20, .15);
}

.principal-link {
  color: inherit;
  text-decoration: none;
}

.principal-link:hover {
  color: var(--joyn-primary);
  text-decoration: underline;
}

/* ---------- Perfil de utilizador ---------- */

.profile-hero {
  padding-block: 1.5rem 5rem;
}

.back-link {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-family: var(--joyn-heading-font);
  font-weight: 700;
}

.back-link:hover {
  color: #fff;
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem;
  margin-top: -3.5rem;
  position: relative;
}

.profile-identity {
  flex: 1 1 280px;
  min-width: 0;
}

.profile-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--joyn-secondary);
}

.profile-actions {
  flex: 0 0 auto;
}

.profile-fields {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: .5rem 1rem;
  margin: 0;
}

.profile-fields dt {
  font-weight: 600;
  font-size: .85rem;
  color: #5b6770;
}

.profile-fields dd {
  margin: 0;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .profile-fields {
    grid-template-columns: 1fr;
  }

  .profile-fields dd {
    margin-bottom: .5rem;
  }
}

.profile-section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: #5b6770;
  margin-bottom: .5rem;
}

.person-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  margin-inline: -.5rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.person-row:hover {
  background: var(--joyn-light);
  color: inherit;
}

.principal-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.principal-row:last-child {
  border-bottom: 0;
}

.principal-info {
  flex: 1 1 auto;
  min-width: 0;
}

.add-role-inline {
  display: flex;
  gap: .5rem;
  flex: 0 0 auto;
}

.add-role-inline .form-select {
  width: auto;
}

@media (max-width: 767.98px) {
  .principal-row {
    flex-wrap: wrap;
  }

  .add-role-inline {
    width: 100%;
  }
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--company);
  color: #fff;
  border-radius: 999px;
  padding: .2rem .35rem .2rem .75rem;
  font-size: .8rem;
  font-weight: 600;
}

.role-chip button {
  border: 0;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.role-chip button:hover {
  background: rgba(255, 255, 255, .5);
}

.role-chip-static {
  padding-right: .75rem;
}

.joyn-tabs {
  gap: .5rem;
  border-bottom: 1px solid #dee2e6;
}

.joyn-tabs .nav-link {
  font-family: var(--joyn-heading-font);
  font-weight: 700;
  color: #5b6770;
  border-bottom: 3px solid transparent;
  padding: .6rem .25rem;
  margin-right: 1.25rem;
}

.joyn-tabs .nav-link.active,
.joyn-tabs .nav-link:hover {
  color: var(--joyn-dark);
  border-bottom-color: var(--joyn-primary);
}

.tab-count {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0 .4rem;
  margin-left: .25rem;
  border-radius: 999px;
  background: #dee2e6;
  font-size: .75rem;
  text-align: center;
}

.directory-search {
  flex: 1 1 260px;
}

.company-status {
  border-top: 6px solid var(--company);
}

.company-status .company-dot {
  box-shadow: none;
}

.joyn-modal {
  border: 0;
  border-radius: var(--joyn-radius);
}

.search-results {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: calc(100% + .25rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(13, 17, 20, .18);
  max-height: 320px;
  overflow-y: auto;
  padding: .35rem;
}

.search-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: .5rem .65rem;
}

.search-item:hover,
.search-item:focus {
  background: var(--joyn-light);
}

.search-empty {
  padding: .5rem .65rem;
  color: #6c757d;
  font-size: .9rem;
}

.selected-principal {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: 12px;
  background: var(--joyn-light);
}

/* ---------- Login ---------- */

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle, #0e2b40, #0f2738, #0f2331, #101f2a, #101b23);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--joyn-radius);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
}

.auth-card .brand-mark {
  color: var(--joyn-dark) !important;
}

.auth-card .brand-mark .brand-sub {
  color: #5b6770;
  border-left-color: #ced4da;
}

.auth-card .company-dot {
  box-shadow: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--joyn-footer);
  color: #fff;
  padding-block: 3.5rem 1.5rem;
  flex-shrink: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--joyn-primary);
}

.footer-title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--joyn-primary);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Relatórios ---------- */
.report-tile {
  background: #f7f8fa;
  border-left: 4px solid var(--company);
  border-radius: 6px;
  padding: .75rem 1rem;
  height: 100%;
}
.report-tile.tone-ok { border-left-color: #1f7a4a; }
.report-tile.tone-warn { border-left-color: #b7791f; }
.report-tile.tone-bad { border-left-color: #c2362d; }
.report-tile-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.report-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #5b6070; background: #f1f3f7; white-space: nowrap; }
.report-table td { font-size: .88rem; }
/* ---------- Progresso por passos ---------- */
.progress-steps { display: grid; gap: .55rem; }
.progress-step { display: flex; align-items: center; gap: .65rem; font-size: .95rem; }
.progress-step .step-icon {
  flex: 0 0 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 2px solid #c9ced8; display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
}
.progress-step.pending { color: #8a90a0; }
.progress-step.done .step-icon { background: #1f7a4a; border-color: #1f7a4a; }
.progress-step.done .step-icon::after { content: "\2713"; }
.progress-step.current { font-weight: 700; }
.progress-step.current .step-icon { border-color: var(--company); border-right-color: transparent; animation: jis-spin .9s linear infinite; }
.progress-step.failed .step-icon { background: #c2362d; border-color: #c2362d; }
.progress-step.failed .step-icon::after { content: "!"; }
@keyframes jis-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress-step.current .step-icon { animation: none; border-right-color: var(--company); } }