html {
    font-family: "Kanit", sans-serif;
    
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
/*html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 60px;
}*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Full height for body */

}

.kanit-thin {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.kanit-extralight {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.kanit-light {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.kanit-medium {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.kanit-semibold {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.kanit-bold {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.kanit-black {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.kanit-thin-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.kanit-extralight-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.kanit-light-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.kanit-regular-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.kanit-medium-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.kanit-semibold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.kanit-bold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.kanit-extrabold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.kanit-black-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: italic;
}
.kn-reg-18 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size:18px;
}
.kn-reg-20 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}
.kn-reg-20-200 {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 20px;
}
.kn-reg-24 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
}
.kn-reg-32 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
}

.kn-reg-32-l {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    color:grey;
}
.kn-reg {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    
}
.kn-reg-8-400 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 8px;
}
.kn-reg-10-400 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
}
.kn-reg-10-700 {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 10px;
}
.kn-reg-12 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}
.kn-reg-12-100 {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 12px;
}
.kn-reg-12-200 {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 12px;
}
.kn-reg-12-300 {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 12px;
}
.kn-reg-14 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}
.kn-reg-16 {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}
.kn-b {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}

p {
    white-space: pre;
    margin:0px;
}

thead {
    background-color:blue;
    color:white;
}
.flag {
    width: 40px;
    margin: 0px;
    padding:0px;
    margin-right:8px;
 
}
.top-x {
    padding-top: 12px;
    z-index:1000;
    font-size:12px;
}
.top-xx {
    padding-top: 0px;
}
.dropdown-menu {
    z-index: 1000;
    max-height:400px;
    overflow:scroll;
}

.close-x {
position:relative;
right:10px;
}



.navbar {
    padding: 0px;
}

.navbar {
    overflow: hidden;
    background-color: #ffffff;
}

.navbar a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 5px 16px;
    text-decoration: none;
    font-size: 14px;
    /*border-bottom: 3px solid transparent;*/
}

.navbar a:hover {
    /*border-bottom: 3px solid red;*/
}

.navbar a.active {
    /*border-bottom: 3px solid red;*/
}
.nav-link {
    font-size:14px;
}
.container_x {
    top: 0px;
    /*border: 2px solid #000;*/ /* Width: 2px, Style: solid, Color: green */
    padding: 0px; /* Space inside the border */
    margin: 0px; /* Space outside the border */
    height: 100vh; /* Set a fixed width */
    width: 100%; /* Set a fixed width */
    /*text-align: center;*/ /* Center-align text */
}
#map {
    /*top: 88px;*/
    height: 100vh; /* Full viewport height */
    width: 100%;

}
.leaflet-popup-tip-container {
    background: transparent;
    display: none;
}


.leaflet-popup-content-wrapper {
    border-radius: 0;
    border: 3px solid rgba(0,0,0,0.4);
    opacity:0.9;
}
/* Add responsiveness for smaller screens */
#overlayImage {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 72px;
    height: 72px;
    z-index: 1000; /* Make sure it stays above the map */
}
#overlaySvg {
    position: absolute;
    top: 14px;
    left: 85px;
    z-index: 1000;
}
@keyframes pulse {
    0% {
        r: 30;
        fill: orange;
    }
    50% {
        r: 40;
        fill: red;
    }
    100% {
        r: 30;
        fill: orange;
    }
}
.glow-marker {
    width: 150px;
    height: 150px;
    border-radius: 500%;
    background: orange;
    box-shadow: 0 0 100px orange;
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 100px orange;
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px #ff7d00;
    }
}
.glow-marker-red {
    width: 150px;
    height: 150px;
    border-radius: 500%;
    background: red;
    box-shadow: 0 0 300px #8f0505;
    animation: blink1s 1s infinite;
}
@keyframes blink1s {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 100px red;
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px red;
    }
}
.leaflet-popup-content {
    font-size: 16px; /* Adjust font size */
    max-width: 480px; /* Set maximum width */
}
/* Style for the card */
.info-card {
    position: absolute;
    top: 0px;
    left: 0px;
    background: white;
    padding: 15px;
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Ensure it appears above the map */
    width: 100%;
    height:90px;
    opacity:1.0;
}
.info-card-bottom-left {
    position: absolute;
    bottom: 80px;
    left: 15px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure it appears above the map */
    width: 220px;
    height: 320px;
    opacity: 0.8;
}
.info-card-bottom-left-top {
    position: absolute;
    bottom: 35px;
    left: 15px;
    background: white;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 1999; /* Ensure it appears above the map */
    width: 140px;
    height: 40px;
    opacity: 1.0;
}
.info-card-top-right {
    position: absolute;
    top: 10px;
    right: 65px;
    background: #dadada;
    padding: 5px;
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure it appears above the map */
    width: 420px;
    /*height: 75px;*/
    opacity: 1.0;
}
.my-badge-container {
    border:1px solid grey;
    background-color: white;
    padding: 0px;
    height: 20px;
}
.my-badge-wrapper {
    position: absolute;
    left: 100px;
    
}

