@charset "UTF-8";

/* ===== 主題變數 (預設值，可由 Theme API 覆蓋) ===== */
:root {
	--color-primary: #3E8D7A;
	--color-border: #D8BFB1;
	--color-button-text: #FFFFFF;
	--color-login-bg: #FBFFE3;
	--font-base: 1rem;
	--font-lg: 1.3rem;
	--font-xl: 1.5rem;
	--transition-fast: 0.2s;
}

/* ===== 通用設定 ===== */
.p-center {
	text-align: center;
}

.p-left {
	text-align: left;
}

.h-center {
	align-items: center;
}

.hidden {
	display: none !important;
}

label {
	color: var(--color-primary);
}

div.search-frame {
	display: none;
}

/* ===== 工單卡片 ===== */
div.card {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	min-width: 95%;
	max-width: 98%;
	margin: 5px;
	border-radius: 5px;
	border-color: var(--color-border);
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 4px 12px;
}

div.card > div.data-item {
	width: 45%;
	min-height: 2vh;
	padding: 2%;
	color: var(--color-primary);
}

div.card > div.data-item-full {
	width: 100%;
	min-height: 2vh;
	padding: 2%;
	color: var(--color-primary);
}

div.image-card {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

div.node-card {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

div.user-card {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

/* ===== 按鈕共用樣式 ===== */
input.button[type="image"] {
	width: 50px;
	height: 50px;
	border-radius: 5px;
	border-color: #eeeeee;
	border-style: solid;
	object-fit: cover;
}

input.delete-button[type="image"],
input.node-button[type="image"],
input.add-button[type="image"],
input.user-button[type="image"] {
	width: 50px;
	height: 50px;
	border-radius: 5px;
	border-color: #eeeeee;
	border-style: solid;
	object-fit: cover;
}

input[type="button"] {
	width: 30%;
	max-width: 150px;
	height: 44px;
	font-size: 1rem;
	margin: 4px 8px;
	background-color: var(--color-primary);
	color: var(--color-button-text);
	border-style: none;
	border-radius: 5px;
	cursor: pointer;
}

input[type="submit"] {
	width: 30%;
	max-width: 150px;
	height: 44px;
	font-size: 1rem;
	margin: 4px 8px;
	background-color: var(--color-primary);
	color: var(--color-button-text);
	border-style: none;
	border-radius: 5px;
	cursor: pointer;
}

input[type="reset"] {
	width: 30%;
	max-width: 150px;
	height: 44px;
	font-size: 1rem;
	margin: 4px 8px;
	background-color: var(--color-primary);
	color: var(--color-button-text);
	border-style: none;
	border-radius: 5px;
	cursor: pointer;
}

input[type="text"] {
	border-radius: 5px;
	border-color: var(--color-border);
	border-width: 1px;
	border-style: solid;
}

input[type="password"] {
	border-radius: 5px;
	border-color: var(--color-border);
	border-width: 1px;
	border-style: solid;
}

/* ===== 彈跳視窗 (Popup) ===== */
div.pup {
	display: none;
	position: fixed;
	z-index: 10;
	flex-wrap: wrap;
	flex-direction: column;
	min-height: 200px;
	width: 90%;
	max-width: 400px;
	background-color: #fff;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	border-radius: 8px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

div.pup > div.header {
	min-height: 5vh;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	padding-left: 10px;
}

div.pup > div.header > input {
	height: 30px;
}

div.pup > div.body {
	min-height: 10vh;
	flex: 1;
	text-align: center;
	align-content: center;
	padding: 16px;
}

/* ===== 作業紀錄視窗 ===== */
div.NoteEdite {
	position: fixed;
	background-color: #ffffff;
	box-shadow: rgba(149, 157, 165, 0.4) 0px 8px 24px;
	width: 94%;
	max-width: 700px;
	z-index: 10;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	border-radius: 8px;
	padding: 1%;
}

div.NoteEdite > div.header {
	min-height: 5vh;
	font-size: 1.5rem;
	align-content: center;
	padding: 8px;
}

div.NoteEdite > div.header > input.del-button {
	position: absolute;
	width: 35px;
	height: 35px;
	right: 12px;
	top: 12px;
}

div.NoteEdite > div.body {
	padding: 1% 1.5%;
}

div.NoteEdite > div.body > form > div.column > div.label {
	padding: 1%;
}

div.NoteEdite > div.body > form > div.column > div.input {
	width: 100%;
}

div.NoteEdite > div.body > form > div.column > div.input > textarea {
	width: 100%;
	min-height: 120px;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 1rem;
}

div.NoteEdite > div.body > form > div.column > div.message {
	width: 100%;
	font-size: 1.2rem;
	align-content: center;
}

div.NoteEdite > div.body > form > div.column > div.message > label.message {
	color: red;
}

div.NoteEdite > div.footer {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	padding: 1%;
}

/* ===== 圖片上傳視窗 ===== */
div.container > div.ImageUpload {
	display: flex;
	flex-direction: column;
	width: 94%;
	max-width: 600px;
	position: fixed;
	background-color: white;
	z-index: 10;
	box-shadow: rgba(149, 157, 165, 0.4) 0px 8px 24px;
	border-radius: 8px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-height: 85vh;
}

div.container > div.ImageUpload > div.header {
	min-height: 5vh;
	align-content: center;
	padding: 0 1%;
	font-size: 1.2rem;
}

div.container > div.ImageUpload > div.body {
	flex: 1;
	overflow-y: auto;
}

div.container > div.ImageUpload > div.body > form > div.fileList {
	width: 100%;
}

div.container > div.ImageUpload > div.body > form > div.fileList > div.item {
	width: 100%;
}

div.container > div.ImageUpload > div.body > form > div#previewArea {
	display: flex;
	border: 1px dashed #ccc;
	padding: 10px;
	min-height: 100px;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	flex-direction: column;
	margin: 0 2%;
}

div.container > div.ImageUpload > div.body > form > div#previewArea > img#imagePreview {
	width: 100%;
	max-height: 40vh;
	object-fit: contain;
}

div.container > div.ImageUpload > div.body > form > div#messages {
	min-height: 1.5em;
	padding: 0 1%;
}

div.container > div.ImageUpload > div.body > form > div.tools {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0 1%;
}

div.container > div.ImageUpload > div.body > form > div.progress-container {
	display: none;
	margin: 0 2%;
}

div.container > div.ImageUpload > div.body > form > div.progress-container > div.progressBar {
	background-color: var(--color-primary);
	color: #ffffff;
}

div.container > div.ImageUpload > div.body > form > div.tools > input#fileInput {
	font-size: 1rem;
	width: 70%;
}

