/* ============================================================
   SANTOOLIVER — IDENTIDADE VISUAL E CABEÇALHOS
   Logotipo oficial, barra regional e cabeçalho do usuário
   ============================================================ */

/* Barra Superior Oficial Santooliver: Compartilhada por todas as telas */
.santooliver-bar {
  width: min(1320px, calc(100% - 24px));
  margin: 12px auto 6px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 18px;
  background: #101613;
  color: #ffffff;
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.12);
}

.santooliver-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.santooliver-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 13px;
  border: 1px solid #396d43;
  background: linear-gradient(140deg, #171d18, #080e09);
  display: grid;
  place-items: center;
  color: #58e873;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.08em;
  overflow: hidden;
}

.santooliver-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.santooliver-nome {
  color: #60e879;
  font-size: clamp(17px, 2.6vw, 23px);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.15;
}

.santooliver-frase {
  display: block;
  font-size: 12.5px;
  color: #e0ebe2;
  line-height: 1.4;
  margin-top: 2px;
}

.santooliver-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.santooliver-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 11px;
  padding: 9px 14px;
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: #253628;
  border: 1px solid #385841;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}

.santooliver-links a:hover {
  background: #36533b;
  transform: translateY(-1px);
}

.santooliver-links a.santooliver-loja {
  background: #1c7136;
  border-color: #2d8a43;
}

/* Cabeçalho principal da aplicação */
.topo {
  border-radius: 25px;
  padding: clamp(23px, 3vw, 37px);
  background: radial-gradient(circle at 91% 0%, rgba(255, 255, 255, 0.22), transparent 35%),
              linear-gradient(125deg, #4c3092 0%, #7650d4 55%, #ac73bd 100%);
  color: #ffffff;
  box-shadow: 0 17px 40px rgba(77, 48, 146, 0.17);
  margin-bottom: 18px;
}

.topo h1 {
  margin: 0 0 5px;
  font-size: clamp(26px, 3.2vw, 39px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.17;
}

.topo p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  opacity: 0.92;
}

.topo-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.usuario-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 12px;
  border-radius: 18px;
  max-width: 440px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.usuario-foto {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

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

.usuario-info strong,
.usuario-info small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.usuario-info strong {
  font-size: 14.5px;
}

.usuario-info small {
  font-size: 12px;
  opacity: 0.88;
}

.btn-sair {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 12px;
  min-height: 42px;
  padding: 9px 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s;
}

.btn-sair:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 700px) {
  .santooliver-bar {
    width: calc(100% - 20px);
    margin: 10px auto 4px;
    padding: 12px;
    gap: 12px;
  }
  .santooliver-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .santooliver-links a {
    font-size: 12px;
    padding: 10px 6px;
    white-space: normal;
    text-align: center;
  }
  .santooliver-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .topo {
    padding: 22px 18px;
    border-radius: 22px;
    margin-bottom: 14px;
  }
  .topo-linha {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .usuario-box {
    width: 100%;
    max-width: 100%;
  }
  .btn-sair {
    margin-left: auto;
  }
}
