/* Hasta değeri ve kayıp (#/hasta-degeri) — web/sayfalar/hasta-degeri.js. Ortak dil: /ortak/tasarim.css + web/analiz.css (.a-…).
   Bu dosya yalnız sayfaya özel parçaları ekler; tüm seçiciler .m-hasta-degeri ile başlar. */

.m-hasta-degeri .hd-tek { margin-bottom: 16px; }
.m-hasta-degeri .a-izgara .d-gosterge__deger { font-size: 36px; }
.m-hasta-degeri .hd-ortala { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.m-hasta-degeri .hd-iyi { color: var(--iyi); }
.m-hasta-degeri .hd-kotu { color: var(--kotu); }

/* Hasta tabanının hali: bölümlere bölünmüş tek şerit */
.m-hasta-degeri .hd-serit { display: flex; height: 34px; border-radius: 8px; overflow: hidden; gap: 2px; }
.m-hasta-degeri .hd-serit i { display: flex; align-items: center; justify-content: center; min-width: 3px; overflow: hidden; }
.m-hasta-degeri .hd-serit span { font-style: normal; font-size: 11.5px; font-weight: 500; color: inherit; white-space: nowrap; padding: 0 6px; }
.m-hasta-degeri .hd-serit__alt { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--yazi-3); }

/* İkili karşılaştırma */
.m-hasta-degeri .hd-ikili { display: flex; flex-direction: column; gap: 14px; }
.m-hasta-degeri .hd-ikili > .d-grafik__lejant { margin: 0 0 2px; }
.m-hasta-degeri .hd-ikili__bas { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.m-hasta-degeri .hd-ikili__bas small { font-size: 11.5px; color: var(--yazi-3); white-space: nowrap; }
.m-hasta-degeri .hd-ikili__bas small.hd-iyi { color: var(--iyi); }
.m-hasta-degeri .hd-ikili__bas small.hd-kotu { color: var(--kotu); }
.m-hasta-degeri .hd-ikili__satir { display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 10px; }
.m-hasta-degeri .hd-ikili__satir + .hd-ikili__satir { margin-top: 4px; }
.m-hasta-degeri .hd-ikili__iz { height: 8px; border-radius: 4px; background: var(--yuzey-2); overflow: hidden; }
.m-hasta-degeri .hd-ikili__iz i { display: block; height: 100%; border-radius: 4px; }
.m-hasta-degeri .hd-ikili__satir b { font-family: var(--serif); font-weight: 600; font-size: 16px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }

/* Büyük rakam çifti (hasta getirenler) */
.m-hasta-degeri .hd-buyuk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.m-hasta-degeri .hd-buyuk div { background: var(--yuzey-2); border-radius: var(--r-kucuk); padding: 10px 12px; }
.m-hasta-degeri .hd-buyuk b { display: block; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.m-hasta-degeri .hd-buyuk small { font-size: 11.5px; color: var(--yazi-3); }

/* Isı tablosu: kohort */
.m-hasta-degeri .hd-kohort td { font-variant-numeric: tabular-nums; }
.m-hasta-degeri .hd-kohort__yil { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.m-hasta-degeri .hd-kohort__hucre { font-size: 12.5px; border-left: 2px solid var(--yuzey); }
.m-hasta-degeri .hd-kohort__bos { border-left: 2px solid var(--yuzey); background: repeating-linear-gradient(135deg, transparent 0 5px, var(--yuzey-2) 5px 6px); }
.m-hasta-degeri .hd-kohort tbody tr:hover { background: none; }

/* Tablo hücresinde küçük çubuk */
.m-hasta-degeri .hd-hucre-cubuk { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.m-hasta-degeri .hd-hucre-cubuk__iz { width: 64px; height: 6px; border-radius: 3px; background: var(--yuzey-2); overflow: hidden; }
.m-hasta-degeri .hd-hucre-cubuk__iz i { display: block; height: 100%; border-radius: 3px; }
.m-hasta-degeri .hd-hucre-cubuk b { font-weight: 500; min-width: 40px; text-align: right; }

/* Geri kazanılacak hastalar */
.m-hasta-degeri .hd-hasta { font-weight: 500; color: var(--yazi); }
.m-hasta-degeri a.hd-hasta { text-decoration: underline; text-decoration-color: var(--pirinc); text-underline-offset: 3px; }
.m-hasta-degeri a.hd-hasta:hover { color: var(--pirinc-koyu); }

.m-hasta-degeri .hd-tanimlar { margin-top: 28px; }
.m-hasta-degeri .hd-tanimlar .a-not { margin-bottom: 0; }

@media (max-width: 680px) {
  .m-hasta-degeri .hd-serit span { display: none; }
}
