﻿table.DataGrid {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
    border: none;
    border-bottom: 1px solid #d0d0d7;
    position: relative;
}

    table.DataGrid > tbody > tr {
        background: transparent;
    }

        table.DataGrid > tbody > tr:nth-of-type(even) {
            background: rgba(0,0,0,0.05);
        }

        table.DataGrid > tbody > tr > td {
            padding: 3px;
            line-height: 16px;
            border: 1px solid rgba(0,0,0,0.1);
            border-top: none;
            border-bottom: none;
        }

            table.DataGrid > tbody > tr > td:first-child {
                border-left: 1px solid rgba(0,0,0,0.1);
            }

            table.DataGrid > tbody > tr > td:last-child {
                border-right: 1px solid rgba(0,0,0,0.1);
            }

    table.DataGrid > tbody tr.DataGridHeader {
        background: #6d6c7d;
        font-weight: 600;
        color: #fff;
    }

        table.DataGrid > tbody tr.DataGridHeader td {
            padding: 4px 3px;
            font-size: 12px;
        }

            table.DataGrid > tbody tr.DataGridHeader td a, table.DataGrid > tbody tr.DataGridHeader td a:hover {
                color: #fff;
            }

            table.DataGrid > tbody tr.DataGridHeader td:first-child {
                border-left: 1px solid #6d6c7d;
            }

            table.DataGrid > tbody tr.DataGridHeader td:last-child {
                border-right: 1px solid #6d6c7d;
            }

    table.DataGrid > tbody tr.DataGridFooter {
        background: #8a8d9a;
        font-weight: 600;
        color: #fff;
    }

    table.DataGrid td img {
        max-height: 16px;
        vertical-align: middle;
    }

    table.DataGrid td.subtotal {
        background-color: rgba(54,55,60,0.15);
        text-align: right;
    }

    table.DataGrid td.total {
        background: rgba(54,55,60,0.3);
        text-align: right;
    }

    table.DataGrid > tbody > tr.DataGridPager {
        background: transparent;
        color: #363545;
        font-weight: bold;
    }

        table.DataGrid > tbody > tr.DataGridPager td {
            border: none;
        }

        table.DataGrid > tbody > tr.DataGridPager a {
            font-weight: normal;
        }

        table.DataGrid > tbody > tr.DataGridPager::after {
            position: absolute;
            width: auto;
            content: '';
            height: 22px;
            left: 0;
            right: -1px;
            border: 1px solid rgba(0,0,0,0.1);
            border-bottom: none;
            border-top: none;
            pointer-events: none;
        }

        table.DataGrid > tbody > tr.DataGridPager:first-child::after {
            top: 0;
        }

    table.DataGrid tr.DataGridPager:last-child::after {
        /*bottom: 0;*/
        border-top: 1px solid rgba(0,0,0,0.1);
    }

/*table tool controls*/
.table-tools input[type=submit] {
    height: 16px;
    width: 16px;
    outline: none;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin: 0px;
    box-sizing: content-box;
    padding: 2px;
}

    .table-tools input[type=submit]:hover {
        background-color: rgba(0,0,0,0.1);
    }

/*DataGrids*/
.DataGridNoDataPlaceholder {
    padding: 5px 3px;
    border: 1px solid #ccc;
    font-style: italic;
}

.DataGridHeader, .DataGridFooter {
    background: #7d7c8d;
    font-weight: 600;
    font-size: 13px;
    color: #FFFFFF;
}

.DataGridItem.Highlight {
    -webkit-transition: background-color 0.4s; /* Safari  */
    transition: background-color 0.4s;
}

.DataGridItem {
    background: #EAEAEF;
}

    .DataGridItem td, .DataGridAlternatingItem td, .DataGridTotalRow td, .DataGridSelected td, .DataGridEditItem td {
        border: 1px solid #ccc;
        border-bottom: none;
        padding: 2px;
    }

    .DataGridItem td, .DataGridAlternatingItem td, .DataGridSelected td {
        border-top: none;
    }

.DataGridAlternatingItem, .DataGridTotalRow {
    background: ghostwhite;
}

.DataGridEditItem {
    background: silver;
}

    .DataGridEditItem input[type=text] {
        min-width: 97%;
    }

.DataGridSelected {
    background: rgba(0,0,0,0.1);
}

.NoPager {
    margin-top: 5px;
}

.CheckColumn, .EditColumn, .IconColumn {
    width: 30px;
    text-align: center;
}

.DataGrid .CenteredColumn {
    text-align: center;
}

.DateColumn {
    white-space: nowrap;
}

.DataGridTotalRow {
    border-top: 2px solid midnightblue;
}

.DataGridCellWithRightBorder {
    border-right: 1px solid midnightblue !important;
}

.DataGridCellWarning {
    background-color: #FAD3D3;
}

/*Plain DataGrids*/
.DataGrid_Plain {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
}

    .DataGrid_Plain td {
        background: none;
        padding: 3px;
        line-height: 16px;
    }

.DataGridHeader_Plain, .DataGridFooter_Plain {
    font-weight: 600;
}

