/*
 * AOA 기사 페이지 1.0.0
 * 모든 규칙을 .aoa-st 안으로 한정하고, 글꼴은 사이트 기본(Pretendard)을 물려받습니다.
 */

.aoa-st {
	--st-line: #e2e5ea;
	--st-text: #1f2329;
	--st-dim: #6b7280;
	--st-main: #1b64da;
	--st-soft: #eaf1fe;
	--st-bad: #d93025;
	--st-good: #12805c;
	--st-radius: 10px;

	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	color: var(--st-text);
	line-height: 1.6;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.aoa-st *,
.aoa-st *::before,
.aoa-st *::after { box-sizing: inherit; }

.aoa-st [hidden] { display: none !important; }

.aoa-st h2 { margin: 0 0 14px; font-size: 21px; font-weight: 700; }

.aoa-st-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.aoa-st-help {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--st-dim);
}

.aoa-st-back {
	margin-bottom: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--st-dim);
	cursor: pointer;
}

.aoa-st-link {
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--st-dim);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- 입력 ---------- */

.aoa-st-field { margin-bottom: 16px; }

.aoa-st-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.aoa-st-field label small { font-weight: 400; color: var(--st-dim); }

.aoa-st input[type="text"],
.aoa-st input[type="password"],
.aoa-st input[type="number"],
.aoa-st textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: var(--st-text);
	-webkit-appearance: none;
	appearance: none;
}

.aoa-st textarea { resize: vertical; }

.aoa-st input:focus,
.aoa-st textarea:focus {
	outline: 0;
	border-color: var(--st-main);
	box-shadow: 0 0 0 3px var(--st-soft);
}

.aoa-st input[type="file"] {
	width: 100%;
	font-size: 14px;
}

/* ---------- 버튼 ---------- */

.aoa-st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--st-radius);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.aoa-st-btn-main { background: var(--st-main); color: #fff; }

.aoa-st-btn-sub {
	border: 1px solid var(--st-line);
	background: #fff;
	color: var(--st-text);
}

.aoa-st-view > .aoa-st-btn-main { width: 100%; }

.aoa-st-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.aoa-st-acts .aoa-st-btn { flex: 1 1 140px; }

/* ---------- 안내 ---------- */

.aoa-st-msg {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.aoa-st-msg.is-good { color: var(--st-good); }
.aoa-st-msg.is-bad { color: var(--st-bad); }

.aoa-st-empty {
	padding: 28px 16px;
	border: 1px dashed var(--st-line);
	border-radius: var(--st-radius);
	text-align: center;
	font-size: 14px;
	color: var(--st-dim);
}

.aoa-st-warn {
	padding: 16px;
	border: 1px solid #f0c36d;
	border-radius: 10px;
	background: #fdf6e3;
	font-size: 15px;
	color: #7a5b00;
}

/* ---------- 탭 ---------- */

.aoa-st-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.aoa-st-tabs button {
	flex: 1 1 0;
	min-height: 42px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--st-dim);
	cursor: pointer;
}

.aoa-st-tabs button.is-on {
	border-color: var(--st-main);
	background: var(--st-soft);
	color: var(--st-main);
}

/* ---------- 목록 카드 ---------- */

.aoa-st-card {
	display: block;
	width: 100%;
	padding: 16px;
	margin-bottom: 10px;
	border: 1px solid var(--st-line);
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.aoa-st-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.aoa-st-status {
	padding: 3px 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.aoa-st-no {
	font-size: 12px;
	color: var(--st-dim);
	letter-spacing: .02em;
}

.aoa-st-card-when {
	display: block;
	font-size: 16px;
	font-weight: 700;
}

.aoa-st-card-sub,
.aoa-st-card-pay,
.aoa-st-card-addr {
	display: block;
	font-size: 13px;
	color: var(--st-dim);
}

/* 주소는 길어도 한 줄로 — 카드 높이가 들쭉날쭉하면 훑기 어렵습니다 */
.aoa-st-card-addr {
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- 상세 ---------- */

.aoa-st-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.aoa-st-rows {
	margin: 0 0 4px;
	padding: 4px 16px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fafbfc;
}

.aoa-st-rows > div {
	display: flex;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--st-line);
}

.aoa-st-rows > div:last-child { border-bottom: 0; }

.aoa-st-rows dt {
	flex: 0 0 82px;
	margin: 0;
	font-size: 13px;
	color: var(--st-dim);
}

.aoa-st-rows dd {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px;
	white-space: pre-line;
}

/* ---------- 고르기 ---------- */

.aoa-st-ampm {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.aoa-st-pick { display: block; position: relative; cursor: pointer; }

.aoa-st-pick input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aoa-st-pick span {
	display: block;
	padding: 13px 8px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}

.aoa-st-pick input:checked + span {
	border-color: var(--st-main);
	background: var(--st-soft);
	box-shadow: inset 0 0 0 1px var(--st-main);
}

/* ---------- 달력 ---------- */

.aoa-st-cal {
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	overflow: hidden;
}

.aoa-st-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--st-line);
	background: #fafbfc;
}

.aoa-st-cal-head strong { font-size: 15px; font-weight: 700; }

.aoa-st-cal-nav {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--st-line);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.aoa-st-cal-dow,
.aoa-st-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.aoa-st-cal-dow { padding: 8px 6px 2px; }

.aoa-st-cal-dow span {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--st-dim);
}

.aoa-st-cal-grid { gap: 2px; padding: 4px 6px 10px; }

.aoa-st-cal-day {
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--st-text);
	cursor: pointer;
}

