/* Faux Table  -- A table made of divs for more styling flexibility */

.faux-table.table {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.faux-table .faux-header-row .tr {
    display: flex;

}

.faux-table .faux-header-row .td {
    border: 1px solid var(--dark-gray);
    display: none;
    text-transform: uppercase;
    font-weight: 600;
}

.faux-table .faux-header-row .td:first-of-type {
    border: 1px solid var(--federal-silver);
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 5px;
    background-color: var(--white-accent);
}

.faux-table .tbody {
    flex-direction: column;
    width: 100%;
}

.faux-table .faux-body-row .tr {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.faux-table .faux-body-row .td.row-header {
    background-color: var(--light-gray);
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px 5px;
    min-height: 6rem;
}

.faux-table .faux-body-row .td {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    position: relative;
}

.faux-table .tbody .td .form-data-section {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.faux-table .tbody .td label,
.faux-table .tbody .td .label,
.table-form-container .table-file-head,
.table-file {
    width: calc(50% - 1rem);
    padding: 10px 5px;
    margin: 0;
    align-items: center;
    min-height: 6.2rem;
}

.faux-table .tbody .td input {
    margin: 10px 5px;
    width: calc(50% - 1rem);
}

.faux-table .tbody .td label,
.faux-table .tbody .td .label {
    background-color: var(--lighter-gray);
    border-right: 1px solid var(--white-accent);
    border-bottom: 1px solid var(--white-accent);
}

.td.row-header p {
    max-width: 100%;
    word-break: break-word;
}


@media (min-width: 992px) {
    .faux-table.table {
        display: table;
        flex-direction: column;
        width: 100%;
        border-collapse: collapse;
        overflow: visible;
    }

    .faux-table .tbody {
        flex-direction: column;
    }

    .faux-table .tbody .tr {
        display: table-row;
    }

    .faux-table .faux-body-row .td.row-header,
    .faux-table .faux-header-row .td:first-of-type {
        max-width: 50rem;
    }

    .faux-table .faux-body-row .td,
    .faux-table .faux-header-row .td {
        border: 1px solid var(--federal-silver);
        display: table-cell;
        padding: 10px 5px;
        position: relative;
        vertical-align: middle;
    }

    .faux-table .faux-header-row .td {
        background-color: var(--white-accent);
    }

    .faux-table .faux-header-row .td:first-of-type {
        display: table-cell;
        width: unset;
    }

    .faux-table .tbody .td input {
        width: calc(100% - 1rem);
    }

    .faux-table .tbody .td label {
        min-width: 20rem;
    }

}