div.container > div.ImageUpload > div.body > form > div.tools > input#fileInput::-webkit-file-upload-button {
	visibility: hidden;
	width: 15%;
}

div.container > div.ImageUpload > div.body > form > div.tools > input#fileInput::before {
	content: '';
}

div.container > div.ImageUpload > div.body > form > div.tools > input.open-cammera {
	width: 45px;
	height: 45px;
}

div.container > div.ImageUpload > div.footer {
	min-height: 8vh;
	align-content: center;
	text-align: center;
}

/* ===== 帳號管理 ===== */
div.nav-top {
	top: 0;
	display: flex;
	flex-direction: row;
	width: 100%;
	background-color: #fff;
}

div.top {
	width: 100%;
}

div.nav-top > div.logo > img.logo {
	width: 120px;
}

div.nav-top > ul.link {
	display: flex;
	flex-direction: row;
	position: absolute;
	right: 0;
}

div.AccEdite > form {
	display: flex;
	flex-direction: row;
	flex-flow: wrap;
}

div.AccEdite > form > div.column {
	display: flex;
	flex-direction: column;
	flex-flow: wrap;
	width: 100%;
	max-width: 326px;
	padding: 4px;
}

div.AccEdite > form > div.column > label {
	margin: 5px;
	width: 100%;
}

div.AccEdite > form > div.column > label:nth-child(3) {
	font-size: 0.9rem;
	color: red;
}