.aoa-st-cal-day.is-sun { color: #d93025; }
.aoa-st-cal-day.is-sat { color: #1b64da; }
.aoa-st-cal-day:hover { background: var(--st-soft); }

.aoa-st-cal-day.is-on {
	background: var(--st-main);
	color: #fff;
	font-weight: 700;
}

/* ---------- 사진 ---------- */

.aoa-st-photos { padding-top: 14px; border-top: 1px solid var(--st-line); }

.aoa-st-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.aoa-st-thumb {
	position: relative;
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f3f5;
}

.aoa-st-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aoa-st-thumb button {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 20, 24, .66);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

/* ---------- 진행 중 ---------- */

.aoa-st-busy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--st-dim);
}

.aoa-st-busy span {
	width: 18px;
	height: 18px;
	border: 2px solid var(--st-line);
	border-top-color: var(--st-main);
	border-radius: 50%;
	animation: aoa-st-spin .8s linear infinite;
}

@keyframes aoa-st-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.aoa-st-busy span { animation: none; }
}

/* ---------- 휴대폰 ---------- */

@media (max-width: 600px) {
	.aoa-st h2 { font-size: 19px; }
	.aoa-st-acts .aoa-st-btn { flex: 1 1 100%; }
	.aoa-st-rows dt { flex-basis: 74px; }
}

/* 방문 시각 — 기사가 통화 뒤 정확한 시각을 넣습니다 (1.0.5) */

.aoa-st-time { margin-top: 12px; }

.aoa-st-time label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.aoa-st-time input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: var(--st-text);
}

.aoa-st-time small {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--st-dim);
}

/* ---------- 로그인 — 고객 예약 조회 화면과 같은 모양 ---------- */

.aoa-st-lead {
	margin: 0 0 20px;
	font-size: 14px;
	color: #64748b;
}

/* 칸과 단추를 한 줄에 */
.aoa-st-row {
	display: flex;
	gap: 8px;
}

.aoa-st-row input {
	flex: 1 1 auto;
	min-width: 0;
}

.aoa-st-row .aoa-st-btn {
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
}

.aoa-st-field small[data-timer] {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #64748b;
}

/* ---------- 로그인 ---------- */

/*
 * 지점 로그인(aoa-admin)과 **같은 폭**입니다. 이것이 없으면 로그인 칸이
 * 화면 너비만큼 늘어나, 같은 짜임인데도 두 화면이 달라 보입니다.
 */
.aoa-st-view[data-view="login"] {
	max-width: 360px;
	margin: 0 auto;
}

/* ---------- 로그인 칸은 단추처럼 둥글게 ---------- */

.aoa-st-view[data-view="login"] input {
	padding-left: 18px;
	padding-right: 18px;
	border-radius: 999px;
}

.aoa-st-view[data-view="login"] .aoa-st-btn { border-radius: 999px; }

/* ---------- 예약 상세 안쪽 ---------- */

