/*
 * Cabecalho institucional do SISGERED.
 * Apenas o brasao oficial e carregado como imagem; toda a apresentacao e CSS.
 */

#header,
.nav {
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
}

#contents.site-layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

#contents.site-layout > #principal {
  flex: 1 0 auto;
}

#contents.site-layout > #header,
#contents.site-layout > .nav,
#contents.site-layout > #rodape.site-footer {
  flex-shrink: 0;
}

#header {
  margin-top: 14px;
  color: #1d3852;
}

#topo.site-brand {
  position: relative;
  display: flex;
  min-height: 94px;
  height: auto;
  margin: 0;
  padding: 14px 24px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #aac6dd;
  border-top: 4px solid #e32636;
  border-radius: 8px;
  background: linear-gradient(118deg, #ffffff 0%, #f7fbfe 58%, #e4f2fa 100%);
  color: #173c5f;
  text-align: left;
  box-shadow: 0 5px 16px rgba(22, 65, 99, .12);
}

#topo.site-brand::after {
  position: absolute;
  right: -42px;
  bottom: -70px;
  width: 360px;
  height: 116px;
  border: 18px solid rgba(0, 151, 211, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-brand-municipio,
.site-brand-sistema {
  position: relative;
  z-index: 1;
}

.site-brand-municipio {
  display: flex;
  min-width: 0;
  align-items: center;
}

.site-brand-logo {
  display: block;
  width: 72px;
  height: 68px;
  margin-right: 15px;
  object-fit: contain;
}

.site-brand-municipio-texto span,
.site-brand-municipio-texto strong,
.site-brand-municipio-texto small,
.site-brand-sistema span {
  display: block;
}

.site-brand-municipio-texto span {
  margin-bottom: -2px;
  color: #49677f;
  font-size: 15px;
  line-height: 18px;
}

.site-brand-municipio-texto strong {
  color: #153f67;
  font-size: 36px;
  line-height: 38px;
  letter-spacing: -.035em;
}

.site-brand-municipio-texto small {
  margin-top: 2px;
  color: #d32434;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-brand-sistema {
  min-width: 300px;
  padding: 7px 0 7px 22px;
  border-left: 1px solid #b7d0e3;
  text-align: right;
}

.site-brand-sistema-sigla {
  color: #133d63;
  font-size: 30px;
  font-weight: bold;
  line-height: 32px;
  letter-spacing: .035em;
}

.site-brand-sistema-nome {
  margin-top: 2px;
  color: #3c5d77;
  font-size: 13px;
  font-weight: bold;
  line-height: 17px;
}

.site-brand-sistema-orgao {
  margin-top: 3px;
  color: #d32434;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .1em;
}

#header .session-summary {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #c6d9e8;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 7px;
  background: #f5f9fc;
}

#header .session-summary td {
  padding: 9px 13px;
  color: #35536c;
  font-size: 13px;
  line-height: 18px;
  vertical-align: middle;
}

#header .session-summary td:first-child {
  width: auto;
  white-space: nowrap;
}

#header .session-summary td:first-child a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #a8c7df;
  border-radius: 14px;
  background: #e9f4fb;
  color: #075b91;
  font-size: 13px;
  font-weight: bold;
}

#header .session-summary td:last-child {
  color: #49677f;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

#header .session-summary font,
#header .session-summary b {
  color: inherit !important;
  font-size: inherit !important;
}

.header-notice {
  margin: 8px 0 0;
  padding: 9px 13px;
  border: 1px solid #e5b4b8;
  border-radius: 6px;
  background: #fff4f5;
  color: #ae1d2b;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.header-login-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 13px;
  border-radius: 5px;
  background: #075b91;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: bold;
}

/* Rodape institucional, sem imagens ou sprites decorativos. */
#rodape.site-footer {
  display: flex;
  flex-direction: column;
  clear: both;
  width: 100%;
  margin: 18px 0 0;
  min-height: 32px;
  padding: 6px 12px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #064b77;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(105deg, #063f68 0%, #075f91 62%, #087da9 100%);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 -4px 14px rgba(17, 65, 96, .12);
}