.my-badge-info-container {
    position: relative;
    margin-top: -5px;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    border-color: gray;
    color: white;
    font-size: 11px;
    align-items: center;
}
.alert-btn {
    background-color: lightgray;
    font-size: 14px;
}

    .alert-btn.active {
        background-color: dodgerblue;
        color: white;
        font-size: 14px;
    }

child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.summary-card {
    position: absolute;
    top: 90px;
    right: 10px;
    background: grey;
    padding: 5px 5px 5px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 999; /* Ensure it appears above the map */
    width: 450px;
    height: auto;
    opacity: 0.9;
}
.RED {

    background-color: #FF0000;
}
.RED_NUM {
    height: 60px;
    color: #FF0000;
    font-size:32px;
}
.ORG {
    background-color: orange;
}

.ORG_NUM {
    height: 60px;
    color: orange;
    font-size: 32px;
}
.YEL {
    background-color: yellow;
}

.YEL_NUM {
    height: 60px;
    color: yellow;
    font-size: 32px;
}

    .info-card-info {
        /*position: absolute;
    bottom: 10px;
    left: 15px;*/
        background: white;
        padding: 5px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        z-index: 999; /* Ensure it appears above the map */
        width: 220px;
        height: 270px;
        opacity: 1.0;
    }
.info-card-right-top {
    /*display:none;*/
    position: absolute;
    top: 91px;
    right: 0px;
    
    background: white;
    padding: 15px;
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Ensure it appears above the map */
    width: 33%;
    height: 100vh;
    opacity: 0.8;
}
.info-card-bottom {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Ensure it appears above the map */
    width: 100%;
    height: 41px;
    opacity: 0.9;
}


.info-card h4 {
    margin: 0 0 10px;
}
.info-card p {
    margin: 0;
}

.btn-danger {
    font-family: 'Franklin Gothic';
    font-size: 13px;
    color: rgba(255, 255, 255);
    letter-spacing: 1px;
    line-height: 15px;
    border: 2px solid rgba(217, 83, 22, 0.75);
    background-color: rgba(217, 83, 22, 0.75);
    border-radius: 40px;
    /*background: transparent;*/
    transition: all 0.3s ease 0s;
    margin: 5px 0px 10px 5px;

}

    .btn-danger:hover {
        color: #FFF;
        background: rgba(217, 83, 78, 0.75);
        border: 2px solid rgba(217, 83, 78, 0.75);
    }
.avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /*height: 100vh;*/
    
    
}
.flag-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /*height: 100vh;*/

}

.avatar {
    width:100%;
    border-radius: 50%;
}
.setting {
    width: 32px;
    opacity:0.5;
}
.setting-sm {
    position: relative;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    opacity: 0.4;
}
    .setting-sm img:hover {
        cursor: pointer;
        width: 41px;
        opacity: 0.8;
    }
.situation {
    display: none;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    /*padding-top: 50px;*/ /* Location of the box */
    left: 0;
    top: 0px;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;

    width: 90%;
    height: 90%;
    max-width: 1680px;
    max-height: 750px;
}

.center {
    margin-left: auto;
    margin-right: auto;
}
.navbar-toggler {
    width: 44px;
    height: 44px;
    margin-top:-15px;
}
.navbar-toggler-icon {
    top:0px;
    left:0px;
    width: 32px;
    height: 32px;
}
td {
}
.dmr {
    top:0px;
    width:320px;
}
.logo {
    width: 60px;
    height: 60px;
    margin: 5px;
}
.owner-name {
    margin: 10px 5px;
    font-size:14px;
}
.department {
    margin: -15px 6px;
    font-size: 12px;
    text-wrap:nowrap;
}
.project-name {
    position: relative;
    left: 50px;
    align-items: center;
    font-size: 16px;
    color: grey;
}
.warn-text {
    color: white;
}
.warn-text-gray {
    color: gray;
}

.info-badge {
    position:absolute;
    z-index:1000;
    width:320px;
    right:5px;
    top:5px;

}
.content-station-container {
    border-bottom:1px solid #dadada;
    padding: 5px 0px;
}
.content-station-container:hover {
    border-bottom: 1px solid #dadada;
    padding: 5px 0px;
    background-color:lightgrey;
    cursor:pointer;
}
.content-station {
    vertical-align: middle;
    font-size: 14px;
}
.content-station-value {
    vertical-align: middle;
    font-size: 10px;
}
.content-station-value-x {
    vertical-align: middle;
    font-size: 12px;
}

/*.content.header {
    vertical-align: middle;
    font-size: 12px;
}*/

.content {
    vertical-align: middle;
    font-size: 16px;
    padding: 0px;
    margin: 0px;
}

