﻿
/* Base HTML Elements */

body {
    overflow-y: hidden;
}

main {
    margin: 0px;
    padding: 0px;
    height: 90vh;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p, .p {
    font-weight: normal;
}

footer {
    border: solid 1px grey;
    box-shadow: grey 0px 1px 5px;
    height: 5vh;
    margin: 0px;
}

    footer div {
        margin: 0px;
        padding: 5px 10px 10px 10px;
    }

input {
    border: solid 1px grey;
    border-radius: 3px;
    height: 30px;
    padding: 2px;
}

    input:disabled {
        background-color: lightgrey;
    }

    input[type=checkbox] {
        accent-color: steelblue;
        border: solid 1px grey;
        border-radius: 3px;
        height: 25px;
        padding: 0px;
    }

textarea {
    resize: none;
    border: solid 1px grey;
    border-radius: 3px;
    padding: 2px;
}

    textarea:disabled {
        background-color: lightgrey;
    }

/* Custom Bootstrap Modifications */

.dropdown, .dropup {
    position: relative;
    min-height: fit-content;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: end;
    text-align: center;
    background: white;
    border: solid 1px grey;
    border-radius: 3px;
    width: 100%;
    height: 30px;
    padding: 2px;
}

    .dropdown-toggle:disabled {
        background-color: lightgrey;
    }

    .dropdown-toggle:hover {
        background: ghostwhite;
        border: solid 1px grey;
    }

    .dropdown-toggle > span {
        margin: 2px auto 2px 2px;
    }

.dropdown-menu {
    overflow-y: auto;
    scrollbar-color: lightgrey;
    scrollbar-width: thin;
    width: inherit;
    max-height: 80px;
}

.dropdown-menu-item {
    padding: 0px 5px;
}

    .dropdown-menu-item:hover {
        background-color: ghostwhite;
    }

/* Navigation Bar */

.navigation-bar {
    display: flex;
    flex-direction: row;
    align-content: center;
    text-align: center;
    background-color: whitesmoke;
    border-bottom: solid 1px grey;
    box-shadow: grey 0px 1px 5px;
    font-size: 16px;
    height: 55px;
    padding: 10px 30px 0px 10px;
}

.ergo-badge {
    height: 40px !important;
}

    .ergo-badge > img {
        height: 35px;
        margin: 0px 10px 0px 0px;
    }

.navbar-directory {
    display: flex;
    flex-direction: row;
    align-content: center;
    text-align: center;
}

    .navbar-directory a {
        color: lightslategrey;
        text-decoration: none !important;
    }

    .navbar-directory p {
        margin: 4px 5px 0px 0px;
        height: 35px;
    }

.global-search-bar,
.notification-center-button {
    border: solid 1px lightgrey;
    border-radius: 5px;
    height: 35px;
    align-items: center;
    justify-items: center;
    text-align: center;
    padding: 2px 5px 2px 5px;
}

.global-search-bar {
    margin: 0px 10px 0px auto;
}

.notification-center-button {
    background-color: lightslategrey;
    color: white;
    margin: 0px;
}

/* Containers */

.page-body-container {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    min-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-height: calc(93vh - 55px);
    height: calc(93vh - 55px);
    max-height: calc(93vh - 55px);
    margin: 5px;
    padding: 5px;
}

/* Group Container */

.group-container {
    background-color: whitesmoke;
    border: solid 1px grey;
    border-radius: 3px;
    box-shadow: grey 0px 1px 5px;
    overflow: hidden;
    box-sizing: border-box;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    padding: 5px;
    margin: 5px;
}

    .group-container > .container-head {
        border-bottom: solid 1px lightgrey;
        width: 100%;
        padding: 0;
    }

        .group-container > .container-head.column-container {
            display: flex;
            flex-direction: column;
        }

        .group-container > .container-head.row-container {
            display: flex;
            flex-direction: row;
        }

        .group-container > .container-head.padding {
            padding: 5px 10px;
        }

    .group-container > .container-body {
        width: 100%;
        height: 100%;
    }

        .group-container > .container-body.padding {
            padding: 5px 10px;
        }

        .group-container > .container-body.column-container {
            display: flex;
            flex-direction: column;
        }

        .group-container > .container-body.row-container {
            display: flex;
            flex-direction: row;
        }

    .group-container.column-container {
        display: flex;
        flex-direction: column;
    }

    .group-container.row-container {
        display: flex;
        flex-direction: row;
    }

    .group-container.no-border {
        border: none;
        box-shadow: none;
    }

    .group-container.no-margin {
        margin: 0px !important;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }

    .group-container.no-padding {
        padding: 0px !important;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }

    .group-container.no-spacing {
        padding: 0px !important;
        margin: 0px !important;
        width: 100%;
        height: 100%;
    }

    .group-container.slim {
        width: 25%;
        height: 100%;
        padding: 0px !important;
        margin: 0px !important;
    }

    .group-container.shrink-width {
        width: fit-content;
        max-width: fit-content;
    }

    .group-container.shrink-height {
        height: fit-content;
        max-height: fit-content;
    }

    .group-container.shrink {
        width: fit-content;
        max-width: fit-content;
        height: fit-content;
        max-height: fit-content;
    }

    .group-container h5 {
        font-weight: 500;
    }

/* Input Container */

.input-container {
    display: flex;
    box-sizing: border-box;
    max-width: 100%;
    height: 100%;
    margin: 10px 10px 0px 0px;
    padding: 5px;
}

    .input-container.no-margin {
        margin: 0px !important;
    }

    .input-container.no-padding {
        padding: 0px !important;
    }

    .input-container.no-spacing {
        padding: 0px !important;
        margin: 0px !important;
    }

    .input-container.shrink-width {
        width: fit-content;
        max-width: fit-content;
    }

    .input-container.shrink-height {
        height: fit-content;
        max-height: fit-content;
    }

    .input-container.shrink {
        width: fit-content;
        max-width: fit-content;
        height: fit-content;
        max-height: fit-content;
    }

    .input-container.column-container {
        flex-direction: column;
    }

    .input-container.row-container {
        flex-direction: row;
        align-items: center;
    }

    .input-container p, h5 {
        font-size: 16px;
        height: 22px;
        margin: 0px 5px 0px 0px;
    }

    .input-container input:not(input[type=checkbox]),
    .input-container .dropdown,
    .input-container .dropup {
        text-wrap: nowrap;
        width: 85%;
        margin: 0px 5px 0px 0px;
    }

    .input-container input[type=checkbox] {
        margin-right: 10px;
        margin-bottom: 0px;
    }

    .input-container textarea {
        width: 50%;
        margin: 0px 5px 0px auto;
    }

/* List Container */

.list-container {
    box-sizing: border-box;
    max-width: 100%;
    height: 65%;
    max-height: 65%;
    margin: 10px 10px 0px 0px;
    padding: 5px;
}

    .list-container.no-margin {
        margin: 0px !important;
    }

    .list-container.no-padding {
        padding: 0px !important;
    }

    .list-container.no-spacing {
        padding: 0px !important;
        margin: 0px !important;
    }
    
.list-head {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .list-head p {
        font-weight: 500;
        margin: 0px 20px 0px 0px;
    }

.list-body {
    background: white;
    border: solid 1px grey;
    border-radius: 3px;
    overflow-y: auto;
    scrollbar-color: lightgrey;
    scrollbar-width: thin;
    width: 100%;
    height: 100%;
    padding: 0px;
    margin-top: 5px;
}

    .list-body li {
        list-style: none;
    }

    .list-body li:hover {
        background-color: ghostwhite;
    }

.list-item-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 35px;
    height: 35px;
    max-height: 35px;
    padding: 0px;
    margin: 3px 0px 0px 7px;
}

    .list-item-card input:not(input[type=checkbox]),
    .list-item-card .dropdown,
    .list-item-card .dropup {
        min-width: 100px;
        width: fit-content;
        max-width: 200px;
        margin: 0px 10px 0px 0px;
    }

    .list-item-card input[type=checkbox] {
        height: 20px;
        margin: 0px;
    }

    .list-item-card > p {
        margin: 0px 4px 0px 0px;
    }

.add-list-item-button {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: steelblue !important;
    border: solid 1px grey;
    border-radius: 3px;
    box-shadow: grey 0px 1px 5px;
    font-size: 16px;
    width: 15px;
    height: 15px;
    padding: 0px 0px 3px 0px;
    margin: 0px;
}

.remove-list-item-button {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: indianred !important;
    border: solid 1px grey;
    border-radius: 3px;
    box-shadow: grey 0px 1px 5px;
    font-size: 16px;
    width: 15px;
    height: 15px;
    padding: 0px 0px 3px 0px;
    margin: 0px 5px 0px auto;
}

/* Table Container */

.table-container {
    background: white;
    border: solid 1px grey;
    border-radius: 3px;
    overflow-y: auto;
    scrollbar-color: lightgrey;
    scrollbar-width: thin;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 5px 10px 0px 0px;
}

    .table-container table {
        width: 100%;
    }

    .table-container thead {
        background-color: ghostwhite;
        border-bottom: 1px solid grey;
        box-shadow: grey 0px 1px 5px;
        font-weight: 500;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .table-container tbody {
    }

        .table-container tbody > tr {
            border-bottom: 1px solid lightgrey;
        }

            .table-container tbody > tr:hover {
                background-color: ghostwhite;
            }

    .table-container tr > * {
        margin: 0px auto 0px 0px;
    }

    .table-container td, .table-container th {
        padding: 0px 5px;
    }

.table-row-card .action-button {
    visibility: hidden;
}

.table-row-card:hover .action-button {
    visibility: visible;
    background: none;
    border: none;
    width: 25px;
    height: inherit;
    margin: 7px;
    padding: 0px;
}

    .table-row-card:hover .action-button > img {
        width: 20px;
        height: 20px;
    }

/* Badges, Icons, Etc. */

.status-badge {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    text-align: center;
    border: solid 1px grey;
    border-radius: 8px;
    box-shadow: grey 0px 1px 5px;
    font-size: 16px;
    min-width: 100px;
    height: 30px;
    padding: 0px 5px;
    margin: 2px 2px 2px 0px;
}

    .status-badge.small {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        text-align: center;
        border: solid 1px grey;
        border-radius: 8px;
        box-shadow: grey 0px 1px 5px;
        font-size: 12px;
        min-width: 70px;
        height: 20px;
        padding: 0px 5px 1px 5px;
        margin: 0px;
    }

    .status-badge.initialized {
        background-color: mediumpurple;
        color: white;
    }

    .status-badge.open {
        background-color: mediumseagreen;
        color: white;
    }

    .status-badge.closed {
        background-color: slategrey;
        color: white;
    }

    .status-badge.cancelled {
        background-color: indianred;
        color: white;
    }

    .status-badge.archived {
        background-color: aliceblue;
        color: grey;
    }

/* General Custom Element Styles */

.large-button {
    border: solid 1px grey;
    border-radius: 3px;
    box-shadow: grey 0px 1px 5px;
    width: fit-content;
    height: fit-content;
    font-size: 24px;
    text-wrap: wrap;
    padding: 5px;
    margin: 5px;
}

    .large-button.primary {
        background-color: steelblue;
        color: white;
    }

.medium-button {
    border: solid 1px grey;
    border-radius: 3px;
    box-shadow: grey 0px 1px 5px;
    width: fit-content;
    height: fit-content;
    font-size: 20px;
    text-wrap: wrap;
    padding: 5px;
    margin: 5px;
}

    .medium-button.primary {
        background-color: steelblue;
        color: white;
    }

.small-button {
    border: solid 1px grey;
    border-radius: 3px;
    box-shadow: grey 0px 1px 5px;
    width: fit-content;
    height: fit-content;
    font-size: 16px;
    text-wrap: wrap;
    padding: 5px;
    margin: 5px;
}

    .small-button.primary {
        background-color: steelblue;
        color: white;
    }

.action-menu {
    display: flex;
    flex-direction: row;
    position: relative;
    margin: 5px;
}

    .action-menu .menu-button,
    .action-menu .menu-close {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
        background: none;
        border: none;
        border-radius: 100px;
        width: fit-content;
        height: fit-content;
        padding: 3px;
    }

        .action-menu .menu-button:hover,
        .action-menu .menu-close:hover {
            background-color: #00000020;
            box-sizing: border-box;
        }

        .action-menu .menu-button img,
        .action-menu .menu-close img {
            width: 20px;
            height: 20px;
        }

    .action-menu .menu-close {
        margin: 5px auto 5px 5px;
    }

    .action-menu .menu-overlay {
        position: absolute;
        left: calc(100% + 5px);
        background-color: white;
        border: solid 1px grey;
        border-radius: 3px;
        box-shadow: grey 0px 1px 5px;
        z-index: 1000;
        min-width: 80px;
        min-height: 100px;
    }

        .action-menu .menu-overlay.invert-popout {
            left: 100%;
            transform: translateX(-100%);
        }

    .action-menu .list-item-card {
        min-height: 25px;
        max-height: 25px;
        margin: 0px 0px 0px 3px;
        padding: 0px;
    }

        .action-menu .list-item-card * {
            max-height: 20px;
        }