/* 고르는 칸이 기본 모양 그대로라 다른 칸과 따로 놀았습니다 */
.aoa-st-select {
	width: 100%;
	min-height: 50px;
	padding: 0 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--st-text);
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
	background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

/*
 * 꼭 읽어야 하는 단서.
 *
 * `.aoa-st-warn` 은 **이미 쓰이고 있어서** 쓰지 않습니다. 그리고
 * `.aoa-st-field label small` 이 더 구체적이라 클래스 하나로는 집니다 —
 * 같은 자리를 짚어 이깁니다.
 */
.aoa-st-field label small.aoa-st-must,
.aoa-st-must { color: #dc2626; }

/* 적어 둔 추가 서비스 */
.aoa-st-added dd {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.aoa-st-rowbtn {
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	color: var(--st-dim);
	text-decoration: underline;
	cursor: pointer;
}

/* 예약 상품을 고치는 묶음 — 아래의 '더한 항목' 과 섞이지 않게 테를 둡니다 */
.aoa-st-box {
	margin-bottom: 18px;
	padding: 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #f8fafc;
}

.aoa-st-box > b {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
}

.aoa-st-box .aoa-st-field:last-child { margin-bottom: 0; }


/* 서브 접수번호 아래 번호 (1.12.0) — 예: 1-2 */
.aoa-st-subno {
	display: inline-block;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 500;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 0 4px;
	margin-right: 2px;
}

/* ---------- 접수(메인) 상세의 상품(서브) — 1.13.0 ---------- */

.aoa-st-subs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0 4px;
}

.aoa-st-sub {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
}

/* 완결 확인에서 아직 안 적은 상품 */
.aoa-st-sub.is-missing {
	border-color: #f59e0b;
	background: #fffbeb;
}

.aoa-st-sub-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.aoa-st-sub-name {
	font-size: 15px;
}

.aoa-st-sub-line {
	font-size: 13px;
	color: var(--st-dim);
}

/* 완결입력 — 글자 너비만큼, 오른쪽 (1.19.1) */
.aoa-st-sub-acts {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 8px;
}

.aoa-st-sub-acts .aoa-st-btn {
	flex: 0 0 auto;
	width: auto;
	min-height: 38px;
	padding: 0 18px;
	font-size: 14px;
	white-space: nowrap;
}

.aoa-st-sub .aoa-st-rows {
	margin-top: 6px;
}

.aoa-st-review-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.aoa-st-review-thumbs img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--st-line);
}

/* 상품 추가 및 수량 수정 — 상품마다 한 줄 */
.aoa-st-svc {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.aoa-st-svc select {
	flex: 1 1 auto;
	min-width: 0;
}

.aoa-st-svc input {
	flex: 0 0 64px;
	width: 64px;
}

/* ---------- 전화 걸기 · 길찾기 (1.14.0 · 1.14.1) ---------- */

/* 오른쪽 정렬 · 글자에 맞춘 너비 · 한 줄 */
.aoa-st-quick {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
}

.aoa-st-quick:empty { display: none; }

.aoa-st-qbtn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0 14px;
	min-height: 36px;
	border: 1px solid var(--st-main);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--st-main);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.aoa-st-qbtn svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex: 0 0 auto;
}

.aoa-st-qbtn:active { background: var(--st-soft); }

/* 목록 — 카드 안 오른쪽 아래, 작게 */
.aoa-st-card .aoa-st-quick { margin-top: 10px; }

.aoa-st-card .aoa-st-qbtn {
	min-height: 30px;
	padding: 0 10px;
	border-radius: 7px;
	font-size: 12px;
}

.aoa-st-card .aoa-st-qbtn svg { width: 13px; height: 13px; }

/* 상세 — 정보 표 아래 오른쪽 */
.aoa-st-quick-detail { margin: 10px 0 4px; }

/* 카드가 단추가 아니게 됐으므로 누를 수 있다는 표시 · 초점 표시 */
div.aoa-st-card:focus-visible {
	outline: 2px solid var(--st-main);
	outline-offset: 2px;
}

/* 지도 앱 고르는 창 — 화면 아래에서 */
.aoa-st-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.aoa-st-sheet[hidden] { display: none; }

.aoa-st-sheet-bg {
	position: absolute;
	inset: 0;
	background: rgba(17, 20, 24, .45);
}

