/* ==========================================================================
   THEME: MEUTEMA CUSTOM STYLE (VuFind 10 / Bootstrap 5)
   Revisão
   ========================================================================== */

:root {
  --cgdi-green: #213a3c;
  --cgdi-gray: #878787;
  --cgdi-light-gray: #c8c8d2;
  --cgdi-orange: #e29733;
  --cgdi-white: #ffffff;
  --cgdi-text: #1f1f1f;
}

/* ====================== BASE ============================================ */

html,
body,
button,
input,
select,
textarea {
  font-family: "Myriad Pro", "Myriad Pro Regular", Arial, Helvetica, sans-serif !important;
}

html,
body,
#page,
.main,
#main,
#content {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cgdi-text) !important;
}

body::before,
body::after,
#page::before,
#page::after,
.main::before,
.main::after,
.container::before,
.container::after,
.container-fluid::before,
.container-fluid::after,
footer.hidden-print::before,
footer.hidden-print::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
}

.container,
.container-fluid,
.row {
  border-left: 0 !important;
  border-right: 0 !important;
}

.image-credit,
.header-center-title,
footer .poweredby {
  display: none !important;
}

/* ====================== BARRA BRASIL ==================================== */

#barra-brasil {
  background: #ededed !important;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

#barra-brasil a {
  color: #000000 !important;
}

#menu-barra-brasil .lista-barra-brasil .list-item a:hover {
  color: #333333 !important;
}

/* ====================== HEADER ========================================== */

header.hidden-print,
header .riep-header-top {
  background: var(--cgdi-green) !important;
  border: 0 !important;
}

header .riep-header-top .banner.container.navbar {
  min-height: 86px !important;
  padding: 10px 1rem !important;
  background: var(--cgdi-green) !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

header .riep-header-top .container,
header .riep-header-top .container-fluid,
header .riep-header-top .row {
  background: transparent !important;
}

header .navbar-brand {
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
  padding: 6px 0 !important;
  margin-right: 8px !important;
  line-height: 1 !important;
}

header .navbar-brand img {
  display: block !important;
  height: 58px !important;
  width: auto !important;
  margin: 0 !important;
}

header .inep-logo-container {
  display: flex !important;
  align-items: center !important;
  margin-left: 12px !important;
}

header .inep-logo-container img {
  display: block !important;
  height: 56px !important;
  width: auto !important;
  margin-top: 2px !important;
}

header a,
header .nav-link,
header .navbar-brand,
header .navbar-nav > li > a,
header #loginOptions a,
header .language > button,
header .language > a,
header a.icon-link,
header .navbar-right .icon-link {
  color: #ffffff !important;
  font-weight: 500 !important;
}

header a:hover,
header .nav-link:hover,
header #loginOptions a:hover,
header .language > button:hover,
header .language > a:hover,
header a.icon-link:hover,
header .navbar-right .icon-link:hover {
  color: var(--cgdi-orange) !important;
}

header .navbar-nav > li > a,
header .navbar-nav > li > button {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 70px !important;
}

header .dropdown-menu {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10) !important;
}

header .dropdown-item {
  color: #263238 !important;
}

header .search.container.navbar .searchbox {
  background: transparent !important;
}

body:not(.template-name-home) header .riep-header-top .banner.container.navbar {
  min-height: 62px !important;
}

body:not(.template-name-home) header .navbar-brand img {
  height: 42px !important;
}

/* ====================== HOME / HERO ===================================== */

body.template-dir-search.template-name-home #content.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

body.template-dir-search.template-name-home .main,
body.template-dir-search.template-name-home #main,
body.template-dir-search.template-name-home #content {
  background: #ffffff !important;
  background-image: none !important;
}

body.template-dir-search.template-name-home .searchHomeContent {
  width: 100% !important;
  min-height: 585px !important;
  margin: 0 !important;
  padding: 230px 0 235px !important;
  background:
    url("/themes/MeuTema/images/imagem_pagina_inicial_superior.png") top center / 100% 230px no-repeat,
    url("/themes/MeuTema/images/imagem_pagina_inicial_Inferior.png") bottom center / 100% 235px no-repeat,
    var(--cgdi-green) !important;
  display: block !important;
}

body.template-dir-search.template-name-home .searchHome,
body.template-dir-search.template-name-home .searchHome.jumbotron,
body.template-dir-search.template-name-home #search-home {
  width: 100% !important;
  min-height: 120px !important;
  padding: 34px 0 !important;
  margin: 0 !important;
  background: var(--cgdi-green) !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ====================== SEARCH FORM ===================================== */

body.template-dir-search.template-name-home #searchForm,
#searchForm {
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

body.template-dir-search.template-name-home #searchForm {
  width: auto !important;
  max-width: none !important;
}

