﻿.leaflet-popup {
    padding:0px;
    opacity:0.5;
}


.station-card {
    width: 340px;
    background: #fff;
    border: 0px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0px 0px rgba(0,0,0,0.2);
    /*font-family: "Noto Sans Thai", sans-serif;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.station-header {
    background-color: #0046b8;
    color: #fff;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
}

.station-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.station-data {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.data-row {
    display: grid;
    grid-template-columns: 32px 120px 100px 30px;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.data-row .icon {
    text-align: center;
    font-size: 18px;
}



.data-row input {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 26px;
    width: 100px;
    background: #fff;
    font-weight: bold;
    font-size: 13px;
}

.unit {
    font-size: 14px;
    margin-left: 10px;
}

.station-footer {
    border-top: 1px solid #eee;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    color: #008000;
    font-size: 13px;
}


.station-footer .icon {
    text-align: center;
    font-size: 18px;
}
.main-popup-i {
    /*position: fixed;
    right: 40px;*/
    width: 100%;
    height: 100%;
    top: 78px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    padding: 18px 24px;
    z-index: 9999;
    backdrop-filter: blur(8px);
    display: block;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.popup-header-i {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.popup-header-i h5 {
    color: #2d6a4f;
    margin: 0;
    font-weight: 600;
}

.popup-body-i .stat {
    display: flex;
    justify-content: space-between;
}

.tab-container {
    display: flex;
    background-color: #f3f3f3;
    border-radius: 12px;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
}

.tab {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tab:hover {
    background-color: #e6e6e6;
    color: #000;
}

.tab.active {
    background-color: #0056d6;
    color: white;
    font-weight: 600;
}

.tab-content-container {
    margin-top: 15px;
    /* padding: 15px; */
    /* border-radius: 12px;
    background: #f9f9f9; */
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.08); */
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.tab-content {
    display: none;
    height: 100%;
    /* margin: 6px; */
}


.tab-Graph-content {
    display: none;
    height: 100%;
    
    /* margin: 6px; */
}

.tab-Graph-content.active-content {
    display: block;
    height: 100%;
    /* margin: 6px; */
}

.tab-content.active-content {
    display: block;
}
.tab-Report {
    border-bottom: 1px solid gray;
}
.tab-Report.active {
    border-bottom:0px;
}
.tab-Report-content {
    display: none;
    height: 100%;
    /* margin: 6px; */
}

.tab-Report-content.active-content {
    display: block;
    height: 100%;
    /* margin: 6px; */
}

.panel-wrapper {
    display: none;
    height: 100%;
    /* margin: 6px; */
}

.panel-wrapper.active-content {
    display: block;
    height: 100%;
    /* margin: 6px; */
}


.center {
    text-align: center;
}
.nav-tabs {
    background-color: #f3f3f3;
}

.index.nav-item {
    background-color: #f3f3f3;
    border-right: 1px solid #dfdfdf;
}


.info-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 900px;
    font-family: "Kanit", sans-serif;
}

.info-title {
    width: 200px;
}

.info-title h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin: 0;
    white-space: nowrap;
}

.info-box {
    flex: 1;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.zoom-controls {
    position: absolute;
    bottom: 18px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-box {
    position: relative;
    width: 100%;
    height: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    fsaza display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.photo-box img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center center;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #333;
}

.filter-item input,
.filter-item select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    height: 28px;
}

.search-btn {
    /* background-color: #0056ff; */
    border: solid 1px #0046C8;
    border-radius: 6px;
    color: #0046C8;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover {
    background-color: #0040cc;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0056ff;
    border: 1px solid #0056ff;
    background: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.export-btn:hover {
    background-color: #eaf1ff;
}
