/**
 * Styling for the INZ irrigation tables.
 *
 * @author: H Paterson.
 * @copyright: Iris Data Science, 2020.
 */

.site-table-container
{
    width: 100%;
    overflow-x: auto;
}

.site-table
{
    border-collapse: collapse;
    width: 100%;
}

.site-table tbody tr:nth-child(odd)
{
    background-color: #d0ecf2;
}

.site-table th, .site-table td
{
   padding-right: 0.5em;
   font-size: 14px;
}

thead {
    color:#2993b2;
}

#average-table {
    text-align: right;
}

#qi-table {
    text-align: center;
}

/** Format the row titles and unit columns. */
.site-table th:nth-child(1),
 .site-table td:nth-child(1),
 .site-table,
 #average-table tbody th:nth-child(2)
{
    text-align: left;
    white-space: nowrap;
}

.site-table tbody tr:hover
{
    background-color:  #2993b2;
    color: white;
    cursor: pointer;
}

.site-table tbody .tr-selected td
{
    background-color: #52bf9f;
    color: white;
}

#table-tab-buttons {
    margin: 0;
    padding: 0;
    width: 100%;
    display: inline-block;
    box-shadow: 0px -3px 0px #52bf9f inset; 
    z-index: 1002; /* leaflet uses first 1,000 indices */
}

#tab-button-averages.tab-button-selected,
#tab-button-trends.tab-button-selected,
#tab-button-narratives.tab-button-selected {
    border: 3px solid #52bf9f;
    color: #52bf9f;
    border-bottom: 3px solid white;
}

#tab-button-averages, #tab-button-trends, #tab-button-narratives {
    display: inline-block;
    margin-right: 3px;
    color: #2993b2;
    width: 150px;
    text-align: center;
    padding: 10px 0;
    cursor:pointer;
    font-weight: bold;
    background-color: white;
    border: 3px solid #2993b2;
    border-bottom: 3px solid #52bf9f;
}

#average-table-container, #qi-table-container {
    overflow-x:scroll;
}

#table-averages, #table-trends, #narrative-panel {
    padding-left: 10px;
}

#qi-table-container #qi-table thead tr th:not(:first-child) {
    cursor: pointer;
}

#qi-table-container #qi-table thead tr th:not(:first-child):hover {
    color: white;
    background-color: #2993b2;
}

thead .highlight-column {
    color: white;
    background-color: #52bf9f;
}
tbody .highlight-column {
    background-color: rgba(78, 191, 160, 0.3);
}

.site-table tbody tr:hover
{
    background-color: #2993b2 !important;
    color: white !important;
    cursor: pointer;
}
