/* Tipografia */
@font-face {
  font-family: 'Futura';
  src:
    local('Futura'),
    url('../assets/fonts/futura/futura-regular.woff2') format('woff2'),
    url('../assets/fonts/futura/futura-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src:
    local('Futura'),
    url('../assets/fonts/futura/futura-italic.woff2') format('woff2'),
    url('../assets/fonts/futura/futura-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src:
    local('Futura'),
    url('../assets/fonts/futura/futura-medium.woff2') format('woff2'),
    url('../assets/fonts/futura/futura-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src:
    local('Futura'),
    url('../assets/fonts/futura/futura-bold.woff2') format('woff2'),
    url('../assets/fonts/futura/futura-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --irthec-font-sans: 'Futura', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Bootstrap / SB Admin font variables */
  --font-family-sans-serif: var(--irthec-font-sans);
}

html {
  font-family: var(--irthec-font-sans) !important;
}

body {
  font-family: var(--irthec-font-sans) !important;
}

/* Layout base: faz o footer colar ao fundo quando o conteúdo é curto */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  min-height: 80vh;
}

/* Garantir que o wrapper de conteúdo do SB Admin expanda e empurre o footer */
#content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
}

/* Força o footer a 'grudar' na parte inferior quando está em um fluxo flex */
.irthec-footer,
footer.sticky-footer {
  margin-top: auto !important;
  top: auto !important;
}

button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.dropdown-menu,
.modal,
.tooltip,
.popover {
  font-family: var(--irthec-font-sans) !important;
}

.perfil-prof-top-actions {
  gap: 10px;
}

.perfil-prof-status {
  min-width: 220px;
}

.perfil-prof-avatar {
  width: 70px;
  height: 70px;
  object-fit: cover;
}
 /* .site-hero__dots removed from here — consolidated in institucional.css */

.btn .spinner-border {
  width: 1.2rem;
  height: 1.2rem;
}

.bg-filtrando {
  background-color: transparent;
  /* background-color: #FFF; */
  background-image: linear-gradient(to bottom, rgba(36, 130, 50, .28) 0%, rgba(36, 130, 50, .14) 55%, rgba(36, 130, 50, 0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.nav-tabs {
  border-bottom: 0px;
  margin-bottom: 0 !important;
}

/* Remove utility bottom margins inside profissionais module (avoid extra gap under tabs) */
.module-profissionais .mb-3,
.module-profissionais .my-3 {
  margin-bottom: 0 !important;
}

/* Also remove larger utility margins used across templates (cards/rows) */
.module-profissionais .mb-4,
.module-profissionais .my-4 {
  margin-bottom: 0 !important;
}

/* Some templates may use mb-5 — keep consistent spacing inside module */
.module-profissionais .mb-5,
.module-profissionais .my-5 {
  margin-bottom: 0 !important;
}

#pager {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 4px;
}
#pager .stepper-before,
#pager .stepper-next,
#pager .stepper {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0.25rem 0.5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  cursor: pointer;
}
#pager .stepper-before:hover,
#pager .stepper-next:hover,
#pager .stepper:hover,
#pager .stepper-active {
  color: var(--color-primary-contrast);
  background-color: var(--color-primary);
}

/* Login */
.bg-onboard {
  background-color: #4e73df;
  background-image: url('/img/background-predio.png');
  background-size: cover;
  background-position: bottom;
}

.bg-login-image {
  background-image: url('./img/alphacode_quadrado.jpg');
}
.bg-password-image {
  background-image: url('./img/alphacode_quadrado.jpg');
}

.footer-login p {
  color: #FFFFFF;
  font-size: small;
}
.footer-login img {
  height: 23px;
}

#olho-senha {
  width: 25px;
  margin-right: 20px;
  margin-left: 0px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 58%;
  right: 50px;
  color: #555;
  transform: translateY(-50%);
}

@media (max-width: 383px) {
  #olho-senha {
    top: 60%;
  }
}

