@charset "UTF-8";

.boxdraw {
	background: rgba(56, 135, 190, 0.1);
	border: 2px solid #3887be;
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
}
.resizable {    
    background-color: lightblue;
    position: relative;
    overflow: hidden;
    border: 2px solid #007BFF;
}
        
.resizer {
    width: 5px;
    height: 100%;
    background-color: #007BFF;
    position: absolute;
    right: 0;
    top: 0;
    cursor: ew-resize; /* Chỉ cho phép resize theo chiều ngang */
}

#container_semicircle {
    width: 260px;
	height: 80px;
	position: absolute;
	z-index: 110;
	right: 50px;
	top: 70px;
	visibility: hidden;	
}        

#controls {
    text-align: center;
    margin-top: 20px;
    position: absolute;
    z-index: 110;
    top: 150px;
    right: 115px;
    visibility: hidden;
}
#controls button {
    padding: 5px;
    margin: 0 2px;
    font-size: 15px;
    cursor: pointer;
}
        
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}         

/* Nhóm nút bản đồ trên header */
.header-map-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	margin-left: 12px;
	min-width: 0;
}

.toggle-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 14px;
	line-height: 1.2;
	background-color: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	z-index: 100;
	white-space: nowrap;
	text-decoration: none;
	flex-shrink: 0;
	min-height: 36px;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.toggle-button:hover,
.toggle-button:focus-visible {
	background-color: #0c5fc0;
	color: #fff;
	text-decoration: none;
}

.dss3d-button {
	background-color: #0f766e;
}

.dss3d-button:hover,
.dss3d-button:focus-visible {
	background-color: #0d5f59;
}

.btn-label-short {
	display: none;
}

.icon {
	font-size: 20px;
	line-height: 1;
}

@media (max-width: 1199.98px) {
	.header-map-actions {
		margin-left: 6px;
		gap: 6px;
	}
	.toggle-button .btn-label-full {
		display: none;
	}
	.toggle-button .btn-label-short {
		display: inline;
	}
	.toggle-button {
		padding: 6px 8px;
		font-size: 12px;
		min-height: 36px;
	}
}

@media (max-width: 767.98px) {
	.app-header .header-content-left {
		min-width: 0;
	}
}

@media (max-width: 575.98px) {
	.header-map-actions {
		margin-left: 2px;
		gap: 4px;
	}
	.toggle-button {
		padding: 8px 8px;
		font-size: 11px;
		min-height: 40px;
		min-width: 40px;
	}
	.toggle-button .icon {
		font-size: 16px;
	}
}

@media (max-width: 379.98px) {
	.toggle-button .btn-label-short {
		display: none;
	}
	.toggle-button {
		padding: 8px;
	}
}

/* Container của các lựa chọn */
.container {
	display: none;
	position: absolute;
	width: 700px;
	max-height: 600px; /* Giới hạn chiều cao của container */
	background-color: transparent;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow-y: auto;
	z-index: 10;
}

.content {
	display: flex;
	flex: 1;
	overflow-y: auto; /* Cho phép cuộn nếu nội dung quá lớn */
}

.column {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 10px;
}

.column-left {
	background-color: #e8f0fe;
	gap: 10px;
}

.column-right {
	display: flex;
	flex-direction: row;
	flex: 2;
	gap: 10px;
	padding: 10px;
	background-color: #f1f3f4;
}