div.AccEdite > form > div.column > input {
	margin: 5px;
	width: 100%;
	font-size: 1.2rem;
	border-radius: 5px;
	box-sizing: border-box;
}

div.AccEdite > form > div.column > input:required {
	border-color: #f542b0;
}

div.AccEdite > form > div.column > input[type="password"] {
	height: 28px;
	border-width: 2px;
	border-color: #f542b0;
}

div.AccEdite > form > div.column > input:read-only {
	background-color: #f0f0f0;
	border-color: #f0f0f0;
}

div.AccEdite > form > div.column > select {
	margin: 5px;
	width: 100%;
	font-size: 1.2rem;
	height: 33px;
	border-radius: 5px;
	box-sizing: border-box;
}

div.AccEdite > form > div.column > select:required {
	border-color: #f542b0;
	border-width: 2px;
}

div.AccEdite > form > ul.link {
	display: flex;
	flex-direction: row;
	flex-flow: wrap;
}

div.AccList {
	display: flex;
	flex-direction: column;
	width: 100%;
}

div.AccList > div.row {
	display: flex;
	flex-direction: row;
	width: 100%;
	margin: 0;
}

div.AccList > div.row > div.header {
	display: flex;
	flex-direction: column;
	width: 20%;
	text-align: center;
	margin: 1% 0;
}

div.AccList > div.row > div.header > label {
	display: flex;
	flex-direction: column;
	width: auto;
	font-size: 1.2rem;
}

div.AccList > div.row > div.column {
	display: flex;
	flex-direction: column;
	align-self: center;
	width: 20%;
}

div.AccList > div.row > div#action.column {
	align-items: center;
}

div.AccList > div.row > div.column > label {
	display: flex;
	flex-direction: column;
	width: auto;
	align-items: center;
	font-size: 1.2rem;
}

div.AccList > div.row > div.column > ul.link {
	display: flex;
	flex-direction: row;
	flex-flow: wrap;
}

div.AccList > div.row > div.column > ul.link > li > input.table-button {
	width: 50px;
}

/* ===== 作業人員管理 ===== */
div.SelectUser {
	display: flex;
	flex-direction: column;
	width: 90%;
	max-width: 400px;
	position: fixed;
	background-color: white;
	z-index: 10;
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	border-radius: 8px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-height: 80vh;
}

div.SelectUser > form {
	flex: 1;
	display: flex;
	flex-direction: column;
}

div.SelectUser > form > div.header {
	min-height: 8vh;
	display: flex;
	flex-direction: row;
	align-items: center;
	font-size: 1.3rem;
	padding: 0 3%;
}

div.SelectUser > form > div.header > input.del-button {
	width: 40px;
	position: absolute;
	right: 8px;
}

div.SelectUser > form > div.filter > input#filter {
	width: 96%;
	margin: 2%;
	height: 32px;
	font-size: 1rem;
	box-sizing: border-box;
}

div.SelectUser > form > div.body {
	flex: 1;
	border-color: var(--color-border);
	border-style: solid;
	border-width: 1px 0 0 0;
	overflow-y: auto;
	max-height: 50vh;
}

div.SelectUser > form > div.body > div.item {
	min-height: 6vh;
	margin: 0.5%;
	padding: 0 5%;
	align-content: center;
	border-color: var(--color-border);
	border-style: solid;
	border-width: 0 0 1px 0;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 4px 8px;
}

div.SelectUser > form > div.footer {
	min-height: 8vh;
	text-align: center;
	align-content: center;
	border-color: var(--color-border);
	border-style: solid;
	border-width: 1px 0 0 0;
}