::-webkit-calendar-picker-indicator {
  border-radius: 50%;
  margin-left: 0.1rem;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

::-webkit-calendar-picker-indicator:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

/* usuarios START */

.img-avatar {
  position: relative;
  top: 0;
  left: 10px;
  width: 180px !important;
  height: 180px !important;
  border-radius: 50%;
  margin: 0px !important;
  cursor: pointer;
  object-fit: cover;
  margin-bottom: 30px !important;
}

/* usuarios END */

.dados-profissional {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: rgba(26, 143, 206, 1) !important;
}

.declaracoes-cliente {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: rgba(28, 200, 138, 1) !important;
}

/* profissionais START */

.bg-onboard-profissional {
  background-color: rgba(34, 46, 80, 1);
  background-image: url('/img/background-bottom.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
}

#olho-senha-profissional {
  width: 25px;
  margin-right: 20px;
  margin-left: 0px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 60%;
  right: 50px;
  color: #555;
  transform: translateY(-50%);
}

/* Menu lateral - Profissional */
.sidebar-profissional {
  background-color: rgba(34, 46, 80, 1) !important;
  background-image: url('/img/background-bottom.png') !important;
  background-repeat: no-repeat !important;
  background-position: bottom center !important;
  background-size: contain !important;
  border-bottom-right-radius: 140px !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Profissional: só os itens rolam; header e toggle ficam fixos no layout */
.sidebar-profissional .sidebar-prof-menu-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 0.75rem;
  margin: 0;
  list-style: none;
}

.sidebar-profissional .sidebar-prof-menu-inner {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Scrollbar bonita (Chrome/Edge/Safari) */
.sidebar-profissional .sidebar-prof-menu-scroll::-webkit-scrollbar {
  width: 10px;
}

.sidebar-profissional .sidebar-prof-menu-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.sidebar-profissional .sidebar-prof-menu-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.sidebar-profissional .sidebar-prof-menu-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.45);
}

/* Profissional: garante que o recorte arredondado não revele branco */
.sidebar-profissional + #content-wrapper {
  background-color: #f8f9fc !important;
}

.sidebar-profissional + #content-wrapper #content {
  background-color: transparent !important;
}

.sidebar-profissional + #content-wrapper footer.sticky-footer,
.sidebar-profissional + #content-wrapper footer.sticky-footer.bg-white {
  background-color: transparent !important;
}

/* Navbar contextual: Ver Cliente (Profissional) */
.sidebar-profissional + #content-wrapper .navbar-cliente-ver .navbar-cliente-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  margin-right: 10px;
}

.sidebar-profissional + #content-wrapper .navbar-cliente-ver .navbar-cliente-nome {
  font-weight: 700;
}

.sidebar-profissional + #content-wrapper .navbar-cliente-ver .navbar-cliente-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 12px;
  vertical-align: middle;
}

.sidebar-profissional + #content-wrapper .navbar-cliente-ver .navbar-cliente-cpf {
  font-weight: 600;
}

.sidebar-profissional + #content-wrapper .navbar-cliente-ver .navbar-cliente-bday {
  font-weight: 600;
}

.sidebar-profissional + #content-wrapper .navbar-cliente-ver .navbar-cliente-bday .fa-gift {
  color: rgba(18, 214, 98, 1);
}

/* Profissional: footer absoluto no rodapé e largura total */
.sidebar-profissional + #content-wrapper {
  position: relative;
  min-height: 100vh;
  padding-bottom: 5.5rem; /* evita sobrepor conteúdo (footer ~2rem padding + texto) */
}

.sidebar-profissional + #content-wrapper footer.sticky-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

/* Profissional: botões azuis no mesmo tom do menu */
.sidebar-profissional + #content-wrapper .btn-primary,
.sidebar-profissional + #content-wrapper .btn-primary:focus,
.sidebar-profissional + #content-wrapper .btn-primary.focus {
  background-color: rgba(34, 46, 80, 1) !important;
  border-color: rgba(34, 46, 80, 1) !important;
}

.sidebar-profissional + #content-wrapper .btn-primary:hover,
.sidebar-profissional + #content-wrapper .btn-primary:active,
.sidebar-profissional + #content-wrapper .btn-primary.active,
.sidebar-profissional + #content-wrapper .btn-primary:not(:disabled):not(.disabled):active {
  background-color: rgba(34, 46, 80, 1) !important;
  border-color: rgba(34, 46, 80, 1) !important;
}

/* Profissional: botão "Chat com o cliente" alinhado ao form-control */
.sidebar-profissional + #content-wrapper .btn-chat-cliente {
  height: calc(1.5em + 0.75rem + 2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Profissional: sidebar sobrepõe a página (não side-by-side) */
#wrapper > .sidebar-profissional {
  position: fixed !important;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  z-index: 1050;
}

