/* Yatoon walk-in queue and turn list. */
.ywi-wrap * { box-sizing: border-box; }
.ywi-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ywi-head h1 { margin-bottom: 4px; }
.ywi-sub { margin: 0; color: #6b7280; max-width: 640px; }
.ywi-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ywi-clock { font-weight: 600; color: #111827; }
.ywi-loc select { margin-right: 4px; }
.ywi-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ywi-notice.is-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ywi-app.is-busy { cursor: progress; }
.ywi-app.is-busy button { pointer-events: none; opacity: .7; }
.ywi-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ywi-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.ywi-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ywi-panel h2 { margin: 0; font-size: 16px; }
.ywi-sub-h { margin: 18px 0 8px; font-size: 14px; color: #374151; }
.ywi-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; text-align: center; }
.ywi-card { display: grid; gap: 8px; padding: 12px; margin-bottom: 8px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.ywi-card.is-service { background: #f8fafc; }
.ywi-card.is-overdue { border-color: #f59e0b; background: #fffbeb; }
.ywi-card-main strong { display: block; font-size: 15px; }
.ywi-card-main span, .ywi-card-main em { display: block; margin-top: 2px; font-size: 13px; color: #4b5563; font-style: normal; }
.ywi-card-main em { color: #6b7280; font-size: 12px; }
.ywi-req { color: #7c3aed !important; font-weight: 600; }
.ywi-note { color: #92400e !important; }
.ywi-warn { margin: 0; font-size: 12px; color: #b45309; }
.ywi-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ywi-card-actions .button, .ywi-staff-actions .button { min-height: 36px; }
.ywi-other { max-width: 190px; }
.ywi-left { color: #b91c1c !important; }
.ywi-empty, .ywi-muted { color: #6b7280; font-size: 13px; }
.ywi-staff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ywi-staff { display: grid; grid-template-columns: 24px 10px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; }
.ywi-staff.is-out { opacity: .75; }
.ywi-pos { font-weight: 700; color: #111827; text-align: center; }
.ywi-dot { width: 10px; height: 10px; border-radius: 50%; }
.ywi-staff-main strong { display: block; }
.ywi-chip { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.ywi-chip.is-free { background: #dcfce7; color: #166534; }
.ywi-chip.is-busy { background: #fee2e2; color: #991b1b; }
.ywi-chip.is-break { background: #fef3c7; color: #92400e; }
.ywi-chip.is-appt { background: #e0e7ff; color: #3730a3; }
.ywi-chip.is-off { background: #f3f4f6; color: #6b7280; }
.ywi-turns { display: flex; align-items: center; gap: 4px; }
.ywi-turns b { min-width: 28px; text-align: center; font-size: 16px; }
.ywi-turns button { width: 26px; height: 26px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; cursor: pointer; line-height: 1; }
.ywi-staff-actions { display: flex; gap: 6px; align-items: center; }
.ywi-add { padding: 12px; margin-bottom: 12px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }
.ywi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ywi-add label, .ywi-settings label.ywi-full { display: block; font-size: 12px; font-weight: 600; color: #374151; }
.ywi-add input, .ywi-add select, .ywi-settings .ywi-full input { display: block; width: 100%; margin-top: 4px; }
.ywi-full { margin-top: 10px; }
.ywi-svcs { margin: 10px 0 0; padding: 8px; border: 1px solid #e5e7eb; border-radius: 8px; max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
.ywi-svcs legend { font-size: 12px; font-weight: 600; padding: 0 4px; }
.ywi-svc { display: flex !important; gap: 6px; align-items: flex-start; font-weight: 400 !important; padding: 4px; }
.ywi-svc input { width: auto !important; margin: 2px 0 0 !important; }
.ywi-svc small { color: #6b7280; }
.ywi-svcbox { border: 1px solid transparent; border-radius: 8px; }
.ywi-svcbox.is-open { grid-column: 1 / -1; border-color: #e5e7eb; background: #f9fafb; }
.ywi-opts { padding: 2px 28px 10px 10px; }
.ywi-grp { margin-top: 8px; }
.ywi-grp > b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.ywi-opts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; }
.ywi-opt { display: flex !important; gap: 6px; align-items: center; font-weight: 400 !important; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.ywi-opt input { width: auto !important; margin: 0 !important; }
.ywi-opt small { color: #6b7280; margin-right: auto; }
.ywi-form-actions { margin-top: 10px; }
.ywi-settings { margin-top: 16px; }
.ywi-settings summary { cursor: pointer; font-weight: 600; }
.ywi-check { display: block; margin-top: 10px; }
.ywi-help { margin-top: 12px; }
@media (max-width: 960px) {
	.ywi-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ywi-staff { grid-template-columns: 22px 10px minmax(0, 1fr) auto; }
	.ywi-staff-actions { grid-column: 3 / -1; }
}

/* 4.13.0 self check-in */
.ywi-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ywi-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 600; }
.ywi-tag.is-sms { background: #ecfdf5; color: #065f46; }
.ywi-checkin summary .ywi-chip { margin-right: 6px; vertical-align: middle; }
.ywi-qr-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ywi-qr { width: 160px; min-height: 160px; flex: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ywi-qr img { display: block; width: 160px; height: 160px; image-rendering: pixelated; }
.ywi-url { max-width: 100%; }
.ywi-card-main .ywi-tags { display: flex; flex-direction: row; }
.ywi-card-main .ywi-tags .ywi-tag { display: inline-block; width: auto; margin: 0; }
.ywi-full select { width: 100%; max-width: 100%; }
.ywi-card-main .ywi-client { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ywi-card-main .ywi-client a { font-size: 12px; }
.ywi-tag.is-new { background: #fef3c7; color: #92400e; }
.ywi-tag.is-returning { background: #ecfdf5; color: #065f46; }
.ywi-card-main .ywi-client-alert { color: #b91c1c; font-weight: 600; font-size: 12px; }
.ywi-card-main .ywi-client-line { color: #4b5563; font-size: 12px; }
.ywi-card-main .ywi-client .ywi-tag { display: inline-block; width: auto; margin: 0; }

.ywi-hold { margin: 8px 0 2px; padding: 8px 10px; border: 1px dashed #c7d2fe; border-radius: 8px; background: #eef2ff; display: grid; gap: 6px; }
.ywi-hold.is-off { border-color: #fcd34d; background: #fffbeb; }
.ywi-hold-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #3730a3; }
.ywi-hold.is-off .ywi-hold-t { color: #92400e; }
.ywi-hold-t i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ywi-hold-note { font-size: 12px; color: #6b7280; }
.ywi-hold-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
.ywi-hold-pick select { min-height: 30px; max-width: 100%; font-size: 13px; }

.ywi-notice {
	margin: 8px 0;
	padding: 8px 12px;
	border-right: 4px solid #dba617;
	background: #fcf9e8;
	color: #4a3b00;
}
.ywi-settings label.ywi-full[hidden] { display: none; }
.ywi-checkin label.ywi-muted { display: block; margin: 0 0 4px; }
.ywi-checkin .ywi-url { width: 100%; max-width: 620px; }
.ywi-devices-box { margin: 14px 0; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.ywi-devices-box h4 { margin: 0 0 8px; font-size: 14px; }
.ywi-devices { margin: 0 0 12px; padding: 0; list-style: none; }
.ywi-devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.ywi-devices li:last-child { border-bottom: 0; }
.ywi-pair { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 12px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; }
.ywi-pair .ywi-qr { flex: none; }
.ywi-pair > div:last-child { flex: 1; min-width: 0; }

.ywi-mode { margin: 0 0 14px; }
.ywi-mode label { display: block; font-weight: 600; }
.ywi-mode select { display: block; width: 100%; max-width: 460px; font-weight: 400; }
