﻿/* WCAG 2.1 AA - 焦點可視化 (2.4.7)：地圖工具列「量測」按鈕 hover 才會展開的子選單
   （坐標量測/距離量測/面積量測/矩形量測/圓形量測/清除量測），平常是用行內樣式
   style="display:none" 收合、hover 時才被 JS 改回 display:block 並撐開寬度，鍵盤 Tab
   進去時滑鼠沒有移過去，JS 不會觸發，子選單依然是 display:none，使用者會看不到自己 Tab
   到哪裡去了（一開始只覆寫 width 沒有用，因為行內 style="display:none" 優先度比一般
   stylesheet 規則高，量測過後才發現一定要連 display 一起用 !important 蓋掉）。這裡讓
   觸發鈕或子選單內任何項目拿到焦點時，強制把子選單顯示並撐開，:focus-within 在整個
   <li> 上，不管焦點在觸發鈕本身還是子選單裡的任一項目都會維持展開。 */
.g4o-toolbar li:focus-within > ul.submenu {
	display: block !important;
	width: 120px !important;
}

/* 救災資源查詢「取得點位」：#myModal_resource 是蓋滿全螢幕的 .modal 容器，即使視覺上
   只有右側面板可見，中間透明的部分依然會攔截點擊，導致地圖點不到。取得點位時（resquery.js
   getxy() 會加上這個 class）讓外層容器暫時不接手點擊，只留 .modal-dialog 本身可互動，
   讓點擊穿透到底下的地圖；選完點位後 getxy() 的 callback 會移除這個 class 還原。 */
#myModal_resource.getxy-picking {
	pointer-events: none;
}
#myModal_resource.getxy-picking .modal-dialog {
	pointer-events: auto;
}

/* 淹水子系統左欄寬度：main.css 預設 35em（約 560px）過寬，改為約 22rem 並隨小螢幕收斂 */
:root {
	--flood-sidebar-w: min(22rem, 90vw);
}
@media screen and (max-width: 538px) {
	:root {
		--flood-sidebar-w: min(280px, 92vw);
	}
}
html body #sidebar {
	width: var(--flood-sidebar-w) !important;
	max-width: var(--flood-sidebar-w) !important;
	font-size: 1em !important;
	box-sizing: border-box;
}
html body #sidebar > .inner {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}
html body #sidebar .toggle {
	left: var(--flood-sidebar-w) !important;
}
html body #sidebar.inactive {
	margin-left: calc(0rem - var(--flood-sidebar-w)) !important;
}
@media screen and (max-width: 1680px) {
	html body #sidebar {
		width: var(--flood-sidebar-w) !important;
		max-width: var(--flood-sidebar-w) !important;
	}
	html body #sidebar > .inner {
		width: 100% !important;
	}
	html body #sidebar .toggle {
		left: var(--flood-sidebar-w) !important;
	}
	html body #sidebar.inactive {
		margin-left: calc(0rem - var(--flood-sidebar-w)) !important;
	}
}

#sidebar{
  z-index: 1000 !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* 左側主選單字級：main.css 預設 #menu ul a 為 1.8rem 過大，在此縮小並取消英文大寫 */
#sidebar #menu.alt ul {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: none;
}
#sidebar #menu.alt ul a {
	font-size: 1rem;
	line-height: 1.4;
	padding: 0.38em 0;
}
#sidebar #menu.alt ul a .fa,
#sidebar #menu.alt ul a .fas,
#sidebar #menu.alt ul a .far {
	font-size: 0.95rem;
	vertical-align: middle;
}
#sidebar #menu.alt > ul > li {
	margin: 0.35em 0 0 0;
	padding: 0.35em 0 0 0;
}
#sidebar .toggle{
  z-index: 1000 !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#bgLayer_menu{
    background-color: #f5f6f7;
}
.bgLayer_size{
	width:203px;
	height:100px;
	margin-right: 0px;
	box-shadow: 2px 2px 8px 2px black;
}
.bgLayer_size img{
	opacity: 0.85;
}
.bgLayer_size img:hover{
    opacity: 1.0;
    cursor: pointer;
}
.bgLabel{
    position: absolute;
    left: 0px;
    bottom: 0px;
    color: #fff;
    /*text-shadow: 0px 0px 10px black;*/
    width: 203px;
    height: 41px;
    margin-bottom: 0px;
    background-color:rgba(0, 0, 0, 0.73);
}
.bgInfo{
	width: 17px !important;
	height: 17px !important;
	display: inline !important;
	margin-left: 5px;
}