/* Desfaz o flex do SB Admin só quando existe sidebar-profissional */
#wrapper:has(> .sidebar-profissional) {
  display: block;
}

/* Fallback (sem :has): usar o fato de o menu vir antes do content-wrapper */
#wrapper > .sidebar-profissional + #content-wrapper {
  width: 100%;
  /* Evita que o padding-left aumente a largura total e gere scroll horizontal */
  box-sizing: border-box;
  /* Permite que o container seja reduzido corretamente em layouts flex */
  min-width: 0;
  /* Proteção adicional contra overflow horizontal inesperado */
  overflow-x: hidden;
}

/* Safe-area dinâmica à esquerda para o conteúdo não ficar atrás do menu */
:root {
  --prof-sidebar-expanded: 16rem;
  --prof-sidebar-collapsed: 6.5rem;
}

#wrapper > .sidebar-profissional:not(.toggled) + #content-wrapper {
  padding-left: var(--prof-sidebar-expanded);
}

#wrapper > .sidebar-profissional.toggled + #content-wrapper {
  padding-left: var(--prof-sidebar-collapsed);
}

/* Garante que o padding também afete o container principal */
#wrapper > .sidebar-profissional + #content-wrapper #content {
  padding-left: 0;
}


/* Um pouco mais largo (apenas expandido) */
.sidebar-profissional:not(.toggled) {
  width: 16rem !important;
}

/* Itens como "botões" */
.sidebar-profissional .nav-item:not(.sidebar-prof-header):not(.sidebar-prof-toggle) {
  margin: 0.35rem 0;
  padding: 0 0.9rem;
}

.sidebar-profissional .nav-item:not(.sidebar-prof-header) .nav-link {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 0.45rem !important;
  padding: 0.8rem 0.9rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.sidebar-profissional .nav-item:not(.sidebar-prof-header) .nav-link i {
  /* Ícones amarelos (padrão) */
  color: rgba(254, 213, 48, 1) !important;
}

.sidebar-profissional .nav-item.active .nav-link,
.sidebar-profissional .nav-item:not(.sidebar-prof-header) .nav-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* Item ativo: fundo branco e ícone verde */
.sidebar-profissional .nav-item.active .nav-link {
  background-color: #fff !important;
  border-color: #fff !important;
  color: rgba(34, 46, 80, 1) !important;
}

.sidebar-profissional .nav-item.active .nav-link:hover {
  background-color: #fff !important;
}

.sidebar-profissional .nav-item.active .nav-link i {
  color: rgba(28, 200, 138, 1) !important;
}

/* Submenu (acordeão) no menu profissional */
.sidebar-profissional .sidebar-prof-collapse-inner,
.sidebar-profissional .collapse-inner {
  background-color: transparent !important;
}

/* Profissional: submenu deve abrir dentro do menu (não popout do SB Admin) */
.sidebar-profissional .nav-item .collapse,
.sidebar-profissional .nav-item .collapsing {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
}

.sidebar-profissional .nav-item .collapse .collapse-inner,
.sidebar-profissional .nav-item .collapsing .collapse-inner {
  min-width: 0 !important;
  margin: 0.25rem 0 0.6rem 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sidebar-profissional .sidebar-prof-collapse-inner {
  padding: 0.35rem 0.9rem 0.6rem;
}

/* Subitens (como no DevTools): sem borda/fundo no normal */
.sidebar-profissional .collapse-item,
.sidebar-profissional .nav-item .collapse .collapse-inner .collapse-item,
.sidebar-profissional .nav-item .collapsing .collapse-inner .collapse-item {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
  border: 0 !important;
  background-color: transparent !important;
}

.sidebar-profissional .nav-item .collapse .collapse-inner .collapse-item:hover,
.sidebar-profissional .nav-item .collapsing .collapse-inner .collapse-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-profissional .nav-item .collapse .collapse-inner .collapse-item.active,
.sidebar-profissional .nav-item .collapsing .collapse-inner .collapse-item.active {
  background-color: rgba(28, 200, 138, 0.22) !important;
}

/* Profissional colapsado: não mostrar filhos (nem popout) */
.sidebar-profissional.toggled .nav-item .collapse,
.sidebar-profissional.toggled .nav-item .collapsing {
  display: none !important;
}

/* Chevron dos itens com submenu (collapse) */
.sidebar-profissional .nav-link[data-toggle="collapse"]::after {
  color: rgba(254, 213, 48, 1) !important;
  opacity: 1;
}

.sidebar-profissional .nav-item.active .nav-link[data-toggle="collapse"]::after {
  color: rgba(28, 200, 138, 1) !important;
}

.sidebar-profissional .sidebar-prof-header {
  padding: 1.25rem 1rem 0.75rem;
}

.sidebar-profissional .sidebar-prof-brand {
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.sidebar-profissional .sidebar-prof-logo {
  display: block;
  margin: 0 auto 0.35rem;
  max-width: 120px;
  width: 100%;
  height: auto;
}

.sidebar-profissional .sidebar-prof-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
}

.sidebar-profissional .sidebar-prof-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.sidebar-profissional .sidebar-prof-user-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.sidebar-profissional .sidebar-prof-logout-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sidebar-profissional .sidebar-prof-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-profissional .sidebar-prof-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.sidebar-profissional .sidebar-prof-logout {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
}

.sidebar-profissional .sidebar-prof-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0.85rem 0;
  width: 100%;
}

.sidebar-profissional .sidebar-prof-logout:hover {
  text-decoration: underline;
}


/* Colapsado: regras movidas para .sidebar.toggled abaixo */
.sidebar-profissional.toggled .sidebar-prof-divider {
  display: none;
}

.sidebar-profissional.toggled .nav-item .nav-link span {
  display: none !important;
}

/* Toggle (dentro do menu, sem fundo branco) */
.sidebar-profissional .sidebar-prof-toggle {
  position: static;
  margin: 0 !important;
  padding: 0.75rem 0 1.1rem 0;
  display: flex;
  justify-content: center;
}

.sidebar-profissional .nav-item.sidebar-prof-toggle {
  margin: 0 !important;
}

/* No modo colapsado, mantém a posição que você aprovou */
.sidebar-profissional.toggled .sidebar-prof-toggle {
  justify-content: flex-end;
  padding-right: 1.1rem;
}

.sidebar-profissional .sidebar-prof-toggle-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent !important;
  cursor: pointer;
  position: relative;
}

