/*
 * Nöbet dökümü — yeni görünüm seti (inc/dokum/views/app): kırmızı başlık + kart listesi, alttan açılan yazdırma sayfası,
 * nöbetçi eczane web sayfası düzeninde bölge haritası.
 *
 * Token'lar nöbetçi eczane web'inin (nobetci-eczane/yeni/css/tokens.css) KOPYASIDIR (döküm web dosyalarına bağlanmaz);
 * web token'ı değişirse buradaki eşi elle güncellenir. Döküme özgü olanlar "döküm" başlığı altında. Bileşenler sabit renk yazmaz.
 * Kırılım: ≤ 860 px dar ekran (bölge açılır seçim, gün şeridi kayar, tek sütun kart; haritada harita üstte, liste altta).
 */

/* Poppins — web/mobil ile aynı dosyalar (SIL Open Font License 1.1). */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins/Poppins-Bold.ttf") format("truetype"); }

:root {
  /* web tokens.css (AppTheme) */
  --red: #C80C0F;
  --hero-top: #DA1A1F;
  --ink: #303030;
  --header-bg: color-mix(in srgb, var(--red) 85%, var(--ink));
  --blue: #1D70B7;
  --green: #118118;
  --bg: #F4F5F7;
  --white: #FFFFFF;
  --muted: #6B7280;
  --muted-2: #8A9099;
  --chev: #9CA3AF;
  --idle: #F7F7F8;
  --line: #ECEEF1;
  --border: #E3E5E8;
  --border-hover: #C9CDD3;
  --handle: #D8DCE2;
  --green-soft: rgba(17, 129, 24, .10);
  --green-ring: rgba(17, 129, 24, .16);
  --blue-soft: rgba(29, 112, 183, .08);
  --red-soft: rgba(200, 12, 15, .06);
  /* AppRadius / AppShadows / AppMotion */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-sheet: 32px; --r-pill: 999px; --r-card: 20px;
  --sh-soft: 0 2px 6px rgba(0, 0, 0, .08);
  --sh-floating: 0 6px 18px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .04);
  --sh-card: 0 4px 16px rgba(0, 0, 0, .06);
  --sh-list: 0 2px 8px rgba(0, 0, 0, .06);
  --sh-modal: 0 24px 64px rgba(0, 0, 0, .28);
  --scrim: rgba(17, 20, 24, .45);
  --t-fast: 160ms;
  --t-sheet: 480ms;
  --ease: ease;
  --ease-sheet: cubic-bezier(.215, .61, .355, 1);
  --t-screen: 380ms;            /* liste ↔ harita geçişi (js/dokum/app.js View Transitions) */
  --screen-shift: 56px;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 64px;
  --desk-panel-w: 440px;

  /* döküm */
  --faint: #9AA0A8;
  --red-tint: #FDE8E8;          /* kendi bölge etiketi, seçili bölge (taslak E) */
  --map-land: #F6F3EE;          /* harita yüklenene kadar zemin (web map-shell) */
  --side: 290px;                /* bölge listesi */
  --gut: 28px;                  /* sayfa kenarı */
  --hero-pull: 92px;            /* bölge listesi + gün şeridi başlığın üstüne biner; şerit dururken başlığın içinde, altında ~18 px kırmızı pay */
  /* Bölge listesinin sayfadaki başlangıcı = bar + başlık + boşluk (hero-pull'dan bağımsız); liste ekranın kalanına sığar. */
  --list-bar-h: 68px;
  --title-h: 69px;
  --hero-gap: 20px;
  --days-glass: rgba(244, 245, 247, .82);   /* yapışık gün şeridi buğulu zemini = --bg tonu, yarı saydam */
  --days-bleed: 10px;
  --body-end: 32px;             /* gövde alt boşluğu = bölge listesinin alt payı (kısa sayfada kaydırma çıkmasın) */           /* yapışan gün şeridinin kırmızı tepsisi kartların iki yanından bu kadar taşar */
}

