html,
body {
    min-height: 100%;
    padding: 0;
    margin: 0;
}

#wrapper {
    padding-top: 70px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.navbar-custom {
    margin-top: -70px;
    height: 70px;
}

.left-side-menu {
    display: none;
    width: 420px !important;
    left: 0 !important;
    color: #343a40;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8.5px);
    pointer-events: all;
    padding: 0;
    cursor: default;
}

.left-side-menu hr {
    margin-top: 0;
    margin-bottom: 0;
    /* border-top: 1px solid #697077; */
    border: none; /* 移除默认边框 */
    height: 1px; /* 设置 hr 的高度 */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2)); /* 渐变背景 */
}

.runoff-header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px #666;
}

.runoff-header p {
    margin-bottom: 10px;
    font-weight: 400;
}
.runoff-header p.lang-en {
    font-weight: 600;
}

.runoff-body {
    margin-top: 10px;
}

.runoff-item {
    margin-top: 10px;
    margin-bottom: 10px;
}

.runoff-item-header {
    font-size: 1rem;
    margin-bottom: 6px;
}

.runoff-icon-left {
    margin-right: 6px;
}

.location {
    margin-left: 6px;
    margin-right: 6px;
}

.table-name {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 6px;
}

#table-params > thead {
    text-align: center;
    color: #343a40;
}

.table-bordered tbody td, .table-bordered tbody th {
    border: 1px solid #343a40;
}

.table thead th {
    border-bottom: 1px solid #343a40;
    vertical-align: middle;
    color: #dee0e2;
    background-color: #4682b8;
}

.table th, .table td {
    padding: .35em;
}

.table tbody td {
    text-align: right;
    font-weight: 700;
}

.table-striped tbody tr:nth-of-type(odd) {
    color: #343a40;
    background-color: #ddebf7;
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.65);
}

.apex-charts text {
    fill: #343a40 !important;
}

.item-tools button {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.tool-icon {
    stroke: #343a40;
    stroke-width: 2;
}

/* .tool-icon:hover {
    stroke: #2053a0;
    stroke-width: 2;
} */

.title-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
}

.title-header .title-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 用省略号表示被截断的文本 */
    margin: 0;
}

.title-header .item-tools {
    margin-left: auto;
}

.sidebar-collapse {
    display: none;
    position: fixed;
    width: 11px;
    top: 70px;
    left: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(137, 137, 137, 0.37);
    backdrop-filter: blur(8.5px);
    transition: all .1s ease-out;
    z-index: 50;
}

.sidebar-collapse.hide {
    left: -15px;
}

.slider {
    position: fixed;
    top: 0;
    right: 0;
    width: 11px;
    height: 100%;
    cursor: pointer;
}

.slider:hover .silder-button {
    color: rgba(0, 0, 0, 0.8) !important;
}
.sidebar-collapse:hover {
    box-shadow: 0 0 15px 0 rgb(154, 161, 171);
}

.silder-button {
    border: none;
    color: rgba(0, 0, 0, 0.3) !important;
    /* color: #333 !important; */
    display: inline-block;
    height: 100%;
    width: 100%;
    background-color: transparent;
    text-align: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all .1s ease-out;
}

.silder-button i {
    position: absolute;
    padding: 0;
    left: 50%;
    transform: translateX(-50%);
}

body[data-sidebar-size="condensed"] .left-side-menu {
    left: -420px !important;
    position: fixed !important;
    padding-top: 0 !important;
    width: 420px !important;
}
body[data-sidebar-size="condensed"] .logo span.logo-sm {
    display: none !important;
}
body[data-sidebar-size="condensed"] .logo span.logo-lg {
    display: block !important;
}
body[data-sidebar-size="condensed"]:not([data-layout="compact"]) {
    min-height: 0px;
}
body[data-sidebar-size="condensed"] .content-page {
    margin-left: 0 !important;
}
body[data-sidebar-size=condensed] .logo-box {
    width: 500px !important;
}

.content-page {
    height: 100%;
    padding: 0;
    margin: 0;
    z-index: 0;
}

#map {
    position: relative;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.mapboxgl-ctrl-logo {
    display: none !important;
}

.menu-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 10px;
}
.menu-container .slider {
    pointer-events: auto;
    box-shadow: 0 0 15px 0 rgb(154, 161, 171);
    clip-path: inset(0px -15px 0px 1px);
}

.menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 339px;
    height: 100%;
}

.menu-content:hover {
    box-shadow: none;
}

