/* Diş Paketi 2 (29 Eki 2026) — yalnız kendi sınıfları (d2-*), mevcut tema değişkenleriyle. */
.d2-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.d2-tabs button { border: 1px solid var(--line-2, #d2dde2); background: var(--surface, #fff); color: var(--ink, #142338); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.d2-tabs button.on { background: var(--brand, #0e9488); border-color: var(--brand, #0e9488); color: #fff; }
.d2-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.d2-err:empty { display: none; }
.d2-warn { background: #fff7e6; border: 1px solid #f5d69a; color: #7a4b00; border-radius: 10px; padding: 9px 12px; margin: 0 0 14px; font-size: 13.5px; }
.d2-ok { color: #0c7a54; font-size: 13.5px; padding: 4px 0; }
.d2-note { font-size: 13.5px; margin: 6px 0; }
.d2-chk { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0; }
.d2-chk input { width: auto; }
.d2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.d2-kpis > div { background: var(--surface, #fff); border: 1px solid var(--line, #e2eaed); border-radius: 12px; padding: 12px 14px; }
.d2-kpis b { display: block; font-size: 22px; color: var(--ink, #142338); }
.d2-kpis span { font-size: 12.5px; color: var(--muted, #72818f); }
.d2-var { cursor: pointer; background: var(--brand-soft, #e7f2f8); border-radius: 6px; padding: 1px 6px; margin: 2px; display: inline-block; font-size: 12px; }
.d2-pv { max-height: 260px; overflow: auto; border: 1px solid var(--line, #e2eaed); border-radius: 10px; padding: 8px 10px; display: grid; gap: 8px; }
.d2-pick { position: relative; }
.d2-pick-r { position: absolute; z-index: 5; left: 0; right: 0; background: var(--surface, #fff); border: 1px solid var(--line, #e2eaed); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.d2-pick-r:empty { display: none; }
.d2-pick-r button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--ink, #142338); }
.d2-pick-r button:hover { background: var(--brand-soft, #e7f2f8); }
.d2-days { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.d2-days label { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.d2-days input { width: auto; }
.d2-slot { border: 1px solid var(--line, #e2eaed); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.d2-slot.dolu { opacity: .75; }
.d2-slot-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.d2-slot-h .btn { margin-left: auto; }
.d2-match { display: grid; gap: 4px; margin: 6px 0 8px; }
.d2-match label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.d2-match input { width: auto; }
.d2-case { border: 1px solid var(--line, #e2eaed); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: var(--surface, #fff); }
.d2-case-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.d2-bar { height: 6px; background: var(--bg-2, #e5edf0); border-radius: 99px; overflow: hidden; min-width: 80px; }
.d2-bar.big { height: 8px; margin: 6px 0 2px; }
.d2-bar i { display: block; height: 100%; background: var(--brand, #0e9488); }
.d2-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.d2-packs label { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line, #e2eaed); border-radius: 10px; padding: 6px 10px; font-weight: 500; }
.d2-packs input { width: 70px; }
.d2-rights { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.d2-rights > div { border: 1px solid var(--line, #e2eaed); border-radius: 10px; padding: 6px 10px; min-width: 120px; }
.d2-rights > div.none { opacity: .55; }
.d2-rights b { font-size: 18px; }
.d2-rights span { display: block; font-size: 12.5px; color: var(--muted, #72818f); }
.d2-item { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.d2-item select { flex: 1; min-width: 0; }
.d2-item input { width: 70px; }
.d2-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 14px; margin: 8px 0 12px; }
.d2-map label { display: grid; gap: 3px; font-weight: 500; font-size: 13px; }
.d2-sample td, .d2-sample th { white-space: nowrap; font-size: 12.5px; }
.d2-code { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; margin: 8px 0; }
.d2-radio { display: block; border: 1px solid var(--line, #e2eaed); border-radius: 10px; padding: 10px 12px; margin: 8px 0; cursor: pointer; }
.d2-radio input { width: auto; margin-right: 6px; }
.d2-tn { display: inline-block; min-width: 34px; text-align: center; border: 1px solid var(--line-2, #d2dde2); border-radius: 6px; padding: 1px 4px; margin: 0 2px; font-weight: 600; }
.d2-xv { margin-left: auto; }
.d2-off { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 9999; background: #1f2937; color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 24px); text-align: center; }
.d2-off[hidden] { display: none; }

/* Gelişmiş röntgen görüntüleyici */
.d2v { position: fixed; inset: 0; z-index: 10000; background: #05080a; color: #e5e7eb; display: flex; flex-direction: column; }
.d2v-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; background: #0f172a; border-bottom: 1px solid #1f2937; }
.d2v-t { margin-right: 8px; font-size: 14px; }
.d2v-bar label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #cbd5e1; }
.d2v-bar input[type=range] { width: 120px; }
.d2v-bar button { border: 1px solid #334155; background: #111827; color: #e5e7eb; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13.5px; cursor: pointer; min-width: 36px; }
.d2v-bar button.on, .d2v-bar button.pri { background: #0e9488; border-color: #0e9488; color: #fff; }
.d2v-main { flex: 1; display: flex; min-height: 0; }
.d2v-main canvas { flex: 1; min-width: 0; touch-action: none; cursor: grab; }
.d2v-side { width: 250px; border-left: 1px solid #1f2937; padding: 10px; overflow: auto; font-size: 13px; }
.d2v-info { color: #94a3b8; margin-bottom: 10px; }
.d2v-mk { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid #1f2937; }
.d2v-mk button { border: 0; background: none; color: #f87171; font-size: 16px; cursor: pointer; }
@media (max-width: 760px) {
  .d2v-side { display: none; }
  .d2v-bar input[type=range] { width: 80px; }
}

/* Girişsiz "erken yer" sayfası */
body.d2pub { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #eef3f5; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #142338; padding: 16px; box-sizing: border-box; }
.d2pub-card { background: #fff; border-radius: 16px; padding: 26px 22px; max-width: 420px; width: 100%; box-shadow: 0 10px 30px rgba(20,35,56,.08); }
.d2pub-card h1 { font-size: 21px; margin: 4px 0 14px; }
.d2pub-clinic { color: #0e9488; font-weight: 600; margin: 0; }
.d2pub-slot { display: grid; gap: 2px; background: #f3f8fa; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.d2pub-slot b { font-size: 18px; }
.d2pub-slot span { color: #46524f; font-size: 14px; }
.d2pub-btn { width: 100%; border: 0; border-radius: 12px; background: #0e9488; color: #fff; font: 600 16px system-ui, sans-serif; padding: 14px; cursor: pointer; }
.d2pub-muted { color: #72818f; font-size: 13.5px; }