.bgLabel .slider {
    max-width: 160px;
}
#bgLayer_menu .owl-stage-outer{
	overflow-x: scroll;
	padding-top: 16px;
	padding-bottom: 16px;
	padding-left: 16px;
}
.bgLabel .checkbox{
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left:0px;
}
/*
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-thumb {
  background: #777777;
  border: 0px none #040404;
  border-radius: 0px;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-thumb:hover {
  background: #747474;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-thumb:active {
  background: #393939;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-track {
  background: #ffffff;
  border: 0px solid #ffffff;
  border-radius: 0px;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-track:hover {
  background: #d7d7d7;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-track:active {
  background: #cacaca;
}
#bgLayer_menu .owl-stage-outer::-webkit-scrollbar-corner {
  background: transparent;
}*/

.panel_menu button{
	font-size: 0.8125rem;
}

.panel_menu_map button{
	font-size: 1.125rem;
}
.panel_menu_map {
	width:35px;
}
.disable-owl-swipe{
	display: none;
}
.checked .disable-owl-swipe{
	display: block;
}

#sidebar_img{
	width: var(--flood-sidebar-w, min(22rem, 90vw));
	max-width: 100vw;
	height: 70px;
	position:fixed;
	background-color:#f5f6f7;
	background-image:url(../../images/top_crop.png);
	background-repeat:no-repeat;
	/* contain：完整顯示圖檔；cover 在窄側欄會裁切左右 */
	background-size: contain;
	background-position: center center;
	border-bottom:#dadfe0 1px solid;
	left: 0px;
	z-index: 1001 !important;
	font-size: 0.9em;
}
/* WCAG 2.1 AA - 焦點可視化 (2.4.7)：#sidebar_img 是 position:fixed，脫離文件流，
   外層 <a class="sidebar-logo-link"> 因此塌陷成 width:0，Tab 到這裡時外框畫在寬度 0 的框上完全看不到
   （已用 Playwright 實測確認）。讓這顆 <a> 跟 #sidebar_img 用一樣的 fixed 定位與尺寸，
   外框才會剛好畫在畫面左上角真正看得到 logo 的地方。 */
.sidebar-logo-link{
	position: fixed;
	top: 0;
	left: 0;
	width: var(--flood-sidebar-w, min(22rem, 90vw));
	max-width: 100vw;
	height: 70px;
	z-index: 1001;
}

#topStyle{
	display: none;
}
/* WCAG 2.1 AA - 鍵盤可操作性 (2.1.1)：#topStyle 桌面寬度會 display:none，但外層 <a class="topStyle-link">
   自身沒有跟著隱藏，Tab 仍會停在這個看不見、大小為 0x0 的連結上，加了 outline 也畫不出來（已用 Playwright
   實測確認）。這裡讓 .topStyle-link 跟 #topStyle 用完全一樣的中斷點同步顯示/隱藏，桌面寬度時就真的退出 Tab 順序。 */
.topStyle-link{
	display: none;
}
@media screen and (min-width: 1681px) {
	#topStyle{
		display: none;
	}
	.topStyle-link{
		display: none;
	}
}
@media screen and (max-width: 1680px) {
	#topStyle{
		display: none;
	}
	.topStyle-link{
		display: none;
	}
}
@media screen and (max-width: 538px) {
	#topStyle{
		display: block;
	}
	.topStyle-link{
		display: block;
	}
	#sidebar_img{
		display: none;
	}
	.sidebar-logo-link{
		display: none;
	}
}
@media screen and (max-width: 480px) {
	#topStyle{
		display: block;
		height:65px;
	}
	#sidebar_img{
		display: none;
	}
	#wrapper #topStyle{
		display: none;
	}
}
@media screen and (max-width: 320px) {
	#topStyle{
		height:50px;
	}
}
/*bgLayer_navMenu*/
#bgLayer_navMenu {
	padding-bottom: 6px;
	border-bottom: 1px solid #ddd;
	overflow-x: hidden;
	overflow-y: hidden;
}
#bgLayer_navMenu.Scrollable{
	overflow-x: scroll;
	/*-webkit-overflow-scrolling : touch;*/
}

#bgLayer_navMenu ul {
	list-style: none;
	padding: 0;
	margin:  10px 0;
	/*width: 2999px;*/
	text-align: left;
	text-align: left;
	position:relative;float:right
}

#bgLayer_navMenu ul li {
    vertical-align: top;
    display: inline-block;
    /* if you need ie6/7 support */
    *display: inline;
    zoom: 1;
}

#bgLayer_navMenu div.item {
    float: left;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    line-height: 16px;
    position: relative;
    text-align: center;
    margin-left:12px;
}

#bgLayer_navMenu div.top span, #bgLayer_navMenu div.bottom span {
    float:left;
    width:16px;
    height:16px;
}

#bgLayer_navMenu div.top span {
    background:transparent url(../images/navigation/top.png) no-repeat center center;
}

#bgLayer_navMenu div.bottom span {
    background:transparent url(../images/navigation/bottom.png) no-repeat center center;
}