/* ── Temel (sıfırlamalar :where ile özgüllüksüz — bileşen sınıfları ezilmesin) ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.dk { margin: 0; min-height: 100vh; font: 13.5px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
:where(.dk) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:where(.dk) a { color: inherit; }
:where(.dk) img { display: block; max-width: 100%; }
.dk :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dk [hidden] { display: none !important; }
.ico { display: inline-block; width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dk-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: var(--r-md); box-shadow: var(--sh-floating); }
.dk-skip:focus { top: 16px; }

/* ── Başlık: web üst barıyla aynı zemin ve marka satırı; altındaki bölge listesi + gün şeridi başlığın üstüne biner ── */
.dk-hero { background: var(--header-bg); color: var(--white); padding: 0 var(--gut) calc(var(--hero-pull) + var(--hero-gap)); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.dk-bar { display: flex; align-items: center; gap: 14px; height: var(--list-bar-h); }
.dk-bar__sp { flex: 1; }
.dk-brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.dk-brand__logo { width: 46px; height: 46px; border-radius: 50%; background: var(--white); padding: 2px; flex: none; }
.dk-brand__org { line-height: 1.15; }
.dk-brand__org small { display: block; font-size: 9.5px; letter-spacing: .12em; font-weight: 700; opacity: .92; }
.dk-brand__org b { font-size: 13.5px; font-weight: 600; }
.dk-bar__sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .35); flex: none; }
.dk-bar__title { font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; margin: 0; padding-bottom: 4px; border-bottom: 3px solid rgba(255, 255, 255, .9); white-space: nowrap; }
.dk-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; border-radius: var(--r-pill); border: 1.5px solid rgba(255, 255, 255, .45); padding: 0 14px; font-weight: 600; font-size: 12.5px; color: var(--white); text-decoration: none; white-space: nowrap; }
.dk-pill .ico { width: 16px; height: 16px; }
.dk-pill small { font-weight: 500; opacity: .85; }
a.dk-pill:hover, button.dk-pill:hover { background: rgba(255, 255, 255, .12); }
.dk-pill--solid { background: var(--white); color: var(--red); border-color: var(--white); font-weight: 700; }
.dk-pill--solid:hover { background: rgba(255, 255, 255, .88); }
.dk-hero :focus-visible, .dk-mapbar :focus-visible { outline-color: var(--white); }
/* Sağ üst: "Anasayfa | kendi bölgem" tek bölünmüş düğme; iç ağ / hastanede yalnız Anasayfa. */
.dk-site { display: inline-flex; height: 36px; border-radius: var(--r-pill); border: 1.5px solid rgba(255, 255, 255, .45); overflow: hidden; flex: none; min-width: 0; }
.dk-site a, .dk-site__who-only { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-weight: 600; font-size: 12.5px; color: var(--white); text-decoration: none; white-space: nowrap; min-width: 0; }
.dk-site a:hover { background: rgba(255, 255, 255, .12); }
.dk-site a:focus-visible { outline-offset: -4px; border-radius: var(--r-pill); }
.dk-site .ico { width: 16px; height: 16px; }
.dk-site__region { border-left: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); max-width: 260px; }
.dk-site__region .dk-site__text { overflow: hidden; text-overflow: ellipsis; }
.dk-site__mine { display: none; }   /* dar ekranda ad yerine "Bölgem" */
/* Giriş yapılan hesap (site header'ıyla aynı "Ecz. Ad Soyad"; hastanede kurum adı): ad üstte, kendi bölgesi altında. */
.dk-site--account { height: 44px; }
.dk-site--account .dk-site__region { max-width: 320px; gap: 8px; }
.dk-site--account .dk-site__region > .ico { width: 18px; height: 18px; }
.dk-site__stack { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.25; }
.dk-site__who { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.dk-site__stack .dk-site__text { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; opacity: .88; }
.dk-site .dk-site__pin { width: 11px; height: 11px; }
/* Ekran kabı (JS gezinmesinde içi değişir, js/dokum/app.js) — yerleşime katılmaz. */
.dk-screen { display: contents; }
.dk-screen[aria-busy="true"] .dk-main, .dk-screen[aria-busy="true"] .dk-mapbody { opacity: .55; transition: opacity var(--t-fast) var(--ease) 120ms; }
.dk-title { height: var(--title-h); padding: 14px 0 0 calc(var(--side) + 18px); min-width: 0; text-align: center; }   /* bölge adı gün şeridinin ortasında */
.dk-title h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-title small { display: block; font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dk-regionpick { display: none; }

/* ── Gövde: solda bölgeler, sağda üstte 10 gün + altta kartlar ─────── */
.dk-body { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 18px; align-items: start; padding: 0 var(--gut) var(--body-end); margin-top: calc(-1 * var(--hero-pull)); position: relative; }
.dk-regions { position: sticky; top: 12px; max-height: calc(100vh - var(--list-bar-h) - var(--title-h) - var(--hero-gap) - var(--body-end)); min-height: 240px; background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-card); display: flex; flex-direction: column; }
.dk-search { display: flex; align-items: center; gap: 8px; background: var(--idle); border-radius: var(--r-pill); height: 40px; padding: 0 14px; color: var(--muted); margin: 12px 12px 6px; flex: none; border: 1.5px solid transparent; }
.dk-search:focus-within { border-color: var(--red); }
.dk-search .ico { width: 18px; height: 18px; }
.dk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 13px var(--font); color: var(--ink); }
.dk-search input::placeholder { color: var(--muted); }
.dk-regions__label { margin: 6px 18px 4px; font-size: 10.5px; letter-spacing: .1em; color: var(--faint); font-weight: 600; }
.dk-regions__list { overflow: auto; padding: 0 10px 12px; margin: 0; list-style: none; scrollbar-width: thin; }
.dk-regions__list a { display: block; padding: 7px 12px; border-radius: var(--r-md); text-decoration: none; font-size: 13px; }
.dk-regions__list a:hover { background: var(--idle); }
.dk-regions__list a[aria-current="page"] { background: var(--red-tint); color: var(--red); font-weight: 600; }
.dk-regions__none { padding: 8px 12px; color: var(--muted); font-size: 12.5px; }
.dk-main { min-width: 0; }
.dk-main:focus { outline: none; }

