table.incidentTable, table.figureTable, table.settingsTable, table.dataTable, table.logTable {
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    border-collapse: collapse;
    width: 100%;
}

table.settingsTable {
    width: calc(100% - 294px);
    margin: 10px auto 20px 220px;
}

table.logTable {
    margin: 10px auto 20px;
}

table.dataTable {
    font-size: 12px;
    width: 300px;
    margin: 0 auto 20px;
}

table.figureTable {
    margin: 10px 0 50px;
}

table.incidentTable tr, table.figureTable tr, table.settingsTable tr, table.dataTable tr, table.logTable tr {
    height: 25px;
    border-bottom: 1px solid #95a5a6;
    vertical-align: middle;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

#mazeCheckTable {
    margin-top: 50px;
}

div#tableContainer {
    overflow-x: scroll;
}

div.wideTableDiv {
    margin: 20px;
}

table.figureTable tr, table.dataTable tr {
    height: 35px;
}

table.figureTable tr.conflictRow, table.logTable tr.conflictRow {
    color: #ff0000;
}

table.incidentTable tr:last-child {
    border-bottom: none;
}

table.incidentTable tr.emptyRow {
    background: none;
    border-bottom: none;
    height: 100px;
}

table.incidentTable tr.clear, table.logTable tr.inactive, tr.clearRow {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

table.incidentTable th, table.figureTable th, table.settingsTable th, table.dataTable th, table.logTable th {
    margin: 0;
    padding: 0 5px;
    font-weight: 300;
    border-bottom: 1px solid #95a5a6;
    text-transform: uppercase;
    text-align: left;
}

table.incidentTable td, table.figureTable td, table.settingsTable td, table.dataTable td, table.logTable.rideStatsTable td, table.logTable td {
    padding: 0 5px;
    vertical-align: middle;
}

table.logTable.rideStatsTable {
    text-transform: none;
}

table.dataTable td, table.dataTable th {
    width: 125px;
}

input.rowEdit, select.rowEdit, textarea.rowEdit {
    font-size: 16px;
    line-height: 16px;
    max-width: 100px;
    height: 20px;
    margin: 5px 0;
}

/* input[type="checkbox"].rowEdit.rowCheckbox, input[type="checkbox"].rowEdit.rowCheckbox.checkCheckbox.finalRowCheckbox{
  margin-top: 3px;
}
input[type="checkbox"].rowEdit.checkCheckbox{
  margin-top: 0;
} */

#rideCheckTable td > textarea.rowEdit, #mazeCheckTable td > textarea.rowEdit {
    max-width: none;
    width: auto;
}

select.rowEdit {
    height: auto;
    min-height: 20px;
}

textarea.formLogTextArea.rowEdit {
    max-width: none;
    width: calc(100% - 20px);
}

input.unitRow, ul.ui-autocomplete.smallAutoComplete {
    width: auto;
    min-width: 35px;
    max-width: 50px;
}

ul.ui-autocomplete.medAutoComplete {
    width: 152px;
    border-top: 1px solid #95a5a6;
}

tr.editRow td {
    padding: 0 3px;
}

td.centreText, th.centreText, table.settingsTable th.centreText, table.logTable th.centreText {
    text-align: center;
}

td.setCell {
    color: #95a5a6;
    transition: color 0.25s ease-in-out;
    cursor: pointer;
}

td.setCell.setCheckCell {
    padding-left: 55px;
}

td.setCell:hover {
    color: #ff9900;
}

td > a.medical:hover {
    color: #27ae60;
}

td > a.ride:hover {
    color: #e87e04;
}

td > a.security:hover {
    color: #2980b9;
}

input.rowCheckbox {
    height: 15px;
    margin: 3px 5px;
    padding: 0;
}

input.rowCheckbox::before {
    top: 3px;
}

input.rowEdit.rowCheckbox::before {
    top: 2px;
}

td > i.fa-exclamation-triangle ~ input.rowCheckbox.checkCheckbox {
    margin-top: 0;
}

div.paginationjs {
    margin: 20px auto 0;
    width: 100%;
    text-align: center;
}

div.paginationjs > * {
    vertical-align: middle;
}

div.paginationjs-pages, div.paginationjs-go-input, div.paginationjs-go-button {
    display: inline-block;
}

div.paginationjs-pages {
    margin-bottom: 10px;
}

div.paginationjs > div.paginationjs-pages > ul {
    padding: 0 10px;
    box-sizing: border-box;
    list-style: none;
    width: 100%;
    font-size: 0;
    font-family: 'Gill Sans', 'Open Sans', sans-serif;
    font-weight: 300;
}

div.paginationjs > div.paginationjs-pages > ul > li {
    display: inline-block;
    font-size: 18px;
    min-width: 25px;
    width: auto;
    height: 25px;
    line-height: 25px;
    cursor: pointer;
}

div.paginationjs > div.paginationjs-pages > ul > li > a {
    text-decoration: none;
}

div.paginationjs > div.paginationjs-pages > ul > li:hover > a {
    color: #ff9900;
}

.capitals {
    text-transform: uppercase;
}

.r1, .active {
    color: #ff0000;
}

.r2 {
    color: #cf000f;
}

.a {
    color: #f1c40f;
}

.g {
    color: #27ae60;
}

.sec {
    color: #2980b9;
}

.rid {
    color: #e87e04;
}

.ri {
    color: #f49302;
}

.sh {
    color: #3579bb;
}

.re {
    color: #80B0DE;
}

.ga {
    color: #AA2DBC;
}

.ma {
    color: #dc2a1b;
}

.gr {
    color: #a2d108;
}

.bu {
    color: #4d4d4c;
}

.po {
    color: #47c575;
}

.mi {
    color: #95a5a6;
}

@media only screen and (max-device-width: 736px) and (orientation: portrait) {
    /* iPhone 6S and below in portrait*/
    #incidentTable > tbody > tr > td:nth-child(1), #incidentTable > tbody > tr > th:nth-child(1), #incidentTable > tbody > tr > td:nth-child(2), #incidentTable > tbody > tr > th:nth-child(2), #incidentTable > tbody > tr > td:nth-child(6), #incidentTable > tbody > tr > th:nth-child(6), #incidentTable > tbody > tr > td:nth-child(7), #incidentTable > tbody > tr > th:nth-child(7) {
        display: none;
    }
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait) {
    /* iPad portrait layouts only */
    table.settingsTable {
        width: 100%;
        margin: 10px 0;
    }
}