#bgLayer_navMenu .checked {
	margin-top:-10px;
	border:solid 2px blue;
	width: 207px;
	height: 104px
}
/*bgLayer_navMenu*/

.modal-big>.modal-dialog{
	width: auto;
	margin: 25px 10px;
}

/* 即時／歷史淹水查詢（#myModal_stat）、救災資源（#myModal_resource）：對話框靠視窗右上 */
#myModal_stat.modal,
#myModal_resource.modal {
	overflow-y: auto;
}
#myModal_stat.modal.show > .modal-dialog,
#myModal_resource.modal.show > .modal-dialog {
	margin: 0.5rem 0.75rem 1.75rem auto;
	max-width: min(42rem, calc(100vw - 1.25rem));
	width: auto;
}
#myModal_resource.modal {
	z-index: 99999;
}

/* 救災資源查詢 #myModal_resource：字級略小、表單兩欄對齊、勾選區與表格緊湊 */
#myModal_resource .modal-content,
#myModal_resource2 .modal-content {
	font-size: 1.02rem;
}
#myModal_resource .modal-header .modal-title,
#myModal_resource2 .modal-header .modal-title {
	font-size: 1.1rem;
	font-weight: 600;
}
#myModal_resource .modal-body > ul.nav-tabs > li > a {
	font-size: 0.9rem;
	padding: 0.4rem 0.65rem;
}
#myModal_resource .resource-query-fields .control-label {
	font-size: 0.88rem;
}
#myModal_resource .resource-query-fields .form-control,
#myModal_resource .resource-query-fields select,
#myModal_resource .resource-query-fields input[type="text"] {
	font-size: 0.88rem;
	padding: 0.3rem 0.5rem;
}
#myModal_resource .resource-query-fields .btn {
	font-size: 0.85rem;
	padding: 0.25rem 0.55rem;
}
#myModal_resource .resource-checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	align-items: flex-start;
}
#myModal_resource .resource-check-item {
	flex: 0 1 auto;
	min-width: 6.75rem;
	font-size: 0.85rem;
	line-height: 1.35;
}
#myModal_resource .resource-gps-table {
	font-size: 0.85rem;
}
#myModal_resource .resource-gps-table td {
	vertical-align: middle;
}
#myModal_resource #res_list.table,
#myModal_resource2 #res_list2.table {
	font-size: 0.82rem;
	margin-bottom: 0;
}
#myModal_resource #res_list th,
#myModal_resource #res_list td,
#myModal_resource2 #res_list2 th,
#myModal_resource2 #res_list2 td {
	padding: 0.35rem 0.45rem;
	vertical-align: middle;
}
#myModal_resource .modal-body .panel-body,
#myModal_resource2 .modal-body .panel-body {
	padding-top: 0.75rem;
}
#myModal_resource .modal-body .scheduler-border,
#myModal_resource .modal-body legend.scheduler-border,
#myModal_resource2 .modal-body .scheduler-border,
#myModal_resource2 .modal-body legend.scheduler-border {
	font-size: 0.88rem;
}

#myModal_resource2 .modal-body .form-control {
	font-size: 0.88rem;
	padding: 0.35rem 0.5rem;
}

/* 地圖定位 #myModal_searchLocation：字級縮小、表單與結果區緊湊 */
#myModal_searchLocation .modal-content {
	font-size: 1.02rem;
}
#myModal_searchLocation .modal-header .modal-title {
	font-size: 1.1rem;
	font-weight: 600;
}
#myModal_searchLocation #locTab > li > a {
	font-size: 0.9rem;
	padding: 0.4rem 0.65rem;
}
#myModal_searchLocation .table {
	font-size: 0.88rem;
	margin-bottom: 0.5rem;
}
#myModal_searchLocation .table td,
#myModal_searchLocation .table th {
	padding: 0.35rem 0.5rem;
	vertical-align: middle;
}
#myModal_searchLocation .loc-tab-form-label {
	width: 4.5rem;
	white-space: nowrap;
	font-size: 0.88rem;
	font-weight: 500;
}
#myModal_searchLocation .loc-panel-subhead {
	font-size: 0.92rem;
	font-weight: 600;
	padding: 0.4rem 0.65rem;
	line-height: 1.35;
}
#myModal_searchLocation .loc-result-panel .panel-heading {
	font-size: 0.92rem;
}
#myModal_searchLocation .form-control,
#myModal_searchLocation .btn {
	font-size: 0.88rem;
	padding: 0.3rem 0.5rem;
}
#myModal_searchLocation .btn-sm {
	font-size: 0.82rem;
	padding: 0.22rem 0.45rem;
}
#myModal_searchLocation .input-group {
	width: 100%;
	max-width: 100%;
}
#myModal_searchLocation .modal-footer .btn {
	font-size: 0.88rem;
}
#myModal_searchLocation .panel.panel-default {
	margin-bottom: 0.5rem;
}
#myModal_searchLocation #coorxy table tr:last-child td {
	font-size: 0.8rem;
	line-height: 1.4;
}

