/* DentCell — WhatsApp hasta mesajlaşması */
.wa-badge { position: absolute; bottom: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 0.66rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff; }

/* bildirim paneli bölümü */
.wa-notif-section { border-bottom: 1px solid #f1f5f9; padding: 8px 8px 6px; }
.wa-sec-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; color: #16a34a; font-size: 0.8rem; }
.wa-sec-head strong { color: #0f172a; flex: 1; }
.wa-open-all { border: none; background: #f0fdf4; color: #15803d; font: inherit; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.wa-sec-list { display: flex; flex-direction: column; gap: 2px; }
.wa-sec-empty { padding: 14px; text-align: center; color: #94a3b8; font-size: 0.78rem; }
.wa-sec-item, .wa-conv { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: none; background: transparent; border-radius: 10px; cursor: pointer; font: inherit; text-align: left; }
.wa-sec-item:hover, .wa-conv:hover { background: #f8fafc; }
.wa-sec-item.unread b, .wa-conv.unread b { color: #15803d; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; }
.wa-avatar.lg { width: 40px; height: 40px; font-size: 0.85rem; }
.wa-sec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-sec-body b { font-size: 0.8rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-sec-body small { font-size: 0.72rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-sec-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.66rem; color: #94a3b8; flex-shrink: 0; }
.wa-sec-meta i { font-style: normal; background: #16a34a; color: #fff; border-radius: 999px; min-width: 18px; padding: 1px 6px; font-weight: 800; text-align: center; }

/* sohbet penceresi */
.wa-drawer-wrap { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, 0.35); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: waFade .18s ease; }
@keyframes waFade { from { opacity: 0; } to { opacity: 1; } }
.wa-drawer { width: min(860px, 100vw); height: 100%; background: #fff; display: grid; grid-template-columns: 290px 1fr; box-shadow: -20px 0 50px rgba(15, 23, 42, 0.2); animation: waSlide .22s cubic-bezier(.16,1,.3,1); }
@keyframes waSlide { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.wa-side { border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; min-height: 0; background: #fbfdfc; }
.wa-side-head { display: flex; align-items: center; gap: 8px; padding: 16px; color: #16a34a; border-bottom: 1px solid #eef2f7; }
.wa-side-head strong { color: #0f172a; flex: 1; font-size: 1rem; }
.wa-close { border: none; background: #f1f5f9; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: #475569; font-size: 0.85rem; }
.wa-conv-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.wa-conv.active { background: #dcfce7; }
.wa-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 0.72rem; padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; }
.wa-main { display: flex; flex-direction: column; min-height: 0; background: #efeae2; }
.wa-main-empty { margin: auto; text-align: center; color: #64748b; font-size: 0.85rem; }
.wa-main-empty svg { width: 46px; height: 46px; color: #16a34a; }
.wa-main-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f0f2f5; border-bottom: 1px solid #e2e8f0; }
.wa-main-head div { flex: 1; display: flex; flex-direction: column; }
.wa-main-head b { font-size: 0.92rem; color: #0f172a; }
.wa-main-head small { font-size: 0.72rem; color: #64748b; }
.wa-remind-btn { border: 1px solid #bbf7d0; background: #fff; color: #15803d; font: inherit; font-size: 0.75rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.wa-remind-btn:hover { background: #f0fdf4; }
.wa-thread { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.wa-msg { max-width: 72%; padding: 7px 10px 5px; border-radius: 10px; font-size: 0.84rem; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-msg.failed { background: #fee2e2; }
.wa-text { line-height: 1.4; word-wrap: break-word; }
.wa-meta { font-size: 0.64rem; color: #667781; text-align: right; margin-top: 2px; }
.wa-read { color: #53bdeb; }
.wa-failed { color: #dc2626; font-weight: 800; }
.wa-err { font-size: 0.68rem; color: #b91c1c; margin-top: 4px; }
.wa-tag { display: inline-block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; background: #e0f2fe; color: #0369a1; margin-bottom: 4px; }
.wa-tag-confirm { background: #dcfce7; color: #15803d; }
.wa-tag-postpone { background: #fef3c7; color: #b45309; }
.wa-tag-doctor { background: #ede9fe; color: #6d28d9; }
.wa-hint { margin: 0 16px 8px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 0.72rem; padding: 7px 10px; border-radius: 10px; }
.wa-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; background: #f0f2f5; }
.wa-input { flex: 1; resize: none; border: none; border-radius: 20px; padding: 10px 14px; font: inherit; font-size: 0.86rem; max-height: 120px; outline: none; background: #fff; }
.wa-send-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: #16a34a; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wa-send-btn:disabled { opacity: .5; }

/* hasta dosyası kartı ve randevu etiketi */
.wa-profile-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, #f0fdf4, #ecfeff); border: 1px solid #bbf7d0; }
.wa-profile-icon { width: 52px; height: 52px; border-radius: 16px; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-profile-icon svg { width: 28px; height: 28px; }
.wa-reply-tag { margin-top: 4px; font-size: 0.66rem; font-weight: 700; color: #15803d; }
.wa-reply-postpone { color: #b45309; }
.wa-reply-doctor { color: #6d28d9; }

@media (max-width: 760px) {
  .wa-drawer { grid-template-columns: 1fr; }
  .wa-side { max-height: 34vh; border-right: none; border-bottom: 1px solid #e2e8f0; }
  .wa-msg { max-width: 88%; }
}

/* WhatsApp tarzı iletim işaretleri */
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.wa-tick { flex: none; display: inline-block; vertical-align: -1px; color: #8696a0; }
.wa-tick.read { color: #53bdeb; }