.sidebar-profissional .sidebar-prof-toggle-btn:focus {
  outline: none;
}

.sidebar-profissional .sidebar-prof-toggle-btn::before {
  content: '\f104';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.sidebar-profissional.toggled .sidebar-prof-toggle-btn::before {
  content: '\f105';
}

/* No colapsado, desloca o botão para a esquerda */
.sidebar.toggled #sidebarToggle {
  left: -20px !important;
}

/* Quando sidebar está colapsado, oculta nome e informação de funcionário */
.sidebar.toggled .sidebar-prof-name-wrapper {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
}

.sidebar.toggled .sidebar-prof-logout-row {
  display: none !important;
}

.sidebar.toggled .sidebar-prof-divider {
  display: none !important;
}

.sidebar.toggled .sidebar-prof-brand {
  display: none !important;
}

/* Quando colapsado, centraliza apenas a foto */
.sidebar.toggled .sidebar-prof-user-row {
  justify-content: center !important;
  padding: 0.75rem 0 !important;
  gap: 0 !important;
}

.sidebar.toggled .sidebar-prof-avatar {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
}

/* Remove o chevron extra do SB Admin (vem de #sidebarToggle::after) */
.sidebar-profissional #sidebarToggle::after {
  content: none !important;
}

/* (sem ajustes extras de posição no colapsado: fica no fluxo, sem sobrepor itens) */

/* Dashboard hero (azul padrão com bolinhas ao fundo) */
.site-hero {
  position: relative;
  background-color: rgba(34,46,80,1);
  color: #ffffff;
  overflow: hidden;
  height: 220px; /* altura padrão */
  display: flex;
  align-items: center;
}

.site-hero .container {
  position: relative;
  z-index: 2;
}

/* .site-hero__dots removed from this file; consolidated in institucional.css */

.site-hero h2, .site-hero p {
  color: #ffffff;
}

/* small screens: reduzir altura */
@media (max-width: 768px) {
  .site-hero { height: 160px; }
}

.site-hero__lead {
  opacity: .95;
  max-width: 720px;
}

/* Override: remove fixed 100% width that can cause horizontal scrolling
   (some vendor CSS sets `#wrapper #content-wrapper { width:100% }`) */
#wrapper #content-wrapper {
  width: auto !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}
