@charset "UTF-8";
/* ==========================================================================
   Painel de ajuda (vídeos) - o HTML sai de Help\uHelp.pas (getHelp) e os
   vídeos de Help\uHelpLinks.pas. Usado na Consulta (Ambulatório) e na aba
   Início do Principal.

   tioclaude 07/10/2026 - visual novo, nas cores do menu do SISWEB:
   - a aba "Ajuda" é uma pílula na borda direita; aparece só o ícone e o
     texto desliza para dentro ao passar o mouse;
   - o painel entra deslizando da direita, com cabeçalho em degradê, botão de
     fechar redondo e cada vídeo num cartão, em 16:9;
   - só os radios do próprio painel ficam ocultos: a regra antiga
     [type=radio] { display: none } valia para a página inteira e escondia
     outros radios (o seletor de camadas do mapa do e-SUS, por exemplo).
   ========================================================================== */

/* o botão redondo antigo (float-help), mantido como estava */
.float-help {
  position: fixed;
  width: 40px;
  height: 40px;
  bottom: 30px;
  right: 30px;
  background-color: #3366cc;
  color: #fff;
  border-radius: 40px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  font-size: 22px;
  cursor: pointer;
}

.float-help-pos {
  margin-top: 10px;
}

/* ---- os controles do painel: radios ocultos, só deles ------------------- */
input[id^="float-button-"],
input[id^="close-help-"],
.help-tab > input[type=radio] {
  display: none;
}

/* ---- a aba "Ajuda" na borda direita ------------------------------------- */
.help-float {
  position: fixed;
  right: 0;
  top: 75px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 8px;
  border-radius: 999px 0 0 999px;
  background: #0f766e;
  color: #fff;
  font: 600 13px/1 'Segoe UI', system-ui, -apple-system, sans-serif;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 18px rgba(15, 118, 110, .35);
  transform: translateX(58px);
  transition: transform .25s ease, background-color .2s ease, box-shadow .2s ease;
  animation: help-aba-entra .6s ease-out;
}

.help-float:hover {
  transform: translateX(0);
  background: #115e59;
  box-shadow: 0 8px 22px rgba(15, 118, 110, .45);
}

.help-float.top-0  { top: 0px !important; }
.help-float.top-25 { top: 25px !important; }
.help-float.top-50 { top: 50px !important; }
.help-float.top-75 { top: 75px !important; }

.help-float .my-help-icon,
.my-help-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px !important;
  padding: 0 !important;
}

/* ---- o painel ------------------------------------------------------------ */
.help-content {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  background: #f4f7f7;
  color: #1f2937;
  font: 14px/1.45 'Segoe UI', system-ui, -apple-system, sans-serif;
  border-radius: 16px 0 0 16px;
  box-shadow: -18px 0 48px rgba(16, 49, 47, .22), 0 0 0 1px rgba(16, 49, 47, .06);
  overflow: hidden;
  visibility: hidden;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
}

input[id^="float-button-"]:checked ~ .help-content {
  visibility: visible;
  transform: translateX(0);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

/* o fechar, redondo, sobre o cabeçalho */
.help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #e6f4f1;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.help-close:hover {
  background: rgba(255, 255, 255, .28);
  color: #fff;
  transform: rotate(90deg);
}

.help-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
}

.help-tab {
  float: none;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

/* o título do painel: o rótulo da aba vira o cabeçalho */
.help-tab > label,
.help-content [type=radio]:checked ~ label {
  position: static;
  left: auto;
  display: block;
  margin: 0;
  padding: 20px 60px 18px 22px;
  border: 0;
  background: linear-gradient(135deg, #10312f 0%, #0f766e 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: default;
}

.help-tab > label::after {
  content: 'Vídeos e dicas para usar o sistema';
  display: block;
  margin-top: 4px;
  color: #b7dcd6;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

/* a lista de vídeos */
.help-tab .tab-content,
.tab-content {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  background: transparent;
}

.tab-content > div {
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: #fff;
  color: #10312f;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 49, 47, .06), 0 4px 14px rgba(16, 49, 47, .06);
}

.tab-content iframe,
.help-iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #0b1f1d;
}

.tab-content::-webkit-scrollbar { width: 8px; }
.tab-content::-webkit-scrollbar-thumb { background: rgba(16, 49, 47, .2); border-radius: 8px; }

@keyframes help-aba-entra {
  from { transform: translateX(110%); }
  to   { transform: translateX(58px); }
}

@media (prefers-reduced-motion: reduce) {
  .help-float, .help-content, .help-close { transition: none; animation: none; }
}
