﻿


@font-face {
    font-family: 'roboto-regular';
    src: url('/ROBOTOFONT/roboto-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'teko-regular';
    src: url('../robotofont/teko-regular.otf') format('opentype');
}

@font-face {
    font-family: 'teko-light';
    src: url('../robotofont/teko-light.otf') format('opentype');
}
a {
    cursor: pointer;
}

body {
    font-family: teko-regular;
    display: flex;
}
.MYMAP {
    position: relative;
    height: 100%;
    min-width: 30vw;
}

.pageheadder {
    margin: 30px 0 0 50px;
    color: #41e7ff;
    position:absolute;
}

.loginpanel {
    position: absolute;
    top: 50%; /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */
    transform: translate(-50%, -50%);
    background-color: white; /*#ebe3dc;*/
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    color: #2c304c;
    text-align: left;
    font-family: roboto-regular;
}

.topicon{
    float: right;
    margin-right: 120px;
    max-width: 300px;
    width:55%;

}

.flex20 {
    max-width: 300px;
}


@media (max-height: 650px) {
    .loginpanel {
        margin-top: 100px;
    }
    .flex20 {
        max-width: 100%;
    }

    }



    .downlogo {
        display: none;
        height: 30px;
        position: fixed;
        bottom: 5px;
        left: 50%;
    }

    .logintitle {
        color: #2c304c;
        font-size: 24px;
        font-family: roboto-regular;
        display: block;
        margin-bottom: 30px;
        font-weight: bold;
    }




    .flex-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .flex-item-left {
        flex: 50%;
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding-top: 250px;
        padding-right: 20%;
    }

    .contentgrid {
        flex: auto;
        margin-left: 255px;
        display: flex;
        flex-wrap: wrap;
        font-family: teko-regular;
    }

    .flex-item-right {
        padding: 10px;
        flex: 50%;
        display: flex;
        text-align: left;
        justify-content: center;
        align-items: center;
        padding-top: 250px;
    }

    .Dashboard-container {
        min-height: 80vh;
        margin: 20px;
        display: block;
        border: 1px solid #aaaaaa;
    }

    .overview-left {
        flex: 40%;
    }

    .containermain {
        text-align: center;
        justify-content: center;
        align-items: center;
        max-width: 600px;
        min-width: 400px;
        margin: auto;
    }



    .overview-right {
        flex: 60%;
        text-align: left;
        justify-content: center;
        align-items: center;
    }

    .overview-item {
        margin: 5px 5px 0 0;
        background-color: #F5F5F5;
        color: #2c304c;
        min-height: 300px;
        min-width: 300px;
        border-radius: 12px;
        padding: 10px;
    }

    .resourcelayout {
        flex: 25%;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .popupmenu {
        z-index: 10;
        margin: 5px 5px 0 0;
        background-color: #e4e3de;
        color: #2c304c;
        min-height: 300px;
        min-width: 300px;
        border-radius: 12px;
        padding: 6px;
        position: relative;
        margin: -410px 12px 0 8px;
        display: none;
    }

    .popupmenucenter {
        z-index: 10;
        background-color: #e4e3de;
        color: #2c304c;
        min-height: 300px;
        min-width: 400px;
        border-radius: 12px;
        padding: 6px;
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        display: none;
    }

    .overview-right {
        flex: 50%;
        text-align: left;
        justify-content: center;
        align-items: center;
    }

    .bottomfilters {
        margin: 80px 0 0 80px;
        display: inline-block;
    }

    .container50 {
        background-color: white;
        height: 460px;
        border-radius: 6px;
        padding: 6px;
        overflow: auto;
        display: inline-block;
        width: 49.5%;
        margin: 5px 0 -5px 0;
    }

.maintables {
    width: 100%;
    max-width: 100vw;
}

        .maintables a:hover {
            color: white;
            background-color: #2c304c;
        }

.draganddrop {
    height: 820px;
    width: 75%;
    max-width: 1420px;
    width: 100%;
    overflow: scroll;
    position: absolute;
}

.resourcemanagerLaypout {
    height: 850px;
    width: 75%;
    max-width: 1200px;
    overflow: scroll;
}


@media (max-width: 1250px) {
    .resourcemanagerLaypout {
        width: 100%;
    }

        .draganddrop {
            width: 65%;
        }
        .MYMAP {
            margin-top: 70px;
        }

        .Dashboard-container {
            margin: 0px;
        }

        .resourcelayout {
            flex: 25%;
        }

        .contentgrid {
            flex: 70%;
        }

        .graphwidthset {
            display: block;
        }

        .container50 {
            display: block;
            width: 100%;
            margin: 5px 0 0 0;
        }
    }

    /* Responsive layout - makes a one column-layout instead of a two-column layout */
    @media (max-width: 1000px) {



        .flex-item-right, .flex-item-left {
            padding-top: 90px;
            flex: 100%;
            padding-right: 0px;
        }

        .overview-right, .overview-left {
            flex: 100%;
        }


        .loginlogo {
            max-height: 60px;
            display: inline;
            margin-right: 10px;
            margin-bottom: 0px;
        }

        .logintitle {
            display: inline-block;
        }

        .downlogo {
            display: block;
        }

        .flex20 {
            max-width: 100%;
        }
    }

    .sidebar {
        position: fixed;
        font-family: teko-regular;
        width: 260px;
        font-size: 24px;
        background: #41e7ff;
        height: 100vh;
        overflow-y: auto;
    }




    .sidebarButton {
        display: block;
        color: white;
        padding: 8px;
        text-decoration: none;
        margin: 0 5% 1% 5%;
        border-bottom-color: white;
        border-bottom-style: solid;
        border-bottom-width: 1px;
    }

        .sidebarButton.active {
            background-color: white;
            color: white;
        }

        .sidebarButton:hover:not(.active) {
            background-color: #2c304c;
            color: white;
        }



    .hamburgersidebar {
        display: none;
        height: 7%;
        min-height: 50px;
        width: 100%;
        background: #41e7ff;
        position: absolute;
        z-index: 2;
    }

    .hamburgersidebarmenu {
        font-family: teko-regular;
        font-size: 22px;
        min-width: 240px;
        display: none;
        width: 10%;
        background: #ebe3dc;
        border-radius: 5px;
        padding: 4px;
        z-index: 4;
        color: #2c304c;
    }

        .hamburgersidebarmenu a {
            color: #2c304c;
            z-index: 4;
        }

    .hamburgerbutton {
        height: 7%;
        width: 7;
        z-index: 4;
        margin: 2% 0 0 3%;
    }

        .hamburgerbutton:hover .hamburgersidebarmenu {
            display: block;
        }

    .Personcircle {
        border-radius: 25px;
        padding: 2px;
        position: absolute;
        right: 40px;
        top: 20px;
        z-index: 2;
    }

        .Personcircle img {
            height: 30px;
        }

    .dropdownPersoncircle {
        display: none;
        position: absolute;
        background-color: #ebe3dc;
        border-radius: 12px;
        padding: 4px;
        min-width: 120px;
        z-index: 4;
        right: -10px;
        top: 25px;
        border-radius: 12px;
        color: #2c304c;
    }

    .Personcircle:hover .dropdownPersoncircle {
        display: block;
    }

    .dropdownPersoncircle .sidebarButton {
        margin: 5px;
        border-radius: 6px;
        text-align: right;
        font-size: 22px;
        z-index: 4;
        color: #2c304c;
    }

        .dropdownPersoncircle .sidebarButton b {
            margin-left: 0px;
        }

    .bell-fill {
        border-radius: 25px;
        padding: 2px;
        position: absolute;
        right: 100px;
        z-index: 2;
        top: 20px;
    }


        .bell-fill img {
            height: 30px;
        }


    .dropdownbellfill {
        display: none;
        position: absolute;
        background-color: #CCCCCC66;
        border-radius: 12px;
        padding: 4px;
        z-index: 3;
        min-width: 250px;
        max-height: 400px;
        padding: 4px;
        right: -20px;
        top: 25px;
        border-radius: 20px;
        overflow-y: scroll;
    }

    .bell-fill:hover .dropdownbellfill {
        display: block;
    }



    @media (max-width: 850px) {
        .draganddrop {
            width: 95%;
        }
        .sidebar {
            display: none;
        }

        .hamburgersidebar {
            display: block;
        }



        .Personcircle {
            top: inherit;
            top: 1%;
            right: 20px;
        }

        .bell-fill {
            top: inherit;
            top: 1%;
            right: 70px;
        }






        .contentgrid {
            margin: auto;
            margin-top: 8vh;
        }
    }

    .graphwidthset {
        background-color: #FAFAFA;
        border-radius: 6px;
        padding: 6px;
        margin: 10px;
    }

    .graphwidthsetsettings {
        margin: 7%;
        margin-top: 80px;
        text-align: left;
        background-color: white;
    }

    table {
        font-size: 18px;
        width: 90%;
        color: #2c304c;
        border-collapse: collapse;
        max-height: 800px;
        margin: auto;
    }

    .resourcelayout table {
        margin: 0;
        max-height: 100%;
    }

    .tableheadder {
        background-color: #e4e3de;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .ruletable {
        min-width: 700px;
    }

    tr {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 20px;
    }


    .ruletable tr {
        border: 5px solid #dddddd;
        margin: 10px 0 10px 0;
    }




    .mainbutton {
        font-family: Roboto;
        color: white;
        display: inline;
        border-radius: 12px;
        border-width: 0;
        padding: 10px 20px 10px 20px;
        font-weight: bold;
        background-color: #2c304c;
        margin: 5px;
        display: inline-block;
    }

    .loginpanel .mainbutton {
        background-color: #2c304c;
        color: #e7ff00;
        display: block;
        margin: auto;
        margin-bottom: 20px;
    }


    .maintables a {
        display: block;
        color: #2c304c;
        text-decoration: none;
        background-color: #e4e3de;
        font-weight: normal;
        padding: 3px;
        border-radius: 6px;
        margin: 1px 3px 1px 3px;
        display: inline-block;
    }

    .bottomfilters a {
        display: block;
        color: #2c304c;
        text-decoration: none;
        background-color: #e4e3de;
        font-weight: bold;
        padding: 12px 20px 12px 20px;
        border-radius: 12px;
        margin: 5px;
        display: inline-block;
    }

        .bottomfilters a:hover {
            color: white;
            background-color: #2c304c;
        }

    .resourcelayout .mainbutton {
        font-weight: normal;
        padding: 1px;
        border-radius: 6px;
    }

    .mainbutton:hover {
        background-color: #ebe3dc;
        color: black;
    }


    .widgetbox {
        min-width: 1200px;
        height: 800px;
        padding: 10px;
        border-radius: 12px;
        background-color: #F8F8F8;
        position: relative;
    }

    .dashboardTemplate {
        height: 500px;
        overflow: scroll;
        background-color: #e4e3de;
        color: #2c304c;
        border-radius: 12px;
        padding: 16px;
        position: absolute;
        top: 30px;
        right: 20px;
        margin: 20px;
        display: none;
        z-index: 3;
        border: 5px solid #e4e3de;
    }

        .dashboardTemplate .mainbutton {
            margin-top: 20px;
            background-color: darkgray;
        }

        .dashboardTemplate img {
            margin: 10px;
        }

        .dashboardTemplate input {
            margin: 0px 10px 0 20px;
            border-radius: 6px;
        }

    @media (max-width: 850px) {

        .graphwidthsetsettings {
            margin: auto;
            margin-top: 80px;
        }



        .dashboardTemplate {
            margin-left: 5px;
            padding: 4px;
        }
    }

    .movable {
        position: absolute;
        padding: 5px;
        left: 10px;
        top: 10px;
        background-color: #eAeAE0;
        border-radius: 8px;
        text-align: center;
        cursor: move;
    }

    .nonmovable {
        position: absolute;
        padding: 5px;
        left: 10px;
        top: 10px;
        background-color: #eAeAE0;
        border-radius: 8px;
        text-align: center;
        cursor: default;
    }

    .movableblank {
        position: absolute;
        padding: 2px;
        left: 10px;
        top: 10px;
        text-align: center;
        cursor: move;
    }

    .nonmovableblank {
        position: absolute;
        padding: 5px;
        left: 10px;
        top: 10px;
        border-radius: 8px;
        text-align: center;
        cursor: default;
    }

    .preventselect {
        -webkit-user-select: none; /* Safari */
        -ms-user-select: none; /* IE 10 and IE 11 */
        user-select: none; /* Standard syntax */
    }
    /*///////////////////////////////////////////////////////widgets//////////////////////////////////////////////////////////////////////*/

    .closebutton {
        position: absolute;
        top: 0;
        right: 0;
        color: red;
        z-index: 9;
        font-size: 22px;
        display: inline;
        cursor: pointer;
    }

    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
    }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
        }

    input:checked + .slider {
        background-color: #2196F3;
    }

    input:focus + .slider {
        box-shadow: 0 0 1px #2196F3;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }

    /* Rounded sliders */
    .slider.round {
        border-radius: 34px;
    }

        .slider.round:before {
            border-radius: 50%;
        }

    .LED {
        border-radius: 50%;
        width: 30px;
        height: 30px;
        background-color: gray;
        margin: auto;
    }

    .circle {
        width: 6px;
        height: 6px;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        border-radius: 6px;
        position: absolute;
    }

    .red {
        background: red;
    }

    .black {
        background: black;
    }

    .blue {
        background: blue;
    }

    .green {
        background: green;
    }

    .white {
        background: white;
    }

    .orange {
        background: orange;
    }

    .gray {
        background: #222222;
        height: 200px;
        width: 350px;
    }


    /*///////////////////////////////////////////////////////widgets//////////////////////////////////////////////////////////////////////*/
    .maintables tr.selected {
        background-color: #41e7ff
    }

    .maintables tr:hover {
        background-color: #aaaaaa;
        color: white;
    }

    .marker0 {
        width: 30px;
        height: 30px;
        background-color: #ff0000;
        border-radius: 50%;
        font-size: large
    }

    .marker1 {
        width: 40px;
        height: 40px;
        background-color: #bb95f0;
        border-radius: 50%;
    }

    .marker2 {
        width: 30px;
        height: 30px;
        background-color: #95c6f0;
        border-radius: 50%;
    }

    .marker3 {
        width: 20px;
        height: 20px;
        background-color: #95f0dc;
        border-radius: 50%;
    }

    .marker4 {
        width: 20px;
        height: 20px;
        background-color: #95f0a0;
        border-radius: 50%;
    }

    .marker5 {
        width: 20px;
        height: 20px;
        background-color: #d5f095;
        border-radius: 50%;
    }


    .tree {
        list-style-type: none;
        margin: 10px 0 10px 0;
        padding: 0;
        align-items: center;
        max-height: 710px;
        overflow: auto;
    }

        .tree li {
            margin: 0;
            padding: 2px;
            position: relative;
            cursor: pointer;
        }

            .tree li::before {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                width: 1px;
                background-color: #ccc;
            }

            .tree li:last-child::before {
                display: none;
            }

            .tree li.collapsed > ul {
                display: none;
            }

        .tree button {
            margin-left: 10px;
            cursor: pointer;
            border-radius: 6px;
            border-width: 0;
            min-width: 25px;
            font-weight: bold;
            background-color: #e4e3de;
        }

        .tree li.selected {
            font-weight: bold;
            background-color: #41e7ff
        }



    .resourcemanager, tr, td {
        border: none;
    }

    /* Popup Styles */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        display: none;
        justify-content: center;
        align-items: center;
    }





