/* pdPick: reusable barcode picker (ASCII-only stylesheet) */
html.pdPickOpen,
body.pdPickOpen {
	overflow: hidden !important;
	height: 100% !important;
}

.pdPickOverlay {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	display: flex;
	flex-direction: column;
	background: #1e252b;
	color: #1a1a1a;
	font-family: Helvetica, Arial, 'Microsoft JhengHei', '·L³n¥¿¶ÂÅé', sans-serif;
}

.pdPickHeader {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0px 14px;
	background: #161b20;
	color: #f4f6f8;
	border-bottom: 1px solid #000;
}

.pdPickHeader h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.pdPickClose {
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: #3a434c;
	color: #fff;
	font-size: 22px;
	line-height: 20px;
	cursor: pointer;
	flex: 0 0 auto;
}

.pdPickClose:hover {
	background: #c0392b;
}

.pdPickBody {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #e8edf2;
}

.pdPickBody > span {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
}

.pdPickApp {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.pdPickToolbar {
	flex: 0 0 auto;
	padding: 10px 14px 8px;
	background: #f7f9fb;
	border-bottom: 1px solid #d5dde5;
}

.pdPickSearchRow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	justify-content: center;
}

.pdPickHint {
	margin: 0 0 8px;
	text-align: center;
	color: #4a5560;
	font-size: 12px;
	line-height: 1.4;
}

.pdPickToolbar input[type="text"] {
	min-width: 180px;
	flex: 1 1 220px;
	max-width: 420px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #b8c2cc;
	border-radius: 6px;
	font-size: 14px;
}

.pdPickToolbar input[type="button"],
.pdPickToolbar button,
.pdPickBtn {
	height: 34px;
	padding: 0 14px;
	border: 0;
	border-radius: 6px;
	background: #2b6cb0;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.pdPickToolbar input[type="button"]:hover,
.pdPickToolbar button:hover,
.pdPickBtn:hover {
	background: #245c96;
}

.pdPickBtnPrimary {
	background: #0f766e;
}

.pdPickBtnPrimary:hover {
	background: #0b5e58;
}

.pdPickFilterRow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin-top: 8px;
	font-size: 13px;
	color: #333;
}

.pdPickFilterRow select {
	height: 30px;
	border: 1px solid #b8c2cc;
	border-radius: 6px;
	padding: 0 6px;
}

.pdPickSizeWrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 180px;
}

.pdPickSizeWrap input[type="range"] {
	width: 120px;
}

.pdPickSelected {
	flex: 0 0 auto;
	background: #fff8ee;
	border-bottom: 1px solid #e6d5b8;
}

.pdPickSelectedBar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

.pdPickSelectedBar #tmpNote {
	font-weight: 700;
	color: #7a4e12;
}

.pdPickSelectedToggle {
	margin-left: auto;
	color: #7a4e12;
	font-size: 12px;
}

.pdPickSelectedBody {
	display: none;
	max-height: 28vh;
	overflow: auto;
	padding: 0 10px 10px;
	background: #fffdf8;
}

.pdPickSelected.is-open .pdPickSelectedBody {
	display: block;
}
.pdPickListMount {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.pdPickListLoading {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(30, 37, 43, 0.48);
	z-index: 8;
	align-items: center;
	justify-content: center;
}
.pdPickListLoading.is-on {
	display: flex;
}

.pdPickListLoadingInner {
	background: rgba(255, 255, 255, 0.94);
	border-radius: 12px;
	padding: 14px 28px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
	color: #1a1a1a;
}

.pdPickPager {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 10px;
	background: #dfe6ee;
	border-top: 1px solid #cfd8e1;
	border-bottom: 1px solid #cfd8e1;
	font-size: 13px;
}

.pdPickPagerBtn {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	color: #1e4b8a;
	cursor: pointer;
}

.pdPickPagerBtn:hover {
	background: #c5d4e8;
	color: #c0392b;
}

.pdPickPagerNow {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	background: #2b6cb0;
	color: #fff;
	font-weight: 700;
}

.pdPickPagerInfo {
	color: #445;
	margin: 0 8px;
}

.pdPickResults {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: flex-start;
	gap: 12px;
	background: #e8edf2;
}

.pdPickEmpty {
	width: 100%;
	text-align: center;
	color: #667;
	padding: 40px 12px;
}

.pdPickCard {
	position: relative;
	flex: 0 0 auto;
	width: 200px;
	height: 273px;
	max-width: 100%;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid #8a96a3;
	background-color: #cfd6dd;
	background-size: cover;
	background-position: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	color: #111;
}

.pdPickCard:hover {
	border-color: #2b6cb0;
	box-shadow: 0 4px 14px rgba(43,108,176,0.28);
}

.pdPickCardTop {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 8px 8px 0;
	flex: 0 0 auto;
}

.pdPickChk {
	color: #12c948;
	font-size: 22px;
	text-shadow: 0 0 4px #000, 0 0 6px #fff;
	min-height: 24px;
}

.pdPickCard:hover {
	overflow: visible;
	z-index: 5;
}
.pdPickYd {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	position: relative;
	z-index: 2;
	padding-top: 3px;
}
.pdPickYdHit {
	position: relative;
	display: inline-block;
	cursor: pointer;
	pointer-events: auto;
}
.pdPickYdPill {
	display: inline-block;
	font-size: 11px;
	line-height: 1.15;
	color: #14331a;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	padding: 2px 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	font-weight: 700;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pdPickYdHit:hover .pdPickYdPill {
	transform: scale(1.14);
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.pdPickYdTip {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 148px;
	max-width: 230px;
	padding: 8px 10px;
	background: rgba(20, 28, 34, 0.94);
	color: #f4f6f8;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
	white-space: nowrap;
	text-align: left;
	pointer-events: none;
	z-index: 8;
}
.pdPickYdTip:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-bottom-color: rgba(20, 28, 34, 0.94);
}
.pdPickYdHit:hover .pdPickYdTip {
	display: block;
}
.pdPickInfo {
	color: #fff;
	background: rgba(0,0,0,0.45);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	font-weight: 700;
}

.pdPickCardMid {
	flex: 1 1 auto;
	min-height: 0;
}

.pdPickCardFoot {
	flex: 0 0 auto;
	padding: 6px 8px 10px;
}

.pdPickFlags {
	text-align: center;
	margin-bottom: 6px;
	color: #b00000;
	font-size: 11px;
	text-shadow: 0 0 4px #fff;
}

.pdPickMeta {
	background: rgba(255,255,255,0.72);
	border-radius: 12px;
	padding: 8px 6px;
	text-align: center;
}

.pdPickItemNo {
	font-size: 16px;
	font-weight: 700;
	text-shadow: 0 0 8px #fff;
	line-height: 1.25;
}

.pdPickSub {
	font-size: 11px;
	color: #222;
	line-height: 1.35;
}

#pdPickOverlay .regularTable2 {
	width: 100%;
}

@media (max-width: 640px) {
	.pdPickHeader h2 {
		font-size: 14px;
	}
	.pdPickToolbar {
		padding: 8px;
	}
	.pdPickSelectedBody {
		max-height: 22vh;
	}
	.pdPickResults {
		padding: 8px;
		gap: 8px;
	}
}