.content.header {
    vertical-align: middle;
    font-size: 14px;
}
.info-card-top-right-mobile {
    display: none;
    width:600px;
}
.index {
    display: block;
    vertical-align: middle;
    font-size: 15px;
    width: 120px;

}
.index-mobile {
    display: none;

}

    @media (max-width: 768px) {
        html {
            
        }

        .dmr {
            top: 1px;
            width: 200px;
            height: 40px;
        }

        #map {
            /*top: 88px;*/
            margin-top: 65px;
            height: 100vh; /* Full viewport height */
            width: 100%;
        }

        .info-card-bottom-left {
            position: absolute;
            bottom: 20px;
            left: 0px;
            background: white;
            padding: 5px;
            border-radius: 18px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            z-index: 999; /* Ensure it appears above the map */
            width: 100%;
            height: 270px;
            opacity: 0.8;
        }

        .info-card-top-right {
            display: none;
            position: absolute;
            top: 5px;
            right: 20px;
            left: 8px;
            background: #dadada;
            padding: 5px;
            border-radius: 0px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            z-index: 999; /* Ensure it appears above the map */
            width: 97%;
            /*height: 75px;*/
            opacity: 1.0;
        }

        .info-card-top-right-mobile {
            display: block;
            position: relative;
            right: 20px;
            left: 8px;
            background: #dadada;
            padding: 5px;
            border-radius: 0px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            z-index: 999; /* Ensure it appears above the map */
            width: 97%;
            /*height: 75px;*/
            opacity: 1.0;
        }

        #map {
            /*top: 88px;*/

            height: 80vh; /* Full viewport height */
            margin:5px 20px 5px 5px;
        }

        .my-custom-control {
            position: absolute;
            top: 100px;
            right: 15px;
            background: white;
            padding: 5px;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            z-index: 999; /* Ensure it appears above the map */
            width: 220px;
            height: 270px;
            opacity: 0.8;
        }
        .logo {
            width:64px;
            height:64px;
            margin:5px;
        }
        .owner-name {
            margin: 5px 1px;
            font-size: 12px;
        }

        .department {
            margin: -11px 2px;
            font-size: 12px;
        }
        .project-name {
            position: absolute;
            top: 40px;
            left: 48px;
            font-size: 14px;
            color: grey;
        }

        .summary-card {
            position: relative;
            top: 0px;
            right: 0px;
            background-color: white;
            padding: 5px 5px 5px 5px;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            z-index: 999; /* Ensure it appears above the map */
            width: 100%;
            height: auto;
            opacity: 0.9;
        }

        .RED {
            background-color: #FF0000;
            font-size: 13px;
        }

        .RED_NUM {
            padding: 0px;
            padding-bottom: 5px;
            align-items: center;
            height: 40px;
            color: #FF0000;
            font-size: 30px;
            background-color: rgba(195, 195, 195, 0.1);
        }

        .ORG {
            background-color: orange;
            font-size: 13px;
        }

        .ORG_NUM {
            padding: 0px;
            align-items: center;
            height: 40px;
            color: orange;
            font-size: 30px;
            background-color: rgba(195, 195, 195, 0.1);
        }

        .YEL {
            background-color: yellow;
            font-size: 13px;
        }

        .YEL_NUM {
            padding: 0px;
            align-items: center;
            height: 40px;
            color: #dddd44;
            font-size: 30px;
            background-color: rgba(195, 195, 195, 0.1);
        }

        .warn-text {
            color: black;
            font-size: 14px;
        }

        flag {
            width: 40px;
            margin: 5px 10px 5px 0px;
        }

        .avatar-container {
            width:25px;
            display: flex;
            align-items: start;
            justify-content: start;
            /*height: 100vh;*/
        }

        .top-xx {
            padding-top: 10px;
        }
        .alert-btn {
            background-color: lightgray;
            font-size: 14px;
        }

            .alert-btn.active {
                background-color: dodgerblue;
                color: white;
                font-size: 14px;
            }
        .content-station {
            vertical-align: middle;
            font-size: 14px;
        }

        .content.header {
            vertical-align: middle;
            font-size: 14px;
        }

        .content {
            vertical-align: middle;
            font-size: 12px;
        }
        .index {
            display: none;
            vertical-align: middle;
            font-size: 12px;
            width:auto;
        }
        .index-mobile {
            display: block;
            vertical-align: middle;
            font-size: 14px;
            height: 40px;
            padding: 10px;
            background-color: #dadafa;
            width: 100%;
        }

        .content.header {
            vertical-align: middle;
            font-size: 16px;
        }
        .tab-Graph-content {
            display: block;
            height: 100%;
            /* margin: 6px; */
        }

            /*.tab-Graph-content.active-content {
                display: block;
                height: 100%;*/
                /* margin: 6px; */
            /*}*/

    }