.aoa-st-sheet-panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	border-radius: 16px 16px 0 0;
	background: #fff;
}

.aoa-st-sheet-panel > b {
	display: block;
	font-size: 15px;
}

.aoa-st-sheet-panel > p {
	margin: 4px 0 12px;
	font-size: 13px;
	color: var(--st-dim);
	word-break: keep-all;
}

.aoa-st-sheet-btn,
.aoa-st-sheet-cancel {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	border: 1px solid var(--st-line);
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--st-text);
	cursor: pointer;
}

.aoa-st-sheet-btn small {
	margin-left: 4px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--st-soft);
	font-size: 11px;
	color: var(--st-main);
}

.aoa-st-sheet-cancel {
	border: 0;
	background: #f3f4f6;
	color: var(--st-dim);
}

/* ---------- 잔금 수납 창 (1.15.0) ---------- */

.aoa-st-collect-amt {
	font-size: 17px;
	color: var(--st-text);
}

.aoa-st-collect-methods {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

.aoa-st-collect-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	font-size: 14px;
	cursor: pointer;
}

.aoa-st-collect-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--st-main);
}

.aoa-st-collect-check[hidden] { display: none; }

.aoa-st-collect-note {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--st-dim);
}

.aoa-st-sheet-btn.aoa-st-collect-save {
	margin-top: 14px;
	border-color: var(--st-main);
	background: var(--st-main);
	color: #fff;
}

/* 잔금 수납 창 — 예약금 · 잔금 (1.15.1) */
.aoa-st-collect-sum {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	align-items: baseline;
	margin: 8px 0 12px;
	font-size: 14px;
}

.aoa-st-collect-sum dt {
	color: var(--st-dim);
}

.aoa-st-collect-sum dd {
	margin: 0;
	text-align: right;
}

/* 방문 시각 — 시 · 분 목록 한 줄 (1.16.0 · 1.16.2) */
.aoa-st-hmrow {
	display: flex;
	align-items: stretch;
	gap: 6px;
}

.aoa-st-hm {
	display: flex;
	flex: 1 1 auto;
	gap: 6px;
	min-width: 0;
}

.aoa-st-hm .aoa-st-select {
	flex: 1 1 0;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	padding: 0 24px 0 10px;
	font-size: 15px;
	background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px;
}

/* 사진 촬영 단추 (1.17.0) — 파일 칸은 숨기고 단추로 */
/* '.aoa-st-field label' (칸 제목) 모양이 묻지 않게 한 단계 더 좁혀 씁니다 */
.aoa-st-field label.aoa-st-shot,
.aoa-st-shot {
	position: relative;
	display: inline-flex;
	margin: 0;
	align-items: center;
	gap: 6px;
	padding: 0 16px;
	min-height: 40px;
	border: 1px solid var(--st-main);
	border-radius: 8px;
	background: #fff;
	color: var(--st-main);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.aoa-st .aoa-st-shot input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.aoa-st-shot small {
	font-weight: 400;
	color: var(--st-dim);
}

.aoa-st-shot:active { background: var(--st-soft); }

.aoa-st-shot.is-off {
	border-color: var(--st-line);
	color: var(--st-dim);
	cursor: default;
}

.aoa-st-thumb.is-new { outline: 2px solid var(--st-main); outline-offset: -2px; }

/* 임시저장 표시 (1.18.0) */
.aoa-st-draft {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--st-good);
}

/* ---------- 상품 변경 및 추가 (1.19.0) ---------- */

/* 저장 전 변경 — 빨간 굵은 글씨 */
.aoa-st-chg {
	color: var(--st-bad);
	font-weight: 800;
}

.aoa-st-now s { color: var(--st-dim); font-weight: 400; }

.aoa-st-now-item {
	padding: 10px 0;
	border-top: 1px solid var(--st-line);
}

.aoa-st-now-item:first-child { border-top: 0; padding-top: 0; }

.aoa-st-now-item.is-dead { opacity: .55; }

.aoa-st-now-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.aoa-st-now-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
}

.aoa-st-now-amt {
	margin-top: 4px;
	font-size: 14px;
	text-align: right;
}

.aoa-st-now-added {
	margin: 6px 0 0;
	padding: 0 0 0 12px;
	list-style: none;
	font-size: 13px;
	color: var(--st-text);
}