.menu-wrapper {
    display: none;
    position: fixed;
    z-index: 120;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.mapboxgl-ctrl-logo {
    display: none !important;
}
.fullscreen-control {
    color: #fff;
    background: transparent;
    padding: 8px;
    border-radius: 4px;
    border: #fff 1px solid;
    margin: 8px;
}
.mapboxgl-ctrl-geocoder {
    right: 40px;
}
.mapboxgl-ctrl-top-right .mapboxgl-ctrl-group {
    top: 3px;
    right: 0;
    position: absolute;
}
.mapboxgl-popup-content {
    max-width: 360px;
}
.mapboxgl-ctrl-geocoder--powered-by {
    display: none !important;
}
.mapboxgl-popup-anchor-top {
    margin-top: -40px;
}

.logo-box {
    width: 500px !important;
    position: relative;
    padding-left: 20px;
}

.logo-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.vhs {
    top: -40px;
}

.vhs button:hover {
    background: #8d4a6d;
    cursor: pointer;
}
.vhs button {
    background: #c43f3f;
    color: #fff;
    border: 0;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom:20px;
    padding: 18px 15px;
}

.vhs:hover .map-flip, 
.vhs.hover .map-flip {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);

    cursor: pointer;
}

.map-flip {
    transition: 0.6s;
    -webkit-transition: 0.6s;
    -moz-transform: 0.6s;
    -o-transform: 0.6s; 
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    /* display: inline-block; */
    top: 85px;
    left: 245px;
    text-align: center;
    z-index: 1;
    width: 50px;
}
.front.map-icon, 
.back.map-icon {
    backface-visibility: hidden;
    -webkit-backface-visibility:hidden;
    -moz-backface-visibility: preserve-3d;
    -o-backface-visibility: preserve-3d;
    position: absolute;

}
.front.map-icon {
    position: absolute;
    z-index: 9999;
    width: 50px;
    height: 40px;
}
.back.map-icon {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg); 
    width: 50px;
    height: 40px;
}
.front.map-icon i {
    color: #c43f3f;
}

.back.map-icon i {
    color: #8d4a6d;
}
.front.map-icon i, 
.back.map-icon i {
    font-size: 56px;
    top: 0;
    left: 9px;
    position: absolute;
}

.outlined-icon {
    text-shadow: -1px -1px 0 #FFF,  
                1px -1px 0 #FFF,
                -1px  1px 0 #FFF,
                1px  1px 0 #FFF;
}

.pop-menu {
    
    /* position: absolute; */
    color: #272e37;
    background-color: rgba(255, 255, 255, 0.85) !important;
    /* background-color: rgba(255, 255, 255, 0.45); */
    box-shadow: 0 8px 32px 0 rgba(137, 137, 137, 0.37);
    backdrop-filter: blur(8.5px);
    border-radius: 0.25rem;
    z-index: 150;
}

#layer-menu {
    top: 72px;
    right: 2px;
    width: 160px;
    height: 180px;
    animation: layerIn .2s alternate ease-in;
}
#layer-menu.pop-hide {
    opacity: 0;
    right: -170px;
    animation: layerOut .2s alternate ease-out;
}

@keyframes fade-in-out {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 0;
    }
    35% {
        opacity: 0.5;
    }
    65% {
        opacity: 0.5;
    }
    85% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes legendIn {
    from {
        opacity: 0;
        bottom: -150px;
    }
    
    to {
        opacity: 1;
        bottom: 0;
    }
}
@keyframes legendOut {
    from {
        opacity: 1;
        bottom: 0;
    }

    to {
        opacity: 0;
        bottom: -150px;
    }
}

#map-legend2 {
    display: none;
    height: 100px;
    width: 320px;
    bottom: 0;
    left: 420px;
    margin-left: 10px;
    margin-bottom: 10px;
    /* background-color: #fff;
    box-shadow: 0 0 0 2px rgb(0 0 0 / 10%); */
    /* color: #fff;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.37); */
    /* animation: legendIn .2s alternate ease-in; */
}
#map-legend.left-show {
    left: 420px;
    transition: all .2s alternate ease-in;
}
#map-legend2.left-collapse {
    left: 12px;
    transition: all .2s alternate ease-in;
}
#map-legend2.pop-show {
    bottom: 0;
    animation: legendIn .2s alternate ease-out;
}
#map-legend2.pop-hide {
    bottom: -150px;
    animation: legendOut .2s alternate ease-out;
}

.legend-item-header {
    margin-top: 5px;
    margin-bottom: 10px;
}

.legend-item-header > h3 {
    font-size: 0.92rem;
    text-shadow: 1px 1px 6px #aaa;
}

#legend-close {
    margin-left: 10px !important;
}

.tool-icon-button {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.legend-tool {
    padding-left: 4px;
    padding-right: 4px;
}

.legend-tool:focus {
    box-shadow: none;
}

.legend-tool.clicked {
    color: #fff;
}
.btn-outline-blue.clicked {
    background-color: #4a81d4;
    border-color: #4a81d4;
}

.btn-outline-danger.clicked {
    background-color: #f1556c;
    border-color: #f1556c
}

.btn-outline-success.clicked {
    background-color: #1abc9c;
    border-color: #1abc9c;
}

.footable-pagination li.active a {
    color: #fff;
    background-color: #4682b8;
    border-color: #4682b8;
}

#location-mark {
    cursor: pointer;
}

.blinking-text {
    font-size: 20px;
    color: #FFF;
    position: absolute;
    animation: fade-in-out 3s infinite;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    cursor: crosshair;
}