body.template-dir-search.template-name-home #searchForm_lookfor,
body.template-dir-search.template-name-home #searchForm input[name="lookfor"] {
  width: 520px !important;
  max-width: 520px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 2px solid var(--cgdi-orange) !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #333333 !important;
  font-size: 14px !important;
  line-height: 38px !important;
  box-shadow: none !important;
}

body.template-dir-search.template-name-home #searchForm_type,
body.template-dir-search.template-name-home #searchForm select[name="type"] {
  width: 140px !important;
  height: 38px !important;
  margin: 0 !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #333333 !important;
  font-size: 13px !important;
}

body.template-dir-search.template-name-home #searchForm .btn,
body.template-dir-search.template-name-home #searchForm button[type="submit"],
body.template-dir-search.template-name-home #searchForm .btn-search-history,
body.template-dir-search.template-name-home #searchForm a.history-link {
  height: 38px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--cgdi-gray) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body.template-dir-search.template-name-home #searchForm .btn:hover,
body.template-dir-search.template-name-home #searchForm button[type="submit"]:hover,
body.template-dir-search.template-name-home #searchForm .btn-search-history:hover,
body.template-dir-search.template-name-home #searchForm a.history-link:hover {
  background: var(--cgdi-orange) !important;
  color: #ffffff !important;
}

body.template-dir-search.template-name-home #searchForm a[href*="/Search/Advanced"],
body.template-dir-search.template-name-home .searchHome a[href*="/Search/Advanced"] {
  height: 38px !important;
  margin: 0 0 0 8px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  text-decoration: underline !important;
  white-space: nowrap !important;
}

/* ====================== FOOTER ========================================== */

footer.hidden-print {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--cgdi-green) !important;
  color: #ffffff !important;
  border: 0 !important;
}

footer .footer-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 36px 12vw 34px !important;
  background: var(--cgdi-green) !important;
  color: #ffffff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 120px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