.aoa-st-now-added li { margin-top: 2px; }

.aoa-st-now-sum {
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px dashed var(--st-line);
	font-size: 14px;
}

.aoa-st-now-sum div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
}

.aoa-st-now-sum dt { color: var(--st-dim); }
.aoa-st-now-sum dt small { font-size: 11px; }
.aoa-st-now-sum dd { margin: 0; font-weight: 700; text-align: right; }

.aoa-st-now-dirty {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--st-bad);
}

.aoa-st-stage { width: 100%; margin-bottom: 16px; }

.aoa-st-added-title {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}

.aoa-st-added .is-del dt,
.aoa-st-added .is-del dd { color: var(--st-dim); }

/* ---------- 완결 확인 · 잔금 수납 차례 (1.20.0) ---------- */

/* 잔금 수납 — 놓치지 않게 주황 */
.aoa-st-btn-pay {
	background: #ea580c;
	color: #fff;
	font-weight: 800;
}

.aoa-st-btn-pay:active { background: #c2410c; }

/* 아직 누를 수 없는 단추 */
.aoa-st-btn:disabled,
.aoa-st-btn[disabled] {
	border: 0;
	background: #e5e7eb;
	color: #9ca3af;
	cursor: not-allowed;
}

.aoa-st-gate {
	flex: 1 1 100%;
	margin: 0 0 4px;
	color: #c2410c;
}

/* ---------- 상품 수정 — 추가 상품 (1.21.0) ---------- */

.aoa-st-svcbox {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--st-line);
}

.aoa-st-svcbox .aoa-st-svc { margin-bottom: 0; }

.aoa-st-exlist {
	margin: 8px 0 0 30px;
}

.aoa-st-exlist > b {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--st-dim);
}

.aoa-st-exrow {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 14px;
}

.aoa-st-exname {
	flex: 1 1 auto;
	min-width: 0;
}

.aoa-st-exname small { color: var(--st-dim); }

.aoa-st-exrow input {
	flex: 0 0 56px;
	width: 56px;
	padding: 8px 6px;
	text-align: center;
}

.aoa-st-exrow.is-del { color: var(--st-dim); }

.aoa-st-tag {
	display: inline-block;
	padding: 0 5px;
	border-radius: 4px;
	background: #eef2f7;
	font-size: 11px;
	font-style: normal;
	color: var(--st-dim);
}

/* 최대 1개인 추가 상품 — 수량 칸 대신 (1.21.1) */
.aoa-st-exfix {
	flex: 0 0 56px;
	text-align: center;
	color: var(--st-dim);
}

/* 상품 수정 탭 — 기사 추가 항목 고치기 (1.21.1) */
.aoa-st-exlist > b small { font-weight: 400; }

/* 이름은 한 줄 넓게, 그 아래 금액 · 확인 · 취소 */
.aoa-st-aiedit { flex-wrap: wrap; }

.aoa-st-exrow.aoa-st-aiedit input[type="text"] {
	flex: 1 1 calc(100% - 44px);
	width: auto;
	min-width: 0;
	text-align: left;
	padding: 8px 10px;
	font-size: 14px;
}

.aoa-st-aiedit input[type="number"] {
	flex: 0 0 120px;
	width: 120px;
	margin-left: 38px;
	text-align: right;
}

.aoa-st-exrow .aoa-st-subno {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* 상품 추가 — 단가 · 수량 한 줄 (1.22.0) */
.aoa-st-unitqty {
	display: flex;
	gap: 8px;
}

.aoa-st-unitqty > div:first-child { flex: 1 1 auto; }
.aoa-st-unitqty > div:last-child { flex: 0 0 96px; }

/* 상품 수정 — 기사 추가 줄: 수량 칸 · 단추 (1.22.0) */
.aoa-st-exrow input[data-ai-qty],
.aoa-st-exrow input[data-new-qty] {
	flex: 0 0 52px;
	width: 52px;
}

/* 상품 추가 — 상품 | 추가 상품 (1.23.0) */
.aoa-st-seg {
	display: flex;
	margin-bottom: 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	overflow: hidden;
}

.aoa-st-seg button {
	flex: 1 1 0;
	min-height: 40px;
	border: 0;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--st-dim);
	cursor: pointer;
}

.aoa-st-seg button + button { border-left: 1px solid var(--st-line); }