/* 圖層控制 #myModal_swichLayer：分頁與手風琴（panel-group）視覺與對齊 */
#myModal_swichLayer #LayerCtrl.modal-content {
	font-size: 1.05rem;
}
#myModal_swichLayer #LayerCtrl > .modal-body {
	padding-top: 0.65rem;
}
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 -1px 0;
	padding: 0;
	border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs > li {
	margin-bottom: calc(-1 * var(--bs-border-width));
}
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs > li > a {
	display: block;
	padding: 0.45rem 0.85rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--bs-primary);
	text-decoration: none;
	background: transparent;
	border: var(--bs-border-width) solid transparent;
	border-top-left-radius: var(--bs-border-radius);
	border-top-right-radius: var(--bs-border-radius);
}
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs > li > a:hover,
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs > li > a:focus {
	color: var(--bs-link-hover-color, #0a58ca);
	border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-border-color);
	background-color: var(--bs-secondary-bg, #e9ecef);
}
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs > li.active > a,
#myModal_swichLayer #LayerCtrl > .modal-body > ul.nav-tabs > li > a.active {
	color: var(--bs-body-color);
	background-color: var(--bs-body-bg);
	border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);
	font-weight: 600;
}
#myModal_swichLayer #LayerCtrl .tab-content {
	padding-top: 0.5rem;
}
#myModal_swichLayer #LayerCtrl .panel-group {
	margin-bottom: 0.75rem;
}
#myModal_swichLayer #LayerCtrl .panel-group .panel {
	margin-bottom: 0.35rem;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	background: var(--bs-body-bg);
}
#myModal_swichLayer #LayerCtrl .panel-group .panel + .panel {
	margin-top: 0;
}
#myModal_swichLayer #LayerCtrl .panel-default > .panel-heading {
	padding: 0;
	background: linear-gradient(to bottom, var(--bs-tertiary-bg), #eef1f4);
	border-bottom: 1px solid var(--bs-border-color);
}
#myModal_swichLayer #LayerCtrl .panel-title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.35;
}
#myModal_swichLayer #LayerCtrl .panel-heading a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.5rem 0.75rem;
	color: var(--bs-body-color);
	text-decoration: none;
	font-weight: 600;
}
#myModal_swichLayer #LayerCtrl .panel-heading a:hover,
#myModal_swichLayer #LayerCtrl .panel-heading a:focus {
	color: var(--bs-primary);
	background-color: rgba(13, 110, 253, 0.06);
}
#myModal_swichLayer #LayerCtrl .panel-heading a::after {
	content: "\25BE";
	font-size: 0.7rem;
	line-height: 1;
	opacity: 0.65;
	margin-left: 0.5rem;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}
#myModal_swichLayer #LayerCtrl .panel-heading a.collapsed::after {
	content: "\25B8";
}
#myModal_swichLayer #LayerCtrl .panel-body {
	padding: 0.6rem 0.75rem;
	font-size: 0.92rem;
}
#myModal_swichLayer #LayerCtrl .panel-body table td {
	vertical-align: middle;
}
#myModal_swichLayer #LayerCtrl .panel-body .btn {
	font-size: 0.88rem;
}

/* 開發緣起 #myModal2：約 90% 視區寬，內容過長時可捲動 */
#myModal2.modal-big > .modal-dialog {
	max-width: 90vw;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
#myModal2.modal-big > .modal-dialog > .modal-content {
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}
#myModal2.modal-big .hao_page {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
}

/* 詮釋資料說明 #myModal3：約 90% 視區，內文與表格區可捲動、表格排版 */
#myModal3.modal-big > .modal-dialog {
	max-width: 90vw;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
#myModal3.modal-big > .modal-dialog > .modal-content {
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
}
#myModal3.modal-big .modal-header .modal-title {
	font-size: 1.25rem;
	font-weight: 600;
}
#myModal3.modal-big .modal-body {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	padding: 1rem 1.25rem;
}
#myModal3.modal-big .modal-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.175));
}
#myModal3.modal-big .Soil_Lique_InfoList > p {
	margin-bottom: 0.65rem;
	line-height: 1.55;
}
#myModal3.modal-big .Soil_Lique_InfoList > p:last-of-type {
	margin-bottom: 0.85rem;
}
#myModal3.modal-big #InfoList1 {
	margin-bottom: 0;
	font-size: 0.92rem;
}
#myModal3.modal-big #InfoList1 thead th {
	white-space: normal;
	font-weight: 600;
	vertical-align: middle;
	text-align: center;
}
#myModal3.modal-big #InfoList1 tbody th[scope="row"] {
	width: 6.75rem;
	white-space: nowrap;
	font-weight: 600;
	background-color: var(--bs-tertiary-bg, #f8f9fa);
	vertical-align: middle;
}
#myModal3.modal-big #InfoList1 td {
	vertical-align: middle;
}
#myModal3.modal-big ._scrollParent {
	max-width: 100%;
	margin-top: 0.35rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--bs-border-radius, 0.375rem);
}
/* 覆寫全域 ._scrollParent table { white-space: nowrap }，避免表頭與儲存格擠成單行無樣式感 */
#myModal3.modal-big ._scrollParent table {
	white-space: normal;
	word-break: break-word;
}

