:root {
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  
  /* 발달장애인을 배려한 부드럽고 명확한 컬러 시스템 */
  --primary-color: #FF9F1C;     /* 따뜻한 주황색 (선택/강조) */
  --primary-hover: #E78200;
  --secondary-color: #2EC4B6;   /* 산뜻한 민트색 (보조/완료) */
  --secondary-hover: #22A195;
  --danger-color: #FF5A5F;      /* 붉은색 (취소/에러) */
  --danger-hover: #E03E42;
  
  --bg-color: #F8F9FA;          /* 눈이 편안한 밝은 백그라운드 */
  --card-bg: #FFFFFF;
  --text-main: #2B2D42;         /* 선명한 가독성을 위한 다크 그레이 */
  --text-muted: #6C757D;
  --border-color: #E9ECEF;
  
  /* 그림자 효과로 입체감 부여 (버튼 누름 유도) */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-btn: 0 6px 12px rgba(255, 159, 28, 0.3);
  --shadow-btn-sec: 0 6px 12px rgba(46, 196, 182, 0.25);
  
  /* 둥근 테두리 (친근감 및 안정감) */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  
  /* 모바일 높이 보정값 */
  --vh: 1vh;
}

/* 컴포넌트의 display 규칙이 HTML hidden 속성을 덮어쓰지 않게 보장합니다. */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #E9ECEF; /* 외부 배경은 짙은 회색 */
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* 100vh 대신 뷰포트 크기 반영 */
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
}

/* 모바일 우선 웹앱 컨테이너 */
.kiosk-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* 헤더 영역 */
.kiosk-header {
  background-color: var(--card-bg);
  padding: 20px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.kiosk-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.kiosk-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
  flex: 0 1 auto;
}

.user-badge {
  background-color: #E8F8F5;
  border: 2px solid var(--secondary-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-hover);
  white-space: nowrap;
  word-break: keep-all;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}

.credit-badge {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  background-color: #FFF9E6;
  border: 2px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.credit-amount {
  color: var(--primary-color);
  font-size: 24px;
}

/* 메인 콘텐츠 스크롤 영역 */
.kiosk-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-overflow-scrolling: touch;
}

/* 큰 타이틀 안내 문구 */
.guide-text {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  margin: 10px 0;
  color: var(--text-main);
  word-break: keep-all;
}

.guide-text span {
  color: var(--primary-color);
}

/* 푸터 영역 (하단 고정 버튼 등) */
.kiosk-footer {
  background-color: var(--card-bg);
  padding: 20px;
  border-top: 2px solid var(--border-color);
  z-index: 10;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.03);
}

/* 버튼 컴포넌트 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px; /* 큼직한 높이 */
  border: none;
  border-radius: var(--radius-md);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  box-shadow: var(--shadow-sm);
  word-break: keep-all;
}

