/* Consultas principais de materias, sessoes e normas. */
body.materia-search-section-page .materia-search-command {
  overflow: hidden;
  border: 1px solid #d8e4f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(22, 55, 91, .08);
}

body.materia-search-section-page .materia-search-command__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.35rem 1.05rem;
}

body.materia-search-section-page .materia-search-command__heading {
  min-width: 0;
}

body.materia-search-section-page .materia-search-command__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  margin-bottom: .32rem;
  color: #0967b2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.materia-search-section-page .materia-search-command__heading h2 {
  margin: 0;
  color: #102f54;
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.12;
}

body.materia-search-section-page .materia-search-command__heading p {
  max-width: 58ch;
  margin: .4rem 0 0;
  color: #5f7590;
  font-size: .9rem;
  line-height: 1.45;
  text-wrap: pretty;
}

body.materia-search-section-page .materia-search-command__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

body.materia-search-section-page .materia-search-command__actions .btn {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem .9rem;
  border-radius: 10px !important;
  font-size: .88rem;
  font-weight: 800 !important;
  line-height: 1.15;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease,
    box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

body.materia-search-section-page .materia-search-command__actions .materia-search-add {
  border: 1px solid #0967b2 !important;
  background: #0967b2 !important;
  box-shadow: 0 8px 18px rgba(9, 103, 178, .17);
}

body.materia-search-section-page .materia-search-command__actions .materia-search-reset {
  border-color: #c8d8e9 !important;
  color: #154b80 !important;
  background: #fff !important;
}

body.materia-search-section-page .materia-search-command__actions .btn:hover {
  transform: translateY(-1px);
}

body.materia-search-section-page .materia-search-command__actions .materia-search-reset:hover {
  border-color: #8cb4d8 !important;
  background: #f5f9fd !important;
}

body.materia-search-section-page .materia-search-command__actions .btn:active {
  transform: translateY(0);
}

body.materia-search-section-page .materia-search-command__actions .btn:focus-visible,
body.materia-search-section-page .materia-search-clear:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .3);
  outline-offset: 2px;
}

body.materia-search-section-page .materia-search-command__alert {
  display: flex;
  width: auto;
  align-items: center;
  gap: .55rem;
  margin: 0 1.35rem .9rem;
  padding: .62rem .72rem;
  border: 1px solid #fed1cc;
  border-radius: 10px;
  color: #9f2d22 !important;
  background: #fff7f6;
  font-size: .82rem;
  text-decoration: none !important;
}

body.materia-search-section-page .materia-search-command__alert strong {
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 .42rem;
  box-shadow: none;
}

body.materia-search-section-page .materia-search-command__alert > i {
  margin-left: auto;
  color: #ba3b30;
}

body.materia-search-section-page .materia-search-panel--catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto;
  align-items: end;
  gap: .8rem;
  padding: 1rem 1.35rem 1.25rem;
  border: 0;
  border-top: 1px solid #e3ebf4;
  border-radius: 0;
  background: #f7f9fc;
  box-shadow: none;
}

body.materia-search-section-page .materia-search-panel--session {
  grid-template-columns: repeat(3, minmax(105px, 140px)) minmax(220px, 1fr) auto;
}

body.materia-search-section-page .materia-search-panel--norma {
  grid-template-columns: minmax(210px, .9fr) minmax(105px, .38fr)
    minmax(105px, .38fr) minmax(220px, 1fr) auto;
}

body.proposicao-search-section-page .materia-search-panel--proposicao {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.proposicao-search-section-page .proposicao-result-card {
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
}

body.proposicao-search-section-page .proposicao-result-card:hover {
  border-color: #aac9e8;
  box-shadow: 0 12px 28px rgba(15, 35, 72, .08);
  transform: translateY(-1px);
}

body.proposicao-search-section-page .proposicao-title-caveat {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: #5c6f87;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.3;
}

body.proposicao-search-section-page .proposicao-origin-alert {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  padding: .8rem .9rem;
  color: #5d3b00;
  background: #fff8e6;
  border: 1px solid #e9cd82;
  border-radius: 9px;
  font-size: .86rem;
  line-height: 1.4;
}

body.proposicao-search-section-page .proposicao-origin-alert span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .28rem;
  overflow-wrap: anywhere;
}