/* 土壤液化詮釋資料說明 #myModal1：與 #myModal3 相同約 90% 視區與捲動 */
#myModal1.modal-big > .modal-dialog {
	max-width: 90vw;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
#myModal1.modal-big > .modal-dialog > .modal-content {
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
}
#myModal1.modal-big .modal-header .modal-title {
	font-size: 1.25rem;
	font-weight: 600;
}
#myModal1.modal-big .modal-body {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	padding: 1rem 1.25rem;
}
#myModal1.modal-big .modal-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.175));
}
#myModal1.modal-big .Soil_Lique_InfoList > p {
	margin-bottom: 0.65rem;
	line-height: 1.55;
}

/* 訂閱即時淹水資訊速報 #Mydal_booking：靠視窗頂部、寬約 90%、字級易讀 */
#Mydal_booking.modal-booking-flood.modal {
	align-items: flex-start;
	padding-top: 0.5rem;
	padding-bottom: 1rem;
}
#Mydal_booking.modal-booking-flood .modal-dialog {
	max-width: 90vw;
	width: 90%;
	margin: 0.5rem auto 1rem;
}
#Mydal_booking.modal-booking-flood .modal-content {
	font-size: 1rem;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}
#Mydal_booking.modal-booking-flood .modal-header.booking-flood-header {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	flex-shrink: 0;
}
#Mydal_booking.modal-booking-flood .modal-header.booking-flood-header .modal-title {
	font-size: 1.2rem;
	font-weight: 600;
	flex: 1 1 auto;
	min-width: 0;
}
#Mydal_booking.modal-booking-flood .modal-header.booking-flood-header .close:not(.btn-close) {
	float: none !important;
	flex-shrink: 0;
	margin: -0.5rem -0.5rem -0.5rem auto !important;
}
#Mydal_booking.modal-booking-flood .modal-body {
	padding: 0.65rem 0.85rem 0.75rem;
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
}
#Mydal_booking.modal-booking-flood .booking-flood-intro {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--bs-secondary-color, #5c5c5c);
	margin: 0 0 0.65rem;
}
#Mydal_booking.modal-booking-flood .booking-flood-table > tbody > tr > th.booking-flood-th {
	width: 5.25rem;
	max-width: 30%;
	font-weight: 600;
	font-size: 1rem;
	vertical-align: middle;
	padding: 0.4rem 0.5rem 0.4rem 0;
	border: 0;
	white-space: nowrap;
}
#Mydal_booking.modal-booking-flood .booking-flood-table > tbody > tr > td {
	vertical-align: middle;
	padding: 0.35rem 0;
	border: 0;
	font-size: 1rem;
}
#Mydal_booking.modal-booking-flood .booking-flood-table .form-control-sm {
	font-size: 1rem;
	padding: 0.4rem 0.6rem;
}
#Mydal_booking.modal-booking-flood .booking-flood-check,
#Mydal_booking.modal-booking-flood .booking-flood-mode-label label {
	font-weight: normal;
	margin-bottom: 0;
	font-size: 1rem;
	cursor: pointer;
}
#Mydal_booking.modal-booking-flood .booking-flood-check input,
#Mydal_booking.modal-booking-flood .booking-flood-mode-label input {
	margin-right: 0.35rem;
	vertical-align: middle;
}
#Mydal_booking.modal-booking-flood .booking-flood-mode-label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 1rem;
}
#Mydal_booking.modal-booking-flood .booking-flood-counties {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.65rem;
	align-items: center;
	margin-top: 0.25rem;
}
#Mydal_booking.modal-booking-flood .booking-flood-county-item {
	margin: 0;
	font-weight: normal;
	font-size: 0.95rem;
	cursor: pointer;
	white-space: nowrap;
}
#Mydal_booking.modal-booking-flood .booking-flood-county-item input {
	margin-right: 0.25rem;
	vertical-align: middle;
}
#Mydal_booking.modal-booking-flood .booking-flood-footer {
	margin-top: 0 !important;
	padding: 0.5rem 0.75rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem;
	border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.12));
	flex-shrink: 0;
}
#Mydal_booking.modal-booking-flood .booking-flood-footer .btn {
	font-size: 0.95rem;
	padding: 0.3rem 0.65rem;
}

