﻿/* =======================
   GRID – ALGEMEEN
======================= */
.GridClass {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background-color: #ffffff;
    table-layout: auto;

}

    /* =======================
   GRID – HEADER
======================= */
    .GridClass th {
        background-color: var(--brand-bg);
        color: var(--brand-text);
        font-weight: bold;
        border: 1px solid #aaa;
        padding: 6px 8px;
        white-space: nowrap;
        overflow: visible;
    }
        .GridClass th .tooltiptext {
            white-space: normal !important;
        }

        .GridClass th a {
            color: var(--grid-sortable-header);
            text-decoration: none;
            font-weight: 600;
        }

            .GridClass th a:hover {
                color: var(--grid-sortable-header-hover);
                text-decoration: underline;
            }

            .GridClass th a:active {
                color: var(--grid-sortable-header-active);
            }

    /* =======================
   GRID – DATA CELLS
======================= */
    .GridClass td {
        padding: 6px 8px;
        border: 1px solid #aaa;
        color: var(--black);
        vertical-align: middle;
    }

        .GridClass td.right,
        .GridClass th.right {
            text-align: right;
            padding-right: 10px;
        }

        .GridClass td.center,
        .GridClass th.center {
            text-align: center;
        }

    /* =======================
   ZEBRA STRIPING (FIX)
======================= */

    /* ONEVEN */
    .GridClass tbody tr:nth-child(odd) td:not(.grid-action) {
        background-color: #eef3f8;
    }

    .GridClass tbody tr:nth-child(odd) td.grid-action {
        background-color: var(--grid-action-odd);
    }

    /* EVEN */
    .GridClass tbody tr:nth-child(even) td:not(.grid-action) {
        background-color: #d9e2ec;
    }

    .GridClass tbody tr:nth-child(even) td.grid-action {
        background-color: var(--grid-action-even);
    }

    /* =======================
   ROW INTERACTION
======================= */
    .GridClass tbody tr {
        cursor: pointer;
    }

        .GridClass tbody tr:hover td {
            background-color: #fff2b2;
        }

    /* =======================
   SELECTED ROW
======================= */
    .GridClass tr.grid-row-selected td {
        background-color: var(--grid-row-selected) !important;
    }

    /* =======================
   EDIT MODE ROW
======================= */
    .GridClass tr.GridViewEditRow td,
    .GridClass tr.GridViewEditRow:hover td {
        background-color: #ffd966;
    }

    /* =======================
   POST GROUPING COLORS
======================= */
    .GridClass tr.postGroupA td {
        background-color: #eef5ff;
    }

    .GridClass tr.postGroupB td {
        background-color: #ffffff;
    }

    .GridClass tr.postSelected td {
        background-color: #a8e6a3;
        color: var(--black);
    }

    .GridClass tr.postSelected:hover td {
        background-color: #a8e6a3;
    }

    /* =======================
   GRID – FOOTER
======================= */
    .GridClass .GridFooter td {
        background-color: var(--brand-bg) !important;
        color: antiquewhite;
        font-weight: bold;
        border-top: 3px solid #000;
    }

    /* =======================
   GRID – PAGER
======================= */
    .GridClass tr.PagerStyle td {
        background-color: var(--brand-bg);
        color: var(--brand-text);
        font-weight: bold;
        border: 1px solid #aaa;
        text-align: center;
        padding: 6px 0;
    }

    .GridClass tr.PagerStyle a {
        color: var(--brand-text);
        text-decoration: none;
        margin: 0 6px;
    }

        .GridClass tr.PagerStyle a:hover {
            text-decoration: underline;
        }

    .GridClass tr.PagerStyle span {
        font-weight: bold;
        text-decoration: underline;
        margin: 0 6px;
    }

    /* =======================
   CELL CONTENT
======================= */
    .GridClass textarea {
        width: 100%;
        resize: vertical;
        box-sizing: border-box;
    }

    /* =======================
   EDIT MODE INPUTS
======================= */
    .GridClass td input[type=text],
    .GridClass td select {
        width: 100%;
        box-sizing: border-box;
    }

    .GridClass td input[type=text] {
        height: 22px;
        padding: 2px 4px;
    }

    /* =======================
   ICON BUTTONS IN CELLS
======================= */
    .GridClass td img {
        vertical-align: middle;
        width: 20px;
        height: 20px;
    }

/* =======================
   FORM VALIDATION
======================= */
.field-error {
    color: #c40000;
    font-weight: 600;
    display: block;
    margin-top: 6px;
}

.GridClass td.nowrap,
.GridClass td.nowrap * {
    white-space: nowrap;
}