/* Header full width e topo colado apenas na página de habilitações */
header.aj-custom-header.aj-habilitacoes {
  margin-top: 0 !important;
  width: 100%;
}

header.aj-custom-header.aj-habilitacoes .aj-container {
  max-width: 99% !important;
  width: 100% !important;
  margin: 0 !important;
  margin-top: -100px !important;
}

/* Garantir que nada empurre o header para baixo nesta página */
body.toolbar-fixed header.aj-custom-header.aj-habilitacoes {
  top: 0;
  margin-left: -47px !important;
  width: 105% !important;
}

.header-notification-dropdown {
  position: absolute;
  right: 15% !important;
  top: unset !important;
  background: white;
  border: 1px solid #ddd;
  padding: 0;
  width: 100px;
  z-index: 1000;
  min-width: 320px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  border-radius: 4px;
  list-style: none;
}

header.aj-custom-header .aj-container {
    max-width: 100%;
    width: 89% !important;
    justify-self: anchor-center;
    margin: 0;
    margin-left: 30px !important;
    margin-top: -0px !important;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body > header > div > a > span{
    color: #000 !important;
    display: initial;
    font-size: 21px !important;
    font-weight: 700 !important;
    font-family: 'Poppins' !important;
}

body.gin--vertical-toolbar,
body.gin--horizontal-toolbar,
body.gin--classic-toolbar {
    padding-top: 0px !important;
}
/* Override Gin toolbar padding for this page */
body.gin--vertical-toolbar, 
body.gin--horizontal-toolbar, 
body.gin--classic-toolbar { 
     padding-top: 0px !important; 
}


.message-error {
    background: #c94d1c;
    border-radius: 10px;
    margin-top: 100px !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes {
  margin: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .08) !important;
}

body.toolbar-fixed header.aj-custom-header.home-header-standard.aj-habilitacoes {
  top: 0 !important;
  left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .aj-container.home-header-shell {
  max-width: calc(100% - 48px) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #374151 !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-logo {
  height: 3rem !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-brand-text {
  margin-left: 12px !important;
  font-size: 1.5rem !important;
  line-height: 2rem !important;
  font-weight: 700 !important;
  color: #2D3748 !important;
  font-family: 'Poppins', sans-serif !important;
  white-space: nowrap !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  margin: 0 !important;
  margin-left: auto !important;
  flex-wrap: nowrap !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-username {
  font-size: .875rem !important;
  line-height: 1.25rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  font-family: 'Poppins', sans-serif !important;
  white-space: nowrap !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes #gs-wrap {
  width: 340px !important;
  max-width: 340px !important;
  margin: 0 !important;
  flex: 0 0 340px !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes #gs-wrap > div:first-child {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: none !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes #gs-wrap > div:first-child:focus-within {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes #gs-input,
header.aj-custom-header.home-header-standard.aj-habilitacoes #gs-input:focus {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-notification-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-logout-btn {
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  font-family: 'Poppins', sans-serif !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu {
  position: relative !important;
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 500 !important;
  flex: 0 0 auto !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-button,
header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .home-header-menu-trigger {
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
  padding: 6px 11px !important;
  border: 1px solid #FACB1F !important;
  border-radius: 8px !important;
  background: #FACB1F !important;
  background-color: #FACB1F !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #111827 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  text-align: center !important;
  font-size: .78125rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  font-family: 'Poppins', sans-serif !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  overflow: visible !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-button:hover,
header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .home-header-menu-trigger:hover {
  background: #E5B200 !important;
  background-color: #E5B200 !important;
  border-color: #E5B200 !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-list,
header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .submenu {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  width: 208px !important;
  min-width: 208px !important;
  max-width: 208px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-list {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% - 2px) !important;
  z-index: 1001 !important;
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu:hover .menu-list,
header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu:focus-within .menu-list {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 6px 11px !important;
  color: #1F2937 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: .8125rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-link:hover {
  background: #F8FAFC !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .menu-arrow {
  font-size: .625rem !important;
  line-height: 1 !important;
  opacity: .65 !important;
  flex-shrink: 0 !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .has-submenu {
  position: relative !important;
  width: 100% !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .has-submenu::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 100% !important;
  width: 18px !important;
  height: 100% !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .submenu {
  position: absolute !important;
  right: calc(100% - 12px) !important;
  top: -8px !important;
  z-index: 1002 !important;
  display: none !important;
}

header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .has-submenu:hover > .submenu,
header.aj-custom-header.home-header-standard.aj-habilitacoes .home-header-menu .has-submenu:focus-within > .submenu {
  display: block !important;
}
