/* 관리자 화면 휴대폰 재디자인 — intake 영역 (담당 봇만 수정) */
@media (max-width: 600px) {
	/* ── 공고 올리기 입력칸 ── */
	#bps-unified-intake .bps-ui-head span { display: block; font-size: 14px; }
	#bps-unified-intake #bps-ui-text { font-size: 16px; min-height: 160px; }
	#bps-unified-intake .bps-ui-pick { min-height: 48px; display: inline-flex; align-items: center; }
	#bps-unified-intake .bps-ui-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	#bps-unified-intake .bps-ui-actions > .bps-btn { width: 100%; min-height: 48px; margin: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; font-size: 15px; line-height: 1.3; padding: 6px 8px; }
	#bps-unified-intake .bps-ui-submit { grid-column: 1 / -1; min-height: 54px !important; font-size: 18px !important; }
	#bps-unified-intake .bps-ui-sep { display: none; }
	#bps-unified-intake .bps-ui-count { grid-column: 1 / -1; font-size: 14px; }
	#bps-unified-intake .bps-ui-files button { min-width: 44px; min-height: 44px; }
	#bps-ui-advanced a { display: inline-block; min-height: 40px; line-height: 40px; }

	/* ── 넓은 표 → 한 줄(공고·회원)당 카드: 상충 보류, 가격정보, 회원별 배포, 배치 행 표 ── */
	.bps-bid-table-scroll:has(> .bps-mi-cards) { overflow: visible; }
	table.bps-mi-cards, .bps-mi-cards tbody, .bps-mi-cards tr, .bps-mi-cards td { display: block; width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
	table.bps-mi-cards { border: 0; table-layout: auto; }
	.bps-mi-cards thead, .bps-mi-cards colgroup { display: none; }
	.bps-mi-cards tr { background: var(--swin-panel); border: 1px solid var(--swin-border); border-left: 1px solid var(--swin-border); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; box-shadow: none; }
	.bps-mi-cards td { border: 0 !important; padding: 4px 0 4px 92px !important; position: relative; text-align: left; font-size: 15px; line-height: 1.45; word-break: keep-all; overflow-wrap: break-word; white-space: normal !important; background: none !important; }
	.bps-mi-cards td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 84px; color: var(--swin-text-2); font-size: 14px; line-height: 1.4; }
	/* 맨 위 칸 = 카드 제목(공고번호·회원) */
	.bps-mi-cards td:first-child { padding: 0 0 6px !important; margin-bottom: 4px; border-bottom: 1px solid var(--swin-border) !important; color: var(--swin-text); font-size: 16px; font-weight: 700; }
	.bps-mi-cards td:first-child::before { position: static; display: inline; margin-right: 6px; }
	.bps-mi-cards td:not([data-label])::before { content: none; }
	.bps-mi-cards td:not([data-label]) { padding-left: 0 !important; }
	.bps-mi-cards td.bps-mi-title { padding-left: 0 !important; font-size: 16px; font-weight: 600; color: var(--swin-text); }
	.bps-mi-cards td.bps-run-price-missing { color: var(--swin-danger-fg); }
	.bps-mi-cards td .bps-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; box-sizing: border-box; }
	.bps-mi-cards td .bps-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
	.bps-mi-cards td .bps-inline-form .bps-btn { flex: 1 1 100%; margin: 0; }
	/* 배치 행 표: 조치 칸은 라벨 없이 아래 전체 폭 */
	.bps-mi-rows td[data-label="조치"] { padding-left: 0 !important; padding-top: 8px !important; }
	.bps-mi-rows td[data-label="조치"]::before { content: none; }
	.bps-mi-rows td[data-label="조치"] .bps-btn { width: 100%; margin: 0 0 6px; }
	.bps-mi-rows td[data-label="조치"] input:not([type="hidden"]):not([type="checkbox"]), .bps-mi-rows td[data-label="조치"] select { width: 100% !important; min-height: 44px; font-size: 16px; box-sizing: border-box; }
	.bps-mi-rows td summary { min-height: 40px; line-height: 40px; }
	#bps-held-conflicts td[data-label="결정"] { padding-left: 0 !important; padding-top: 8px !important; }
	#bps-held-conflicts td[data-label="결정"]::before { content: none; }

	/* ── 읽은 결과 화면 ── */
	.bps-run-panel > h4 { font-size: 17px; text-align: left; }
	.bps-run-panel > h4 .bps-comment { display: block; font-size: 14px; font-weight: 400; }
	.bps-run-items { padding-left: 0; list-style: none; }
	.bps-run-items li { font-size: 15px; }
	.bps-run-cards { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
	.bps-run-cards .bps-bid-dash-card { padding: 10px 4px !important; min-height: 0; }
	.bps-run-cards .bps-bid-dash-count { font-size: 22px !important; }
	.bps-run-cards .bps-bid-dash-label { font-size: 14px !important; line-height: 1.35; word-break: keep-all; }
	.bps-run-cards .bps-run-card-deploy { grid-column: 1 / -1; border-color: var(--swin-gold-d); }
	.bps-run-panel .bps-plain-list, .bps-run-panel .bps-run-done ul { padding-left: 18px; font-size: 15px; line-height: 1.5; }
	.bps-run-panel .bps-plain-list li { margin-bottom: 8px; }
	.bps-run-jump { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; margin-left: 4px; border: 1px solid var(--swin-border-strong); border-radius: 8px; text-decoration: none; color: var(--swin-text); font-size: 14px; }
	.bps-run-app input { width: 100% !important; min-height: 44px; font-size: 16px; box-sizing: border-box; margin: 4px 0; }
	.bps-run-app .bps-btn { min-height: 44px; width: 100%; margin: 4px 0; }
	.bps-run-register { display: block; }
	.bps-run-register .bps-run-register-btn { width: 100%; min-height: 56px; font-size: 18px; margin: 0 0 8px; }
	.bps-run-panel .bps-run-done { padding: 12px !important; }
	.bps-run-done > h5 { text-align: left; }

	/* ── 배치 미리보기(확정 저장·행 표) ── */
	.bps-preview-filters { display: flex; flex-wrap: wrap; gap: 6px; }
	.bps-preview-filters .bps-bid-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; margin: 0; }
	.bps-preview-pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--swin-border-strong); border-radius: 8px; text-decoration: none; }
	.bps-btns:has(> form > input[value="bps_central_confirm"]) { display: flex; flex-direction: column; gap: 8px; }
	.bps-btns:has(> form > input[value="bps_central_confirm"]) .bps-btn { width: 100%; min-height: 48px; font-size: 16px; }

	/* 고급 설정 안 물품등록 안내 현황 표(열 고정) → 카드 */
	#bps-ui-advanced #bps-goods-notice-admin .bps-bid-table-scroll { overflow: visible; }
	#bps-ui-advanced #bps-goods-notice-admin table, #bps-ui-advanced #bps-goods-notice-admin tbody, #bps-ui-advanced #bps-goods-notice-admin tr { display: block; width: 100%; box-sizing: border-box; border: 0; }
	#bps-ui-advanced #bps-goods-notice-admin thead { display: none; }
	#bps-ui-advanced #bps-goods-notice-admin tr { display: flex; flex-wrap: wrap; gap: 2px 10px; border: 1px solid var(--swin-border); border-left: 1px solid var(--swin-border); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: var(--swin-panel); }
	#bps-ui-advanced #bps-goods-notice-admin td { display: block; border: 0 !important; padding: 2px 0 !important; font-size: 14px; }
	#bps-ui-advanced #bps-goods-notice-admin td:nth-child(5) { order: -1; flex: 1 1 100%; font-size: 16px; font-weight: 700; }
	#bps-ui-advanced #bps-goods-notice-admin td:nth-child(6)::before { content: "표시 "; color: var(--swin-text-2); }
	#bps-ui-advanced #bps-goods-notice-admin td:nth-child(7)::before { content: "보류 "; color: var(--swin-text-2); }
	#bps-ui-advanced #bps-goods-notice-admin td:nth-child(8)::before { content: "제외 "; color: var(--swin-text-2); }
	#bps-ui-advanced #bps-goods-notice-admin td:nth-child(9)::before { content: "등록확인 "; color: var(--swin-text-2); }
	#bps-ui-advanced #bps-goods-notice-admin td:nth-child(10) { flex: 1 1 100%; color: var(--swin-text-2); font-size: 14px; }
}
@media (max-width: 600px) {
	/* 배치 행 카드: 공고명을 제목으로 */
	.bps-mi-rows tr { display: flex; flex-direction: column; }
	.bps-mi-rows td[data-label="행"] { order: -2; font-size: 14px; color: var(--swin-text-2); font-weight: 400; border-bottom: 0 !important; margin: 0; padding-bottom: 0 !important; }
	.bps-mi-rows td[data-label="공고명"] { order: -1; padding: 2px 0 8px !important; margin-bottom: 4px; border-bottom: 1px solid var(--swin-border) !important; font-size: 16px; font-weight: 700; color: var(--swin-text); }
	.bps-mi-rows td[data-label="공고명"]::before { content: none; }
}
@media (max-width: 600px) {
	.bps-mi-cards td select { width: 100%; min-height: 44px; font-size: 16px; }
	.bps-notice-flag-warn > a[href*="portal_tab=settings"] { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 600px) {
	#bps-unified-intake #bps-ui-clear { grid-column: 1 / -1; }
	#bps-unified-intake .bps-ui-actions > .bps-ui-dl { word-break: keep-all; font-size: 14px; }
}
/* 2026-10-12 좁은 휴대폰(≤400px): 공고번호 목록 칸만 칸 이름을 위에 쌓아 값 폭 확보 — 번호 중간에서 끊기지 않고 쉼표·공백에서만 줄바꿈 */
@media (max-width: 400px) {
	.bps-admin-portal .bps-mi-cards td[data-label="공고"] { padding-left: 0 !important; overflow-wrap: normal; }
	.bps-admin-portal .bps-mi-cards td[data-label="공고"]::before { position: static; display: block; width: auto; margin-bottom: 2px; }
}
