/* 定義顏色 */
:root {
	--main-dark-color: #006269;
	--main-light-color: #c2ebee;
}

body,
html {
	padding-top: 40px;
	font-size: 1rem;
	font-family: "Roboto", "Microsoft JhengHei", sans-serif;
	margin-bottom: 40px;
}

body {
	overflow-y: scroll;
}

.hide {
	display: none !important;
}

.vis-zero {
	color: #8d8d8d;
	background-color: #c9c9c9 !important;
}

.mouse_color {
	background-color: #b4c8c9 !important;
}

.design-version {
	font-size: 0.5rem;
}

.navbar {
	padding: .2rem 1rem !important;
}

.navbar-dark {
	background-color: var(--main-dark-color) !important;
	border-color: var(--main-dark-color);
}

.nav-link {
	color: #fff !important;
}

.show>.nav-link {
	background-color: #000;
}

.note-modal .nav-link {
	color: unset !important;
}

/* 自定義tooltip */
/* .custom-tooltip {
	--bs-tooltip-bg: #f3c878;
	--bs-tooltip-color: var(--main-dark-color);
} */

label {
	flex-shrink: 0;
	padding-right: 3px;
}

label.col-form-label,
label.input-label {
	font-weight: bold;
}

/* 必填欄位 */
label.input-req::after {
	content: "*";
	color: red;
}

/* 使欄位對齊 */
.input-row label.input-label {
	width: 80px;
	text-align: right;
}

.input-div label.input-label {
	font-size: 1.25rem;
}

.flex-grow-2 {
	flex-grow: 2;
}

.flex-grow-3 {
	flex-grow: 3;
}

.max-300 {
	max-width: 300px;
}

/* 登入介面樣式 */
.login-msg {
	font-weight: normal;
	color: #525252;
}

.loginBox {
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
}

@media (max-width: 576px) {
    .loginBox {
        width: 95%;
        margin: 5% auto;
    }

	.row.verifybox input {
        flex: 1;
        max-width: 100%;
    }
}

.loginBox h1 {
	color: var(--main-dark-color);
	font-weight: bold;
}

#login {
	background: var(--main-light-color);
	padding: 5px 15px;
	border-radius: 50px;
	border: 1px solid var(--main-dark-color);
	font-size: 15px;
	color: var(--main-dark-color);
	font-weight: 700;
}

#login:hover {
	background-color: rgb(255 255 255 / 50%);
}

.loginform {
	padding: 20px;
	border-radius: 15px;
	font-size: 18px;
	font-weight: 700;
	background: var(--main-light-color);
	color: var(--main-dark-color);
}

.userbox {
	margin: 30px 0 10px 0;
}

.pwdbox {
	margin: 20px 0 20px 0;
}

.verifybox {
	margin: 20px 0 20px 0;
}

#user {
	/* width: 80%; */
	border: none;
	background: rgba(241, 255, 255, 0.87);
	/* padding: 2px 10px; */
}

#pwd {
	/* width: 80%; */
	border: none;
	background: rgba(241, 255, 255, 0.87);
	/* padding: 2px 10px; */
}

#verify {
	width: 150px;
	height: 2.5em;
	border: none;
	background: rgba(241, 255, 255, 0.87);
	/* padding: 2px 10px; */
}

.row.verifybox img {
	width: 100%;
	max-width: 150px;
}

.login-btn {
	text-align: center;
	margin: 5px;
}

.req {
	color: #ff0000;
	padding-left: 5px;
}

.footer {
	width: 100%;
	background-color: #EFF1EC;
	color: #83A7A5;
	bottom: 0px;
	position: fixed;
}

/* icon樣式 */
i.fa-check,
.text-green {
	color: #00721c;
}

i.fa-ban,
i.fa-xmark,
.text-red {
	color: red;
}

i.fa-thumbs-up,
.text-blue {
	color: #0d6efd;
}