.close-btn {
    background: none;
    border: none;
    font-size: 50px; /* Reduced from 60px for better proportion */
    cursor: pointer;
    color: #2c304c;
    padding: 5px 10px;
    transition: 0.2s;
    line-height: 1;
}

    .close-btn:hover {
        color: #ff5555;
    }



.export-btn {
    background: #2c304c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.2s;
    margin: 10px;
}

    .export-btn:hover {
        color: #ff5555;
    }

/* ===== Main Content Area ===== */
.popup-main-content {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

    .popup-content {
        padding: 10px;
        background-color: white;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        max-width: 200px;
    }


    .charts-container {
        display: flex; /* Enables Flexbox */

    }

    .chart-box {
        flex: 1; /* Each div takes up equal space */
        max-width: 400px; /* Optional: Sets a maximum width for each chart box */
        text-align: center; /* Centers the heading inside each box */
    }
/* Style the tab container */
.tab {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
}

    /* Style the buttons inside the tab */
    .tab button {
        background-color: #f1f1f1;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 10px 20px;
        transition: 0.3s;
        font-size: 18px;
    }

        /* Highlight the active tab */
        .tab button.active {
            background-color: #ccc;
            border-bottom: 2px solid #000;
        }

/* Tab content */
.tab-content {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
}

    /* Show active content */
    .tab-content.active {
        display: block;
    }

.outtitle {
    position: absolute;
    top: 20px;
    left:10px;
    padding: 5px;
    background-color: white;
    border: 1px solid black;
    display: none;
    z-index: 20;
    max-width: 400px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* 30% transparent black */
    z-index: 1; /* Ensure it stays above the map */
    pointer-events: none;
}

/* 🔵 Marker Container */
.markerContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 2; /* Ensure markers are above the overlay */
}

