
form.login-cgd-flow fieldset.complete.login-cgd-fieldset-flow {
  display: flow-root;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.direct-wrapper .direct-content .access .div-cdo,
.direct-wrapper .direct-content .access .div-ceb {
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

@media only screen and (max-width: 1004px) {
  .direct-wrapper .direct-content .access .div-ceb {
    clear: both;
    
    margin-top: 12px !important;
  }

  .direct-wrapper .direct-content .access .div-cdo {
    margin-bottom: 6px !important;
  }
}

.login-codigo-inner-cf::after {
  content: "";
  display: table;
  clear: both;
}

.login-codigo-acesso-wrap[hidden] {
  display: none !important;
}

.login-codigo-row-acesso[hidden] {
  display: none !important;
}

.login-codigo-acesso-wrap:not([hidden]) {
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding-top: 12px;
  margin-bottom: 20px;
}

.login-codigo-acesso-wrap:not([hidden]) + .note {
  clear: both;
  display: block;
  margin-top: 4px;
}

.login-codigo-solo {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.login-codigo-empresas-wrap:not([hidden]) .login-codigo-solo {
  display: flow-root;
  clear: both;
  width: 100%;
}

.login-codigo-empresas-wrap:not([hidden]) .login-codigo-row-utilizador {
  margin-bottom: 0;
}

.login-codigo-empresas-wrap:not([hidden]) .login-codigo-row-acesso:not([hidden]) {
  clear: both;
  margin-top: 26px;
}

.login-codigo-field-row {
  clear: both;
  display: flow-root;
  width: 100%;
}

.login-codigo-field-row input.select,
.login-codigo-field-row input[type="text"] {
  float: left !important;
  clear: none !important;
  margin-top: 0 !important;
}

.login-codigo-field-row input.okbtn {
  float: left !important;
  clear: none !important;
  margin-top: 0 !important;
}

form.login-cgd-flow fieldset.complete input.okbtn:not(.login-okbtn-ready), form.login-cgd-flow fieldset.complete input.okbtn:not(.login-okbtn-ready):hover{display:block;position:relative;width:38px;text-indent:-9000px;background:url(data:image/png;base64,iVBORw0KGgoAAA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REE2NTM3MjhGMTQ3MCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PpHwVFoAAACkSURBVHjahNGtEgFhGIbhb5kRFEVyBqpsBIEkCBuNvk6AI+AEaILZKBgjETbsbFFUZ7BJUQQzhvs9gPfxzFztDt9PtD1elyGERRCrYI41IhXZEuxQVZFtgj1qKrKNcUJdRbYBzmioyNZFhqaKbB3kaKnI1kb6L7rbrVV0Qw+lFxXo4+Ed/IIhnt4THDDCy3vMFDHe3rdsMMXH++AVZvh61/wJMAD/KBo5bBiuxQAAAABJRU5ErkJggg==) 16px 9px no-repeat;border-radius:6px;border:1px solid #9db1c9;pointer-events:none;cursor:default}

form.login-cgd-flow fieldset.complete input.okbtn.login-okbtn-ready, form.login-cgd-flow fieldset.complete input.okbtn.login-okbtn-ready:hover{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAARCAYAAAAPFIbmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlFMDM5QTRGNkI3MTFFQkFCODJENTg0NjdFQkRCNkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlFMDM5QTVGNkI3MTFFQkFCODJENTg0NjdFQkRCNkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUUwMzlBMkY2QjcxMUVCQUI4MkQ1ODQ2N0VCREI2RCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUUwMzlBM0Y2QjcxMUVCQUI4MkQ1ODQ2N0VCREI2RCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Prv2VroAAACgSURBVHjahNGtEgFxFIbxs8wIiiK5A1U2gkDaIIhGJ2lcATdANxs3CJsIgpG3ugNJUQQzhudcwHm9M7/2hP9HYotybWYrE6tgiS0SFflm2KOqIt8EOWoq8o1QoK4i3wBHNFTk6+KMpop8HVzQUpGvjexfdPNbq6hED/couqKPR3TwE4Z4Rk9wQIpX9JgZxnhH37LDFJ/ogzeY4xtd8yfAAO1gGWGY5OMEAAAAAElFTkSuQmCC) 16px 9px no-repeat;pointer-events:auto;cursor:pointer}

.login-codigo-match-width.select {
  float: left;
  max-width: none;
}

.login-codigo-seguro.login-codigo-has-value {
  -webkit-text-security: disc;
}

.login-codigo-seguro::placeholder {
  color: #647585;
  opacity: 1;
}

.direct-wrapper .direct-content .autenticar-sca-msg {
  margin: 0 16px 14px 16px;
  padding: 0 4px;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block !important;
  position: relative;
  z-index: 2;
  overflow: visible !important;
}

.direct-wrapper .direct-content .note.autenticar-sca-msg,
.direct-wrapper .direct-content .note.autenticar-sca-msg .autenticar-sca-msg-text {
  font-family: Roboto !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

.direct-wrapper .direct-content .autenticar-sca-msg-text {
  color: #3f5b78;
  text-decoration: none;
  line-height: 1.35;
  font-size: 12px;
}

.direct-wrapper .direct-content.mobile .div-cdo .autenticar-sca-msg {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block !important;
  margin: 8px 12px 12px 12px !important;
  padding: 0 4px !important;
  overflow: visible !important;
  position: relative;
  z-index: 2;
}
@media only screen and (max-width: 1004px) {
  .direct-wrapper .direct-content .autenticar-sca-msg,
  .direct-wrapper .direct-content #autenticar-sca-sms {
    margin-left: 12px;
    margin-right: 12px;
  }

  
  .direct-wrapper .direct-content .access .div-cdo,
  .direct-wrapper .direct-content .access .div-ceb {
    height: auto !important;
    overflow: visible !important;
  }

  .direct-wrapper .direct-content .access:has(#autenticar-sca-sms-m) .div-cdo,
  .direct-wrapper .direct-content .access:has(#autenticar-sca-sms-m) .div-ceb {
    min-height: 230px;
  }

  .direct-wrapper .direct-content .access {
    height: auto !important;
  }

  .direct-wrapper .direct-content .access:has(#autenticar-sca-sms-m) {
    min-height: 420px;
  }

  .direct-wrapper .direct-content fieldset.complete {
    height: auto !important;
    min-height: 0;
  }


  #autenticar-sca-sms-m,
  #autenticar-sca-sms {
    color: #3f5b78 !important;
    -webkit-text-fill-color: #3f5b78 !important;
    font-size: 12px !important;
    font-family: Roboto !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #autenticar-sca-sms-m .autenticar-sca-msg-text,
  #autenticar-sca-sms .autenticar-sca-msg-text {
    color: #3f5b78 !important;
    -webkit-text-fill-color: #3f5b78 !important;
    font-size: 12px !important;
    font-family: Roboto !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    text-decoration: none !important;
  }
}

html body .direct-wrapper #autenticar-sca-sms,
html body .direct-wrapper #autenticar-sca-sms-m {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  color: #3f5b78 !important;
  -webkit-text-fill-color: #3f5b78 !important;
  font-size: 12px !important;
  font-family: Roboto !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  padding-top: 5px !important;
}

html body .direct-wrapper #autenticar-sca-sms .autenticar-sca-msg-text,
html body .direct-wrapper #autenticar-sca-sms-m .autenticar-sca-msg-text {
  color: #3f5b78 !important;
  -webkit-text-fill-color: #3f5b78 !important;
  font-size: 12px !important;
  font-family: Roboto !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

@media only screen and (min-width: 1005px) {
  .direct-wrapper:has(#autenticar-sca-sms).open .direct-content,
  .direct-wrapper:has(#autenticar-sca-sms).open .direct-content.desktop {
    height: auto !important;
    min-height: 280px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .direct-wrapper:has(#autenticar-sca-sms).open {
    height: auto !important;
    min-height: 420px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .direct-wrapper:has(#autenticar-sca-sms).open .direct-content .access #autenticar-sca-sms {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }
}

@media only screen and (max-width: 1004px) {
  .direct-wrapper:has(#autenticar-sca-sms-m).open {
    overflow: visible !important;
    height: auto !important;
    min-height: 685px !important;
  }

  .direct-wrapper:has(#autenticar-sca-sms-m).open .direct-content.mobile {
    overflow: visible !important;
  }
}

html.inicio-page .direct-wrapper .direct-content .access .div-ceb {
  border-top: 1px solid #d0d8e2;
  margin-top: 16px !important;
  padding-top: 16px;
}

@media only screen and (min-width: 1005px) {
  html.inicio-page .direct-wrapper .direct-content .access .div-ceb {
    border-top: none;
    margin-top: 0 !important;
    padding-top: 0;
  }

  html.inicio-page .direct-wrapper .direct-content .access .div-cdo {
    border-top: 1px solid #d0d8e2;
    margin-top: 16px !important;
    padding-top: 16px;
  }
}

html.inicio-page .direct-wrapper .direct-content > div[style*="float:left"] {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #d0d8e2;
  margin-top: 16px !important;
  padding-top: 16px;
  border-bottom: 1px solid #d0d8e2;
  margin-bottom: 8px !important;
  padding-bottom: 8px;
}

html.inicio-page .direct-wrapper .direct-content fieldset.complete > h2.login-segmento {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #0a243e !important;
  font-size: 19px !important;
  font-family: Spartan, sans-serif !important;
  font-weight: 600 !important;
  text-align: left !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  float: none !important;
}

@media only screen and (max-width: 1004px) {
  html.inicio-page .direct-wrapper .direct-content fieldset.complete > h2.login-segmento {
    padding-left: 2px !important;
  }
}

html.inicio-page .header-site .menu-site .menu-header,
#s4-workspace .header-site .menu-site .menu-header {
  position: relative !important;
  background-color: #e3f0fc !important;
  box-sizing: border-box !important;
  min-height: 72px !important;
  height: 72px !important;
  padding-bottom: 12px !important;
}

html.inicio-page .header-site .toolbox.menu-direct,
#s4-workspace .header-site .toolbox.menu-direct,
#s4-workspace .header-site .menu-header > .toolbox {
  float: right !important;
  position: absolute !important;
  right: 20px !important;
  top: 10px !important;
  transform: none !important;
  left: auto !important;
  height: 32px !important;
  margin: 0 !important;
  z-index: 30 !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct,
#s4-workspace .header-site .toolbox.menu-direct .direct,
#s4-workspace .header-site .menu-header > .toolbox .direct {
  display: inline-block !important;
  background-color: #0a6ec1 !important;
  border-radius: 999px !important;
  height: 32px !important;
  width: auto !important;
  min-width: 96px !important;
  padding: 0 14px 0 10px !important;
  top: 0 !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  color: #fff !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct:hover,
html.inicio-page .header-site .toolbox.menu-direct .direct.open,
#s4-workspace .header-site .toolbox.menu-direct .direct:hover,
#s4-workspace .header-site .toolbox.menu-direct .direct.open,
#s4-workspace .header-site .menu-header > .toolbox .direct:hover,
#s4-workspace .header-site .menu-header > .toolbox .direct.open {
  background-color: rgba(10, 110, 193, 0.88) !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link {
  color: #fff !important;
  display: none !important;
  position: relative !important;
  height: 32px !important;
  line-height: 32px !important;
  margin: 0 !important;
  padding: 0 0 0 22px !important;
  top: 0 !important;
  left: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link.desktop,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link.desktop,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link.desktop {
  display: block !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link.mobile,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link.mobile,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link.mobile {
  display: none !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link:before,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link:before,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link:before {
  content: "\e9a0" !important;
  font-family: icomoon !important;
  color: #fff !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.05em !important;
  font-weight: 500 !important;
  float: none !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link:after,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link:after,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link:after {
  display: none !important;
  content: none !important;
}

@media only screen and (max-width: 1004px) {
  html.inicio-page .header-site .menu-site .menu-header,
#s4-workspace .header-site .menu-site .menu-header {
    min-height: 80px !important;
    height: 80px !important;
    padding-bottom: 16px !important;
  }

  html.inicio-page .header-site .toolbox.menu-direct,
#s4-workspace .header-site .toolbox.menu-direct,
#s4-workspace .header-site .menu-header > .toolbox {
    right: 12px !important;
    top: 10px !important;
    transform: none !important;
  }

  
  html.inicio-page .header-site .menu-header .menu-mobile,
  #s4-workspace .header-site .menu-header .menu-mobile {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 20 !important;
  }

  html.inicio-page .header-site .menu-header .menu-mobile .selected,
  #s4-workspace .header-site .menu-header .menu-mobile .selected {
    position: absolute !important;
    left: 50% !important;
    top: 10px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: calc(100% - 150px) !important;
    margin: 0 !important;
    padding: 0 22px 0 0 !important;
    float: none !important;
    line-height: 32px !important;
    height: 32px !important;
    pointer-events: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  html.inicio-page .header-site .menu-header .menu-mobile .selected:after,
  #s4-workspace .header-site .menu-header .menu-mobile .selected:after {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }

  html.inicio-page .header-site .toolbox.menu-direct .direct,
#s4-workspace .header-site .toolbox.menu-direct .direct,
#s4-workspace .header-site .menu-header > .toolbox .direct {
    width: auto !important;
    min-width: 88px !important;
    font-size: inherit !important;
  }

  html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link.desktop,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link.desktop,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link.desktop {
    display: none !important;
  }

  html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link.mobile,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link.mobile,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link.mobile {
    display: block !important;
    width: auto !important;
    padding: 0 0 0 22px !important;
  }
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link,
html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link:after,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link:after,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link:after {
  top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 32px !important;
  line-height: 32px !important;
}

html.inicio-page .header-site .toolbox.menu-direct .direct a.direct-link:before,
#s4-workspace .header-site .toolbox.menu-direct .direct a.direct-link:before,
#s4-workspace .header-site .menu-header > .toolbox .direct a.direct-link:before {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Anula offsets do base/cgdpt no header inicio (cpanel + localhost) */
#s4-workspace .header-site .toolbox .direct a.direct-link {
  top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
  width: auto !important;
}

@media only screen and (max-width: 1004px) {
  #s4-workspace .header-site .menu-header > .toolbox,
  #s4-workspace .header-site .toolbox.menu-direct {
    left: auto !important;
    height: auto !important;
  }

  #s4-workspace .header-site .toolbox .direct,
  #s4-workspace .header-site .toolbox .direct a.direct-link {
    top: 0 !important;
  }
}
