body, html{
  height: 100%;
}
.buttons{
  max-width: 960px;
  text-align: center;
  margin: auto;
}
.desativo{
  pointer-events: none;
  background: #006194 !important;
  color: #FFFFFF !important;
}
.buttons a{
  width: 50%;
  background: #CCCCCC;
  padding: 2rem;
  border: 1px solid #CCCCCC;
  text-decoration: none;
  color: #333333;
  display: hidden;
}
.buttons a:hover{
  background: #006194;
  color:#FFFFFF;
}

@media ( max-width: 900px ) {
  .buttons a{
    width:100%;
    display: block;
    background: #CCCCCC;
    padding: 2rem;
    border: 1px solid #CCCCCC;
    text-decoration: none;
    color: #333333;
  }
  }


.byline {
  display: none;
}

thead {
  border-bottom: 1px solid #ddd;
}

th {
  text-align: left;
}

thead tr {
  height: 4.8rem;
}

tbody tr {
  height: 9.6rem;
}

.ranking-container {
  display: none;
  margin: 0 auto 6rem;
  width: 100%;
  max-width: 144rem;
}

@media ( min-width: 768px ) {
  .ranking-container {
    max-width: 72rem;
  }
}

@media ( min-width: 1024px ) {
  .ranking-container {
    max-width: 96rem;
  }
}

@media ( min-width: 1200px ) {
  .ranking-container {
    max-width: 115.2rem;
  }
}

@media ( min-width: 1600px ) {
  .ranking-container {
    max-width: 144rem;
  }
}

.ranking-container [type="search"] {
  margin-bottom: 3.2rem;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 5px 15px;
  margin-top: 5rem;
  margin-bottom: 5rem;
  width: 100%;
}

.ranking-container [type="search"]:focus {
  outline: none;
  border-color: #006194;
}

/*.avg-wrapper {
  background-color: #eee;
}*/

.avg {
  padding-left: 0.6rem;
  /*font-size: 0.8em;*/
  /*background-color: #006194;*/
  /*text-shadow:
   -1px -1px 0 #006194,
    1px -1px 0 #006194,
    -1px 1px 0 #006194,
     1px 1px 0 #006194;*/
}

.ranking-wrapper {
  overflow-x: auto;
}

.ranking {
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 72rem;
  font-size: 1.4rem;
  line-height: 1.44;
  /*white-space: nowrap;*/
}

td.subject {
  font-size: 1.2rem;
  width: 20%;
  /*font-weight: bold;*/
  text-transform: uppercase;
}

.ranking tr:nth-child(even) {
  background-color: #f5f5f5;
}

.ranking th,
.ranking td {
  /*border: 1px solid #777;*/
  padding: 1rem 0.5rem;
  /*table-layout: fixed;
  width: 60px;*/
  /*width: 16.666%;*/
}

.rank,
.state {
  width: 7.1428%;
}




th.rank,
th.inquiry,
td.inquiry,
td.party,
th.party,
td.state,
th.state {
  text-align: center;
}

.type,
.test,
.inquiry {
  width: 10%;
  min-width: 120px;
}

td.rank{
  min-width: 120px;
  font-weight: bold;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
  display: none;
}

.pagination a {
  display: block;
  width: 4.8rem;
  height: 4.8rem;
  color: inherit;
  line-height: 4.8rem;
  text-align: center;
  text-decoration: none;
}

.pagination a:hover,
.pagination a:focus {
  background-color: #f5f5f5;
}

.pagination .active a {
  background-color: #006194;
  color: white;
}


.ranking .subject{
  width: 25%;
}
.ranking .crime {
  /*width: 20%;*/
}
.ranking .office {
  width: 15%;
}
.ranking .rank, .ranking .party {
  width: 10%;
  min-width: 50px;
}
.ranking .inquiry {
  width: 15%;
  min-width: 120px;
}

.ranking .photo {
  width: 100px;
  /*border-radius: 50%;*/
}
.ranking .photo img {
  width: 100%;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
}


/*
.crime{
  padding: 0 15px;
}*/

/*.list {
  font-family:sans-serif;
}
td {
  padding:10px;
  border:solid 1px #eee;
}

input {
  border:solid 1px #ccc;
  border-radius: 5px;
  padding:7px 14px;
  margin-bottom:10px
}
input:focus {
  outline:none;
  border-color:#aaa;
}
.sort {
  padding:8px 30px;
  border-radius: 6px;
  border:none;
  display:inline-block;
  color:#fff;
  text-decoration: none;
  background-color: #28a8e0;
  height:30px;
}
.sort:hover {
  text-decoration: none;
  background-color:#1b8aba;
}
.sort:focus {
  outline:none;
}
.sort:after {
  display:inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid transparent;
  content:"";
  position: relative;
  top:-10px;
  right:-5px;
}
.sort.asc:after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  content:"";
  position: relative;
  top:4px;
  right:-5px;
}
.sort.desc:after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #fff;
  content:"";
  position: relative;
  top:-4px;
  right:-5px;
}*/
.inquiry-title{
  font-size: 24px;
}
.inquiry-link, .pdf-link{
  padding: 0rem 0.2rem;
  margin: 0.5rem 0;
  display: inline-block;
  color: #006194;
  /*background: #f3f3f3;
  text-decoration: none;*/
  border-radius: 3px;
}
.inquiry-link:hover, .pdf-link:hover{
  color: #333;
}
.inquiry-box{
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  position: fixed;
  background: rgba(255,255,255,0.9);
  display: none;
  top: 0;
  left:0;
}

body.frozen{
  overflow: hidden;
}
body.frozen .inquiry-box{
  display: block;
}
.inquiry-text{
  width: 90%;
  position: absolute;
  background: rgba(255,255,255,1);
  display: block;
  margin-top: 4rem;
  font-size: 16px;

  left: 50%;
  top: 0;
  padding-top: 4rem;
  max-width: 650px;

  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}

.rank, th.rank, td.rank {
  display: none;
}
