:root {
	--primary: #5F87C2;
	--primary-hover: #5a7e9e;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
}

ul {
	padding: 0;
	margin: 0;
}

li {
	list-style: none;
}

/* 基本區塊樣式 */
body {
	background-color: #f1f2f5;
}

main {
	height: 100vh;
	overflow: scroll;
	display: flex;
	flex-direction: column;
	margin: 0;
}
.main-container{
	flex:1;
}

section {
	margin-top: 88px;
}

footer {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--primary);
	font-weight: 700;
	color: white;
	padding: 16px 0;
	scroll-snap-align: end;
}

/* v-cloak */
[v-cloak] {
	display: none;
}

/* 更改bootstrap設定 */
.navbar-brand {
	color: var(--primary);
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	padding: 17px 0;
}

.nav-link {
	padding-left: 0;
	padding-right: 0;
	color: #000000;
	cursor: pointer;
}

.navbar-nav .nav-link {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	line-height: 22px;
}

.nav-link:focus,
.nav-link:hover {
	color: #000000;
}

.nav-link.active {
	color: var(--primary);
	border-bottom: 2px solid var(--primary);
}

.nav-item{
	display: flex;
	align-items: center;
}

.popover-body {
	background-color: #000000;
	opacity: 0.75;
	color: #fff;
}

.bs-popover-end > .popover-arrow::before,
.bs-popover-end > .popover-arrow::after {
	left: 0;
	border-right-color: #000000;
	opacity: 0.75;
}

.bs-popover-bottom > .popover-arrow::before,
.bs-popover-bottom > .popover-arrow::after {
	top: 0;
	border-bottom-color: #000000;
	opacity: 0.75;
}

.dp__active_date {
	background-color: var(--primary);
}

.dp__overlay_cell_active {
	background-color: var(--primary);
}

.dp__today {
	border: 1px solid var(--primary);
}

.form-check-input, .form-check-label{
	cursor: pointer;
}

/* button 顏色配置 */
.btn.btn-primary  {
	border-color: var(--primary);
	background: var(--primary);
}

.btn.btn-primary:hover {
	border-color: var(--primary-hover);
	background: var(--primary-hover);
}

.btn.btn-primary:focus {
	border-color: var(--primary-hover);
	background: var(--primary-hover);
}

.btn.btn-login {
	padding: 2px 6px;
	margin: 5px;
	color: var(--primary);
	border-color: var(--primary);
}
.btn.btn-login:hover {
	color: var(--primary-hover);
	border-color: var(--primary-hover);
}
.btn.btn-login:focus {
	color: var(--primary-hover);
	border-color: var(--primary-hover);
}

.btn.btn-cancel {
	color: var(--primary);
	border-color: var(--primary);
}
.btn.btn-cancel:hover {
	color: var(--primary-hover);
	border-color: var(--primary-hover);
}
.btn.btn-cancel:focus {
	color: var(--primary-hover);
	border-color: var(--primary-hover);
}

/* checkbox 顏色配置 */
input[type="checkbox"].form-check-input:checked {
	background-color: var(--primary);
	border-color: var(--primary);
}
input[type="checkbox"].form-check-input:checked::before {
	background-color: #fff;
}

/* radio 顏色配置 */
input[type="radio"].form-check-input:checked {
	background-color: var(--primary);
	border-color: var(--primary);
}
input[type="radio"].form-check-input:checked::before {
	background-color: #fff;
}

/* 自定義通用類別 */
.section {
	margin-top: 96px;
}

.title {
	font-size: 1.5rem;
	font-weight: 600;
}

.title-primary {
	color: var(--primary);
}

.text-point {
	font-size: 3.75rem;
	line-height: 88px;
}

.arrow-down {
	transform: rotate(180deg);
}

.mb-32px {
	margin-bottom: 2rem !important;
}

.mask-dark {
	position: relative;
}

.mask-dark:before {
	content: "";
	position: absolute;
	display: block;
	z-index: 1500;
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 0.6;
}

.loading {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2000;
}
/* 修改密碼視窗 */
.form-edit-password{
	display: flex;
	flex-direction: column;
}

.ps-rule{
	font-family: Noto Sans TC;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.02em;
	text-align: left;
	color: #5f87c2;
}
.ps-rule-error{
	font-family: Noto Sans TC;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.02em;
	text-align: left;
	color: #DA6C6C;
}
.ps-again-rule{
	font-family: Noto Sans TC;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.02em;
	text-align: left;
	color: #DA6C6C;
}


/* 登入視窗 */
.form-group{
	display: flex;
	align-items: center;
}
.form-text{
	width: 50px;
}
.verify{
	width: 100px;
}
.verify-code{
	cursor:pointer;
	padding-left: 2px;
}

.input-with-icon {
	width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.password-icon {
  position: absolute;
  left: 10px; 
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: auto;
}

.toggle-password-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
	width: 20px;
  cursor: pointer;
}

.verify-code{
	margin-left: 10px;
}

.login-forget{
	color: rgba(95, 135, 194, 1);
	text-decoration: underline;
	cursor: pointer;
}