.DataGridTotal_Plain {
    height: 25px;
    font-weight: 600;
    vertical-align: top;
}

.DataGridHeader_Plain, .DataGridFooter_Plain, .DataGridItem_Plain, .DataGridAlternatingItem_Plain, .DataGridTotal_Plain {
    background-color: inherit;
    border: none;
    font-size: 10pt;
}

td.SortedColumnHeaderImageAsc, td.SortedColumnHeaderImageDesc {
    background-position: right;
    background-repeat: no-repeat;
    padding-right: 15px;
}

td.SortedColumnHeaderImageAsc {
    background-image: url('../images/Sort_Ascending_Landfolio.png');
}

td.SortedColumnHeaderImageDesc {
    background-image: url('../images/Sort_Descending_Landfolio.png');
}

/*structured data tables*/
table.structured-data input[type=image].delete-icon {
    float: right;
    margin-top: 6px;
    margin-right: 5px;
}

table.structured-data > tbody > tr:hover {
    background-color: #f4f4f4 !important;
}

table.structured-data > tbody > tr > td > div {
    margin-top: 2px;
    line-height: 17px;
}

table.structured-data input[type=image].date-selector {
    float: initial;
}

table.structured-data > tbody > tr {
    background: transparent;
}

    table.structured-data > tbody > tr:nth-of-type(even) {
        background: rgba(0,0,0,0.05);
    }

    table.structured-data > tbody > tr > td {
        padding: 3px;
        line-height: 16px;
        border: 1px solid rgba(0,0,0,0.1);
        border-top: none;
        border-bottom: none;
        vertical-align: top;
    }

        table.structured-data > tbody > tr > td:first-child {
            border-left: 1px solid rgba(0,0,0,0.1);
        }

        table.structured-data > tbody > tr > td:last-child {
            border-right: 1px solid rgba(0,0,0,0.1);
        }

table.structured-data .DataGridHeader {
    background: #6d6c7d;
    font-weight: 600;
    color: #fff;
}

    table.structured-data .DataGridHeader th {
        padding: 4px 3px;
        text-align: left;
        font-weight: 600;
        font-size: 12px;
        border: 1px solid rgba(0,0,0,0.1);
        border-top: none;
        border-bottom: none;
    }

        table.structured-data .DataGridHeader th a, table.structured-data .DataGridHeader th a:hover {
            color: #fff;
        }

        table.structured-data .DataGridHeader th:first-child {
            border-left: 1px solid #6d6c7d;
        }

        table.structured-data .DataGridHeader th:last-child {
            border-right: 1px solid #6d6c7d;
        }

table.structured-data tr:last-child input, table.structured-data tr:last-child select, table.structured-data tr:last-child textarea {
    background-color: rgba(0,0,0,0);
}

table.structured-data input[disabled], table.structured-data select[disabled], table.structured-data textarea[disabled] {
    border: 1px solid #ccc;
    padding: 1px 5px;
}

/*table filter panel*/
.FilterPanel {
    background-color: #e2e2e2;
    border-left: 1px solid #d0d0d7;
    border-right: 1px solid #d0d0d7;
    padding: 10px;
    display: none;
}

    .FilterPanel .parameter {
        display: inline-block;
        padding: 3px;
        min-width: 300px;
        max-width: 360px;
        margin-right: 40px;
    }

    .FilterPanel span {
        vertical-align: top;
        display: inline-block;
        width: 120px;
        margin-right: 10px;
        line-height: 16px;
        padding: 0px;
        padding-top: 4px;
    }

    .FilterPanel .parameter select, .FilterPanel .parameter input[type=text] {
        vertical-align: top;
        width: 200px;
        line-height: 24px;
        height: 24px;
        margin: 0px;
    }

/*SD Search table*/
table.structured-data.search {
    width: 100%;
}

    table.structured-data.search > tbody > tr > td {
        padding: 0px 3px 0px 0px;
        border: none;
    }

        table.structured-data.search > tbody > tr > td:first-child, table.structured-data.search > tbody > tr > td:last-child {
            border: none;
        }

        table.structured-data.search > tbody > tr > td > div {
            margin-top: 3px;
            line-height: 16px;
        }

    table.structured-data.search > tbody > tr:nth-of-type(even) {
        background: transparent;
    }

    table.structured-data.search select, table.structured-data.search input[type=text] {
        width: 150px !important;
    }

    table.structured-data.search .search-params input[type=text], table.structured-data.search .date-field input[type=text] {
        width: 150px;
    }

.new-entry {
    padding: 3px 4px 3px 1px;
}

table.structured-data.search td table.inline-block td {
    vertical-align: top;
}

    table.structured-data.search td table.inline-block td:first-child select, .new-entry select {
        width: 200px !important;
    }

    table.structured-data.search td table.inline-block td:first-child {
        padding-right: 2px;
    }

table.structured-data.search td table.inline-block + div.inline-block {
    padding-top: 1px;
}

table.structured-data.search .date-field {
    display: inline-block;
}

    table.structured-data.search .date-field input[type=text] + input[type=image] {
        vertical-align: text-top;
    }