.aoa-st-seg button.is-on {
	background: var(--st-main);
	color: #fff;
}

/* 단가 — 읽기만 */
.aoa-st input#aoa-st-price[readonly] {
	background: #f3f4f6;
	color: var(--st-text);
	font-weight: 700;
	pointer-events: none;
}

/* 기사 추가 상품 — 상품 줄처럼 (1.24.0) */
.aoa-st-now-item.is-staff .aoa-st-tag { margin-right: 2px; }
.aoa-st-now-item.is-staff .aoa-st-now-amt small { color: var(--st-dim); font-size: 11px; }
.aoa-st-staffprod .aoa-st-exlist { margin-left: 0; }

/* 기사 추가 상품에 붙은 추가 상품 (1.25.0) */
.aoa-st-now-child { padding-left: 22px; }

.aoa-st-childrows {
	margin-left: 22px;
	padding-left: 8px;
	border-left: 2px solid var(--st-line);
}

.aoa-st-with {
	font-size: 12px;
	color: var(--st-dim);
}

/* ---------- 고객명 강조 · 본사로 이관 (1.26.0) ---------- */

/* 고객명 — 크게 · 굵게 · 색 (다른 접수를 고치는 실수 방지) */
.aoa-st-rows .is-cust dt {
	align-self: center;
	font-weight: 700;
	color: var(--st-text);
}

.aoa-st-rows .is-cust dd {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: #1d4ed8;
}

/* 목록 카드 메인 접수번호 — 고객명 위 (1.29.0) */
.aoa-st-card-no {
	display: block;
	font-size: 13px;
	color: var(--st-dim);
	letter-spacing: .02em;
}

.aoa-st-card-no b { color: #334155; font-weight: 700; }

/* 일정 확정 단추 아래 안내 (1.29.0) */
.aoa-st-confirm-hint {
	margin: 8px 0 0;
	text-align: right;
}

/* 목록 카드 고객명 */
.aoa-st-card-cust {
	display: block;
	margin-top: 2px;
	font-size: 18px;
	font-weight: 800;
	color: #1d4ed8;
}

.aoa-st-card-cust small {
	font-size: 13px;
	font-weight: 500;
	color: var(--st-dim);
}

/* 화면 위 고객 띠 */
.aoa-st-custbar {
	margin: -6px 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #eff6ff;
	font-size: 14px;
	color: var(--st-dim);
}

.aoa-st-custbar b {
	font-size: 18px;
	font-weight: 800;
	color: #1d4ed8;
}

.aoa-st-custbar span { margin-left: 6px; font-size: 12px; }

/* 본사로 이관 — 다른 단추와 다른 색(빨강 테두리) */
.aoa-st-btn-hq {
	border: 1px solid #dc2626;
	background: #fff;
	color: #dc2626;
	font-weight: 700;
}

.aoa-st-btn-hq:active { background: #fef2f2; }

.aoa-st-hq-cust { color: #1d4ed8; font-size: 16px; }

.aoa-st-hq-label {
	display: block;
	margin: 4px 0 6px;
	font-size: 14px;
	font-weight: 700;
}

.aoa-st-sheet-panel textarea#aoa-st-hq-reason { width: 100%; }

.aoa-st-sheet-btn.aoa-st-hq-go {
	margin-top: 12px;
	border-color: #dc2626;
	background: #dc2626;
	color: #fff;
}

/* ---------- 출발 · 작업 시작 · 고객 부재 (1.27.0) ---------- */

/* 진행 단추 — 지금 할 일, 초록으로 눈에 띄게 */
.aoa-st-btn-go {
	background: #059669;
	color: #fff;
	font-weight: 800;
}

.aoa-st-btn-go:active { background: #047857; }

.aoa-st-stage-help {
	flex: 1 1 100%;
	margin: 0 0 2px;
	color: #047857;
}

/* 완결입력 — 작업 시작 전 */
.aoa-st-sub-hint {
	align-self: center;
	font-size: 12px;
	color: var(--st-dim);
}

/* 고객 부재 창 */
.aoa-st-ns-reasons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 6px 0 10px;
}

.aoa-st-sheet-panel textarea#aoa-st-ns-memo { width: 100%; }
.aoa-st-sheet-panel .aoa-st-shot { margin-bottom: 4px; }