i.fa-eye,
i.fa-store,
.text-bluegreen {
	color: #199999;
}

i.fa-window-restore,
.text-mediumpurple {
	color: mediumpurple;
}

/* modal-box */
.modal-dialog.width_fit {
	width: fit-content;
	max-width: 100%;
}

div.modal table.row-gap {
	border-collapse: separate;
	border-spacing: 0px 10px;
}

/* 權限設定表格 */
.modal.power_setting label,
.modal.power_setting .func_label{
	white-space: nowrap;
}

/* 窄表格 */
.table-xs>:not(caption)>*>* {
	padding: 0.125rem 0.125rem;
	max-width: 200px;
}

/*
div.left-table {
	float: left;
	margin-right: 20px;
}

div.right-table {
	float: left;
}

.right-table table {
	box-shadow: 0 0 5px #D98B8B;
	border: 3px var(--main-dark-color) solid;
	border-radius: 3px;
	border-collapse: unset;
	padding: 10px;
}*/

/* .two-tables {
    padding-left: 30px;
    display: inline-flex;
} */
button.ui-datepicker-current {
	display: none;
}

button.clear-input {
	position: absolute;
	right: 8px;
	width: 18px;
	height: 18px;
	line-height: 16px;
	text-align: center;
	padding: 0;
	border: unset;
	border-radius: 50%;
	background-color: darkgray;
	color: white;
}

button.clear-input:hover {
	opacity: 0.5;
}

div.left-table {
	width: fit-content;
}

.left-table th,
.left-table td {
	padding-right: 10px;
	padding-left: 10px;
}

/* div.right-table {
    float: left;
    width: fit-content;
} */

/* div.right-table table,
div.red-border,
table.red-border {
	position: fixed;
    box-shadow: 0 0 5px #d98b8b;
    border: 3px var(--main-dark-color) solid;
    border-radius: 3px;
    border-collapse: unset;
    padding: 15px;
	min-width: 520px;
} */
tr#checkCol td {
	position: relative;
	bottom: -20px;
}

th.func-title {
	color: royalblue;
}

.func-row td {
	text-align: center;
}

.btn-row {
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	display: flex;
	justify-content: center;
	gap: 0.75rem;
}

/* .power-set table{
	min-width: 520px;
} */

/* 搜尋及列表顯示 */
#searchform {
	margin-top: 15px;
	margin-bottom: 15px;
	align-items: center;
}

/* #searchform div.search-row {
	margin-top: 10px;
	margin-bottom: 10px;
}

#searchform label {
	margin-right: 5px;
	text-align: end;
	line-height: 18px;
} */

.no-result {
	color: red;
	font-weight: bold;
	margin-left: 10px;
}

.table {
	vertical-align: middle;
}

.table_list th {
	white-space: nowrap;
}

td:has([name=checkItem]) {
    white-space: nowrap;
}

#order-btn a,
a.front_link {
	color: #000;
	text-decoration: none;
}

#order-btn a:hover {
	color: var(--main-dark-color);
}

#order-btn .order-select {
	color: var(--main-dark-color);
}

/* 批次設定 */
#group_set_form table {
	width: 100%;
}

#group_set_form td {
	align-content: start;
}

#group_set_form td.group_check_label {
	font-weight: bolder;
	padding-top: 10px;
	white-space: nowrap;
}

#group_set_form td.group_check_label > input {
	margin-right: 0.5rem;
}
/* 編輯頁面 */
.edit-page {
	max-width: 40%;
	margin-left: 100px;
	margin-top: 40px;
}

@media (max-width: 991px) {
	.edit-page {
		max-width: 100%;
		margin-left: 0;
	}
}

.edit-page input,
.edit-page select,
.edit-page textarea {
	margin-bottom: 1rem;
}

#power-checkbox .form-check {
	height: 1rem;
}

/* 修正summernote-lite雙箭頭 */
.note-editor .dropdown-toggle::after {
	all: unset;
}