/* 클릭 시 피드백 애니메이션 */
.btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:not(:disabled) {
  --pulse-glow-color: rgba(255, 159, 28, 0.65);
  animation: pulseGlow 2s infinite ease-in-out;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: var(--shadow-btn-sec);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-secondary:not(:disabled) {
  --pulse-glow-color: rgba(46, 196, 182, 0.55);
  animation: pulseGlow 2s infinite ease-in-out;
}

/* 주 버튼(주황/민트) 주목을 유도하기 위한 부드러운 반짝임(맥박) 애니메이션 */
@keyframes pulseGlow {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.06);
    box-shadow: 0 0 16px var(--pulse-glow-color);
    transform: scale(1.02);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-gray {
  background-color: #E9ECEF;
  color: var(--text-main);
}

.btn-gray:hover {
  background-color: #DEE2E6;
}

.btn:disabled {
  background-color: #CED4DA !important;
  color: #6C757D !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

/* Grid 목록 배치 */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-full {
  grid-template-columns: 1fr;
}

/* 이용자 카드 스타일 */
.user-card {
  background-color: var(--card-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  min-height: 210px;
}

/* 이용자 아바타 스타일 */
.user-avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--border-color);
  background-color: #E9ECEF;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 38px;
  font-weight: 800;
  user-select: none;
}

.user-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.user-card:active {
  transform: scale(0.96);
  border-color: var(--primary-color);
  background-color: #FFFDF9;
}

.user-card-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.user-card-credit {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  background-color: #FFF3E0;
  padding: 4px 10px;
  border-radius: 20px;
}

/* 간식 카드 스타일 */
.snack-card {
  background-color: var(--card-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.snack-card.has-items {
  border-color: var(--primary-color);
  background-color: #FFFDF9;
}

.snack-card.sold-out {
  opacity: 0.6;
}

.snack-card.browse-only {
  cursor: default;
}

.snack-card.browse-only:hover {
  transform: none;
}

.snack-card.sold-out .snack-img-container::after {
  content: '품절';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
}

.snack-img-container {
  width: 100%;
  height: 150px;
  background-color: #E9ECEF;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer; /* 클릭 유도 */
}

.snack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snack-img-placeholder {
  font-size: 60px;
  user-select: none;
}

.snack-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.snack-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.snack-point {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

/* 간식 수량 조절 버튼 그룹 */
.counter-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.btn-counter {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

/* 터치 대상 영역(hitbox)을 시각 크기보다 10px씩 넓혀 터치 성공률 향상 */
.btn-counter::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}

.btn-counter:disabled {
  background-color: #DEE2E6 !important;
  color: #ADB5BD !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-counter-minus {
  background-color: #E9ECEF;
  color: var(--text-main);
}

.btn-counter-minus:active {
  background-color: #CED4DA;
  transform: scale(0.9);
}

.btn-counter-plus {
  background-color: var(--primary-color);
  color: white;
}

.btn-counter-plus:active {
  background-color: var(--primary-hover);
  transform: scale(0.9);
}

.counter-value {
  font-size: 24px;
  font-weight: 800;
  width: 32px;
  text-align: center;
}

/* 하단 장바구니 요약 정보 바 */
.cart-summary {
  background-color: #FFF9E6;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
}

.cart-summary-total {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
}

/* 주문 리스트 (confirm.html) */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.order-item-qty {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.order-item-point {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
}

.bill-box {
  background-color: var(--card-bg);
  border: 3px dashed var(--primary-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}

.bill-row.total {
  border-top: 2px solid var(--border-color);
  padding-top: 16px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.bill-row.result {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary-hover);
}

.bill-row.result.deficit {
  color: var(--danger-color);
}

.bill-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.bill-val.highlight {
  color: var(--primary-color);
  font-size: 26px;
}

.bill-val.success-highlight {
  color: var(--secondary-hover);
  font-size: 28px;
}

/* 로딩 화면 오버레이 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 8px solid var(--border-color);
  border-top: 8px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.overlay-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  padding: 0 20px;
  word-break: keep-all;
}

/* 에러 알림 박스 */
.error-box {
  background-color: #FFF0F0;
  border: 2px solid var(--danger-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--danger-color);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  word-break: keep-all;
}

/* 완료 화면 (complete.html) 전용 스타일 */
.success-check-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
}

.success-emoji {
  font-size: 100px;
  animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

.success-message {
  font-size: 32px;
  font-weight: 900;
  color: var(--secondary-hover);
  text-align: center;
  word-break: keep-all;
}

.timer-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* 관리자 화면 (admin.html) */
.admin-header {
  min-height: 72px;
  padding: 12px 24px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #FFFFFF;
  color: var(--text-main);
  border-bottom: 1px solid #DCE8E5;
  box-shadow: 0 2px 8px rgba(23, 63, 60, 0.08);
}

.admin-header.page-admin,
.admin-header.page-kitchen,
.admin-header.page-reviews {
  background-color: #FFFFFF;
}

.admin-clickable-cell {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.admin-clickable-cell:hover {
  background-color: #F1F5F9 !important;
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 800;
}

.admin-screen-title {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
  color: #203A37;
  font-size: 20px !important;
  line-height: 1.2;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.admin-toolbar-action {
  min-height: 48px !important;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  background-color: #334155;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  animation: none;
  box-shadow: var(--shadow-sm);
}

.admin-header-actions .admin-toolbar-action {
  background-color: #F2F7F6 !important;
  color: #244541 !important;
  border: 1px solid #D5E4E1 !important;
  box-shadow: none !important;
  animation: none !important;
}

.admin-toolbar-action:hover,
.admin-toolbar-action:focus-visible {
  background-color: #E3F3F0 !important;
  color: #155E57 !important;
  outline: 3px solid rgba(47, 189, 179, 0.24);
  outline-offset: 2px;
}

.admin-header .kiosk-header-top {
  width: auto;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
}

.admin-external-links {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.admin-external-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.admin-external-link:hover,
.admin-external-link:focus-visible {
  filter: brightness(0.93);
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 1px;
}

.admin-external-link:active {
  transform: scale(0.98);
}

.admin-external-link.kiosk {
  background-color: #F59E0B;
  border-color: #F59E0B;
  color: #422006;
}

.admin-external-link.guest {
  background-color: #0F766E;
  border-color: #0F766E;
}

.admin-external-link.board {
  background-color: #7C3AED;
  border-color: #7C3AED;
}

.admin-screen-nav {
  display: flex;
  gap: 6px;
  padding: 8px 0 0;
  background-color: #F8FAFC;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.admin-screen-tab {
  flex: 1 1 0;
  min-width: 132px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 2px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background-color: white;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-screen-tab[data-screen="admin"] {
  border-color: rgba(26, 54, 93, 0.28);
  color: #1A365D;
}

.admin-screen-tab[data-screen="kitchen"] {
  border-color: rgba(221, 107, 32, 0.32);
  color: #C05621;
}

.admin-screen-tab[data-screen="reviews"] {
  border-color: rgba(56, 161, 105, 0.32);
  color: #2F855A;
}

.admin-screen-tab:hover,
.admin-screen-tab:focus-visible {
  filter: brightness(0.97);
  outline: 3px solid rgba(66, 153, 225, 0.24);
  outline-offset: -3px;
}

.admin-screen-tab.is-active[data-screen="admin"] {
  background-color: #1A365D;
  border-color: #1A365D;
  color: white;
}

.admin-screen-tab.is-active[data-screen="kitchen"] {
  background-color: #DD6B20;
  border-color: #DD6B20;
  color: white;
}

.admin-screen-tab.is-active[data-screen="reviews"] {
  background-color: #38A169;
  border-color: #38A169;
  color: white;
}

.admin-action-menu {
  position: relative;
}

.admin-action-menu summary {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #F2F7F6;
  color: #244541;
  border: 1px solid #D5E4E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.admin-action-menu summary::-webkit-details-marker {
  display: none;
}

.admin-action-menu summary::after {
  content: "▼";
  font-size: 10px;
}

.admin-action-menu[open] summary::after {
  content: "▲";
}

.admin-action-menu[open] summary {
  background-color: #E3F3F0;
  box-shadow: 0 0 0 2px rgba(47, 189, 179, 0.2);
}

.admin-action-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background-color: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.admin-action-menu-panel .btn-small-action {
  width: 100%;
  min-height: 42px;
  text-align: left;
}

/* 게스트 주문 운영 설정: 상태·기본값·배달팀·운영 시간을 분리한 반응형 레이아웃 */
.guest-ops-panel {
  margin-bottom: 16px;
  padding: 20px;
  background-color: var(--card-bg);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.guest-ops-header,
.guest-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-ops-header {
  margin-bottom: 14px;
}

.guest-ops-title {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 850;
}

.guest-ops-status-badge {
  padding: 6px 14px;
  border: 2px solid #CED4DA;
  border-radius: 999px;
  background-color: #F8F9FA;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.guest-ops-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
}

.guest-ops-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.guest-ops-base-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-main);
  font-size: 15px;
}

.guest-ops-setting,
.guest-team-meta label,
.guest-team-role-fields label,
.guest-team-message {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.guest-ops-setting {
  white-space: nowrap;
}

.guest-ops-setting .admin-inline-input {
  width: 70px;
  padding: 6px 10px;
  text-align: center;
}

.guest-ops-setting-wide .admin-inline-input {
  width: 140px;
  text-align: left;
}

.guest-ops-panel .admin-inline-input {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
}

.guest-team-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 2px dashed var(--border-color);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.guest-team-title {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
}

.guest-team-header .btn-small-action,
.guest-custom-open .btn-small-action {
  min-height: 38px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
}

.guest-team-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guest-team-meta label {
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.guest-team-meta input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary-color);
}

.guest-team-title-field .admin-inline-input {
  width: 160px;
  padding: 6px 10px;
  text-align: left;
}

.guest-team-role-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.guest-team-role-fields .admin-inline-input,
.guest-team-message .admin-inline-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  text-align: left;
}

.guest-team-message {
  flex-wrap: wrap;
}

.guest-open-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.guest-open-presets > button {
  flex: 1 1 150px;
  min-height: 48px;
  font-size: 16px;
  white-space: nowrap;
}

.guest-open-presets #btn-guest-open20 {
  background-color: #38A169;
}

.guest-open-presets #btn-guest-open30 {
  background-color: #2B6CB0;
}

.guest-open-presets #btn-guest-open60 {
  background-color: #7C3AED;
  color: white;
  border: none;
}

.guest-custom-open {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.guest-custom-open .admin-inline-input {
  width: 80px;
  padding: 6px 10px;
  text-align: center;
}

.guest-ops-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 2px dashed var(--border-color);
}

/* 주방 화면 업무 탭 */
.kitchen-content-tabs {
  display: flex;
  gap: 8px;
  margin: 2px 0 16px;
  border-bottom: 3px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kitchen-content-tabs::-webkit-scrollbar {
  display: none;
}

.kitchen-content-tab {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 48px;
  padding: 8px 16px;
  color: var(--text-muted);
  background: transparent;
  border: 2px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 640px) {
  .kitchen-content-tab {
    flex: 1 1 0;
  }
}

.kitchen-content-tab:hover,
.kitchen-content-tab:focus-visible {
  color: var(--text-main);
  background-color: #F8FAFC;
  outline: none;
}

.kitchen-content-tab.is-active {
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-color: var(--border-color);
  margin-bottom: -3px;
}

.kitchen-tab-panel[hidden] {
  display: none;
}

.kitchen-order-content,
.kitchen-data-section {
  min-width: 0;
}

.kitchen-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reviews-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.reviews-load-more {
  min-width: 180px;
  min-height: 44px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .admin-screen-nav {
    padding: 6px 0 0;
  }

  .admin-screen-tab {
    flex: 0 0 132px;
    min-width: 132px;
    padding: 0 10px;
    font-size: 14px;
  }

  .admin-header {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px 10px !important;
    align-items: center !important;
    padding: 10px 14px !important;
  }

  .admin-header .header-left-group {
    display: contents !important;
  }

  .admin-screen-title {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .admin-header .mobile-menu-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
    background: #E5F4F1 !important;
    color: #176A63 !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
  }

  .admin-header .kiosk-header-top {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  .admin-header-actions {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    margin-left: auto !important;
  }

  .admin-header-actions > .btn-small-action,
  .admin-header-actions > .btn,
  .admin-header-actions .admin-toolbar-action,
  .admin-action-menu summary {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    line-height: 1 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    border-radius: var(--radius-sm) !important;
    vertical-align: middle !important;
    width: auto !important;
  }

  .admin-action-menu summary {
    border: 1px solid var(--border-color) !important;
    background-color: white !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
    list-style: none !important;
  }

  .admin-action-menu summary::-webkit-details-marker {
    display: none !important;
  }

  .kitchen-content-tab {
    min-height: 40px !important;
    padding: 6px 12px !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    touch-action: manipulation !important;
  }

  .admin-header-actions .desktop-only-action,
  .admin-header-actions > .btn-small-action.desktop-only-action,
  .admin-header-actions .admin-toolbar-action.desktop-only-action {
    display: none !important;
  }

  .admin-action-menu-panel .mobile-only-action {
    display: flex !important;
  }

  .admin-action-menu-panel {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 112px);
    left: auto;
    right: 12px;
    width: min(260px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    margin-top: 0;
    max-height: calc(100vh - 136px);
    box-sizing: border-box;
    padding-top: 12px;
    overflow-y: auto;
    z-index: 1000;
  }

  .admin-action-menu-panel .btn-small-action {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #4A5568 !important;
    color: white !important;
    border: none !important;
  }

  .admin-action-menu-panel .mobile-only-action {
    position: static !important;
    inset: auto !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .admin-action-menu-panel .btn-small-action:disabled {
    opacity: 0.6;
  }

  .guest-ops-panel {
    padding: 14px;
  }

  .guest-ops-header {
    align-items: flex-start;
  }

  .guest-ops-title {
    font-size: 18px;
  }

  .guest-ops-status-badge {
    padding: 5px 10px;
    font-size: 14px;
  }

  .guest-ops-info {
    gap: 9px;
    font-size: 14px;
  }

  .guest-ops-status-grid,
  .guest-ops-base-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .guest-ops-setting {
    justify-content: space-between;
    gap: 4px;
    white-space: normal;
    line-height: 1.2;
  }

  .guest-ops-setting > span {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
  }

  .guest-ops-setting-wide {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .guest-ops-setting .admin-inline-input {
    flex: 0 0 56px;
    width: 56px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .guest-ops-setting-wide .admin-inline-input {
    flex: 1;
    width: auto;
  }

  .guest-team-header {
    align-items: stretch;
  }

  .guest-team-title {
    flex: 1 1 160px;
  }

  .guest-team-header .btn-small-action {
    flex: 0 0 auto;
  }

  .guest-team-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .guest-team-meta > label {
    flex: 0 0 auto;
  }

  .guest-team-title-field {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
  }

  .guest-team-title-field > span {
    flex: 0 0 auto;
  }

  .guest-team-title-field .admin-inline-input {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .guest-team-role-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guest-team-message {
    align-items: flex-start;
  }

  .guest-team-message .admin-inline-input {
    width: 100%;
    font-size: 14px;
  }

  .guest-open-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .guest-open-presets > button {
    min-width: 0;
    min-height: 46px;
    padding: 0 6px;
    font-size: 14px;
  }

  .guest-custom-open {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .guest-custom-open > span:first-child,
  .guest-custom-open > span:nth-of-type(2) {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .guest-custom-open > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guest-custom-open .admin-inline-input {
    width: 64px;
  }

  .guest-custom-open .btn-small-action {
    padding: 0 14px;
  }

  .summary-card {
    padding: 14px 12px;
  }

  .summary-card-title {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .summary-card-value {
    font-size: 22px;
    white-space: nowrap;
  }

  .kitchen-content-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }

  .kitchen-content-tab {
    min-height: 44px;
    padding: 6px 14px;
    font-size: 15px;
    flex: 0 0 auto;
  }

  .kitchen-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reviews-load-more {
    width: 100%;
  }
}

.refresh-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  background-color: #E9ECEF;
  padding: 8px 16px;
  border-radius: 8px;
}

.refresh-bar-container {
  width: 100%;
  height: 4px;
  background-color: #DEE2E6;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.refresh-bar {
  height: 100%;
  background-color: var(--secondary-color);
  width: 0%;
  transition: width 1s linear;
}

.kitchen-refresh-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px 0 18px 0;
  padding: 12px 14px;
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.kitchen-refresh-status {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 800;
}

.kitchen-refresh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kitchen-refresh-actions .btn-small-action {
  min-height: 42px;
  padding: 0 14px;
  font-size: 15px;
  white-space: nowrap;
}

.kitchen-refresh-actions #btn-toggle-refresh {
  background-color: #2B2D42;
}

.kitchen-refresh-actions #btn-manual-refresh {
  background-color: #FF9F1C;
}

@media (max-width: 640px) {
  .kitchen-refresh-controls {
    align-items: stretch;
  }

  .kitchen-refresh-actions {
    width: 100%;
  }

  .kitchen-refresh-actions .btn-small-action {
    flex: 1 1 140px;
  }
}

.admin-section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 15px 0 10px 0;
  border-left: 5px solid var(--primary-color);
  padding-left: 10px;
}

.delivery-team-role-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.delivery-team-role-card {
  min-width: 0;
  padding: 10px 12px;
  background-color: #FFFDF5;
  border: 2px solid #FEEBC8;
  border-radius: var(--radius-sm);
  text-align: center;
}

.delivery-team-role-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  margin-bottom: 6px;
  background-color: #FFF3E0;
  border: 1.5px solid var(--primary-color);
  border-radius: 999px;
  color: #E65100;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.delivery-team-role-names {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  word-break: keep-all;
}

/* 관리자 주문 요약 카드 (50:50 균등 분할) */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.summary-card {
  min-width: 0;
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.summary-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-card-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  white-space: nowrap;
}

.order-archive-health {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.order-archive-health.is-warning {
  color: #9A3412;
  background: #FFF7ED;
  border-color: #FDBA74;
}

.order-archive-health.is-critical {
  color: #B91C1C;
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: #F1F3F5;
  font-weight: 700;
  color: var(--text-main);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* 집계 리스트 스타일 */
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.stat-item-name {
  font-size: 18px;
  font-weight: 700;
}

.stat-item-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}

/* 관리자 스크롤 테이블 반응형 래퍼 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
}

/* TTS 토글 스위치 스타일 */
.tts-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #F8F9FA;
  padding: 8px 14px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tts-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  user-select: none;
}

.tts-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.tts-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tts-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CED4DA;
  transition: .2s;
  border-radius: 24px;
}

.tts-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .tts-slider {
  background-color: var(--secondary-color);
}

input:checked + .tts-slider:before {
  transform: translateX(20px);
}

/* 주문 확인 페이지 이미지 스타일 */
.order-item-img-container {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #E9ECEF;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.order-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-emoji-fallback {
  font-size: 36px;
  user-select: none;
}

/* 상단 고정 오버레이 경고 박스 */
.warning-overlay {
  position: absolute;
  top: 130px; /* 헤더 영역(약 114px) 바로 아래 배치 */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 500px; /* 가로화면에서 너무 넓어지는 것 방지 */
  z-index: 90; /* 헤더(z-index: 10)보다 높고, 로딩 오버레이(z-index: 100)보다 낮게 설정 */
  background-color: #FFF0F0;
  border: 3px solid var(--danger-color);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  color: var(--danger-color);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  word-break: keep-all;
  box-shadow: var(--shadow-lg);
  animation: slideDownFadeIn 0.25s ease-out;
}

@keyframes slideDownFadeIn {
  from {
    transform: translate(-50%, -15px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* 주문 확인 화면 반응형 레이아웃 */
.confirm-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 태블릿 및 가로화면 (Landscape) 대응 */
@media (min-width: 768px) or (orientation: landscape) {
  .kiosk-container {
    max-width: 960px;
    margin: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .confirm-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* 데스크톱 등 대형 화면 대응 */
@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ───────────────────────────────────────────────────────────
   동전 아이콘 UI (발달장애인 접근성 개선)
   - 크레딧을 숫자 대신 🪙 + 큰 숫자로 표시
   - 간식 가격을 동전 아이콘 반복으로 표시
─────────────────────────────────────────────────────────── */

/* 이용자 카드 크레딧 배지: 🪙 13 형태 */
.user-card-credit {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  background-color: #FFF3E0;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.user-card-credit .coin-icon {
  font-size: 20px;
  line-height: 1;
}

.user-card-credit .coin-number {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
}

/* 메뉴 헤더 크레딧 배지: 내 동전 🪙 13 */
.credit-badge {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  background-color: #FFF9E6;
  border: 2px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credit-badge .coin-icon {
  font-size: 22px;
}

.credit-badge .coin-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-color);
}

/* 간식 가격 동전 아이콘 표시 */
.snack-coin-price {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.snack-coin-price .coin-emoji {
  font-size: 22px;
  line-height: 1;
  display: inline-block;
}

.snack-coin-price .coin-number-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* 장바구니 합계 동전 표시 */
.cart-summary-total .coin-icon {
  font-size: 20px;
}

.cart-summary-total .coin-number {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-color);
}

/* 주문 확인 계산서 동전 표시 */
.bill-coin-display {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bill-coin-display .coin-icon {
  font-size: 22px;
}

.bill-coin-display .coin-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

.bill-coin-display.highlight .coin-number {
  color: var(--primary-color);
  font-size: 28px;
}

.bill-coin-display.deficit .coin-icon,
.bill-coin-display.deficit .coin-number {
  color: var(--danger-color);
}

/* confirm 페이지 아이템 단가 동전 표시 */
.confirm-item-unit-coin {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.confirm-item-subtotal-coin {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-wrap: wrap;
}

.confirm-item-subtotal-coin .coin-emoji {
  font-size: 18px;
  line-height: 1;
}

/* ───────────────────────────────────────────────────────────
   공통 모달 UI 스타일 (후기 작성 모달 등)
   ─────────────────────────────────────────────────────────── */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.admin-modal-content {
  background-color: white;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid var(--border-color);
  padding-bottom: 12px;
}

.admin-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.admin-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* 유휴 시간 감지 오버레이 스타일 */
.idle-timeout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 45, 66, 0.85); /* --text-main 기반의 심도 있는 어두운 레이어 */
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(8px); /* 글래스모피즘 효과 */
  animation: fadeInOverlay 0.25s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.idle-timeout-box {
  background: var(--card-bg);
  border: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 90%;
  width: 420px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleInBox 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color: var(--text-main);
}

@keyframes scaleInBox {
  from { transform: scale(0.9) translateY(20px); }
  to { transform: scale(1) translateY(0); }
}

.idle-timeout-emoji {
  font-size: 80px;
  margin-bottom: 20px;
  animation: idleBounce 1.2s infinite alternate ease-in-out;
}

@keyframes idleBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-12px) scale(1.05); }
}

.idle-timeout-title {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 16px;
  word-break: keep-all;
  line-height: 1.3;
  color: var(--text-main);
}

.idle-timeout-desc {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: keep-all;
}

.idle-timeout-countdown {
  font-size: 64px;
  font-weight: 950;
  color: var(--primary-color);
  display: inline-block;
  margin-right: 4px;
  animation: scaleNumber 1s infinite alternate;
}

@keyframes scaleNumber {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.idle-timeout-footer {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary-hover);
  border-top: 2.5px dashed var(--border-color);
  padding-top: 24px;
  width: 100%;
  word-break: keep-all;
}

/* 전면 오프라인 오버레이 스타일 (발달장애인 심리적 안정을 위한 디자인) */
.offline-full-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(254, 243, 199, 0.9); /* 따뜻한 파스텔 옐로우/오렌지 반투명 배경 */
  z-index: 9999999; /* 최상단 배치 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  animation: fadeInOverlay 0.25s ease-out forwards;
}

.offline-full-box {
  background: var(--card-bg);
  border: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 90%;
  width: 440px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-main);
  animation: scaleInBox 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.offline-illustration {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: bobbing 1.6s infinite alternate ease-in-out;
}

@keyframes bobbing {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.offline-title {
  font-size: 28px;
  font-weight: 900;
  color: #D97706; /* 따뜻한 오렌지/브라운 톤 */
  margin-bottom: 12px;
  word-break: keep-all;
  line-height: 1.3;
}

.offline-desc {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: keep-all;
  margin-bottom: 24px;
}

.offline-loading-spinner {
  width: 24px;
  height: 24px;
  border: 4px solid #F3F4F6;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.offline-footer {
  font-size: 16px;
  font-weight: 800;
  color: #059669; /* 따뜻한 초록 */
  border-top: 2.5px dashed var(--border-color);
  padding-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.admin-auth-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background-color: #F8FAFC;
  border-bottom: 2px solid var(--border-color);
}

.admin-auth-bar.is-unlocked {
  display: none;
  background-color: #F0FFF4;
  border-bottom-color: #9AE6B4;
}

body.admin-auth-locked .kiosk-container > *:not(.admin-auth-bar) {
  visibility: hidden;
}

.admin-auth-gate-visual {
  display: none;
}

.admin-auth-bar.is-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: 100vw;
  min-height: 100dvh;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 32px 20px;
  background: #F8FAFC;
  border: 0;
  visibility: visible;
}

.admin-auth-bar.is-gate .admin-auth-gate-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.admin-auth-gate-image {
  width: min(220px, 48vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.admin-auth-gate-title {
  color: var(--text-main);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
}

.admin-auth-gate-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
}

.admin-auth-bar.is-gate .admin-auth-info {
  display: none;
}

.admin-auth-bar.is-gate .admin-auth-actions {
  flex: 0 1 auto;
  width: min(360px, 100%);
  min-height: 0;
}

.admin-auth-bar.is-gate .admin-auth-form {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.admin-auth-bar.is-gate .admin-auth-password,
.admin-auth-bar.is-gate .admin-auth-submit {
  width: 100%;
  min-width: 0;
}

.admin-auth-bar.is-gate .admin-auth-submit {
  min-height: 48px;
  font-size: 16px;
}

.admin-auth-bar.is-gate .admin-auth-error {
  position: static;
  width: 100%;
  margin-top: 2px;
  text-align: center;
}

.admin-toolbar-lock {
  min-width: 88px;
  min-height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  background-color: #334155;
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.admin-toolbar-lock:hover,
.admin-toolbar-lock:focus-visible {
  background-color: #1E293B;
  outline: 3px solid rgba(66, 153, 225, 0.3);
  outline-offset: 2px;
}

  .admin-toolbar-spacer {
  display: none;
}

.admin-auth-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  margin-right: auto;
}

.admin-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex: 0 1 410px;
  width: min(410px, 100%);
  min-width: 0;
  min-height: 42px;
}

.admin-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  font-size: 18px;
}

.admin-auth-title {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 900;
}

.admin-auth-status {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-auth-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.admin-auth-form[hidden],
.admin-auth-lock[hidden] {
  display: none !important;
}

.admin-auth-username {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-auth-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-auth-password {
  width: min(260px, 32vw);
  min-width: 180px;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
}

.admin-auth-password:focus {
  border-color: var(--primary-color);
  outline: 3px solid rgba(66, 153, 225, 0.2);
}

.admin-auth-submit,
.admin-auth-lock {
  min-height: 42px;
  width: auto;
  margin: 0;
  padding: 0 14px;
  white-space: nowrap;
}

.admin-auth-error {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  max-width: 100%;
  color: var(--danger-color);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 767px) {
  .admin-auth-bar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .admin-toolbar-lock {
    min-width: 0;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 13px;
    gap: 2px;
  }

  .admin-auth-info {
    width: 36px;
    min-width: 36px;
    flex: 0 0 36px;
    margin-right: 0;
  }

  .admin-auth-info > div {
    display: none;
  }

  .admin-auth-actions {
    flex: 1 1 auto;
    flex-basis: auto;
    width: auto;
    min-height: 42px;
    flex-wrap: wrap;
  }

  .admin-auth-form {
    width: 100%;
    flex: 1 1 100%;
    gap: 6px;
  }

  .admin-auth-password {
    width: auto;
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 10px;
    font-size: 14px;
  }

  .admin-auth-submit,
  .admin-auth-lock {
    min-height: 42px;
    padding: 0 10px;
    font-size: 14px;
  }

  .admin-auth-lock {
    margin-left: auto;
  }

  .admin-auth-error {
    position: static;
    width: 100%;
    flex: 1 1 100%;
    margin-top: 2px;
    text-align: left;
  }

  .admin-auth-bar.is-gate {
    gap: 14px;
    padding: 24px 18px;
  }

  .admin-auth-gate-image {
    width: min(180px, 52vw);
  }

  .admin-auth-gate-description {
    font-size: 14px;
  }

  .admin-auth-bar.is-gate .admin-auth-actions {
    width: min(340px, 100%);
  }
}

/* L자형 어드민 사이드바 & 모바일 드로어 레이아웃 (P56 최적화) */
body.admin-shell-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  background-color: #F8FAFC;
}

.admin-app-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: #F8FAFC;
}

.admin-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 상단 헤더 중복 바로가기 링크 숨김 (사이드바와 중복 방지 및 1줄 슬림 바 유지) */
.kiosk-header .admin-external-links {
  display: none !important;
}

.kiosk-header-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* PC / 데스크톱 뷰 (768px 이상 - 울렁거림 0% 고정 100% 꽉 찬 레이아웃) */
.admin-sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #173F3C;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .admin-main-area .kiosk-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
  }

  .sidebar-close-btn,
  .mobile-menu-btn,
  .mobile-only-action,
  .sidebar-overlay {
    display: none !important;
  }
}

/* 모바일 뷰 (767px 이하) */
@media (max-width: 767px) {
  .admin-app-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background-color: #173F3C;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .admin-sidebar.is-open {
    transform: translateX(280px);
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 22px;
    background: #E5F4F1;
    color: #176A63;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
}

/* 사이드바 내부 구성 요소 및 브랜딩 에셋 */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  color: white;
}

.sidebar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: #CDE5E1;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: #CDE5E1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
}

/* 관리자 화면 전반에서 동일한 배달왔삼 브랜드 액센트를 사용합니다. */
.sidebar-nav-item.admin:hover,
.sidebar-nav-item.admin.is-active,
.sidebar-nav-item.applications:hover,
.sidebar-nav-item.applications.is-active,
.sidebar-nav-item.kitchen:hover,
.sidebar-nav-item.kitchen.is-active,
.sidebar-nav-item.reviews:hover,
.sidebar-nav-item.reviews.is-active {
  color: white;
  background-color: #2FBDB3;
}

.sidebar-nav-badge {
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background-color: #FFF7ED;
  color: #C2410C;
  font-size: 12px;
  font-weight: 900;
}

.sidebar-nav-badge[hidden] {
  display: none;
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #8FB7B2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-left: 4px;
}

.sidebar-external-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-ext-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #D7ECE9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s;
}

.sidebar-ext-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 236, 233, 0.18);
}

