/* Menu mobile (painel lateral de base.html). Escopado em .mm-painel para nao
   afetar o resto do site; nao depende de recompilar o Tailwind. */
.mm-painel {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow-y: auto;
  background: #fff;
  color: #0f172a;
  -webkit-overflow-scrolling: touch;
}

.mm-painel a,
.mm-painel button { -webkit-tap-highlight-color: transparent; }

.mm-painel :focus-visible {
  outline: 3px solid #e10613;
  outline-offset: 2px;
}

.mm-topo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px 16px 10px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.mm-topo > a { display: flex; align-items: center; min-height: 44px; }
.mm-topo img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }

.mm-fechar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}

.mm-fechar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
}

/* Cartao do usuario / botao Entrar */
.mm-cartao {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  margin: 16px 16px 0;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  text-decoration: none;
}

.mm-cartao::before,
.mm-cartao::after {
  position: absolute;
  top: 0;
  bottom: 0;
  content: "";
  background: #e10613;
  pointer-events: none;
}

.mm-cartao::before { right: 0; width: 48%; opacity: .16; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.mm-cartao::after { right: 0; width: 34%; opacity: .22; clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); }

.mm-cartao-texto { position: relative; z-index: 1; flex: 1; min-width: 0; }
.mm-cartao-ola { display: block; font-size: 13px; color: #94a3b8; }

.mm-cartao-nome {
  display: block;
  overflow: hidden;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mm-cartao > svg { position: relative; z-index: 1; flex-shrink: 0; }

/* Navegacao */
.mm-rotulo {
  margin: 24px 0 8px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #64748b;
}

.mm-itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 16px;
  list-style: none;
}

.mm-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 12px;
  border-radius: 16px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s;
}

.mm-item:hover { background: #f8fafc; }

.mm-icone {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
}

.mm-item-texto { flex: 1; min-width: 0; }
.mm-seta { flex-shrink: 0; color: #94a3b8; }

.mm-item[aria-current="page"] { background: #fdecee; color: #e10613; }
.mm-item[aria-current="page"] .mm-icone { background: #e10613; color: #fff; }
.mm-item[aria-current="page"] .mm-seta { color: #e10613; }

.mm-item[aria-current="page"]::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 28px;
  content: "";
  border-radius: 2px;
  background: #e10613;
  transform: translateY(-50%);
}

/* Rodape */
.mm-rodape {
  margin-top: auto;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
}

.mm-sair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.mm-sair:hover { background: #f8fafc; }

.mm-marca {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-align: center;
  color: #94a3b8;
}