/* 成果展示 #myModalhome：約 80% 視區寬，iframe 高度隨視區 */
#myModalhome .modal-dialog {
	max-width: 80vw;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}
#myModalhome .modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: 85vh;
}
#myModalhome .modal-content > button.close {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	z-index: 10;
	float: none !important;
	margin: 0 !important;
}
#myModalhome .modal-content > iframe {
	flex: 1 1 auto;
	width: 100% !important;
	height: calc(80vh - 3.5rem) !important;
	min-height: 400px;
	border: 0;
}

/* 統計儀表板 #myModal_dashboard：字級略小（氣泡內文見 .dashboard_circle_text） */
#myModal_dashboard .modal-header .modal-title {
	font-size: 1.15rem;
	font-weight: 600;
}
#myModal_dashboard .modal-body .control-label {
	font-size: 0.95rem;
}
#myModal_dashboard .modal-body select,
#myModal_dashboard .modal-body .breadcrumb {
	font-size: 0.95rem;
}
#myModal_dashboard .dashboard_circle_text {
	font-size: 1.05rem;
	line-height: 1.2;
	top: 56px;
}
#myModal_dashboard .modal-footer p,
#myModal_dashboard .modal-footer h5 {
	font-size: 0.8rem;
	line-height: 1.35;
}

/* 查詢結果 #myModal_stat（即時／歷史淹水查詢、結果列表等）：字級略小 */
#myModal_stat .modal-header .modal-title {
	font-size: 1.15rem;
	font-weight: 600;
}
#myModal_stat ul.statTab > li > a,
#myModal_stat ul.statTab .nav-link {
	font-size: 0.95rem;
}
#myModal_stat .modal-body .control-label {
	font-size: 0.95rem;
}
#myModal_stat .modal-body select,
#myModal_stat .modal-body .form-control,
#myModal_stat .modal-body .form-select,
#myModal_stat .modal-body .radio label {
	font-size: 0.95rem;
}
#myModal_stat .modal-body .btn,
#myModal_stat .modal-body input[type="button"],
#myModal_stat .modal-body input[type="submit"] {
	font-size: 0.95rem;
}
#myModal_stat .panel-heading,
#myModal_stat .panel-footer,
#myModal_stat .panel-body {
	font-size: 0.95rem;
}
#myModal_stat .dataTables_wrapper,
#myModal_stat table.table {
	font-size: 0.9rem;
}

/* 即時案件查詢 #page4、即時案件查詢結果 #page3：表單與表格字再縮小 */
#myModal_stat #page4 .control-label,
#myModal_stat #page3 .control-label {
	font-size: 0.85rem;
}
#myModal_stat #page4 select,
#myModal_stat #page4 .form-control,
#myModal_stat #page4 .form-select,
#myModal_stat #page4 .radio label,
#myModal_stat #page3 select,
#myModal_stat #page3 .form-control,
#myModal_stat #page3 .form-select,
#myModal_stat #page3 .radio label {
	font-size: 0.85rem;
}
#myModal_stat #page4 .btn,
#myModal_stat #page4 input[type="button"],
#myModal_stat #page4 input[type="submit"],
#myModal_stat #page3 .btn,
#myModal_stat #page3 input[type="button"],
#myModal_stat #page3 input[type="submit"] {
	font-size: 0.85rem;
	padding: 0.25rem 0.55rem;
}
#myModal_stat #page4 .panel-body,
#myModal_stat #page3 .panel-body {
	font-size: 0.85rem;
}
#myModal_stat #page4 table.table,
#myModal_stat #page3 table.table,
#myModal_stat #page4 .dataTables_wrapper,
#myModal_stat #page3 .dataTables_wrapper {
	font-size: 0.82rem;
}

#myModal_stat ul.statTab > li#li_page3 > a,
#myModal_stat ul.statTab > li#li_page4 > a {
	font-size: 0.88rem;
}

/*min window*/
.modal-header button .fa{
font-size: 1rem;
}
.taskList {
    left: 5px;
    position: absolute !important;
    bottom: 32px;
}
.taskList .modal{
	z-index: 999;
}
.min{
	width: 150px;
	height: 35px;
	overflow: hidden !important;
	padding: 0px !important;
	margin: 0px 5px;
	float: left;
	position: relative !important;
	top: auto;
	z-index: 999;
	box-shadow: 4px 4px 3px 2px rgba(0, 0, 0, 0.4);
	border-radius: 4px 4px 0px 0px;
}

.min .modal-dialog, .min .modal-content{
    height: 100%;
    width: 100%;
    margin: 0px !important;
    padding: 0px !important;
  }

.min .modal-header{
    height: 100%;
    width: 100%;
    margin: 0px !important;
    padding: 3px 5px !important;
    background: #FFF;
    /*background: #337cbb;*/
    /*color: white;*/
  }

.display-none{display: none;}


