﻿#TablesContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;
    grid-gap: 2vw;
    padding: 1vw;
    box-sizing: border-box;
}

.TableContainer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-style: solid;
    border-color: darkgray;
    border-width: 1px;
    width: 25vw;
    flex-shrink: 0;
    flex-grow: 0;
}

.TableTopContainer {
    background-color: gray;
    color: white;
    padding: 0.5vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    grid-gap: 0.5vh;
    width: 100%;
    box-sizing: border-box;
}

.TableNameContainer {
    font-weight: bold;
}

.TableStatsContainer {
    font-size: 0.8rem;
}

.TableBottomContainer {
    padding: 0.5vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 0.7rem;
    width: 100%;
}

    .TableBottomContainer table {
        margin: 0;
        width: 100%;
    }

    .TableBottomContainer td {
        padding: 0 0.5vh;
        cursor: pointer;
    }

.TableContainerTDPK {
    color: green;
    width: 1rem;
}

.TableContainerTDFK {
    color: red;
    width: 1rem;
}

.TableContainerTDFKSpecial {
    color: orange;
}

.TableContainerTDFKExternal{
    color:blue;
}

.TableContainerNullable {
    text-align: center;
}

.TableContainerTDReference {
    font-style: italic;
}

h5 {
    text-align: center;
    margin: 2vh 0;
    font-weight: bold;
}

@media (orientation:portrait) {

    #TablesContainer {
        grid-gap: 5vh;
    }

    .TableContainer {
        width: 100%;
    }
}
