/* DentCell — tedavi planı sunumları: oluşturma penceresi ve satış takibi paneli */
.pl-modal-bg { position: fixed; inset: 0; z-index: 9000; background: rgba(15, 23, 42, .42); display: flex; align-items: center; justify-content: center; padding: 16px; animation: plFade .2s ease; }
@keyframes plFade { from { opacity: 0; } }
.pl-modal { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); animation: plUp .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes plUp { from { transform: translateY(16px); opacity: 0; } }
.pl-mh { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.pl-mh h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.pl-mh p { margin: 4px 0 0; font-size: .82rem; color: #64748b; }
.pl-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 20px; line-height: 1; cursor: pointer; color: #475569; flex: none; }
.pl-mb { padding: 12px 22px; }
.pl-mf { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 22px 20px; flex-wrap: wrap; }
.pl-warn { background: #fef3c7; color: #92400e; border-radius: 12px; padding: 10px 12px; font-size: .82rem; margin-bottom: 10px; }
.pl-warn.soft { background: #f8fafc; color: #475569; }
.pl-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pl-sum div { background: linear-gradient(180deg, #f5f3ff, #eef2ff); border-radius: 14px; padding: 10px 12px; }
.pl-sum small { display: block; font-size: .7rem; color: #6b7280; font-weight: 600; }
.pl-sum b { font-size: 1.05rem; color: #1e1b4b; }
.pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-grid label, .pl-full { display: flex; flex-direction: column; gap: 5px; font-size: .74rem; font-weight: 700; color: #475569; }
.pl-full { margin-top: 12px; }
.pl-grid select, .pl-grid input, .pl-full textarea { font: inherit; font-size: .88rem; font-weight: 500; padding: 9px 11px; border: 1px solid #dbe2ea; border-radius: 10px; background: #fff; color: #0f172a; }
.pl-full textarea { resize: vertical; line-height: 1.45; }
.pl-chips { display: flex; gap: 6px; }
.pl-chip { flex: 1; padding: 8px 0; border: 1px solid #dbe2ea; border-radius: 10px; background: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: #475569; }
.pl-chip.on { background: #6c5ce7; border-color: #6c5ce7; color: #fff; }
.pl-row { display: flex; gap: 14px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pl-photo { display: flex; gap: 10px; align-items: center; cursor: pointer; flex: 1; min-width: 220px; }
.pl-photo small { display: block; font-size: .72rem; color: #64748b; }
.pl-photo b { font-size: .84rem; color: #0f172a; }
.pl-ph { width: 56px; height: 56px; border-radius: 14px; border: 1.5px dashed #c7d2fe; display: grid; place-items: center; color: #6c5ce7; font-size: 22px; background: #f5f3ff center / cover no-repeat; flex: none; }
.pl-ph.has { border-style: solid; }
.pl-checks { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: #334155; }
.pl-checks label { display: flex; gap: 7px; align-items: center; cursor: pointer; }
.pl-checks input { accent-color: #6c5ce7; width: 16px; height: 16px; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; font: inherit; font-size: .86rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #7b6cf0, #5a49d6); cursor: pointer; text-decoration: none; }
.pl-btn:disabled { opacity: .55; cursor: default; }
.pl-btn.ghost { background: #f1f5f9; color: #0f172a; }
.pl-btn.wa { background: #10b981; }
.pl-done { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 26px; display: grid; place-items: center; margin: 4px auto 14px; }
.pl-link { display: flex; gap: 8px; }
.pl-link input { flex: 1; min-width: 0; font: inherit; font-size: .82rem; padding: 9px 11px; border: 1px solid #dbe2ea; border-radius: 10px; background: #f8fafc; color: #334155; }
@media (max-width: 560px) { .pl-grid { grid-template-columns: 1fr; } .pl-sum { grid-template-columns: 1fr 1fr; } }

.pl-panel { display: flex; flex-direction: column; gap: 14px; }
.pl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pl-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.pl-head p { margin: 4px 0 0; font-size: .82rem; color: #64748b; max-width: 620px; }
.pl-seg, .pl-filter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #eef2f7; }
.pl-seg button, .pl-filter button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font: inherit; font-size: .78rem; font-weight: 700; color: #475569; cursor: pointer; }
.pl-seg button.on, .pl-filter button.on { background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.pl-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pl-kpi { background: #fff; border: 1px solid #edf1f6; border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .3); }
.pl-kpi small { display: block; font-size: .72rem; color: #64748b; font-weight: 700; }
.pl-kpi b { display: block; font-size: 1.55rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.pl-kpi span { font-size: .74rem; color: #94a3b8; }
.pl-kpi.accent { background: linear-gradient(160deg, #6c5ce7, #4f46e5); border: 0; }
.pl-kpi.accent small, .pl-kpi.accent span { color: rgba(255, 255, 255, .8); }
.pl-kpi.accent b { color: #fff; }
.pl-funnel { background: #fff; border: 1px solid #edf1f6; border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; }
.pl-funnel div { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: .8rem; color: #475569; font-weight: 600; }
.pl-funnel i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #a5b4fc, #6c5ce7); transition: width .5s; }
.pl-funnel i.ok { background: linear-gradient(90deg, #6ee7b7, #10b981); }
.pl-funnel b { text-align: right; color: #0f172a; }
.pl-sec { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; font-weight: 800; color: #0f172a; margin-top: 4px; }
.pl-table-wrap { background: #fff; border: 1px solid #edf1f6; border-radius: 18px; overflow: auto; }
.pl-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.pl-table th { text-align: left; padding: 10px 14px; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; background: #f8fafc; white-space: nowrap; }
.pl-table td { padding: 11px 14px; border-top: 1px solid #f1f5f9; color: #334155; vertical-align: top; }
.pl-table td b { color: #0f172a; }
.pl-table td small { display: block; font-size: .72rem; color: #94a3b8; margin-top: 1px; }
.pl-table .r { text-align: right; }
.pl-note { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6c5ce7 !important; font-style: italic; }
.pl-rate { display: inline-block; width: 60px; height: 6px; border-radius: 4px; background: #eef2f7; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.pl-rate i { display: block; height: 100%; background: #6c5ce7; }
.pl-st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.pl-st-sent { background: #eef2ff; color: #4338ca; } .pl-st-viewed { background: #fef3c7; color: #92400e; } .pl-st-ok { background: #dcfce7; color: #15803d; }
.pl-st-no { background: #fee2e2; color: #b91c1c; } .pl-st-off { background: #f1f5f9; color: #64748b; }
.pl-act { white-space: nowrap; }
.pl-act button, .pl-act a, .pl-act select { font: inherit; font-size: .74rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; text-decoration: none; margin-left: 4px; }
.pl-empty { background: #fff; border: 1px dashed #dbe2ea; border-radius: 18px; padding: 26px; text-align: center; color: #94a3b8; font-size: .85rem; }
.pl-skel { height: 110px; border-radius: 18px; background: linear-gradient(90deg, #f1f5f9, #f8fafc, #f1f5f9); background-size: 200% 100%; animation: plSk 1.2s infinite; }
@keyframes plSk { to { background-position: -200% 0; } }
@media (max-width: 1100px) { .pl-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pl-kpis { grid-template-columns: 1fr 1fr; } .pl-funnel div { grid-template-columns: 74px 1fr 30px; } }

/* hasta dosyası: sunum geçmişi */
.pl-hist { margin-bottom: 14px; }
.pl-hrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.pl-hmain b { font-size: .88rem; color: #0f172a; } .pl-hmain small { display: block; font-size: .74rem; color: #64748b; margin-top: 2px; }
.pl-hmain small.pl-ok, .pl-hact .pl-ok { color: #15803d; font-weight: 600; }
.pl-hmain .pl-note { color: #6c5ce7; font-style: italic; }
.pl-hact { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pl-hact .ob-btn { text-decoration: none; }
.pl-more { margin-top: 8px; border: 0; background: none; color: #1d6fe0; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 6px 0; }