.min .fa{
    font-size: 0.875rem;
}

.min .menuTab{display: none;}

.minmaxCon{
  height: 35px;
  bottom: 1px;
  left: 1px;
  position: fixed;
  right: 1px;
  z-index: 9999;
}


.modal-header>.close{
  padding: 4px 8px;
  text-shadow: 0 1px 0 #ffffff;
  opacity: 0.7;
  filter: alpha(opacity=70);
  /*color: white;*/
}
.modal-header>.close:hover{
  opacity: 1;
  filter: alpha(opacity=100);
  background: red;
  border-radius:4px;
}
.modal-header button:hover .fa {
    color: #fff;
}
.min .modal-title{
	font-size: 0.9375rem;
	padding:5px 3px;
	font-weight: bold;
}

#fireStation_layer input[type="checkbox"]{
	margin-right: 10px;
}

#Land_layer input[type="checkbox"]{
	margin-right: 10px;
}

.myModal_left {
	width:550px;
	overflow-y: hidden!important;
}
.myModal_left2 {
	width:550px;
	overflow-y: hidden!important;
}
.myModal_left3 {
	width:600px;
	overflow-y: hidden!important;
}
.myModal_left_setBodyheight {
	width:550px;
	overflow-y: hidden!important;
}

/* 即時警示 Modal：backdrop 關閉時 .modal 仍覆蓋全視窗並吃掉指標；外層穿透、對話框內可操作 */
#myModal_ncdr.modal.show {
	pointer-events: none;
}
#myModal_ncdr.modal.show .modal-dialog {
	pointer-events: auto;
}

/* 查詢結果 #myModal_stat：backdrop 關閉時外層 .modal 仍全螢幕擋指標（同 #myModal_ncdr）；讓對話框外區域可按到底層圖例／地圖 */
#myModal_stat.modal.show {
	pointer-events: none;
}
#myModal_stat.modal.show .modal-dialog {
	pointer-events: auto;
}

/* 地圖定位 #myModal_searchLocation、圖層控制 #myModal_swichLayer：同一個問題（同
   #myModal_ncdr/#myModal_stat）——這兩個對話框視覺上只佔畫面左側一小塊，但 .modal
   本身是 position:fixed 蓋滿全視窗，backdrop 關閉後中間看起來空白透明的地方仍然是這層
   .modal 在擋指標，導致地圖完全點不到、拖曳不動（使用者實測回報：「地圖定位或圖層控制
   打開後，地圖就無法操作了」，用 elementFromPoint 在地圖區域座標點確認回傳的正是
   #myModal_searchLocation 這個 div 本身，不是底下的地圖）。套用同一套修法：外層 .modal
   穿透、只留 .modal-dialog 本身可互動。 */
#myModal_searchLocation.modal.show {
	pointer-events: none;
}
#myModal_searchLocation.modal.show .modal-dialog {
	pointer-events: auto;
}
#myModal_swichLayer.modal.show {
	pointer-events: none;
}
#myModal_swichLayer.modal.show .modal-dialog {
	pointer-events: auto;
}

@media screen and (max-width: 550px) {

	.myModal_left {
		width:100%;
	}
	.myModal_left2 {
		width:100%;
	}
	.myModal_left_setBodyheight {
		width:100%;
	}
}
.myModal_left .tab-content{
    height: 100%;
    overflow-y: scroll;
}
.myModal_left2 .search_form{
    height: 100%;
    overflow-y: scroll;
}
.myModal_left_setBodyheight .modal-body{
    height: 100%;
    overflow-y: scroll;
}
.form-horizontal-no-scroll div.form-group{
	margin-right : 0px;
	margin-left: 0px;
}

#gps_msg{
	left:auto !important;
	right:60px !important;
	top:100px !important;
}


