* {
    margin: 0;
    padding: 0;
}

/* 
=======================================
    User Information form CSS Style
=======================================
*/

.main-userinfo {
    min-height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.userinfo-close-button {
    display: none;
    color: #aaa;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}

    .userinfo-close-button:hover {
        color: black;
    }

    .userinfo-close-button.show {
        display: block;
    }

.required::after {
    content: " *";
    color: #ff4d4d;
}

.error-message {
    color: #ff4d4d;
}

/* 
=======================================
    Dashboard CSS Style
=======================================
*/

.main-dashboard {
    display: none;
    width: 100%;
    background-color: #f7f7f7;
}

    .main-dashboard .header {
        background-color: white;
        color: #7793ab;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-dashboard .header-title {
        margin-left: 20px;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .main-dashboard .header h5 {
        margin: 0;
    }

.user-info {
    width: 300px;
    font-size: 12px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-info-icon {
    margin: 0px 10px;
}

.container {
    width: 100%;
}

.content {
    padding: 20px 0;
    margin: 20px 50px;
}

.content-homepage-title {
    font-size: 20px;
    font-weight: 600;
    margin: auto;
}

.sign-out-button {
    background-color: transparent;
    border: none;
    color: #00f;
    font-weight: 500;
    text-decoration: underline;
}

.stats-cards-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats-card {
    width: 100px;
    height: 200px;
    border: none;
    border-radius: 10px;
    background-color: #263d51;
    color: white;
    text-align: center;
    padding: 20px;
    flex: 1;
    margin-right: 20px;
}

    .stats-card:last-child {
        margin-right: 0;
    }

.stats-cards-container-card-title {
    font-size: 20px;
    font-weight: 600;
    align-self: flex-start;
}

.stats-cards-container-card-number {
    align-self: flex-start;
    font-size: 20px;
    margin-top: 10px;
}

.stats-cards-container-card-bnt {
    align-self: flex-start;
    margin-top: auto;
    border: none;
    background-color: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .stats-cards-container-card-bnt:hover {
        transform: scale(1.1);
        transition: 0.5s ease-in-out;
    }

.project-container {
    width: 100%;
}

.content-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.sort-buttons {
    position: absolute;
    right: 0px;
    display: flex;
    align-items: center;
}

.sort-button {
    background-color: white;
    border: none;
    color: black;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sort-button i {
        font-size: 20px;
    }

    .sort-button:hover {
        color: #007bff;
    }

.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    width: 200px;
    height: 300px;
}

.create-project {
    background-color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.create-project-title {
    align-self: flex-start;
    font-size: 15px;
    font-weight: 600;
}

.create-project-input {
    margin-top: auto;
    border: none;
    border-bottom: 1px solid #263d51;
    border-radius: 0;
    padding: 0;
    width: 80%;
}

.create-project-bnt {
    margin-top: auto;
    background-color: #263d51;
    width: 80%;
}

.project-card-exist {
    position: relative;
}

.delete-project-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: red;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.project-card-exist:hover {
    transform: scale(1.1);
    transition: 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-card:hover .delete-project-button {
    transition: 0.3s ease-in-out;
}

.card-img-top {
    width: 150px;
    height: 150px;
}

.card-title {
    font-weight: 600;
    padding: 10px;
}


/* 
=======================================
    Project CSS Style
=======================================
*/
.main-project {
    display: none;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

    .main-project header {
        width: 100%;
        height: 50px;
        background-color: #f7f7f7;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .main-project .header-title {
        color: #7793ab;
        font-weight: 600;
    }

    .main-project .header-close-button {
        border: none;
        background-color: transparent;
        color: #aaa;
        cursor: pointer;
        margin-right: 20px;
    }

.header-close-button:hover,
.header-close-button:focus {
    color: black;
}

.hidden {
    display: none;
}


/* Project - Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 52px;
    height: calc(100% - 170px);
    width: 400px;
    background-color: white;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 10;
}

    .sidebar .sidebar-content {
        height: calc(100% - 52px);
    }

    .sidebar ul {
        margin: 0;
        padding: 0;
    }

        .sidebar ul li {
            list-style: none;
            background-color: #f7f7f7;
            margin-top: 6px;
            padding: 15px 10px;
            border-radius: 3px;
            position: relative;
        }

            .sidebar ul li:hover {
                background-color: #e7f5ff;
            }

            .sidebar ul li a {
                display: block;
                color: inherit;
                text-decoration: none;
            }

.sidebar-title-container {
    background-color: #e7f5ff;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    border-radius: 3px;
}

.sidebar-project-title {
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-title-leftblock {
    width: 8px;
    height: 30px;
    background-color: #a8cfff;
    justify-content: center;
}

.sidebar-title {
    width: 352px;
    margin: 0;
    padding: 0 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-edit-bnt {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background-color: #7793ab;
    color: white;
}

.sidebar-copy-bnt {
    border: none;
    background-color: #e7faff;
}

.sidebar-icon {
    color: #7793ab;
    margin-right: 10px;
    width: 20px;
}

.custom-load-btn,
.custom-export-btn {
    background-color: #7793ab;
    color: white;
    border: none;
    text-align: left;
    display: block;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 6px;
    padding: 15px 10px;
    font-weight: 600;
}

    .custom-load-btn:hover,
    .custom-export-btn:hover {
        background-color: #e7f5ff;
        color: black;
    }

.sidebar-footer {
    width: 400px;
    position: fixed;
    bottom: 0;
    background-color: white;
}

    .sidebar-footer button {
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

.metaBIM-logo {
    width: 25px;
    margin-right: 10px;
}

/* Project - right panel */
.main-project .rightPanel {
    width: calc(100vw - 410px);
    height: calc(100vh - 52px);
    margin-top: 52px;
    margin-left: 410px;
    position: relative;
    overflow: hidden;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.dashboard-nav-tabs .nav-link.active {
    background-color: white;
    color: black;
    font-weight: 550;
    border-radius: 10px 10px 0 0;
}

.dashboard-nav-tabs .nav-link {
    color: black;
    padding: 5px 25px;
}

.map-container {
    width: 100%;
    height: 50%;
    z-index: 0;
}

.dashboard-container {
    width: 100%;
    height: 50%;
    background-color: white;
    position: absolute;
    bottom: 0;
    transition: height 0.3s, top 0.3s;
    z-index: 1;
}

    .dashboard-container.expanded {
        top: 0px;
        height: 100%;
    }

    .dashboard-container .dashboard-nav-tabs {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: white;
    }

.toggle-dashboard-bnt {
    width: 40px;
    height: 30px;
    z-index: 10;
    background-color: white;
    color: #a8cfff;
    border: 2px solid #a8cfff;
    border-radius: 0 0 10px 10px;
    margin-left: auto;
    margin-right: 20px;
}

    .toggle-dashboard-bnt:hover {
        background-color: #e6f3ff;
    }


/* Project - table style */
/* .table-container {
    height: 100%;
} */

.design-table-body {
    padding-bottom: 100px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.actual-table-body {
    padding-bottom: 100px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.construction-tab {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.energy-tab {
    margin-bottom: 40px;
}

.table-name-title {
    z-index: 2;
    padding: 10px;
    margin: 0px;
    background-color: #fff;
    color: #00af68;
    float: left;
}

.table-container .table-header {
    position: sticky;
    top: 40px;
    z-index: 2;
}

.table-container .energy-table-header {
    position: sticky;
    top: 45px;
    z-index: 3;
}

.expand-table-button {
    width: 35px;
    height: 35px;
    background-color: #7ddfff;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    position: sticky;
    float: right;
    top: 40px;
    right: 20px;
    z-index: 3;
    margin-bottom: -30px;
    margin-right: 10px;
}

    .expand-table-button:hover,
    .table-change-btn:hover {
        background-color: #7793ab;
    }


.tab-buttons-container,
.energy-tab-bnt-group {
    float: right;
}

.energy-tab-buttons-container {
    position: sticky;
    top: 0px;
    background-color: white;
    height: 45px;
    z-index: 3;
}

.table-change-btn-group {
    z-index: 3;
    margin: 0px 20px;
}

.table-change-btn {
    width: 100px;
    height: 35px;
    background-color: white;
    color: black;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #7ddfff;
    border-radius: 5px;
}

    .table-change-btn.active {
        background-color: #7ddfff;
        color: white;
        border: 2px solid #7ddfff;
        border-radius: 5px;
    }

.transport-reset-btn,
.consumption-show-btn {
    width: 100px;
    height: 35px;
    background-color: white;
    color: black;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #7ddfff;
    border-radius: 5px;
}

    .transport-reset-btn:hover,
    .consumption-show-btn:hover {
        background-color: #7793ab;
    }

.table-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    position: relative;
    clear: both;
}

.design-group-header,
.transport-group-header {
    background-color: #f7f7f7;
    font-weight: 600;
}

.table-row:hover {
    background-color: #e7f5ff;
}

    .table-row:hover .delete-button {
        display: block;
    }

    .table-row:hover .remote-comment-button {
        display: block;
    }

    .table-row:hover .record-copy-button {
        display: block;
    }

.table-cell {
    flex: 0 0 auto;
    padding: 10px;
    text-align: left;
    font-size: 12px;
}

.table-header,
.energy-table-header,
.consumption-table-header {
    flex: 1;
    color: #7793ab;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
    padding: 5px 0;
}

/* .collapsed~.material-table-row {
    display: none;
} */
.material-table-row,
.transport-table-row {
    display: none;
}

/* Design Table Column Widths */
.design-tab .table-cell:nth-child(1) {
    width: 3%;
}

.design-tab .table-cell:nth-child(2) {
    width: 22%;
}

.design-tab .table-cell:nth-child(3) {
    width: 14%;
}

.design-tab .table-cell:nth-child(4) {
    width: 7%;
}

.design-tab .table-cell:nth-child(5) {
    width: 6%;
}

.design-tab .table-cell:nth-child(6) {
    width: 8%;
}

.design-tab .table-cell:nth-child(7) {
    width: 8%;
}

.design-tab .table-cell:nth-child(8) {
    width: 12%;
}

.design-tab .table-cell:nth-child(9) {
    width: 12%;
}

/* Transport Table Column Widths */
.transport-tab .table-cell:nth-child(1) {
    width: 3%;
}

.transport-tab .table-cell:nth-child(2) {
    width: 24%;
}

.transport-tab .table-cell:nth-child(3) {
    width: 18%;
}

.transport-tab .table-cell:nth-child(4) {
    width: 10%;
}

.transport-tab .table-cell:nth-child(5) {
    width: 8%;
}

.transport-tab .table-cell:nth-child(6) {
    width: 10%;
}

.transport-tab .table-cell:nth-child(7) {
    width: 8%;
}

.transport-tab .table-cell:nth-child(7) {
    width: 8%;
}

/* energy use Emissions Table Column Widths */
.energy-tab .table-cell:nth-child(1) {
    width: 28%;
}

.energy-tab .table-cell:nth-child(2) {
    width: 6%;
}

.energy-tab .table-cell:nth-child(3) {
    width: 6%;
}

.energy-tab .table-cell:nth-child(4) {
    width: 9%;
}

.energy-tab .table-cell:nth-child(5) {
    width: 8%;
}

.energy-tab .table-cell:nth-child(6) {
    width: 15%;
}

/* energy use Emissions Table Column Widths */
.waste-tab .table-cell:nth-child(1) {
    width: 15%;
}

.waste-tab .table-cell:nth-child(2) {
    width: 20%;
}

.waste-tab .table-cell:nth-child(3) {
    width: 6%;
}

.waste-tab .table-cell:nth-child(4) {
    width: 6%;
}

.waste-tab .table-cell:nth-child(5) {
    width: 8%;
}

.waste-tab .table-cell:nth-child(6) {
    width: 10%;
}

.waste-tab .table-cell:nth-child(7) {
    width: 8%;
}

.waste-tab .table-cell:nth-child(8) {
    width: 15%;
}

.remote-comment-button {
    display: none;
    border: none;
    background-color: transparent;
    color: #02ebff;
    margin: auto 10px auto auto;
}

.record-copy-button {
    display: none;
    border: none;
    background-color: transparent;
    color: green;
    margin: auto 10px auto 10px;
}

.delete-button {
    display: none;
    background-color: transparent;
    color: red;
    border: none;
    margin: auto 20px auto 10px;
}

.material-refresh-button {
    background-color: transparent;
    border: none;
    margin: auto;
}

.planned-unlock-button,
.transport-planned-unlock-button {
    display: none;
    align-items: center;
    cursor: pointer;
    border: 2px #7793ab solid;
    background-color: white;
    padding: 0;
    margin: 2px;
    border-radius: 5px;
}


.lock-icon {
    background-color: #7793ab;
    color: white;
    padding: 3px 5px;
}

.unlock-text {
    color: black;
    font-weight: 600;
    padding: 3px 5px;
    border-radius: 5px;
}

.planned-unlock-button:hover,
.planned-unlock-button:hover .lock-icon,
.transport-planned-unlock-button:hover,
.transport-planned-unlock-button:hover .lock-icon {
    background-color: #7ddfff;
}

.edit-button {
    background: none;
    border: none;
    float: inline-end;
    align-items: center;
    justify-content: center;
}

    .edit-button i {
        color: #7793ab;
    }

    .edit-button:hover i {
        color: #000;
    }

.overall-row {
    position: fixed;
    bottom: 0;
    background-color: #7ddfff;
    width: calc(100vw - 410px);
    z-index: 10;
}

.energy-overall-row {
    /* position: sticky; */
    /* top: 107px; */
    background-color: #7ddfff;
    width: calc(100vw - 410px);
    /* z-index: 2; */
}

/* dropdown list style */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper .form-control {
        width: 760px;
        padding-right: 30px;
    }

    .input-wrapper .input-icon {
        position: absolute;
        right: 20px;
        pointer-events: none;
        color: #6c757d;
    }

.dropdown-list {
    border: 1px solid #ced4da;
    background-color: #fff;
    position: absolute;
    width: 760px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .dropdown-list::-webkit-scrollbar {
        display: none;
    }

.dropdown-item {
    padding: 10px;
    cursor: pointer;
}

    .dropdown-item:hover {
        background-color: #f1f1f1;
    }

/* Project - consumption detail style */
.consumption-header-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.consumption-table-name-title {
    padding: 10px;
}

.consumption-back-button {
    padding-right: 20px;
}

.consumption-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin: 5px 20px 5px 10px;
    padding: 10px;
    background-color: #7ddfff;
    cursor: pointer;
}

.consumption-table-header,
.consumption-table-row {
    margin: 0px 20px 0px 10px;
}

.consumption-table-row {
    background-color: #f1f1f1;
}

.consumption-table-container .table-cell:nth-child(1) {
    width: 8%;
}

.consumption-table-container .table-cell:nth-child(2) {
    width: 12%;
}

.consumption-table-container .table-cell:nth-child(3) {
    width: 11%;
}

.consumption-table-container .table-cell:nth-child(4) {
    width: 7%;
}

.consumption-table-container .table-cell:nth-child(5) {
    width: 7%;
}

.consumption-table-container .table-cell:nth-child(6) {
    width: 16%;
}

.consumption-table-container .table-cell:nth-child(7) {
    width: 15%;
}

.consumption-table-container .table-cell:nth-child(8) {
    width: 18%;
}

/* Project - dashboard chart style */
.chart-container {
    max-height: 85%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chart-title-container {
    height: 60px;
    background-color: #e7faff;
    display: flex;
    align-items: center;
    position: relative;
}

.chart-title-leftblock {
    width: 8px;
    height: 60px;
    background-color: #02ebff;
    position: absolute;
    left: 0;
}

.chart-title-text {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 20px;
}

.chart-title-icon {
    position: absolute;
    right: 10px;
}

.single-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emissionsPieChart {
    width: 300px;
    height: 300px;
}