.sidebar-app-update,
.sidebar-logout {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(215, 236, 233, 0.2);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-app-update {
  color: #D7ECE9;
}

.sidebar-app-update:hover,
.sidebar-app-update:focus-visible {
  color: #FFFFFF;
  background-color: rgba(47, 189, 179, 0.16);
  border-color: rgba(47, 189, 179, 0.48);
  outline: 2px solid rgba(47, 189, 179, 0.2);
  outline-offset: 2px;
}

.sidebar-app-update:disabled {
  cursor: wait;
  opacity: 0.68;
}

.sidebar-update-status {
  min-height: 18px;
  margin: 7px 4px 10px;
  color: #A9D5D0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sidebar-update-status[hidden] {
  display: none;
}

.sidebar-update-status.is-error {
  color: #FFD0D0;
}

.sidebar-logout {
  margin-top: 8px;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  background-color: rgba(240, 100, 100, 0.18);
  border-color: rgba(240, 100, 100, 0.5);
  outline: 2px solid rgba(240, 100, 100, 0.24);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .admin-header {
    min-height: 0;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto 40px;
    align-items: center;
    gap: 10px;
  }

  .admin-header .header-left-group {
    display: contents;
  }

  .admin-header .admin-screen-title {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  .admin-header .mobile-menu-btn {
    grid-column: 1;
    grid-row: 2;
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .admin-header .kiosk-header-top {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    display: block;
  }

  .admin-header-actions {
    width: 100%;
    height: 40px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .admin-header-actions .admin-toolbar-action,
  .admin-header-actions .admin-action-menu summary {
    min-height: 40px;
  }

  .admin-header-actions::-webkit-scrollbar {
    display: none;
  }

  body.admin-shell-page .admin-header-actions > .btn-small-action,
  body.admin-shell-page .admin-header-actions > .btn,
  body.admin-shell-page .admin-header-actions > .admin-action-menu {
    flex: 0 0 auto;
    width: auto !important;
    min-width: max-content;
  }
}

/* 주방 운영설정: 즉시 실행과 저장형 설정을 명확히 분리합니다. */
.guest-ops-panel {
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.guest-ops-header {
  margin: 0;
  padding: 2px 0 14px;
  border-bottom: 2px solid #DCE8E5;
}

.guest-ops-title {
  color: #203A37;
  font-size: 21px;
  font-weight: 900;
}

.guest-settings-section {
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid #DCE8E5;
}

.guest-settings-section-header,
.guest-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.guest-settings-section-header h3,
.guest-team-header h3 {
  margin: 0;
  color: #244541;
  font-size: 17px;
  font-weight: 900;
}

.guest-order-management .guest-ops-info {
  margin-bottom: 12px;
}

.guest-order-management .guest-ops-status-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.guest-open-presets #btn-guest-open20,
.guest-open-presets #btn-guest-open30,
.guest-open-presets #btn-guest-open60 {
  background-color: #E6F4F1;
  color: #176A63;
  border: 1px solid #B9DCD6;
}

.guest-custom-open {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px dashed #D5E4E1;
}

.guest-custom-open .btn-small-action {
  background-color: #2FBDB3;
  color: #FFFFFF;
  border: 0;
}

.guest-ops-settings-panel {
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.guest-settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 28px;
  border-bottom: 1px solid #DCE8E5;
}

.guest-settings-grid > .guest-settings-section {
  border-bottom: 0;
}

.guest-menu-mode-settings {
  display: grid;
  grid-template-rows: auto auto auto;
}

.guest-menu-mode-settings .guest-settings-section-header {
  grid-row: 1;
}

.guest-menu-mode-settings .guest-mode-segmented {
  grid-row: 2;
}

.guest-menu-mode-settings .guest-event-settings {
  grid-row: 3;
}

.guest-ops-base-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.guest-ops-setting {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  font-weight: 800;
}

.guest-ops-setting .admin-inline-input,
.guest-ops-setting-wide .admin-inline-input {
  width: 100%;
  min-height: 42px;
  text-align: left;
}

.guest-ops-setting-wide {
  grid-column: 1 / -1;
}

.guest-random-display-name-setting {
  gap: 4px;
}

.guest-random-display-name-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.guest-random-name-segmented {
  min-width: 190px;
  max-width: 220px;
}

.guest-random-name-segmented .guest-mode-option {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13.5px;
}

.guest-random-display-name-setting small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.guest-mode-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background-color: #EAF1F0;
  border-radius: var(--radius-sm);
}

.guest-mode-option {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: transparent;
  color: #5B716E;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.guest-mode-option.is-active {
  background-color: #FFFFFF;
  border-color: #B9DCD6;
  color: #176A63;
  box-shadow: 0 1px 4px rgba(23, 63, 60, 0.12);
}

.guest-event-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.guest-team-settings {
  gap: 10px;
  margin: 0;
  padding: 18px 0;
  border-top: 0;
}

.guest-settings-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.guest-settings-save-row .btn-small-action {
  min-width: 160px;
  min-height: 44px;
  background-color: #2FBDB3;
  color: #FFFFFF;
  border: 0;
  font-size: 15px;
  font-weight: 900;
}

.guest-settings-save-row .btn-small-action:disabled {
  background-color: #E2E8F0;
  color: #94A3B8;
  border: 1px solid #CBD5E1;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.delivery-alias-settings {
  margin-top: 16px;
}

.settings-help-text {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.delivery-alias-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delivery-alias-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
}

.delivery-alias-row input[type="text"] {
  min-width: 0;
}

.delivery-alias-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.delivery-alias-field > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.delivery-alias-field .admin-inline-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.delivery-alias-enabled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.delivery-alias-remove {
  min-height: 36px;
  padding: 6px 10px;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  background: #fff5f5;
  color: #b91c1c;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 600px) {
  .delivery-alias-row {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-alias-field {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
  }

  .delivery-alias-enabled,
  .delivery-alias-remove {
    justify-self: stretch;
  }

  .delivery-alias-remove {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .guest-settings-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guest-menu-mode-settings {
    display: block;
  }

  .guest-settings-grid > .guest-settings-section:first-child {
    border-bottom: 1px solid #DCE8E5;
  }

  .guest-order-management .guest-ops-status-grid {
    grid-template-columns: 1fr;
  }

  .guest-custom-open {
    justify-content: flex-start;
  }

  .guest-team-meta {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .guest-team-title-field {
    width: 100%;
  }

  .guest-settings-save-row .btn-small-action {
    width: 100%;
  }
}





