﻿.structured-data th {
    text-decoration: none;
    color: black;
    line-height: 18px;
    padding: 5px 5px;
    font-weight: bold;
    border-top: none;
    vertical-align: bottom;
    text-align: left;
}

.structured-data {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
    white-space: nowrap;
}

    .structured-data .DataGridHeader {
        background-color: #fff;
    }

    .structured-data > tbody > tr {
        background: transparent;
    }

        .structured-data > tbody > tr:nth-of-type(even) {
            background: transparent;
        }

        .structured-data > tbody > tr td:first-child, .structured-data th:first-child {
            padding-left: 0px;
        }

        .structured-data > tbody > tr td:last-child, .structured-data th:last-child {
            padding-right: 0px;
        }

        .structured-data > tbody > tr:hover {
            background: rgba(0, 0, 0, 0.03);
        }

.structuredDataTableRow {
    vertical-align: top;
}

tr.structuredDataTableRow:last-child input, tr.structuredDataTableRow:last-child select, tr.structuredDataTableRow:last-child textarea {
    background-color: rgba(0,0,0,0);
}

.structuredDataTableAlternatingRow {
    vertical-align: top;
}

.structuredDataTemplateViewTextArea {
    overflow-y: auto;
    max-height: 200px;
    min-width: 120px;
}

.structuredDataTable textarea {
    display: block;
    line-height: 16px;
}

.structuredDataTableFooter {
}

.structuredDataTableRowCell {
    line-height: 18px;
    padding: 3px 5px;
    border-top: 1px solid #ddd;
}

.structuredDataSearchButton {
    background-image: url("../images/SearchParameter_Landfolio.png");
    height: 16px;
    width: 16px;
    display: inline-block;
    margin-right: 2px;
    margin-top: 2px;
    background-size: contain;
}

.structured-data th a, .structured-data th a {
    color: black;
}

.structuredDataTableSortAscending::after, .structuredDataTableSortDescending::after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 800;
    font-size: 12px;
    margin-left: 5px;
}

.structuredDataTableSortAscending::after {
    content: "\f0d8"; /* caret-up */
}

.structuredDataTableSortDescending::after {
    content: "\f0d7"; /* caret-down */
}

table.structured-data {
    caret-color: transparent;
}
/*Delete row button*/
a.structuredDataDeleteButton {
    font-family: 'Font Awesome 5 Free';
    font-size: 16px;
    font-weight: 600;
    color: #666;
    display: inline-block;
    text-decoration: none;
    padding: 0px 5px;
    margin: 0px;
}

    a.structuredDataDeleteButton::before {
        content: '\f00d';
    }

    a.structuredDataDeleteButton:hover {
        color: #EE0000;
    }

.structuredDataTableDeleteCell {
    padding: 3px 5px;
    border-top: 1px solid #ddd;
    line-height: 18px;
    text-align: right;
}

.structuredDataSearchButton:hover {
    cursor: pointer;
}
/*Invalid cells*/
.structuredDataInvalidCell select, .structuredDataInvalidCell input {
    background-color: #FF5A5A;
}

tr.structuredDataTableRow:last-child .structuredDataInvalidCell input, tr.structuredDataTableRow:last-child .structuredDataInvalidCell select {
    background-color: #FF5A5A;
}

tr .structuredDataInvalidCell.hasFocus input, tr .structuredDataInvalidCell.hasFocus select {
    background-color: white;
}

tr.structuredDataTableRow:last-child .structuredDataInvalidCell.hasFocus input, tr.structuredDataTableRow:last-child .structuredDataInvalidCell.hasFocus select {
    background-color: rgba(0,0,0,0);
}
/*Multi-input cells*/
.structuredDataEditCellUnitValue input {
    box-sizing: border-box;
    width: 40%;
    min-width: 40px;
}

.structuredDataEditCellUnitValue select {
    box-sizing: border-box;
    width: 60%;
    min-width: 60px;
}
/*Search cell*/
.structuredDataEditCellSearch label {
    margin-left: 10px;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.structuredDataEditCellSearch input {
    top: 2px;
    left: 2px;
    right: 0px;
    box-sizing: border-box;
    display: block;
    margin-right: 24px;
    min-width: 80px;
    z-index: 0;
    width: 100%;
    min-height: 27px;
    margin-bottom: 0px;
    vertical-align: middle;
}

    .structuredDataEditCellSearch input:disabled {
        background: #eee !important;
    }

.structuredDataEditCellSearch {
    position: relative;
    min-width: 100px;
    height: 26px;
}

    .structuredDataEditCellSearch > div {
        /*position: absolute;*/
        display: block;
    }

.structuredDataDeleteChildButton {
    background-image: url('../Images/Action_Closed_Unsuccessful_22.png');
    height: 16px;
    width: 32px;
    display: block;
    background-size: contain;
}

    .structuredDataDeleteChildButton:hover {
        background-image: url('../Images/Action_Closed_Unsuccessful_22.png');
        cursor: pointer;
    }

.structuredDataEditCellSearch .structuredDataDeleteChildButton {
    right: 28px;
    display: block;
    position: absolute;
    top: 6px;
    z-index: 1;
}

.structuredDataEditCellSearch .structuredDataSearchButton {
    right: 2px;
    margin-bottom: -4px;
    display: block;
    position: absolute;
    top: 4px;
    z-index: 1;
}

.structuredDataEditCellValue {
    width: 0.1%;
    white-space: nowrap;
}

    .structuredDataEditCellValue select, .structuredDataEditCellValue input, .structuredDataEditCellValue textarea {
        box-sizing: border-box;
        min-width: 160px;
        width: unset;
        min-height: 27px;
        margin-bottom: 0px;
        vertical-align: middle;
    }

        .structuredDataEditCellValue select:disabled {
            background: #eee !important;
            border: 2px solid grey;
        }
.structuredDataRequired::after {
    content: '*';
    color: red;
}