.site-footer-linha {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #dbeef8;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}

.site-footer-contato {
  display: block;
  width: 100%;
  margin: 1px 0 0;
  padding: 0;
  color: #dbeef8;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  white-space: nowrap;
}

.site-footer-linha strong,
.site-footer-linha span {
  display: inline;
}

.site-footer-linha strong {
  color: #ffffff;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: .02em;
}

.site-footer-linha strong + span {
  margin-left: 3px;
}

.site-footer-contato a,
.site-footer-contato a:link,
.site-footer-contato a:visited,
#rodape.site-footer .site-footer-suporte a,
#rodape.site-footer .site-footer-suporte a:link,
#rodape.site-footer .site-footer-suporte a:visited {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-contato a:hover,
.site-footer-contato a:focus,
#rodape.site-footer .site-footer-suporte a:hover,
#rodape.site-footer .site-footer-suporte a:focus {
  color: #ffffff;
  text-decoration-thickness: 2px;
  outline: none;
}

/* Mantem as duas linhas centralizadas durante a atualizacao de templates em cache. */
#rodape.site-footer .site-footer-principal,
#rodape.site-footer .site-footer-identidade {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dbeef8;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}

#rodape.site-footer .site-footer-suporte {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dbeef8;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  white-space: nowrap;
}

#rodape.site-footer .site-footer-identidade strong,
#rodape.site-footer .site-footer-identidade span {
  display: inline;
  margin: 0 0 0 10px;
  font-size: 10px;
  line-height: 14px;
}

#rodape.site-footer .site-footer-identidade strong {
  margin-left: 0;
}

/* Navegacao sem sprites ou fundos em imagem. */
.nav {
  margin: 12px 0;
}

.nav-container-outer {
  position: relative;
  display: block;
  min-height: 48px;
  height: auto;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid #074f7e;
  border-radius: 8px;
  background: linear-gradient(105deg, #075487 0%, #087caf 64%, #059ac9 100%);
  box-shadow: 0 4px 12px rgba(8, 75, 117, .18);
}

.nav-container-outer::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .25);
  content: "";
}

.nav-container {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: stretch;
  flex-wrap: wrap;
}

.nav-container > li {
  float: none;
}

#nav-container > li > a {
  position: relative;
  display: block;
  float: none;
  margin: 0;
  padding: 15px 16px 14px;
  border: 0;
  background: none;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  line-height: 18px;
  letter-spacing: .02em;
  text-shadow: 0 1px 1px rgba(0, 45, 75, .35);
}

#nav-container > li > a:hover,
#nav-container > li:hover > a,
#nav-container > li:focus-within > a,
#nav-container > li > a:focus {
  background: rgba(255, 255, 255, .15);
  color: #ffffff;
  outline: none;
}

#nav-container > li > a:focus {
  box-shadow: inset 0 -3px 0 #ffffff;
}

#nav-container > li > ul,
#nav-container ul ul {
  top: calc(100% + 1px);
  left: -10000px;
  width: auto !important;
  min-width: 205px;
  max-width: 290px;
  padding: 7px;
  border: 1px solid #a9c3d7;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 56, 87, .2);
  opacity: 0;
  visibility: hidden;
}

#nav-container li:hover > ul,
#nav-container li:focus-within > ul {
  left: 0;
  opacity: 1;
  visibility: visible;
}

#nav-container ul li:hover > ul,
#nav-container ul li:focus-within > ul {
  top: -7px;
  left: 100%;
}

#nav-container ul li {
  float: none;
  width: 100%;
}

#nav-container div a,
#nav-container ul a {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 9px 11px;
  box-sizing: border-box;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #24445f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 16px;
  white-space: normal;
}

#nav-container div a:hover,
#nav-container ul a:hover,
#nav-container div a:focus,
#nav-container ul a:focus {
  background: #e7f3fa;
  color: #064f7e;
  outline: none;
}

#nav-container .item-secondary-title {
  color: #9f1d2a;
}

#nav-container .divider,
#nav-container .divider-vert {
  display: none;
}

@media (max-width: 900px) {
  #topo.site-brand {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-brand-municipio-texto strong {
    font-size: 30px;
    line-height: 32px;
  }

  .site-brand-sistema {
    min-width: 250px;
  }

  .site-brand-sistema-sigla {
    font-size: 25px;
    line-height: 28px;
  }

  #nav-container > li > a {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  #topo.site-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-brand-sistema {
    min-width: 0;
    margin-top: 12px;
    padding: 10px 0 0;
    border-top: 1px solid #b7d0e3;
    border-left: 0;
    text-align: left;
  }

  #header .session-summary,
  #header .session-summary tbody,
  #header .session-summary tr,
  #header .session-summary td {
    display: block;
    width: auto;
    text-align: left;
  }

  #header .session-summary td {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  #header .session-summary td:last-child {
    text-align: left;
  }

  .site-footer-linha {
    white-space: nowrap;
  }

}

@media print {
  #header,
  .nav {
    display: none;
  }
}