.a_confirm_btn:link, .a_confirm_btn:visited{
	height: 28px;
	width: 68px;
	font-family: "å¾®è»Ÿæ­£é»‘é«”";
	color: #333;
	text-decoration: none;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-o-transition: all .3s ease;
	-ms-transition: all .3s ease;
	transition: all .3s ease;
	background-image: url(../images/gray_btn_cell.png);
	text-align: center;
	display: block;
	float: left;
	margin-right: auto;
	margin-bottom: auto;
	line-height: 28px;
	border: 1px solid #274603;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	box-shadow: 0px  1px 1px rgba(0,0,0,0.35);
	-webkit-box-shadow: 0px  1px 1px rgba(0,0,0,0.35);
	-moz-box-shadow: 0px  1px 1px rgba(0,0,0,0.35);
	font-size: 0.9375rem;
	font-weight: 600;

}
.a_confirm_btn:hover{
	background-image: url(../images/orange_btn_cell.png);
	border: 1px solid #a44506;
	color: #FFF;
	-webkit-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	-moz-border-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	color: #000;
}
.a_confirm_btn:active{
	background-image: url(../images/green_btn_cell.png);
	border: 1px solid #496f1c;
	color: #FFF;
	-webkit-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	-moz-border-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
}
.a_confirm_btn_2word:link, .a_confirm_btn_2word:visited{
	height: 28px;
	width: 50px;
	font-family: "å¾®è»Ÿæ­£é»‘é«”";
	color: #333;
	text-decoration: none;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-o-transition: all .3s ease;
	-ms-transition: all .3s ease;
	transition: all .3s ease;
	background-image: url(../images/gray_btn_cell.png);
	text-align: center;
	display: block;
	float: left;
	margin-right: auto;
	margin-bottom: auto;
	line-height: 28px;
	border: 1px solid #274603;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	box-shadow: 0px  1px 1px rgba(0,0,0,0.35);
	-webkit-box-shadow: 0px  1px 1px rgba(0,0,0,0.35);
	-moz-box-shadow: 0px  1px 1px rgba(0,0,0,0.35);
	font-size: 0.9375rem;
	font-weight: 600;

}
.a_confirm_btn_2word:hover{
	background-image: url(../images/orange_btn_cell.png);
	border: 1px solid #a44506;
	color: #FFF;
	-webkit-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	-moz-border-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
}
.a_confirm_btn_2word:active{
	background-image: url(../images/green_btn_cell.png);
	border: 1px solid #496f1c;
	color: #FFF;
	-webkit-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	-moz-border-text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
	text-shadow: 0px -1px 1px rgba(0, 0, 2, 0.35);
}

.upload_icon02{
	height: 28px;
	width: 31px;
	float: left;
	margin-right: 10px;
	margin-left: 10px;
}
.blue_btn {
	/*float: right;*/
	display: inline-block;
	height: 30px;
	line-height: 29px;
}

#myModal_searchLocation *{
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}
#myModal_searchLocation legend{
	width:auto;
	margin-bottom:0px;
}

#wms_window *{
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

div#ToolAccordionSc_theme .x-form-checkbox {
    vertical-align: top;
}
fieldset#formWMS_LIQUEFACTION .x-form-checkbox {
    vertical-align: top;
}
.nowrap{
	white-space: nowrap;
}
._scrollParent{
	-webkit-overflow-scrolling: touch;position: relative; overflow: auto; width: 100%;
}
._scrollParent table{
	white-space: nowrap;
}

/* 圖例浮動面板：置於視窗層級、高於 modal／backdrop／#myModal_resource；z-index 須高於任何動態堆疊 */
#panel_legend.panel.panel-legend-overlay,
#panel_legend.panel,
body.modal-open #panel_legend.panel {
	position: fixed !important;
	left: 1%;
	bottom: 2%;
	z-index: 5000000 !important;
	pointer-events: auto;
	min-width: min(32rem, 96vw);
}
#panel_legend > .panel-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.5rem;
}
#panel_legend > .panel-heading > a:first-of-type {
	flex: 1 1 auto;
	margin: 0;
	font-weight: 600;
}
#panel_legend .legend-interval-wrap {
	min-width: 28rem;
	max-width: 100%;
}
@media (max-width: 576px) {
	#panel_legend .legend-interval-wrap {
		min-width: 0;
	}
}
#panel_legend .legend-interval-table thead th {
	font-size: 0.8125rem;
	vertical-align: middle;
}
#panel_legend .legend-interval-table tbody td {
	vertical-align: middle;
}
#panel_legend .legend-interval-table .legend-interval-desc {
	white-space: nowrap;
	min-width: 4em;
}
#panel_legend .legend-interval-table .legend-interval-input {
	max-width: 5.25rem;
}
/* jPicker 綁在 .color 上，input 勿 display:none，否則色塊不會插入；改為細條＋透明以保留版面 */
#panel_legend .legend-color-cell {
	position: relative;
	min-width: 2.75rem;
	vertical-align: middle;
}
#panel_legend .legend-color-input.color {
	display: inline-block !important;
	width: 0.85rem;
	height: 1.25rem;
	padding: 0;
	margin: 0;
	border: 0;
	opacity: 0.02;
	vertical-align: middle;
}
#panel_legend .legend-color-cell .jPicker {
	display: inline-block;
	vertical-align: middle;
}
#panel_legend .legend-advanced-table td {
	vertical-align: middle;
	padding: 0.5rem 0.65rem;
}
#panel_legend .legend-advanced-table .legend-adv-label {
	min-width: 5rem;
	padding-right: 0.35rem;
	white-space: nowrap;
	font-weight: 600;
	font-size: 0.8125rem;
}
#panel_legend .legend-advanced-table input.form-control:not([type="hidden"]) {
	display: inline-block;
	width: auto;
	min-width: 4rem;
	max-width: 8rem;
	vertical-align: middle;
}