main {margin-bottom: 3rem;}
@media(min-width: 1200px) {
  main {margin-top: 1.875rem; margin-bottom: 5rem;}
}

h1.title {
  font-family: "Montserrat Bold";
  font-size: 1.625rem;
  color: #012c3d;
  text-align: center;
  margin-bottom: 2.75rem;
}

/* Formulário Portarias */
.page-ordinances form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1.25rem;
}
.page-ordinances form .form-select,
.page-ordinances form .input-group .form-control {
  font-family: "Montserrat SemiBold";
  font-size: 0.875rem;
  height: 48px;
  color: #494949;
}
.page-ordinances form .input-group button {
  background-color: #747474;
  border-color: #747474;
  color: #FFFFFF;
}
.page-ordinances form .input-group button:hover,
.page-ordinances form .input-group button:focus {
  background-color: #515151;
  border-color: #515151;
  color: #FFFFFF;
}
@media(max-width: 767px) {
  .page-ordinances form .input-group:focus-within {
    border-radius: 5px;
    box-shadow: 0 0 0 0.25rem rgba(116 116 116 / 25%);
  }
  .page-ordinances form .input-group .form-control {
    border-right: 0;
  }
  .page-ordinances form .input-group .form-control:focus {
    box-shadow: none;
  }
  .page-ordinances form .input-group button {
    max-width: 48px;
  }
}
@media(min-width: 768px) {
  .page-ordinances form {
    flex-direction: row;
    justify-content: space-between;
  }
  .page-ordinances form .form-select {
    max-width: 215px;
  }
  .page-ordinances form .input-group {
    gap: 1.25rem;
  }
  .page-ordinances form .input-group .form-control {
    border-top-right-radius: 0.3rem!important;
    border-bottom-right-radius: 0.3rem!important;
  }
  .page-ordinances form .input-group button {
    width: 100%;
    max-width: 148px;
    margin-left: 0;
    border-top-left-radius: 0.25rem!important;
    border-bottom-left-radius: 0.25rem!important;
  }
  .page-ordinances form .input-group button::before {
    content: "Buscar";
    font-family: "Montserrat SemiBold";
    font-size: 0.75rem;
    text-transform: uppercase;
  }
}

/* Tabela Portarias */
.page-ordinances .table tbody tr > *,
.page-ordinances .table tbody tr > * > * {
  font-family: "Montserrat Medium";
  font-size: 0.875rem;
  color: #4d4d4d;
}
.page-ordinances .table tbody tr th {
  font-weight: inherit;
  text-transform: uppercase;
}
.page-ordinances .table > tbody > tr:nth-of-type(odd) > * {
  background-color: #FFFFFF;
}
.page-ordinances .table > tbody > tr:nth-of-type(even) > * {
  background-color: #f2f2f2;
}
.page-ordinances .table > tbody > tr:hover > * {
  font-weight: bold;
  background-color: #e6f2fc;
  color: #5a5a5a;
}
@media(max-width: 991px) {
  .page-ordinances .table > :not(:first-child) {
    border-top: 4px solid #3d3f7d;
  }
  .page-ordinances .table thead {
    display: none;
  }
  .page-ordinances .table tbody tr {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .page-ordinances .table tbody tr > * {
    padding: 0 0.75rem 0 6.75rem;
  }
  .page-ordinances .table tbody tr > *:first-child {
    padding-top: 1rem;
  }
  .page-ordinances .table tbody tr > *:last-child {
    padding-bottom: 1rem;
  }
  .page-ordinances .table tbody tr > *:last-child span {
    display: block;
    min-height: 21px;
  }

  .page-ordinances .table tbody tr th::before,
  .page-ordinances .table tbody tr td::before {
    font-family: "Montserrat Bold";
    position: absolute;
    left: 0.75rem;
    color: #3d3f7d;
  }
  .page-ordinances .table tbody tr th:nth-child(1)::before {
    content: "TIPO:";
  }
  .page-ordinances .table tbody tr td:nth-child(2)::before {
    content: "NÚMERO:";
  }
  .page-ordinances .table tbody tr td:nth-child(3)::before {
    content: "DATA:";
  }
  .page-ordinances .table tbody tr td:nth-child(4)::before {
    content: "ASSUNTO:";
  }
  .page-ordinances .table tbody tr td:nth-child(5)::before {
    content: "ARQUIVO:";
  }
  .page-ordinances .table tbody tr td:nth-child(6)::before {
    content: "ANEXO:";
  }
}
@media(min-width: 992px) {
  .page-ordinances .table thead > tr > * {
    font-family: "Montserrat Bold";
    font-size: 0.875rem;
    text-transform: uppercase;
    background-color: #3d3f7d;
    color: #FFFFFF;
    padding: 0.75rem 1rem;
  }
  .page-ordinances .table thead > tr > *:nth-child(-n+3) {
    text-align: center;
  }

  .page-ordinances .table tbody > tr > * {
    padding: 0.875rem 1rem;
  }
  .page-ordinances .table tbody > tr > *:nth-child(-n+3) {
    text-align: center;
  }
  .page-ordinances .table tbody > tr * + * {
    border-left: 1px solid rgb(217, 217, 217);
  }
}
