/** TABLE RESPONSIVE -------------------------------- **/ 

table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 16px;
}

#bg0 {background: none;}
/* Zebra striping */
tr:nth-of-type(odd) { 
  background: #fff; 
}

td, th { 
  padding: 6px; 
  text-align: left; 
}
th { 
border-top: 0; 
background: #f3f2ed;
}

td { border-top: 1px solid #ccc; padding: 10px; }

td {cursor: pointer;}

thead tr:hover { background: none; cursor: default;}
tr:hover { background: #eeeeee; cursor: pointer;}

th:last-child { text-align: right;}


td:last-child { text-align: right; min-width: 130px; }


td:first-child {min-width: 150px;}


#listagem_moradas_tb td:last-child {
    min-width: 156px;
}

#listagem_estatisticas_tb td:last-child ul {float: right;}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table.responsive, .responsive thead, .responsive tbody, .responsive th, .responsive td, .responsive tr { 
        display: block; 
    }

    table { 

  font-size: 16px;
}
    
    /* Hide table headers (but not display: none;, for accessibility) */
    .responsive thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive tr { border: 1px solid #ccc; }
    
    .responsive td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
        text-align: right;

    }
    
    .responsive td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;

    }
    
    /*
    Label the data
    */
    .responsive td:before { content: attr(data-table-header); }
}

.table-responsive .bootstrap {
  min-height: .01%;
  overflow-x: auto;
}


@media screen and (min-width: 767px) {}




@media screen and (max-width: 767px) {

  .responsive td { 
        border-bottom: 0; 
    }

    .responsive td:first-child { 
        background: #f3f2ed;
    }

  .table-responsive.bootstrap {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
  }
  .table-responsive.bootstrap > .table {
    margin-bottom: 0;
  }
  .table-responsive.bootstrap > .table > thead > tr > th,
  .table-responsive.bootstrap > .table > tbody > tr > th,
  .table-responsive.bootstrap > .table > tfoot > tr > th,
  .table-responsive.bootstrap > .table > thead > tr > td,
  .table-responsive.bootstrap > .table > tbody > tr > td,
  .table-responsive.bootstrap > .table > tfoot > tr > td {
    white-space: nowrap;
  }
  .table-responsive.bootstrap > .table-bordered {
    border: 0;
  }
  .table-responsive.bootstrap > .table-bordered > thead > tr > th:first-child,
  .table-responsive.bootstrap > .table-bordered > tbody > tr > th:first-child,
  .table-responsive.bootstrap > .table-bordered > tfoot > tr > th:first-child,
  .table-responsive.bootstrap > .table-bordered > thead > tr > td:first-child,
  .table-responsive.bootstrap > .table-bordered > tbody > tr > td:first-child,
  .table-responsive.bootstrap > .table-bordered > tfoot > tr > td:first-child {
    border-left: 0;
  }
  .table-responsive.bootstrap > .table-bordered > thead > tr > th:last-child,
  .table-responsive.bootstrap > .table-bordered > tbody > tr > th:last-child,
  .table-responsive.bootstrap > .table-bordered > tfoot > tr > th:last-child,
  .table-responsive.bootstrap > .table-bordered > thead > tr > td:last-child,
  .table-responsive.bootstrap > .table-bordered > tbody > tr > td:last-child,
  .table-responsive.bootstrap > .table-bordered > tfoot > tr > td:last-child {
    border-right: 0;
  }
  .table-responsive.bootstrap > .table-bordered > tbody > tr:last-child > th,
  .table-responsive.bootstrap > .table-bordered > tfoot > tr:last-child > th,
  .table-responsive.bootstrap > .table-bordered > tbody > tr:last-child > td,
  .table-responsive.bootstrap > .table-bordered > tfoot > tr:last-child > td {
    border-bottom: 0;
  }

td:last-child {font-weight: bold;}
}

/** TABLE RESPONSIVE END-------------------------------- **/ 