.hour-subcolumn {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.button {
	background-color: white;
	color: black;
	border: 2px solid transparent;
	padding: 5px;
	text-align: center;
	font-size: 14px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.button:hover {
	background-color: #f0f0f0;
}

.button.selected {
	background-color: #d0e7ff;
	border-color: #1a73e8;
	color: #1a73e8;
}

.footer {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	background-color: #f1f3f4;
	border-top: 1px solid #ddd;
}

.footer button {
	flex: 1;
	margin: 0 5px;
	padding: 5px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	border: none;
	transition: background-color 0.3s;
}

.footer button:hover {
	background-color: #e0e0e0;
}

.clear-button {
	background-color: #ffcccc;
}

.apply-button {
	background-color: #cce5ff;
}            

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: green;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
}
  
/* Popup container */
.popup-tram {
    background: #F9FBFF;               /* nền sáng xanh nhạt */
    color: #1F2937;                    /* chữ xám đậm, dễ đọc */
    font-size: 13px;
    line-height: 1.6;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 220px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Tiêu đề trạm */
.popup-tram h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0B5ED7;                    /* xanh dương đậm */
    border-bottom: 1px solid #D0E2FF;
    padding-bottom: 4px;
}

/* Dòng thông tin */
.popup-tram .row {
    margin-bottom: 4px;
}

.popup-tram .label {
    font-weight: 600;
    color: #374151;
}

/* Nhấn mạnh giá trị */
.popup-tram .value {
    color: #111827;
}

/* Badge thiết bị */
.popup-tram .badge2 {
    display: inline-block;
    background: #E7F1FF;
    color: #084298;
    font-size: 11.5px;
    padding: 2px 6px;
    border-radius: 6px;
    margin: 4px;
}

/* Tọa độ */
.popup-tram .coords {
    font-size: 11.5px;
    color: #4B5563;
    margin-top: 6px;
    border-top: 1px dashed #D1D5DB;
    padding-top: 4px;
}

/* Style mặc định của điểm trạm (màu xanh) */
.water-station-marker {
    width: 20px;
    height: 20px;
    background-color: #2196F3; /* Màu xanh gốc */
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Các lớp cảnh báo - Dùng !important để ép màu */
.marker-level-1 { 
    background-color: #FFFF00 !important; /* Vàng rực */
    border-color: #000 !important;
}
.marker-level-2 { 
    background-color: #FFA500 !important; /* Cam */
    border-color: #000 !important;
}
.marker-level-3 { 
    background-color: #FF0000 !important; /* Đỏ */
    border-color: #000 !important;
}

/* Hiệu ứng rung động đất */
.warning-vibrate {
    animation: vibrate-震 0.3s linear infinite !important;
}

@keyframes vibrate-震 {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
	100% { transform: translate(2px, 2px); }
}

/* Form trong sidebar: xếp dọc để tiếng Pháp/Anh không tràn */
.app-sidebar .slide-menu form {
	padding: 4px 10px 10px;
	overflow: hidden;
	max-width: 100%;
}
.app-sidebar .slide-menu form .row {
	margin-left: 0;
	margin-right: 0;
	flex-wrap: wrap;
}
.app-sidebar .slide-menu form .row > [class*="col-"] {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.app-sidebar .slide-menu form .col-sm-1 {
	display: none;
}
.app-sidebar .slide-menu form .col-form-label {
	white-space: normal;
	line-height: 1.3;
	padding-bottom: 2px;
}
.app-sidebar .slide-menu form .form-control,
.app-sidebar .slide-menu form .form-select {
	width: 100%;
	max-width: 100%;
	margin-top: 0 !important;
}
.app-sidebar .slide-menu form .btn {
	width: 100%;
	white-space: normal;
	line-height: 1.25;
	font-size: 12px;
	margin: 0 0 6px;
	padding: 6px 8px;
}
.app-sidebar .slide__category .category-name,
.app-sidebar .side-menu__label {
	white-space: normal;
	line-height: 1.3;
	overflow-wrap: break-word;
}
.app-sidebar .slide-menu.child2 {
	overflow-x: hidden;
}

.detaildg .detail-toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 0 36px 8px 8px;
	box-sizing: border-box;
}
.detaildg.is-legend .detail-toolbar {
	display: none;
}
.detaildg #contentDetail {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.detaildg .detail-toolbar-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.detaildg .detail-toolbar-row #dateRangePicker {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: 100%;
	padding: 6px 8px;
	box-sizing: border-box;
}
.detaildg .detail-toolbar-row #btnFilterData {
	flex: 0 0 auto;
	display: none;
	align-items: center;
	white-space: nowrap;
}
.detaildg #btnFilterLocnhanhMucnuocSong {
	display: none;
	flex-wrap: wrap;
	width: 100%;
	margin: 0;
	padding: 0;
}
.detaildg #contentDetail label.text-gray-6 {
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.45;
	max-width: 100%;
	padding: 2px 8px 8px 0;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.detaildg .solieu-chart-title,
.detaildg .mucnuoc-namrom-chart-title,
.solieu-chart-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.03em;
	padding: 2px 8px 12px 0;
	margin: 0;
	color: var(--text-muted, #8c9097);
	white-space: normal;
	overflow: visible;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
	text-transform: uppercase;
	box-sizing: border-box;
}