body.proposicao-search-section-page .proposicao-result-links {
  padding-top: .1rem;
}

body.materia-search-section-page .materia-search-form-errors {
  grid-column: 1 / -1;
  color: #9f2d22;
  font-size: .84rem;
  font-weight: 700;
}

body.materia-search-section-page .materia-search-panel--catalog .errorlist {
  margin: .4rem 0 0;
  padding: 0;
  color: #9f2d22;
  font-size: .78rem;
  font-weight: 700;
  list-style: none;
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-field label {
  margin-bottom: .38rem;
  color: #294767;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .025em;
}

body.materia-search-section-page .materia-search-control {
  position: relative;
}

body.materia-search-section-page .materia-search-control > i {
  position: absolute;
  top: 50%;
  left: .95rem;
  z-index: 1;
  color: #6b82a0;
  font-size: .9rem;
  pointer-events: none;
  transform: translateY(-50%);
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-field input,
body.materia-search-section-page .materia-search-panel--catalog .materia-search-field select {
  height: 50px;
  min-height: 50px;
  border-color: #c8d7e7;
  border-radius: 10px;
  color: #173758;
  background-color: #fff;
  font-size: .92rem;
  font-weight: 600;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-control input {
  padding-left: 2.65rem;
  caret-color: #0967b2;
}

body.materia-search-section-page .materia-search-panel--catalog input::placeholder {
  color: #5c718d;
  opacity: 1;
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-field input:focus,
body.materia-search-section-page .materia-search-panel--catalog .materia-search-field select:focus {
  border-color: #2388cb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(35, 136, 203, .16);
}

body.materia-search-section-page .materia-search-form-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-submit,
body.materia-search-section-page .materia-search-clear {
  display: inline-flex;
  width: auto;
  min-width: 132px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: .65rem .95rem;
  border-radius: 10px !important;
  font-size: .9rem;
  font-weight: 800 !important;
  line-height: 1.15;
  white-space: nowrap;
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-submit {
  border: 1px solid #0967b2 !important;
  background: #0967b2 !important;
  box-shadow: 0 8px 18px rgba(9, 103, 178, .15);
}

body.materia-search-section-page .materia-search-clear {
  min-width: 44px;
  border: 1px solid #c8d7e7;
  color: #45627e !important;
  background: #fff;
  text-decoration: none !important;
}

body.materia-search-section-page .materia-search-panel--catalog .materia-search-submit:hover {
  background: #075b9e !important;
}

body.materia-search-section-page .materia-search-clear:hover {
  border-color: #9db6cf;
  color: #173758 !important;
  background: #f1f6fa;
}

body.materia-search-section-page .session-catalog-result-card {
  grid-template-areas:
    "titulo status"
    "meta meta"
    "original original";
}

body.materia-search-section-page .materia-result-stick--session {
  color: #154b80;
  border-color: #c7ddfb;
  background: #eef6ff;
  box-shadow: 0 8px 16px rgba(21, 75, 128, .08);
}

body.materia-search-section-page .materia-result-links {
  grid-area: original;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
}

body.materia-search-section-page .materia-result-links .materia-result-original {
  grid-area: auto;
}

body.materia-search-section-page .materia-result-stateboard {
  grid-area: status;
  display: grid;
  width: min(100%, 340px);
  min-width: 270px;
  overflow: hidden;
  align-self: start;
  justify-self: end;
  border: 1px solid #d5e1ed;
  border-radius: 11px;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(16, 47, 84, .06);
}

body.materia-search-section-page .materia-result-stateboard--multiple {
  width: min(100%, 560px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.materia-search-section-page .materia-result-stateboard--multiple .materia-result-state + .materia-result-state {
  border-top: 0;
}

body.materia-search-section-page .materia-result-state {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .62rem .72rem;
  color: #294767;
  text-align: left;
}

body.materia-search-section-page .materia-result-state + .materia-result-state {
  border-top: 1px solid #dfe8f1;
}

body.materia-search-section-page .materia-result-state__icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #526d89;
  background: #e8eef5;
  font-size: .88rem;
}

body.materia-search-section-page .materia-result-state__copy {
  display: grid;
  min-width: 0;
  gap: .08rem;
}

body.materia-search-section-page .materia-result-state__copy small {
  color: #6a7f96;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .065em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.materia-search-section-page .materia-result-state__copy strong {
  overflow: hidden;
  color: #173758;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.materia-search-section-page .materia-result-state--approved .materia-result-state__icon {
  color: #0f7542;
  background: #e4f5ec;
}

body.materia-search-section-page .materia-result-state--rejected .materia-result-state__icon {
  color: #a12828;
  background: #fdebea;
}

body.materia-search-section-page .materia-result-state--pending .materia-result-state__icon {
  color: #806000;
  background: #fff1bd;
}

body.materia-search-section-page .materia-result-state--voted .materia-result-state__icon {
  color: #0967b2;
  background: #e4f2fd;
}

@media (max-width: 1040px) {
  body.materia-search-section-page .materia-search-command__header {
    align-items: flex-start;
  }

  body.materia-search-section-page .materia-search-panel--catalog {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  }

  body.materia-search-section-page .materia-search-panel--session,
  body.materia-search-section-page .materia-search-panel--norma {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.proposicao-search-section-page .materia-search-panel--proposicao {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.materia-search-section-page .materia-search-form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  body.materia-search-section-page .materia-search-command {
    border-radius: 14px;
  }

  body.materia-search-section-page .materia-search-command__header {
    display: grid;
    gap: 1rem;
    padding: 1rem;
  }

  body.materia-search-section-page .materia-search-command__heading p {
    font-size: .84rem;
  }

  body.materia-search-section-page .materia-search-command__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  body.materia-search-section-page .materia-search-command__actions .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: .65rem;
    white-space: normal;
  }

  body.materia-search-section-page .materia-search-command__alert {
    margin: 0 1rem .8rem;
  }

  body.materia-search-section-page .materia-search-panel--catalog {
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: .9rem 1rem 1rem;
  }

  body.proposicao-search-section-page .materia-search-panel--proposicao {
    grid-template-columns: 1fr;
  }

  body.proposicao-search-section-page .proposicao-title-caveat {
    flex-basis: 100%;
  }

  body.proposicao-search-section-page .proposicao-result-card:hover {
    transform: none;
  }

  body.materia-search-section-page .materia-search-form-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.materia-search-section-page .materia-search-panel--catalog .materia-search-submit,
  body.materia-search-section-page .materia-search-clear {
    width: 100%;
    min-height: 50px;
  }

  body.materia-search-section-page .materia-search-clear {
    min-width: 50px;
  }

  body.materia-search-section-page .materia-result-stateboard {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  body.materia-search-section-page .materia-result-stateboard--multiple {
    grid-template-columns: 1fr;
  }

  body.materia-search-section-page .materia-result-stateboard--multiple .materia-result-state + .materia-result-state {
    border-top: 1px solid #dfe8f1;
  }
}

@media (max-width: 430px) {
  body.materia-search-section-page .materia-search-command__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.materia-search-section-page .materia-search-command *,
  body.materia-search-section-page .materia-search-command *::before,
  body.materia-search-section-page .materia-search-command *::after {
    transition-duration: .01ms !important;
  }

  body.proposicao-search-section-page .proposicao-result-card {
    transition: none;
  }

  body.proposicao-search-section-page .proposicao-result-card:hover {
    transform: none;
  }
}