.login-cancel{
	margin-right: 10px;
	border-color: var(--primary);
	color: rgba(95, 135, 194, 1);
}
.login-cancel:hover {
	border-color: var(--primary);
	color: rgba(95, 135, 194, 1);
}
.login-cancel:focus {
	border-color: var(--primary);
	color: rgba(95, 135, 194, 1);
}

.icon {
	width: 21px;
	height: 21px;
}

.map-tip {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	z-index: 400;
	padding: 0.75rem;
	background: #fafafa;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
	border-radius: 16px;
	display: flex;
	align-items: center;
	font-size: 0.75rem;
}

.map-tip > .btn-close {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	border: 2px solid #000;
}
.map-home{
	position: absolute;
	bottom: 100px;
	right: 11px;
	z-index: 1000;
	padding: 6px;
	width: 32px;
	border: 1px solid black;
	background-color: #fff;
	border-radius: 4px;
	cursor: pointer;
}
.map-home:hover{
	background-color: #fdfdfd;
}

/* 國際疫情 */
.epidemic-map {
	height: 400px;
}

.epidemic-map__maker {
	width: 41px !important;
	height: 41px !important;
	position: relative;
}

.epidemic-map__icon {
	width: 41px !important;
	position: relative;
}

.epidemic-map__cluster {
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	position: absolute;
}

.epidemic-map__watermaker {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 400;
	padding: 0.25rem;
	background-color: #fff;
	font-size: 0.5rem;
	opacity: 0.75;
}

#epidemicMapList,
#epidemicWAHISList {
	height: 300px;
	overflow-y: scroll !important;
}

.epidemic-map-list__table,
.epidemic-wahis-list__container {
	font-size: 1rem;
}

.epidemic-wahis-list__link {
	color: #096dd9;
	font-weight: bold;
}

/* 國內監測資訊 */
.surveillance-map__legend {
	width: 100%;
}

.surveillance-map__container {
	width: 100%;
	/* height: 700px; */
	/* height: 100vh; */
	height: 100%;
}

.surveillance-map-setting__container {
	position: absolute;
	bottom: 0px;
	z-index: 1000;
	display: flex;
	align-items: end;
}

/* 換主視覺顏色，圖層設定樣式會影響故修改成transparent */
.surveillance-map-setting__container > .transparent{
	background-color: transparent;
	border-color: transparent;
}


/* 圖層設定彈窗內容 */
.map-layer-setting__modal {
	max-width: 280px;
	width: 280px;
	background-color: white;
	padding: 1.5rem;
	opacity: 0.9;
}

.surveillanc-map-legend__info--yellow {
	padding: 1.25rem;
	border-radius: 1.25rem;
	background-color: #fff7e6;
}

.surveillanc-map-legend__info--gray {
	padding: 1.25rem;
	border-radius: 1.25rem;
	background-color: #fafafa;
}

.surveillanc-map-legend__choropleth {
	width: 100%;
	height: 19px;
	background: linear-gradient(90.02deg, #f1f39f, #009266);
}
.surveillanc-map-legend__zero {
	width: 15px;
	height: 19px;
	background-color: #dae8f9;
}
.surveillanc-map-legend__full {
	width: 15px;
	height: 19px;
	background-color: #004e37;
}

.monitor-table__container {
	height: 500px;
}

.violation-case__title {
	font-size: 16px;
}

.violation-chart__container {
	overflow: auto !important;
	width: 100%;
}

.violation-chart {
	width: 1000px;
}

.violation-case-rank__container {
	min-width: 260px;
	background-color: #e6f7ff;
	padding: 1rem;
	margin-right: 1.5rem;
	margin-left: 1.5rem;
	border-radius: 16px;
}

.violation-case-rank__bullet {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: white;
	text-align: center;
	font-size: 12px;
	line-height: 20px;
}

#postiveMap{
	position: relative;
	width: 100%;
	height: calc(100vh - 410px);
}
.mapLogout{
	height: calc(100vh - 355px);
}
.pig-list-icon{
	z-index: 999;
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	bottom: 25px;
	left: 25px;
	width: 40px;
	width: 42px;
	height: 42px;
	background-color: white;
	border-radius: 2px;
	cursor: pointer;
	box-shadow: 0px 4px 18px 0px rgba(182, 142, 95, 0.2);
}
.pig-list{
	z-index: 999;
	position: absolute;
	width: 200px;
	bottom: 38px;
	left: 25px;
	padding: 15px;
	background-color: white;
	border-radius: 2px;
}

.pig-table-body-container{
	max-height: 90px;
	overflow-y: auto;
}

.pig-table-header{
	background-color: #f8f9fa;
}

.pig-list-info {
	font-size: 14px;
	display: flex;
	flex-direction: column;
}

.pig-table-header,
.pig-table-body {
	display: flex;
	justify-content: space-between;
	padding-right: 10px;
}

.pig-table-body p,
.pig-table-header p {
	width: 50%;
	box-sizing: border-box; /* 保證 padding 不會影響寬度 */
	border-bottom: 1px solid rgba(220, 220, 220, 1);
	padding-bottom: 2px;
}

