/**
 * 🎨 waitlist-manager.css
 * 호스피스 대기 순번 및 소풍 전광판 모달 스타일
 * 모던 고대비 파스텔 민트 BI & 다크모드 대응
 */

.wl-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: wlFadeIn 0.2s ease-out;
}

.wl-modal-sheet {
  width: 100%;
  max-width: var(--app-max-width, 480px);
  height: 88vh;
  height: 88dvh;
  max-height: 88dvh;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  animation: wlSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

@keyframes wlSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* 닫힘 슬라이드 다운 애니메이션 */
.wl-modal-overlay.closing {
  animation: wlFadeOut 0.2s ease-in forwards;
}

.wl-modal-overlay.closing .wl-modal-sheet {
  animation: wlSlideDown 0.22s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

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

@keyframes wlSlideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

/* 상단 헤더 */
.wl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.wl-header-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-deep, #2d6a4f);
  background: rgba(45, 106, 79, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.wl-header-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.wl-close-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.wl-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 온기 전광판 티커 바 (모던 슬림 알약형 프리미엄) */
.wl-ticker-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.wl-ticker-tag {
  background: #059669;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.wl-ticker-track {
  font-size: 12px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.wl-ticker-time {
  font-size: 11px;
  color: #64748b;
  margin-left: 4px;
}

/* 🕊️ 암환우 가족 집단지성 안심 안내 배너 (소풍 전사 디자인 시스템 SSOT 표준) */
.wl-collective-banner {
  background: var(--color-primary-pale, #E2ECE6) !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

.wl-collective-toggle {
  width: 100% !important;
  padding: 10px 14px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  user-select: none !important;
  transition: background-color 0.15s ease !important;
}

.wl-collective-toggle:hover {
  background: rgba(62, 101, 83, 0.06) !important;
}

.wl-collective-body {
  padding: 12px 14px !important;
  border-top: 1px dashed rgba(62, 101, 83, 0.2) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}





.wl-collective-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 243, 208, 0.6);
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
  word-break: keep-all;
}

.point-dot {
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.wl-collective-footer {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  padding: 7px 10px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.4;
  word-break: keep-all;
}

/* 빈 상태 가이드 */
.wl-empty-guide {
  text-align: center;
  padding: 36px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1.5px dashed #cbd5e1;
  margin-top: 6px;
}

/* 섹션 타이틀 */
.wl-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wl-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.wl-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2d6a4f;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.wl-btn-add:hover {
  background: #1b4332;
}

/* 대기 카드 */
.wl-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.wl-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.wl-card:hover {
  border-color: #cbd5e1;
}

.wl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wl-card-name-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wl-hospital-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: keep-all;
}

.wl-status-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  width: fit-content;
}

.wl-status-tag.waiting {
  background: #fef3c7;
  color: #b45309;
}

.wl-status-tag.admitted {
  background: #d1fae5;
  color: #047857;
}

.wl-card-badge-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.wl-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: -0.01em;
}

.wl-verify-badge.verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.wl-verify-badge.maturing {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.wl-rank-display {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.wl-rank-sub {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.wl-rank-num {
  font-size: 22px;
  font-weight: 900;
  color: #2d6a4f;
  line-height: 1.1;
}

.wl-rank-unit {
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
}

.wl-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
}

/* 2대 다이얼러 액션 그리드 */
.wl-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.wl-btn-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.wl-btn-tel.primary {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wl-btn-tel.primary:hover {
  background: #d1fae5;
}

.wl-btn-tel.secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.wl-btn-tel.secondary:hover {
  background: #f1f5f9;
}

/* 카드 하단 버튼 */
.wl-card-footer-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed #f1f5f9;
  padding-top: 8px;
}

.wl-btn-small {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s;
}

.wl-btn-small:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.wl-btn-small.delete {
  margin-left: auto;
  color: #ef4444;
  border-color: #fecaca;
}

.wl-btn-small.delete:hover {
  background: #fef2f2;
}

/* 순번 이력 타임라인 */
.wl-history-wrap {
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.wl-history-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.wl-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-history-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wl-history-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 5px;
  flex-shrink: 0;
}

.wl-history-content {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  line-height: 1.35;
}

.wl-history-hosp {
  font-weight: 700;
  color: #334155;
}

.wl-history-desc {
  color: #64748b;
}

.wl-history-date {
  font-size: 10px;
  color: #94a3b8;
}

/* 토스트 */
.wl-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.wl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 3단 필터 탭 바 */
.wl-filter-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 12px;
}

.wl-filter-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wl-filter-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 원터치 스텝퍼 버튼 ([-] 진전 / [+] 밀림) */
.wl-rank-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-step-action {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-step-action:active {
  transform: scale(0.92);
}

.btn-step-action.step-down {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.btn-step-action.step-down:hover {
  background: #d1fae5;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-step-action.step-up {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.btn-step-action.step-up:hover {
  background: #ffedd5;
}

.step-sign {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.step-text {
  font-size: 9.5px;
  font-weight: 800;
  margin-top: 1px;
}

/* DPR 병상 회전 속도 및 입원 예측 배너 */
.wl-dpr-prediction-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.dpr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  margin-bottom: 3px;
}

.dpr-label {
  font-weight: 700;
  color: #166534;
}

.dpr-val {
  font-size: 11.5px;
  color: #15803d;
}

.dpr-sub-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

/* 127개 호스피스 전수 검색 모달 */
.wl-hosp-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.wl-hosp-search-box {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.search-box-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-close-search {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
}

.wl-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.wl-search-input:focus {
  border-color: #10b981;
}

.wl-search-results-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-hosp-result-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-hosp-result-item:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.result-item-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.result-item-addr {
  font-size: 11px;
  color: #64748b;
}

/* 인라인 호스피스 등록 뷰 (View B) */
.wl-add-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-add-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.wl-btn-back {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wl-btn-back:hover {
  background: #e2e8f0;
}

.wl-add-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.wl-selected-confirm-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: wlFadeIn 0.2s ease-out;
}

.wl-selected-hosp-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-selected-hosp-title {
  font-size: 15px;
  font-weight: 800;
  color: #166534;
}

.wl-selected-hosp-sub {
  font-size: 11.5px;
  color: #475569;
}

.wl-selected-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

.wl-rank-stepper-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-rank-step {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-rank-step:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.wl-rank-number-val {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  min-width: 44px;
  text-align: center;
}

.wl-btn-submit-case {
  width: 100%;
  background: #2d6a4f;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wl-btn-submit-case:hover {
  background: #1b4332;
}

.wl-btn-submit-case:active {
  transform: scale(0.98);
}

.wl-hosp-result-item.selected {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.wl-add-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}

.wl-inline-search-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

/* 🕊️ 세련된 미니멀 순번 스텝퍼 & 인라인 직접 타이핑 위젯 */
.wl-pure-stepper {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 2px 3px;
  gap: 2px;
  transition: all 0.15s ease;
}

.wl-pure-stepper:focus-within {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.pure-step-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.1s ease;
  user-select: none;
  padding: 0;
  line-height: 1;
}

.pure-step-btn:active {
  transform: scale(0.92);
}

.pure-step-btn.step-down {
  color: #059669;
}

.pure-step-btn.step-down:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.pure-step-btn.step-up {
  color: #d97706;
}

.pure-step-btn.step-up:hover {
  background: #fffbeb;
  border-color: #fde68a;
}

.pure-rank-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.pure-rank-input {
  width: 36px;
  min-width: 36px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pure-rank-input::-webkit-outer-spin-button,
.pure-rank-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pure-rank-unit {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-left: 1px;
}

/* 2단 깔끔 액션 바 */
.wl-clean-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.wl-btn-tel-pure {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2d6a4f;
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}

.wl-btn-tel-pure:hover {
  background: #1b4332;
}

.wl-btn-share-pure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-btn-share-pure:hover {
  background: #e2e8f0;
}

.wl-btn-delete-pure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.wl-btn-delete-pure:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}

.btn-direct-add-hosp.already {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
  cursor: default;
}

.btn-direct-add-hosp.already:hover {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
}

/* 💾 스텝퍼 우측 변경사항 저장 버튼 */
.wl-stepper-save-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.wl-btn-save-rank {
  height: 28px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wl-btn-save-rank:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

.wl-btn-save-rank:active {
  transform: scale(0.95);
}

/* 127개 목록 내 1터치 바로 등록 버튼 */
.wl-hosp-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.15s ease;
}

.wl-hosp-result-item:hover {
  border-color: #86efac;
  background: #f0fdf4;
}

.wl-hosp-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 10px;
}

.btn-direct-add-hosp {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-direct-add-hosp:hover {
  background: #2d6a4f;
  color: #ffffff;
  border-color: #2d6a4f;
}

/* ⭐ 관심 병원 등록 버튼 */
.btn-toggle-favorite {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-toggle-favorite:hover {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.btn-toggle-favorite.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
  font-weight: 800;
}

/* 관심 병원 탭 내 전용 카드 */
.wl-favorite-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.wl-favorite-card:hover {
  border-color: #cbd5e1;
}

.wl-fav-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wl-fav-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.wl-btn-fav-transfer {
  flex: 1;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.wl-btn-fav-transfer:hover {
  background: #2d6a4f;
  color: #ffffff;
  border-color: #2d6a4f;
}

.wl-btn-fav-remove {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-btn-fav-remove:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* ⏱️ 각 병원 카드 내 접이식(아코디언) 타임라인 */
.wl-card-history-section {
  margin-top: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.wl-card-history-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-card-history-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.wl-card-history-body {
  margin-top: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: wlFadeIn 0.2s ease-out;
}

.wl-card-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.wl-card-history-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 🌟 최초 접수 시작점 전용 배지 및 행 스타일 */
.wl-card-history-row.is-initial-log {
  background: #f0fdf4;
  border-radius: 6px;
  padding: 4px 6px;
  border-bottom: none;
  margin-top: 2px;
}

.wl-log-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.wl-initial-badge {
  font-size: 9.5px;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  line-height: 1.2;
}

/* 🕊️ 최초 대기 등록 순번 입력 미니 모달 */
.wl-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: wlFadeIn 0.2s ease-out;
}

.wl-prompt-card {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: wlSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wl-prompt-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wl-prompt-icon {
  font-size: 24px;
  line-height: 1;
}

.wl-prompt-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-prompt-hospital {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.wl-prompt-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage-deep, #2d6a4f);
}

.wl-prompt-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.wl-prompt-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 14px;
  gap: 6px;
  transition: all 0.15s ease;
}

.wl-prompt-input-row:focus-within {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.wl-prompt-input {
  width: 90px;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}

.wl-prompt-input::-webkit-outer-spin-button,
.wl-prompt-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wl-prompt-unit {
  font-size: 15px;
  font-weight: 800;
  color: #475569;
}

.wl-prompt-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.wl-prompt-btn-cancel {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-prompt-btn-cancel:hover {
  background: #e2e8f0;
}

.wl-prompt-btn-confirm {
  flex: 2;
  background: var(--sage-deep, #2d6a4f);
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25);
}

.wl-prompt-btn-confirm:hover {
  background: #1b4332;
}

/* 🍞 토스트 메시지 z-index 최상위 보장 */
.wl-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.wl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 📋 개별 대기 카드 신규 고도화 스타일 */
.wl-card.is-imminent-card {
  border-color: #fca5a5;
  background: #fffdfd;
}

.wl-card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
}

.wl-last-check-badge {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.wl-badge-imminent {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  animation: wlPulse 2s infinite;
}

@keyframes wlPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

.wl-room-tag {
  font-size: 10px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 📊 직관적 진척도 프로그레스 바 */
.wl-progress-track-wrap {
  margin: 10px 0 10px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}

.wl-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.wl-progress-current {
  color: #059669;
  font-weight: 800;
}

.wl-progress-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
}

.wl-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.wl-progress-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3px solid #059669;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* 🚨 입원 임박 골든타임 알림 박스 */
.wl-imminent-alert-box {
  background: linear-gradient(135deg, #fff1f2, #fff5f5);
  border: 1.5px solid #fecaca;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.wl-imminent-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wl-imminent-icon {
  font-size: 15px;
}

.wl-imminent-title {
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c;
}

.wl-imminent-desc {
  font-size: 11.5px;
  color: #991b1b;
  line-height: 1.45;
  margin-bottom: 10px;
}

.wl-imminent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-goto-ambulance, .btn-goto-docs {
  flex: 1;
  min-width: 140px;
  background: #ffffff;
  border: 1.2px solid #f87171;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
}

.btn-goto-ambulance:hover, .btn-goto-docs:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   [REQ-37] 입원 대기 전주기 4대 안심 알람 & 환승 스타일
   ───────────────────────────────────────────────────────────── */

/* [알람 1] 3일 주기 유선 재확인 배너 */
.wl-alarm-3day-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.05);
}

.wl-alarm-3day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.wl-alarm-3day-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wl-alarm-3day-badge {
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 6px;
}

.wl-alarm-3day-time {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
}

.wl-alarm-3day-target {
  font-size: 12.5px;
  color: #78350f;
  font-weight: 700;
}

.wl-alarm-3day-desc {
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 10px;
}

.wl-alarm-3day-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wl-btn-alarm-call {
  flex: 1;
  min-width: 140px;
  background: #d97706;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.wl-btn-alarm-call:hover {
  background: #b45309;
  color: #ffffff;
}

.wl-btn-alarm-postpone {
  background: #ffffff;
  border: 1px solid #d97706;
  color: #b45309;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-btn-alarm-postpone:hover {
  background: #fef3c7;
}

/* [알람 3] 보호자 필독: 외래 수칙 3계명 가이드 배너 (아코디언/하모니카 접이식) */
details.wl-golden-rules-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

details.wl-golden-rules-card summary.wl-golden-rules-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

details.wl-golden-rules-card summary.wl-golden-rules-summary::-webkit-details-marker {
  display: none;
}

.wl-golden-rules-header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wl-golden-rules-toggle-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wl-golden-rules-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
}

.wl-golden-rules-arrow {
  font-size: 11px;
  color: #16a34a;
  font-weight: 700;
  transition: transform 0.2s ease;
}

details[open].wl-golden-rules-card .wl-golden-rules-arrow {
  transform: rotate(180deg);
}

.wl-golden-rules-tag {
  font-size: 10.5px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 2px 7px;
  border-radius: 5px;
}

.wl-golden-rules-title {
  font-size: 13px;
  font-weight: 800;
  color: #14532d;
}

.wl-golden-rules-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #bbf7d0;
}

.wl-golden-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dcfce7;
  padding: 8px 10px;
  border-radius: 8px;
}

.wl-golden-rule-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.wl-golden-rule-text {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.45;
}

.wl-golden-rule-text strong {
  display: block;
  color: #0f172a;
  margin-bottom: 2px;
}

.wl-golden-rule-text p {
  color: #475569;
  margin: 0;
  font-size: 11px;
}

/* [알람 2] 내원 D-1 필수 서류 모달 */
.wl-d1-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-d1-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wl-d1-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wl-d1-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 5px;
  width: fit-content;
}

.wl-d1-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.wl-d1-btn-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.wl-d1-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.wl-d1-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-d1-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-d1-check-item:hover {
  background: #f1f5f9;
}

.wl-d1-check-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #059669;
}

.wl-d1-check-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-d1-check-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.wl-d1-check-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.wl-d1-btn-wrap {
  margin-top: 6px;
}

.wl-d1-btn-done {
  width: 100%;
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-d1-btn-done:hover {
  background: #047857;
}

/* [입원 완료] 액션 버튼 및 배지 */
.wl-btn-admit-pure {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wl-btn-admit-pure:hover {
  background: #059669;
  color: #ffffff;
}

.wl-btn-admitted-badge {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0d9488;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   [REQ-37-2 / REQ-37-3] 외래 내원 예약일 & A안 입체 캘린더 배너 스타일
   ───────────────────────────────────────────────────────────── */

.wl-fav-appt-row {
  margin: 6px 0 10px 0;
  width: 100%;
}

/* 예약 전: A안 입체 캘린더 하이라이트 배너 바 */
.wl-appt-banner-pre {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.06);
}

.wl-appt-banner-pre:hover {
  border-color: #059669;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.12);
  transform: translateY(-1px);
}

.wl-appt-banner-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.wl-appt-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #dcfce7;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wl-appt-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wl-appt-title-main {
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
  letter-spacing: -0.01em;
}

.wl-appt-title-sub {
  font-size: 11px;
  color: #047857;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-appt-arrow-pill {
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* 예약 후: 날짜 + D-day + 메모 말풍선 복합 카드 */
.wl-appt-banner-post {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
}

.wl-appt-banner-post.dday-future {
  background: #f0fdf4;
  border-color: #86efac;
}

.wl-appt-banner-post.dday-d1 {
  background: #fef2f2;
  border-color: #fca5a5;
}

.wl-appt-banner-post.dday-today {
  background: #f0fdf4;
  border-color: #059669;
}

.wl-appt-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wl-appt-post-date-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.wl-appt-icon-box.booked {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #dcfce7;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-appt-date-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.wl-appt-dday-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.wl-appt-dday-badge.dday-future {
  background: #dcfce7;
  color: #15803d;
}

.wl-appt-dday-badge.dday-d1 {
  background: #fee2e2;
  color: #b91c1c;
  animation: pulse 1.8s infinite;
}

.wl-appt-dday-badge.dday-today {
  background: #059669;
  color: #ffffff;
}

.wl-appt-dday-badge.dday-past {
  background: #f1f5f9;
  color: #64748b;
}

.wl-btn-edit-appt {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.wl-btn-edit-appt:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 📝 메모 말풍선 배지 */
.wl-appt-note-bubble {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.4;
}

.wl-appt-note-icon {
  color: #059669;
  margin-top: 1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.wl-appt-note-text {
  font-weight: 600;
  word-break: break-all;
}

/* D-1 긴급 알림 띠 */
.wl-appt-d1-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fee2e2;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
  margin-top: 2px;
}

.wl-btn-d1-quick {
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* 모달 전용 텍스트 인풋 정상화 스타일 */
.wl-appt-text-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
  font-family: inherit;
}

.wl-appt-text-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
  background: #ffffff;
}

/* 📑 관심 병원 상단 내일(D-1) 외래 내원 긴급 서류 챙김 배너 */
.wl-d1-urgent-banner {
  background: #fef2f2;
  border: 1.5px solid #f87171;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.wl-d1-urgent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.wl-d1-urgent-tag {
  font-size: 10.5px;
  font-weight: 800;
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wl-d1-urgent-title {
  font-size: 13px;
  color: #7f1d1d;
}

.wl-d1-urgent-desc {
  font-size: 11.5px;
  color: #991b1b;
  line-height: 1.5;
  margin-bottom: 10px;
}

.wl-btn-d1-open-modal {
  width: 100%;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wl-btn-d1-open-modal:hover {
  background: #b91c1c;
}