/* ===== Tablet (>= 768px) ===== */
@media screen and (min-width: 768px) {
	div.card {
		min-width: 46%;
		max-width: 48%;
	}

	input.button[type="image"],
	input.delete-button[type="image"],
	input.node-button[type="image"],
	input.add-button[type="image"],
	input.user-button[type="image"] {
		width: 60px;
		height: 60px;
	}

	input[type="text"] {
		height: 28px;
		font-size: 1.1rem;
	}

	input[type="email"] {
		height: 28px;
		font-size: 1.1rem;
	}

	input[type="date"] {
		height: 29px;
		font-size: 1.1rem;
	}

	input[type="password"] {
		height: 29px;
		font-size: 1.1rem;
	}

	label {
		font-size: 1.1rem;
	}

	input[type="button"],
	input[type="submit"],
	input[type="reset"] {
		width: 20%;
		max-width: 180px;
		height: 46px;
		font-size: 18px;
	}

	div.AccList > div.row > div.header > label,
	div.AccList > div.row > div.column > label {
		font-size: 1.3rem;
	}

	div.AccList > div.row > div.column > ul.link > li > input.table-button {
		width: 55px;
	}
}

/* ===== Desktop (>= 1200px) ===== */
@media screen and (min-width: 1200px) {
	.w-full {
		width: 50%;
	}

	div.card {
		min-width: 23%;
		max-width: 24%;
	}

	input.button[type="image"],
	input.delete-button[type="image"],
	input.node-button[type="image"],
	input.add-button[type="image"],
	input.user-button[type="image"] {
		width: 70px;
		height: 70px;
	}

	input[type="text"] {
		height: 28px;
		font-size: 1.2rem;
	}

	input[type="email"] {
		height: 28px;
		font-size: 1.2rem;
	}

	input[type="date"] {
		height: 29px;
		font-size: 1.2rem;
	}

	input[type="password"] {
		height: 29px;
		font-size: 1.2rem;
	}

	label {
		font-size: 1.2rem;
	}

	input[type="button"],
	input[type="submit"],
	input[type="reset"] {
		width: 18%;
		max-width: 200px;
		height: 50px;
		font-size: 20px;
	}

	div.NoteEdite {
		max-width: 800px;
	}

	div.NoteEdite > div.header {
		font-size: 2rem;
	}

	div.NoteEdite > div.body > form > div.column > div.input > textarea {
		min-height: 200px;
	}

	div.AccList > div.row > div.header > label,
	div.AccList > div.row > div.column > label {
		font-size: 1.5rem;
	}

	div.AccList > div.row > div.column > ul.link > li > input.table-button {
		width: 60px;
	}
}

/* ===== 4K (>= 2560px) ===== */
@media screen and (min-width: 2560px) {
	html {
		font-size: 20px;
	}

	.w-full {
		width: 40%;
	}

	/* -- Card: 8-column -- */
	div.card {
		min-width: 11%;
		max-width: 12%;
	}

	input.button[type="image"],
	input.delete-button[type="image"],
	input.node-button[type="image"],
	input.add-button[type="image"],
	input.user-button[type="image"] {
		width: 80px;
		height: 80px;
	}

	input[type="text"] {
		height: 34px;
		font-size: 1.25rem;
	}

	input[type="email"] {
		height: 34px;
		font-size: 1.25rem;
	}

	input[type="date"] {
		height: 35px;
		font-size: 1.25rem;
	}

	input[type="password"] {
		height: 35px;
		font-size: 1.25rem;
	}

	label {
		font-size: 1.25rem;
	}

	input[type="button"],
	input[type="submit"],
	input[type="reset"] {
		width: 15%;
		max-width: 240px;
		height: 56px;
		font-size: 1.25rem;
	}

	/* -- Popup (4K): 20% width -- */
	div.pup {
		width: 20%;
	}

	/* -- NoteEdite (4K) -- */
	div.NoteEdite {
		max-width: 900px;
	}

	div.NoteEdite > div.header {
		font-size: 2.2rem;
	}

	div.NoteEdite > div.body > form > div.column > div.input > textarea {
		min-height: 240px;
	}

	/* -- ImageUpload (4K) -- */
	div.container > div.ImageUpload {
		width: 30%;
	}

	/* -- SelectUser (4K): 20% width -- */
	div.SelectUser {
		width: 20%;
	}

	/* -- AccList (4K) -- */
	div.AccList > div.row > div.header > label,
	div.AccList > div.row > div.column > label {
		font-size: 1.6rem;
	}

	div.AccList > div.row > div.column > ul.link > li > input.table-button {
		width: 70px;
	}
}