/* INPUT RANGE (PLAYER) 設定 */
.player{
	width: 100%;
}
.player-act{
	min-width: 180px;	
}
.player-date{
	min-width: 270px;	
}
.player-range{
	width: 100%;	
}
.player > .player-range > input{
	background: linear-gradient(to right, #bbd6ff 0%, #bbd6ff 0%, #d9e2e5 0%, #d9e2e5  100%);
  border-radius: 8px;
  height: 7px;
  width: 100%;
  outline: none;
  transition: background 450ms ease-in;
	appearance: none;
}

.player > .player-range > input::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 2px 0 #555;
  transition: background .3s ease-in-out;
  /* cursor: pointer; */
}
.player > .player-range > input::-webkit-slider-thumb:hover{
  fill: var(--primary-hover);
}
/* 768 < */
.player > .down > .player-range > input{
	background: linear-gradient(to right, #bbd6ff 0%, #bbd6ff 0%, #d9e2e5 0%, #d9e2e5  100%);
  border-radius: 8px;
  height: 7px;
  width: 100%;
  outline: none;
  transition: background 450ms ease-in;
	appearance: none;
}

.player > .down > .player-range > input::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 2px 0 #555;
  transition: background .3s ease-in-out;
}
.player > .down > .player-range > input::-webkit-slider-thumb:hover{
  fill: var(--primary-hover);
}
.player-act > img {
	width: 25px; 
	height: 25px; 
	cursor:pointer;
}

/* MAP POPUP 設定 */
.popup-container > .popup-table > tbody > tr > th {
	font-size: 14px;
	font-weight: bold;
	color: #2e2e2e;
	padding: 2px 8px;
}
.popup-container > .popup-table > tbody > tr > td {
	font-size: 14px;
	color: #6f6f6f;
	padding: 2px 8px;
}
.my-div-icon {
	cursor:default !important;
	font-size: 14px;
	color: black; /* 內部文字顏色 */
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;
	text-align: center;
	vertical-align: middle;
}

.custom-modal {
	max-width: 98%;
	margin: 40px auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	overflow-y: auto;
}

.dp__month_picker_header{
	display: flex;
}

/* input 輸入框錯誤狀態STYLE設定 */
.custom-input-error {
	border: 1px solid #DA6C6C;
	color:  #DA6C6C;
}
.custom-input-error::placeholder{
	color: #DA6C6C;
}
.custom-input-error:focus{
	border-color: #DA6C6C;
	color: #DA6C6C;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px #DA6C6C;
  outline: 0 none;
}

/* RWD */
@media screen and (min-width: 768px) {
	.navbar-brand {
		font-size: 1.875rem;
		padding: 0;
	}

	.navbar-nav .nav-link {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}

	.title {
		font-size: 1.875rem;
	}

	.dp-custom-input {
		width: 150px;
	}

	.epidemic-map__container {
		width: 58%;
	}

	.epidemic-map {
		height: 100%;
		/* height: 100vh; */
	}

	.epidemic-news__container {
		width: 42%;
	}

	#epidemicMapList,
	#epidemicWAHISList {
		height: 540px;
		overflow-y: scroll !important;
	}

	.epidemic-map-list__table,
	.epidemic-wahis-list__container {
		font-size: 1.25rem;
	}

	.surveillance-map__legend {
		width: 50%;
	}

	.selects > .form-select {
		width: 150px;
		max-width: 150px;
		cursor: pointer;
	}

	.surveillanc-map-legend__expand {
		height: 243px;
	}

	.violation-case__title {
		font-size: 24px;
	}

	.violation-chart__container {
		width: 80%;
	}

	.violation-case-rank__container {
		width: calc(100% - 80% - 24px);
		margin-left: 0;
	}

	.violation-case-rank__container > .title-primary {
		font-size: 20px;
	}

	.violation-chart {
		width: 100%;
	}

	/* HIGHCAHRTS dataLabels文字fill stroke移除 */
	.highcharts-text-outline{
		fill: none;
		stroke: none;
	}

	#countyCaseModal .table {
		font-size: 1.25rem;
	}
}

@media screen and (min-width: 992px) {
	.navbar-expand-lg .navbar-nav .nav-link {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}
}
.pig-position-btn{
	margin-right: 10px;
}

.form-check-container{
	justify-content: flex-end;
}

@media screen and (max-width: 415px) {
	.pig-farm-btn-area {
		flex-direction: column;
	}
	.pig-position-btn {
		margin-right: 0px;
	}
	.form-check-container{
		justify-content: center;
	}
	.form-check-inline{
		width: 350px;
		display: flex;
		justify-content: center;
		padding-left: 20px;
	}
}
@media screen and (max-width: 992px) {
	.container-fluid{
		margin: 12px 0;
	}
}

@media screen and (max-width: 766px){
	.surveillance-map{
		height: 400px !important;
	}
	#postiveMap{
		height: calc(100vh - 450px);
	}
	.mapLogout{
		height: calc(100vh - 390px);
	}
}