footer .footer-column {
  flex: 0 0 260px !important;
  max-width: 260px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

footer .footer-column h2,
footer .footer-column h3 {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

footer .footer-column ul {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

footer .footer-column li {
  margin: 0 0 7px 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

footer .footer-column a {
  color: #ffffff !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

footer .footer-column a:hover {
  color: var(--cgdi-orange) !important;
  text-decoration: underline !important;
}

footer.hidden-print .footer-container .footer-column:first-child {
  display: none !important;
}

footer.hidden-print .footer-column a[href*="/Search/Advanced"] {
  display: none !important;
}

footer::after {
  content: "Canais de atendimento ao usuário: Telefone: (61) 2022-3967 | E-mail: biblioteca@inep.gov.br";
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  background: var(--cgdi-light-gray) !important;
  color: #000000 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* ====================== PÁGINAS INTERNAS ================================ */

.breadcrumb,
.breadcrumbs,
.search-header,
.result-head {
  background: var(--cgdi-light-gray) !important;
  color: #333333 !important;
}

h1,
h2,
h3,
.record-title,
.result-title,
.result-title a {
  color: var(--cgdi-green) !important;
  font-weight: 700 !important;
}

a {
  color: var(--cgdi-orange) !important;
}

a:hover {
  color: var(--cgdi-green) !important;
}

.result,
.result-body,
.media {
  border-bottom: 1px solid #dddddd !important;
  padding-bottom: 18px !important;
  margin-bottom: 18px !important;
}

.label,
.badge,
.format,
.result-format {
  background: var(--cgdi-orange) !important;
  color: #ffffff !important;
  border-radius: 3px !important;
}

.sidebar .facet,
.sidebar .list-group,
.facet-group,
.sidegroup {
  border: 1px solid #d6d6d6 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.sidebar .facet h2,
.sidebar .facet .title,
.facet-group h2,
.sidegroup h2 {
  background: var(--cgdi-light-gray) !important;
  color: var(--cgdi-green) !important;
  font-weight: 700 !important;
}

.sidebar a,
.facet a {
  color: var(--cgdi-orange) !important;
}

.pagination > li > a,
.pagination > li > span {
  color: var(--cgdi-green) !important;
  border: 0 !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--cgdi-orange) !important;
  color: #ffffff !important;
}

.record .btn,
.toolbar .btn,
.result-links .btn,
.btn-default {
  background: #f3f3f3 !important;
  color: var(--cgdi-green) !important;
  border: 1px solid #dddddd !important;
  border-radius: 4px !important;
}

.record .btn:hover,
.toolbar .btn:hover,
.result-links .btn:hover,
.btn-default:hover {
  background: var(--cgdi-orange) !important;
  color: #ffffff !important;
}

table,
.table {
  border-color: #dddddd !important;
}

.table th,
.record-details th {
  background: var(--cgdi-light-gray) !important;
  color: var(--cgdi-green) !important;
}

.table td,
.record-details td {
  background: #ffffff !important;
}

/* ====================== RESPONSIVO ====================================== */

@media (max-width: 900px) {
  body.template-dir-search.template-name-home #searchForm,
  #searchForm {
    flex-wrap: wrap !important;
    width: 94vw !important;
  }

  body.template-dir-search.template-name-home #searchForm_lookfor,
  body.template-dir-search.template-name-home #searchForm input[name="lookfor"] {
    width: 94vw !important;
    max-width: 94vw !important;
  }

  footer .footer-container {
    padding: 28px 28px 30px !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  footer .footer-column {
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  body.template-dir-search.template-name-home .searchHomeContent {
    min-height: 520px !important;
    padding: 205px 12px 225px !important;
    background:
      url("/vufind/themes/MeuTema/images/imagem_pagina_inicial_superior.png") top center / auto 190px no-repeat,
      url("/vufind/themes/MeuTema/images/imagem_pagina_inicial_Inferior.png") bottom center / auto 210px no-repeat,
      var(--cgdi-green) !important;
  }

  body.template-dir-search.template-name-home #searchForm_type,
  body.template-dir-search.template-name-home #searchForm select[name="type"],
  body.template-dir-search.template-name-home #searchForm .btn,
  body.template-dir-search.template-name-home #searchForm button[type="submit"],
  body.template-dir-search.template-name-home #searchForm .btn-search-history,
  body.template-dir-search.template-name-home #searchForm a.history-link {
    height: 38px !important;
  }
}

body.template-dir-search.template-name-home .searchHomeContent {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.template-dir-search.template-name-home .searchHomeContent > *,
body.template-dir-search.template-name-home .searchHome,
body.template-dir-search.template-name-home .searchHome.jumbotron,
body.template-dir-search.template-name-home #search-home,
body.template-dir-search.template-name-home .searchbox {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.template-dir-search.template-name-home .searchHome,
body.template-dir-search.template-name-home .searchHome.jumbotron,
body.template-dir-search.template-name-home #search-home,
body.template-dir-search.template-name-home .searchbox {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.template-dir-search.template-name-home #searchForm,
body.template-dir-search.template-name-home form#searchForm,
body.template-dir-search.template-name-home .searchForm form,
body.template-dir-search.template-name-home form.searchForm {
  width: auto !important;
  max-width: 1060px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

body.template-dir-search.template-name-home #searchForm_lookfor,
body.template-dir-search.template-name-home #searchForm input[name="lookfor"] {
  width: 595px !important;
  max-width: 595px !important;
  flex: 0 0 595px !important;
}

body.template-dir-search.template-name-home #searchForm_type,
body.template-dir-search.template-name-home #searchForm select[name="type"] {
  width: 160px !important;
  max-width: 160px !important;
  flex: 0 0 160px !important;
}

body.template-dir-search.template-name-home #searchForm .btn,
body.template-dir-search.template-name-home #searchForm button[type="submit"],
body.template-dir-search.template-name-home #searchForm .btn-search-history,
body.template-dir-search.template-name-home #searchForm a.history-link,
body.template-dir-search.template-name-home #searchForm a[href*="/Search/Advanced"] {
  flex: 0 0 auto !important;
}

body.template-dir-search.template-name-home footer .footer-container {
  max-width: 760px !important;
  width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 36px 0 34px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 58px !important;
}

body.template-dir-search.template-name-home footer .footer-column {
  flex: 0 0 300px !important;
  max-width: 300px !important;
}

@media (max-width: 900px) {
  body.template-dir-search.template-name-home .searchHomeContent {
    display: block !important;
  }

  body.template-dir-search.template-name-home #searchForm,
  body.template-dir-search.template-name-home form#searchForm,
  body.template-dir-search.template-name-home .searchForm form,
  body.template-dir-search.template-name-home form.searchForm {
    width: 94vw !important;
    max-width: 94vw !important;
    flex-wrap: wrap !important;
  }

  body.template-dir-search.template-name-home #searchForm_lookfor,
  body.template-dir-search.template-name-home #searchForm input[name="lookfor"] {
    width: 94vw !important;
    max-width: 94vw !important;
    flex: 1 1 94vw !important;
  }

  body.template-dir-search.template-name-home #searchForm_type,
  body.template-dir-search.template-name-home #searchForm select[name="type"] {
    flex: 1 1 auto !important;
  }

  body.template-dir-search.template-name-home footer .footer-container {
    width: auto !important;
    max-width: none !important;
    padding: 28px 28px 30px !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  body.template-dir-search.template-name-home footer .footer-column {
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
}
