/* ----------------------------------------------------------------------------
 * THIS FILE IS PART OF THE CYLC SUITE ENGINE.
 * Copyright (C) NIWA & British Crown (Met Office) & Contributors.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * ------------------------------------------------------------------------- */

/* Implement grid-table class for plain style grid layouts. */
.grid-table {
    width: 100% !important;
    border: 0 !important; /* Remove table border. */
}
.grid-table tbody tr td:first-child {
    padding-left: 0 !important; /* Grid flush with the left-hand content edge. */
}
.grid-table tbody tr td:last-child {
    padding-right: 0 !important; /* Grid flush with the right-hand edge */
}
.grid-table tbody tr td {
    background-color: rgba(255,255,255,0) !important;
    border: 0 !important;  /* Remove cell border. */
    vertical-align: top !important;  /* All content should float to the top. */
}
.grid-table td {
    /* docutils sticks tables inside an align-center class, correct this */
    text-align: left;
}

/* Tables handle their own margin, this prevents getting a double margin. */
.grid-table div.highlight {
    margin-bottom: 0;
}
