#main table {
  width: 100%;
  margin-bottom: 20px;
}

#main table th,
#main table td {
  padding: 8px;
  line-height: 20px;
 /*  text-align: left; */
  vertical-align: top;
  border-top: 1px solid #dddddd;
}

#main table th {
  font-weight: bold;
}

#main table thead th {
  vertical-align: bottom;
}

#main table caption + thead tr:first-child th,
#main table caption + thead tr:first-child td,
#main table colgroup + thead tr:first-child th,
#main table colgroup + thead tr:first-child td,
#main table thead:first-child tr:first-child th,
#main table thead:first-child tr:first-child td {
  border-top: 0;
}

#main table tbody + tbody {
  border-top: 2px solid #dddddd;
}

#main table table {
  background-color: #ffffff;
}

#main table {
  border: 1px solid #dddddd;
  border-collapse: separate;
  *border-collapse: collapse;
  border-left: 0;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}

#main table th,
#main table td {
  border-left: 1px solid #dddddd;
}

#main table caption + thead tr:first-child th,
#main table caption + tbody tr:first-child th,
#main table caption + tbody tr:first-child td,
#main table colgroup + thead tr:first-child th,
#main table colgroup + tbody tr:first-child th,
#main table colgroup + tbody tr:first-child td,
#main table thead:first-child tr:first-child th,
#main table tbody:first-child tr:first-child th,
#main table tbody:first-child tr:first-child td {
  border-top: 0;
}

#main table thead:first-child tr:first-child > th:first-child,
#main table tbody:first-child tr:first-child > td:first-child,
#main table tbody:first-child tr:first-child > th:first-child {
  -webkit-border-top-left-radius: 4px;
          border-top-left-radius: 4px;
  -moz-border-radius-topleft: 4px;
}

#main table thead:first-child tr:first-child > th:last-child,
#main table tbody:first-child tr:first-child > td:last-child,
#main table tbody:first-child tr:first-child > th:last-child {
  -webkit-border-top-right-radius: 4px;
          border-top-right-radius: 4px;
  -moz-border-radius-topright: 4px;
}

#main table thead:last-child tr:last-child > th:first-child,
#main table tbody:last-child tr:last-child > td:first-child,
#main table tbody:last-child tr:last-child > th:first-child,
#main table tfoot:last-child tr:last-child > td:first-child,
#main table tfoot:last-child tr:last-child > th:first-child {
  -webkit-border-bottom-left-radius: 4px;
          border-bottom-left-radius: 4px;
  -moz-border-radius-bottomleft: 4px;
}

#main table thead:last-child tr:last-child > th:last-child,
#main table tbody:last-child tr:last-child > td:last-child,
#main table tbody:last-child tr:last-child > th:last-child,
#main table tfoot:last-child tr:last-child > td:last-child,
#main table tfoot:last-child tr:last-child > th:last-child {
  -webkit-border-bottom-right-radius: 4px;
          border-bottom-right-radius: 4px;
  -moz-border-radius-bottomright: 4px;
}

#main table tfoot + tbody:last-child tr:last-child td:first-child {
  -webkit-border-bottom-left-radius: 0;
          border-bottom-left-radius: 0;
  -moz-border-radius-bottomleft: 0;
}

#main table tfoot + tbody:last-child tr:last-child td:last-child {
  -webkit-border-bottom-right-radius: 0;
          border-bottom-right-radius: 0;
  -moz-border-radius-bottomright: 0;
}

#main table caption + thead tr:first-child th:first-child,
#main table caption + tbody tr:first-child td:first-child,
#main table colgroup + thead tr:first-child th:first-child,
#main table colgroup + tbody tr:first-child td:first-child {
  -webkit-border-top-left-radius: 4px;
          border-top-left-radius: 4px;
  -moz-border-radius-topleft: 4px;
}

#main table caption + thead tr:first-child th:last-child,
#main table caption + tbody tr:first-child td:last-child,
#main table colgroup + thead tr:first-child th:last-child,
#main table colgroup + tbody tr:first-child td:last-child {
  -webkit-border-top-right-radius: 4px;
          border-top-right-radius: 4px;
  -moz-border-radius-topright: 4px;
}

#main table tbody > tr:nth-child(odd) > td,
#main table tbody > tr:nth-child(odd) > th {
  background-color: #f9f9f9;
}