.detaildg #chart_solieudo,
.detaildg #duongdactinh-chart {
	overflow: visible;
}

.detaildg #chart_solieudo .apexcharts-svg,
.detaildg #chart_solieudo .apexcharts-inner,
.detaildg #chart_solieudo .apexcharts-title-text,
.detaildg #duongdactinh-chart .apexcharts-svg,
.detaildg #duongdactinh-chart .apexcharts-inner,
.detaildg #duongdactinh-chart .apexcharts-title-text {
	overflow: visible !important;
}

.detaildg .mucnuoc-legend,
.detaildg .mylegend.mucnuoc-legend {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 0 28px 8px 0;
	font-family: Arial, sans-serif;
	align-items: stretch;
}
.detaildg .mucnuoc-legend .legend-title {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 12px;
	padding-right: 28px;
	text-align: left;
	color: #1e3a8a;
}
.detaildg .mucnuoc-legend .legend-item {
	position: relative;
	width: 100%;
	margin: 0 0 14px;
	border: 1px solid #94a3b8;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: none;
}
.detaildg .mucnuoc-legend .legend-text {
	position: static;
	transform: none;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	background: #0284c7;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	text-shadow: none;
}
.detaildg .mucnuoc-legend .mytable table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	background: #fff;
	color: #0f172a;
}
.detaildg .mucnuoc-legend .col-threshold {
	width: 36%;
}
.detaildg .mucnuoc-legend .col-level {
	width: 64%;
}
.detaildg .mucnuoc-legend .mytable th,
.detaildg .mucnuoc-legend .mytable td {
	border: 1px solid #cbd5e1;
	padding: 8px 10px;
	vertical-align: middle;
	font-size: 12px;
	line-height: 1.4;
}
.detaildg .mucnuoc-legend .mytable th {
	background: #f1f5f9;
	font-weight: 700;
	color: #0f172a;
}
.detaildg .mucnuoc-legend .mytable th:first-child,
.detaildg .mucnuoc-legend .mytable td.num {
	text-align: center;
	white-space: nowrap;
}
.detaildg .mucnuoc-legend .mytable th:last-child,
.detaildg .mucnuoc-legend .mytable td.level {
	text-align: left;
}
.detaildg .mucnuoc-legend .mytable td.num {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.detaildg .map-legend-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 28px 16px 0;
}
.detaildg .map-legend {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 10px 12px 8px;
	box-sizing: border-box;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}
.detaildg .map-legend .legend-title {
	font-weight: 700;
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: 0.03em;
	text-align: left;
	margin: 0 0 8px;
	padding: 0 0 8px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.28);
	color: #1e3a8a;
}
.detaildg .map-legend .legend-item {
	position: static;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 26px;
	height: auto;
	margin: 0 0 5px;
}
.detaildg .map-legend .legend-item:last-child {
	margin-bottom: 2px;
}
.detaildg .map-legend .color-box {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	border: 1px solid rgba(15, 23, 42, 0.18);
	box-sizing: border-box;
}
.detaildg .map-legend .legend-text {
	position: static;
	top: auto;
	left: auto;
	transform: none;
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	color: #0f172a;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
	text-shadow: none;
	opacity: 1;
}
[data-theme-mode=dark] .detaildg .map-legend {
	background: rgba(15, 23, 42, 0.35);
	border-color: rgba(148, 163, 184, 0.22);
}
[data-theme-mode=dark] .detaildg .map-legend .legend-title {
	color: #e2e8f0;
	border-bottom-color: rgba(148, 163, 184, 0.22);
}
[data-theme-mode=dark] .detaildg .map-legend .legend-text {
	color: #e5e7eb;
}
[data-theme-mode=dark] .detaildg .map-legend .color-box {
	border-color: rgba(255, 255, 255, 0.18);
}

/* Chú giải tốc độ gió — trên thanh thời gian, bên trái cụm công cụ bên phải */
#dss-wind-speed-legend.dss-wind-speed-legend {
	position: fixed !important;
	left: auto !important;
	right: 78px !important;
	bottom: 58px !important;
	width: min(380px, calc(100vw - 200px)) !important;
	max-width: 420px !important;
	z-index: 120 !important;
}