.note-modal-footer {
	height: 50px !important;
}

/* 分類列表 */
tr.main-item>td:first-child {
	text-align: start;
	padding-left: 50px !important;
}

tr.sub-item>td:first-child {
	text-align: start;
	padding-left: 80px !important;
}

#category_table i.foldAll,
#category_table i.foldbtn,
#category_table i.foldend{
	color: var(--main-dark-color);
}

#category_table i.fa-circle {
	font-size: x-small;
}

td.seq.main-item {
	font-weight: bold;
}

td.seq.sub-item {
	font-style: italic;
	color: #888 !important;
}

.foldbtn,
.foldAll {
	cursor: pointer;
}

.foldAll {
	float: left;
	margin-left: 20px;
}

span.count-number {
	color: gray;
	font-weight: normal;
}

/* 編輯頁欄位 */
/* 一行顯示，文字置中 */
.inline-row>div:not(.form-check) {
	display: flex;
	align-items: center;
	margin: 3px 0px;
}

div.input-row {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* 頁面編輯 */
#title-row div {
	/* padding: 0 5px; */
}

/* 跑馬燈管理 */
#mq-list input {
	width: 90%;
}

/* 輪播圖管理 */
td.bn-details>div {
	margin: 15px auto;
}

/* 前台尺寸1903*500 */
.ratio-banner::before {
	--bs-aspect-ratio: 26.27430373%;
	background-image: url('../../images/bg-transparent.jpg');
	opacity: 0.5;
}

.ratio-banner>div>img{
	height:100%;
	width:auto;
	max-width: 100%;
	margin:auto;
}

/* 導覽列管理 */
div#link-radio label {
	margin-left: -5px;
}

div#link-radio {
	height: 30px;
	align-items: center;
	margin-bottom: 5px;
}

div#link-radio .form-check {
	margin-bottom: unset;
}

div#cate-sel {
	width: 30%;
	flex-grow: 1;
}

/** 店家、商品編輯 */
.store-edit form>div,
.item-edit form>div {
	margin-bottom: 20px;
}

i.picked-store {
	color: #ff4015;
}

#item-pictures>.ipicture {
	position: relative;
	width: 170px;
	padding-right: 20px;
}

#item-pictures>.ipicture>img {
	width: 100%;
}

#item-pictures>.ipicture>img:hover {
	cursor: move;
}

#item-pictures>.ipicture>button.removePic {
	position: absolute;
	top: -7px;
	right: 13px;
	border-radius: 50%;
	height: 25px;
	width: 25px;
	line-height: 25px;
	padding: 0;
	font-size: 17px;
}

/* #item-pictures div:first-child>img {
	border: 5px solid var(--main-dark-color);

} */

/* #item-pictures div:first-child::after {
	content: "封面";
	display: block;
	width: 100%;
	text-align: center;
} */

#upload_area>div {
	width: 300px;
}

/* autocomplete輸入框樣式 */
.ui-autocomplete {
	max-height: 200px;
	/* 設定最大高度 */
	overflow-y: auto;
	/* 啟用垂直滾動條 */
	overflow-x: hidden;
	/* 隱藏水平滾動條 */
}

/* log紀錄-表格樣式 */
#log_table {
	table-layout: fixed;
	width: 100%;
}

#log_table th,
#log_table td {
	text-align: center;
	vertical-align: middle;
}

#log_table th {
	white-space: nowrap;
}

#log_table td {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* url和detail換行顯示 */
#log_table td.log_url,
#log_table .log_detail {
	white-space: normal;
	word-wrap: break-word;
}

.noselect {
    user-select: none; /* 禁止選中 */
    -webkit-user-select: none; /* 針對 Webkit 瀏覽器 */
    -moz-user-select: none; /* 針對 Firefox */
    -ms-user-select: none; /* 針對 IE/Edge */
}