/* Gün şeridi zemini: dururken ve kırmızı başlığın üstündeyken ŞEFFAF (açık degrade başlığı beyaz bant gibi
   kesiyordu; kırmızı tepsi dar ekranda kırmızı bant olarak kalıyordu). Yalnız yapışıp başlık tamamen geçince (`is-stuck`, list.js)
   sayfa zemini tonunda buğulu cam: altından geçen içerik karışmaz. */
.dk-days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; position: sticky; top: 0; z-index: 3; padding: 12px var(--days-bleed) 10px; margin: -12px calc(-1 * var(--days-bleed)) 0; border-radius: 0 0 var(--r-lg) var(--r-lg); transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.dk-days.is-stuck { background-color: var(--days-glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }
.dk-day-tab { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 7px 4px; text-align: center; line-height: 1.15; min-width: 0; transition: background-color var(--t-fast) var(--ease); }
.dk-day-tab small { display: block; font-size: 11px; color: var(--muted); }
.dk-day-tab b { display: block; font-size: 22px; font-weight: 700; }
.dk-day-tab i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dk-day-tab--we small { color: var(--red); }
.dk-day-tab:hover { background: #FBFBFC; }
.dk-day-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.dk-day-tab[aria-selected="true"] small, .dk-day-tab[aria-selected="true"] i { color: #DDD; }

/* Gün başlığı satırı kırmızı başlığın bittiği yerden nefes payıyla başlar (kenara yapışık "sıkışmış" görünüyordu). */
.dk-daypanel { padding: 34px 2px 0; }   /* şerit altı 18 px kırmızı + 16 px boşluk */
.dk-daybar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; min-height: 44px; }
.dk-daybar h2 { margin: 0 8px 0 0; font-size: 17px; font-weight: 600; line-height: 1.25; min-width: 0; }
.dk-daybar .dk-btn { height: 44px; padding: 0 20px; font-size: 14px; }
.dk-daybar .dk-btn .ico { width: 19px; height: 19px; }
.dk-daybar a.dk-btn { color: var(--red); border: 1.5px solid var(--red); box-shadow: none; }
.dk-daybar a.dk-btn:hover { background: color-mix(in srgb, var(--red) 7%, var(--white)); }
.dk-daybar .dk-btn--red { box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 32%, transparent); }
.dk-daybar .dk-hours { margin-left: auto; }   /* düğmeler başlığın yanında (solda), saat sağda */
.dk-daybar h2 small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.dk-hours { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border-radius: var(--r-pill); padding: 4px 12px; font-weight: 600; font-size: 12.5px; color: var(--blue); box-shadow: var(--sh-card); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dk-hours .ico { width: 15px; height: 15px; }
.dk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: var(--r-pill); padding: 0 18px; font-weight: 600; font-size: 13px; text-decoration: none; background: var(--white); box-shadow: var(--sh-card); white-space: nowrap; transition: transform var(--t-fast) var(--ease); }
.dk-btn:active { transform: scale(.985); }
.dk-btn--red { background: var(--red); color: var(--white); }
.dk-btn--red:hover { background: var(--hero-top); }
.dk-btn .ico { width: 17px; height: 17px; }
.dk-notice { background: var(--white); border-radius: var(--r-lg); padding: 10px 14px; font-size: 12px; color: var(--muted); margin: 0 0 12px; border-left: 4px solid var(--red); }
.dk-state { background: var(--white); border-radius: var(--r-xl); padding: 32px 28px; text-align: center; color: var(--muted); box-shadow: var(--sh-card); }
.dk-state .ico { width: 34px; height: 34px; color: var(--red); margin: 0 auto 8px; display: block; }
.dk-state b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.dk-state--error .ico { color: var(--red); }

.dk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dk-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; height: 100%; }
.dk-tag { align-self: flex-start; font-size: 10.5px; font-weight: 600; border-radius: var(--r-pill); padding: 1px 9px; background: var(--idle); color: var(--muted); }
.dk-tag--own { background: var(--red-tint); color: var(--red); }
.dk-card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.dk-sgk { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--red); background: var(--red-tint); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.dk-card__addr { font-size: 12.5px; color: var(--muted); margin: 0; }
.dk-card__dir { font-size: 11.5px; color: var(--faint); margin: 0; }
.dk-card__acts { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.dk-mini { display: inline-flex; align-items: center; gap: 5px; height: 32px; border-radius: var(--r-pill); padding: 0 14px; background: var(--idle); font-weight: 600; font-size: 12px; text-decoration: none; }
.dk-mini:hover { background: var(--line); }
.dk-mini .ico { width: 15px; height: 15px; }

/* ── Yazdırma: alttan açılan tek sayfa ─────────────────── */
.dk-sheet { width: 640px; max-width: 100%; margin: auto auto 0; padding: 10px 24px 22px; border: 0; background: var(--white); color: var(--ink); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--sh-floating); max-height: calc(100vh - 24px); overflow: auto; }
.dk-sheet[open] { animation: dk-sheet-in var(--t-sheet) var(--ease-sheet); }
.dk-sheet::backdrop { background: rgba(17, 20, 24, .45); }   /* ::backdrop eski Chromium'da :root değişkenini almıyor → --scrim değeri */
@keyframes dk-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.dk-sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: var(--handle); margin: 0 auto 12px; }
.dk-sheet__hd { display: flex; align-items: flex-start; gap: 10px; }
.dk-sheet h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
.dk-sheet h2 small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.dk-sheet__x { width: 36px; height: 36px; border-radius: 50%; background: var(--idle); display: flex; align-items: center; justify-content: center; flex: none; }
.dk-sheet__x .ico { width: 18px; height: 18px; }
.dk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.dk-tile { display: flex; gap: 12px; align-items: center; background: var(--idle); border-radius: var(--r-lg); padding: 10px; border: 2px solid transparent; text-align: left; }
.dk-tile img { width: 46px; height: 64px; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); flex: none; background: var(--white); }
.dk-tile[aria-pressed="true"] { border-color: var(--red); background: #FFF5F5; }
.dk-tile:disabled { opacity: .45; cursor: not-allowed; }
.dk-tile b { display: block; font-weight: 600; }
.dk-tile small { font-size: 11.5px; color: var(--muted); }
.dk-zoom { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.dk-zoom input { flex: 1; accent-color: var(--red); }
.dk-zoom button { width: 32px; height: 32px; border-radius: 50%; background: var(--idle); display: flex; align-items: center; justify-content: center; flex: none; }
.dk-zoom button .ico { width: 16px; height: 16px; }
.dk-preview { height: 190px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 6px; position: relative; background: var(--map-land); }
.dk-preview__map { position: absolute; inset: 0; }
.dk-preview__name { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(255, 255, 255, .92); border-radius: var(--r-pill); padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
.dk-preview__fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; }
.dk-hint { font-size: 11.5px; color: var(--muted); margin: 0 0 12px; display: flex; gap: 6px; align-items: center; }
.dk-hint .ico { width: 14px; height: 14px; }
.dk-off { background: var(--idle); border-radius: var(--r-lg); padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.dk-print-actions { display: flex; gap: 8px; }
.dk-sheet .dk-btn--go { flex: 1; height: 48px; font-size: 15px; }
.dk-sheet .dk-btn--go[aria-busy="true"] { cursor: progress; }
.dk-spinner { display: none; width: 17px; height: 17px; border: 2.4px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: dk-spin .7s linear infinite; }
.dk-btn--go[aria-busy="true"] .dk-spinner { display: inline-block; }
.dk-btn--go[aria-busy="true"] .ico { display: none; }
.dk-sheet.is-printing .dk-tiles, .dk-sheet.is-printing [data-slot="with-map"], .dk-sheet.is-printing .dk-off { opacity: .5; transition: opacity var(--t-fast) var(--ease); }
.dk-sheet .dk-btn--tab:disabled { opacity: .5; cursor: not-allowed; }
.dk-progress { height: 4px; border-radius: var(--r-pill); background: var(--idle); overflow: hidden; margin: 0 0 8px; position: relative; }
.dk-progress span { position: absolute; top: 0; bottom: 0; width: 35%; border-radius: inherit; background: var(--red); animation: dk-progress 1.1s var(--ease) infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
@keyframes dk-progress { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .dk-spinner, .dk-progress span { animation-duration: 2.4s; } }
.dk-sheet .dk-btn--tab { height: 48px; padding: 0 14px; font-size: 12.5px; box-shadow: none; border: 1px solid var(--line); }
.dk-sheet .dk-btn--tab:hover { background: var(--idle); }
.dk-print-status { font-size: 13px; font-weight: 600; color: var(--ink, #222); margin: 0 0 10px; text-align: center; }
.dk-print-status.is-error { color: var(--red); }
.dk-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
@media (max-width: 380px) { .dk-sheet .dk-btn--tab { padding: 0 10px; } }
/* Telefon / PDF göstericisiz tarayıcı: yalnız "Yeni sekmede aç", ana düğme olarak (js/dokum/print-sheet.js `is-tab-only`). */
.dk-sheet.is-tab-only .dk-btn--go { display: none; }
.dk-sheet.is-tab-only .dk-btn--tab { flex: 1; font-size: 15px; border: 0; background: var(--red); color: var(--white); }
.dk-sheet.is-tab-only .dk-btn--tab:hover { background: var(--hero-top); }

/* ── Giriş seçimi (büyük başlık + resimli seçenekler) ───────────────── */
.dk-login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 36px 12%; background: var(--white); }
.dk-login__brand { display: flex; align-items: center; gap: 14px; }
.dk-login__brand img { width: 78px; height: 78px; flex: none; }
.dk-login__brand small { display: block; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--red); }
.dk-login__brand b { font-size: 16px; font-weight: 600; }
.dk-login h1 { font-size: 42px; letter-spacing: -.02em; margin: 18px 0 4px; line-height: 1.05; font-weight: 700; }
.dk-login__sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.dk-menu { margin: 0; padding: 0; list-style: none; max-width: 860px; }
.dk-menu a { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding: 14px 4px; text-decoration: none; border-radius: 18px; transition: background-color var(--t-fast) var(--ease); }
.dk-menu li:last-child a { border-bottom: 1px solid var(--line); }
.dk-menu a:hover { background: #FFFAFA; }
.dk-menu img { width: 92px; height: 92px; }
.dk-menu b { display: block; font-size: 20px; font-weight: 600; }
.dk-menu small { display: block; color: var(--muted); font-size: 13px; }
.dk-menu .ico { width: 24px; height: 24px; color: var(--muted); }
.dk-login__info { font-size: 12.5px; color: var(--muted); margin: 20px 0 0; max-width: 760px; }

/* ── Mesaj (yetki yok, geçersiz bölge/tarih, servis yok) ─────────────────── */
.dk-msg { max-width: 560px; margin: calc(-1 * var(--hero-pull)) auto 32px; padding: 0 var(--gut); position: relative; }
.dk-msg .dk-state { padding: 36px 28px 28px; }
.dk-msg .dk-btn { margin-top: 16px; }

/* ── Bölge haritası (nöbetçi eczane web düzeni — sol panel + Yandex + seçili eczane kartı) ── */
body.dk--map { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.dk-mapbar { height: var(--bar-h); flex: none; background: var(--header-bg); color: var(--white); display: flex; align-items: center; gap: 14px; padding: 0 24px; }
.dk-mapbar .dk-brand__logo { width: 40px; height: 40px; }
.dk-mapbody { flex: 1; display: grid; grid-template-columns: var(--desk-panel-w) minmax(0, 1fr); min-height: 0; }
.dk-mpanel { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dk-mpanel__hd { padding: 16px 18px 6px; }
.dk-mregion { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-list); padding: 10px 14px; }
.dk-mregion .ico { color: var(--red); }
.dk-mregion b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.dk-mregion small { display: block; color: var(--muted); font-size: 11.5px; }
/* 10 gün kaydırmasız 5×2 ızgara (yatay şeritte 6 gün görünüyor, kaydırma çubuğu gizli olduğu için gerisine ulaşılamıyordu). */
.dk-mdays { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px 18px 4px; margin: 0; list-style: none; }
.dk-mdays a { display: block; text-align: center; text-decoration: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 5px 4px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.dk-mdays a:hover { border-color: var(--red); }
.dk-mdays a[aria-current="page"] { background: var(--red); border-color: var(--red); color: var(--white); }
.dk-mmeta { padding: 8px 20px 6px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dk-mmeta .dk-hours { box-shadow: none; padding: 2px 10px; font-size: 11.5px; }
.dk-mpanel > :not(.dk-mlist) { flex: none; }   /* listenin alt boşluğu (alt sayfa) başlık satırlarını ezmesin */
.dk-mlist { flex: 1; min-height: 0; overflow: auto; padding: 4px 18px 18px; margin: 0; list-style: none; scrollbar-width: thin; }
.dk-msheet__grip, .dk-msheet__head { display: none; }   /* yalnız dar ekranda (alt sayfa tutamağı + bakılan bölge) */
.dk-mcard { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-list); margin-bottom: 10px; border: 1.5px solid var(--border); transition: border-color var(--t-fast) var(--ease); }
.dk-mcard:hover { border-color: var(--border-hover); }
.dk-mcard.is-selected { border-color: var(--red); }
.dk-mcard__hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; width: 100%; text-align: left; padding: 12px 12px 12px 16px; }
.dk-mcard__hit:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.dk-mcard__hit b { font-size: 14px; font-weight: 600; }
.dk-mcard__hit .dk-tag { margin-left: 6px; vertical-align: 2px; }
.dk-mcard__addr { font-size: 12px; color: var(--muted); grid-column: 1; }
.dk-mcard__nomap { font-size: 11.5px; color: var(--muted); grid-column: 1; }
.dk-mcard__hit > .ico { grid-column: 2; grid-row: 1 / span 3; color: var(--chev); }
.dk-mcard__acts.dk-acts { display: none; }
.dk-chip { display: inline-flex; align-items: center; gap: 7px; justify-self: start; border-radius: var(--r-pill); padding: 3px 10px; font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-soft); font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; grid-column: 1; }
.dk-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-ring); }
.dk-mempty { padding: 24px 8px; text-align: center; color: var(--muted); }
.dk-mcanvas { position: relative; min-height: 0; overflow: hidden; background: var(--map-land); }
.dk-mcanvas__map { position: absolute; inset: 0; }
.dk-mcanvas__fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
/* "Listeye dön" — üst barın en solunda, beyaz dolgulu (harita üstündeki kaplama gözden kaçıyordu). */
.dk-backbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px 0 12px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); box-shadow: var(--sh-soft); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; flex: none; transition: transform var(--t-fast) var(--ease); }
.dk-backbtn:hover { background: rgba(255, 255, 255, .9); }
.dk-backbtn:active { transform: scale(.97); }
.dk-backbtn .ico { width: 18px; height: 18px; color: var(--red); }

/* Liste ↔ harita geçişi (View Transitions; desteklenmezse ya da azaltılmış harekette anında — app.js): haritaya giderken yeni ekran
   sağdan, listeye dönerken soldan gelir. Yalnız ekran türü değişince; bölge/gün değişimi animasyonsuz. */
@keyframes dk-screen-from-right { from { transform: translateX(var(--screen-shift)); opacity: 0; } }
@keyframes dk-screen-from-left { from { transform: translateX(calc(-1 * var(--screen-shift))); opacity: 0; } }
@keyframes dk-screen-fade-out { to { opacity: 0; } }
html[data-dk-nav]::view-transition-old(root), html[data-dk-nav]::view-transition-new(root) { animation-duration: var(--t-screen); animation-timing-function: var(--ease-sheet); }
html[data-dk-nav]::view-transition-old(root) { animation-name: dk-screen-fade-out; animation-duration: calc(var(--t-screen) * .6); }
html[data-dk-nav="forward"]::view-transition-new(root) { animation-name: dk-screen-from-right; }
html[data-dk-nav="back"]::view-transition-new(root) { animation-name: dk-screen-from-left; }
.dk-ocard { position: absolute; left: 16px; bottom: 52px; width: 380px; max-width: calc(100% - 32px); z-index: 2; background: var(--white); border-radius: var(--r-xl); box-shadow: 0 12px 36px rgba(0, 0, 0, .20); padding: 18px 20px 16px; }
.dk-ocard__top { display: flex; align-items: flex-start; gap: 8px; }
.dk-ocard h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.dk-ocard__x { width: 34px; height: 34px; margin: -6px -8px 0 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.dk-ocard p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.dk-ocard__dir { font-size: 12.5px; }
.dk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dk-acts a, .dk-acts button { height: 46px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 14px; }
.dk-acts .ico { width: 18px; height: 18px; }
.dk-acts__dir { border: 1.5px solid var(--border); color: var(--blue); background: var(--white); }
.dk-acts__pdf { background: var(--red); color: var(--white); }

/* ═════════ Dar ekran (≤ 860 px) ═════════ */
@media (max-width: 860px) {
  :root { --gut: 14px; --hero-pull: 40px; --hero-gap: 18px; --days-bleed: var(--gut); }
  .dk-bar { height: 60px; gap: 10px; }
  .dk-brand__logo { width: 40px; height: 40px; }
  .dk-brand__org small, .dk-bar__sep, .dk-pill__text, .dk-site__home .dk-site__text { display: none; }
  .dk-bar .dk-brand__org, .dk-mapbar .dk-bar__title { display: none; }   /* liste barında logo + sayfa adı; harita barına sığmıyor */
  .dk-bar__title { font-size: 16px; padding-bottom: 3px; border-bottom-width: 2px; }
  .dk-site a, .dk-site__who-only { padding: 0 11px; }
  .dk-site__region { max-width: 150px; }
  .dk-site--account { flex: 0 1 auto; }
  .dk-site--account .dk-site__region { max-width: 170px; padding: 0 12px 0 10px; }
  .dk-site--account .dk-site__region > .ico { display: none; }
  .dk-site__name { display: none; }
  .dk-site__mine { display: inline; }
  .dk-title { display: none; }
  .dk-regionpick { display: flex; align-items: center; gap: 10px; margin-top: 4px; background: var(--white); color: var(--ink); border-radius: var(--r-pill); height: 48px; padding: 0 16px; position: relative; }
  .dk-regionpick > span { line-height: 1.1; flex: 1; min-width: 0; }
  .dk-regionpick small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
  .dk-regionpick b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk-regionpick .ico { transform: rotate(90deg); color: var(--muted); }
  .dk-regionpick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
  .dk-regionpick:focus-within { outline: 2px solid var(--white); outline-offset: 2px; }
  .dk-body { grid-template-columns: 1fr; }
  .dk-regions { display: none; }
  .dk-days { display: flex; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gut); border-radius: 0; }   /* kenardan kenara */
  .dk-day-tab { flex: none; width: 62px; }
  .dk-day-tab b { font-size: 18px; }
  .dk-grid { grid-template-columns: 1fr; }
  .dk-daypanel { padding-top: 16px; }
  .dk-daybar { gap: 8px 10px; }
  .dk-daybar h2 { flex-basis: 100%; min-width: 0; order: -2; }
  .dk-daybar .dk-hours { order: -1; margin-left: 0; }   /* dar ekranda saat başlığın altında, düğmeler en altta */
  .dk-daybar .dk-btn { flex: 1; }
  .dk-sheet { padding: 10px 16px 18px; }
  .dk-tiles { grid-template-columns: 1fr; }
  .dk-login { padding: 24px 18px; justify-content: flex-start; }
  .dk-login__brand img { width: 60px; height: 60px; }
  .dk-login h1 { font-size: 28px; }
  .dk-menu a { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .dk-menu img { width: 64px; height: 64px; }
  .dk-menu b { font-size: 17px; }
  /* harita: harita üstte, liste altta; seçili eczanenin düğmeleri kartın içinde (kart üstü pencere yok) */
  .dk-mapbar { height: 60px; padding: 0 14px; gap: 10px; }
  .dk-mapbar .dk-brand__org { display: none; }
  .dk-backbtn { height: 38px; padding: 0 14px 0 10px; font-size: 13px; }
  .dk-mapbar .dk-pill--solid .dk-pill__text { display: none; }
  .dk-mapbar .dk-pill--solid { width: 36px; padding: 0; justify-content: center; }
  /* harita tam ekran; eczane listesi alttan sürüklenebilir sayfa (kapalı / yarım / tam — js/dokum/sheet.js, yalnız transform) */
  .dk-mapbody { display: block; position: relative; }
  .dk-mcanvas { position: absolute; inset: 0; }
  .dk-mpanel { position: absolute; inset: 0; z-index: 3; border-right: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, .16);
    transform: translateY(50%); transition: transform var(--t-sheet) var(--ease-sheet); will-change: transform; }
  .dk-msheet__grip { display: flex; justify-content: center; align-items: center; flex: none; width: 100%; height: 28px; touch-action: none; cursor: grab; }
  .dk-msheet__grip span { width: 44px; height: 5px; border-radius: 3px; background: var(--handle); }
  .dk-msheet__grip:focus-visible { outline-offset: -4px; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
  .dk-msheet__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 20px 8px; }
  .dk-msheet__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; min-width: 0; touch-action: none; }
  .dk-msheet__merge { font-size: 12px; color: var(--muted); }
  .dk-msheet__merge summary { cursor: pointer; font-weight: 600; color: var(--blue); list-style: none; }
  .dk-msheet__merge summary::-webkit-details-marker { display: none; }
  .dk-msheet__merge p { margin: 4px 0 0; }
  .dk-msheet__merge[open] { flex-basis: 100%; }
  .dk-mdays { padding-top: 0; }
  .dk-mmeta { touch-action: none; }
  .dk-mlist { overscroll-behavior: contain; padding-bottom: 50vh; }   /* JS yoksa yarım sayfada da son eczane görülür */
  .dk-mpanel__hd { display: none; }
  .dk-ocard { display: none; }
  .dk-mcard.is-selected .dk-mcard__acts.dk-acts { display: grid; margin: -4px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .dk *, .dk *::before, .dk *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
