/* ==========================================================================
   ReçeteApp - Ferah Medikal Tasarım Sistemi (FinansApp Gibi Ferah, Temiz & Aydınlık)
   ========================================================================== */

:root {
  /* Ferah, Aydınlık ve Bembeyaz Zemin Paleti (FinansApp Pure White Theme) */
  --bg-app: #FFFFFF;             /* FinansApp gibi tam saf beyaz ana zemin */
  --bg-surface: #FFFFFF;         /* Bembeyaz yüzeyler (Üst bar, tab bar) */
  --bg-card: #FFFFFF;            /* Bembeyaz, temiz kartlar */
  --bg-card-subtle: #F8FAFC;     /* İç kutucuklar, alt satırlar */
  --bg-input: #F8FAFC;           /* Arama ve form kutusu zemini */
  
  --border-light: #E5E7EB;       /* FinansApp yumuşak sınır çizgileri */
  --border-card: #E5E7EB;        /* FinansApp kart çerçeveleri */
  --border-highlight: #C7D2FE;
  
  /* FinansApp Estetik & Ferah Vurgu Renkleri */
  --accent-primary: #5A6FD6;     /* FinansApp imza ferah indigo/mavi rengi */
  --accent-secondary: #7B8AE0;
  --accent-gradient: linear-gradient(135deg, #5A6FD6, #7B8AE0);
  --accent-soft: #EEF2FF;
  --accent-border: #C7D2FE;

  --navy: #4F46E5;               /* Modern canlı indigo */
  --navy-soft: #EEF2FF;
  
  --emerald: #5A6FD6;            /* Boğucu koyu yeşil yerine FinansApp ferah ana rengi */
  --emerald-soft: #EEF2FF;
  --emerald-border: #C7D2FE;
  
  --success: #3D9970;            /* FinansApp yumuşak şifa yeşili */
  --success-soft: #ECFDF5;
  --success-border: #A7F3D0;

  --sky: #5A6FD6;                /* FinansApp ferah mavi */
  --sky-soft: #EEF2FF;
  --sky-border: #C7D2FE;

  --amber: #D4A34A;              /* FinansApp yumuşak amber */
  --amber-soft: #FFFBEB;
  --amber-border: #FDE68A;
  
  --rose: #C75050;               /* FinansApp yumuşak kırmızı/roze */
  --rose-soft: #FEF2F2;
  --rose-border: #FECDD3;
  
  --purple: #7E22CE;             /* Cerrahi / Ameliyat */
  --purple-soft: #FAF5FF;
  --purple-border: #E9D5FF;

  /* FinansApp Estetik & Yumuşak Tipografi (Göz Yormayan Slate Tonları) */
  --text-main: #1E293B;          /* Yumuşak, derin başlık rengi */
  --text-body: #475569;          /* Okunaklı, ferah gövde metinleri */
  --text-muted: #8A8A8A;         /* İkincil açıklamalar */
  --text-faint: #94A3B8;         /* Tarih ve dipnotlar */
  
  /* Gölgeler & Yuvarlaklık */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-fab: 0 8px 25px rgba(90, 111, 214, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-body);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   Uygulama Kapsayıcısı (Masaüstü Portal & Mobil Uyumlu)
   ========================================================================== */
.simulator-container {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .simulator-container {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  .simulator-container {
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.04);
  }
}

/* Simüle Durum Çubuğu (Üretimde ve Masaüstünde Gizlenir) */
.ios-status-bar {
  display: none !important;
}

.dynamic-island {
  display: none !important;
}

/* ==========================================================================
   Üst Bar (Profil Seçici & Rapor Butonu)
   ========================================================================== */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 12px;
  flex-shrink: 0;
  z-index: 30;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.header-profile-selector {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 3px 8px 3px 4px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  min-width: 0;
  max-width: 170px;
  flex-shrink: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-profile-selector:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.header-profile-selector:active {
  transform: scale(0.97);
}

.header-profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5A6FD6 0%, #7B8AE0 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(90, 111, 214, 0.25);
}

.header-profile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  overflow: hidden;
}

.header-profile-name-row {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.header-profile-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.header-profile-chevron {
  color: #64748B;
  flex-shrink: 0;
}

.header-profile-sub {
  font-size: 8.5px;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .brand-row {
    gap: 6px;
  }
  .brand-left {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-title {
    flex-shrink: 0;
    gap: 0;
  }
  .brand-title span {
    display: none !important;
  }
  .brand-title svg {
    width: 24px;
    height: 24px;
    margin-right: 0 !important;
  }
  .header-profile-selector {
    padding: 3px 8px 3px 4px;
    max-width: 165px;
    flex: 0 1 auto;
  }
  .header-profile-text {
    flex-direction: column;
    min-width: 0;
  }
  .header-profile-sub {
    display: none !important;
  }
  .header-profile-name {
    font-size: 11.5px;
    font-weight: 700;
    max-width: 120px;
  }
  .btn-header-plan {
    padding: 4.5px 8px;
    font-size: 10.5px;
    font-weight: 600;
    gap: 4px;
  }
  .btn-report {
    padding: 4.5px 8px;
    font-size: 10.5px;
    font-weight: 600;
    gap: 4px;
  }
}

.brand-badge {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  font-size: 9.5px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sky-soft);
  color: var(--sky);
  border: 1px solid var(--sky-border);
  padding: 4.5px 8.5px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-report:hover {
  background: #E0F2FE;
}

.btn-report-full {
  display: none;
}

.btn-report-short {
  display: inline;
}

.btn-header-plan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  padding: 4.5px 8.5px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-plan:hover {
  background: #E0E7FF;
}

.btn-header-plan-full {
  display: none;
}

.btn-header-plan-short {
  display: inline;
}

@media (min-width: 641px) {
  .app-header {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px 18px;
  }
  .brand-row {
    gap: 12px;
  }
  .brand-left {
    gap: 10px;
  }
  .brand-title {
    font-size: 17.5px;
    gap: 6px;
  }
  .header-profile-selector {
    max-width: 220px;
    padding: 3px 10px 3px 5px;
    gap: 8px;
  }
  .header-profile-avatar {
    width: 26px;
    height: 26px;
    font-size: 10px;
    font-weight: 700;
  }
  .header-profile-name {
    font-size: 11.5px;
    font-weight: 700;
  }
  .header-profile-sub {
    font-size: 9px;
    font-weight: 500;
  }
  .btn-report {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    gap: 5px;
  }
  .btn-report-full {
    display: inline;
  }
  .btn-report-short {
    display: none;
  }
  .btn-header-plan {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    gap: 5px;
  }
  .btn-header-plan-full {
    display: inline;
  }
  .btn-header-plan-short {
    display: none;
  }
}

/* Tedavi Ekranı Üst Aksiyon Butonları */
.episodes-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-chronic-action {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(90, 111, 214, 0.08);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-chronic-action:hover {
  background: #E0E7FF;
  border-color: #A5B4FC;
}

.btn-chronic-action:active {
  transform: scale(0.98);
}

.btn-plan-action {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border: none;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(90, 111, 214, 0.25);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-plan-action:hover {
  background: var(--accent-primary);
}

.btn-plan-action:active {
  transform: scale(0.98);
}


/* Aile Bireyleri Seçici (Bottom Sheet / Açılır Liste) */
.profile-switcher-sheet {
  max-width: 480px;
  border-radius: 24px 24px 0 0;
}

@media (min-width: 641px) {
  .profile-switcher-sheet {
    border-radius: 20px;
    max-width: 450px;
  }
}

.profile-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-card-item:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.profile-card-item.active {
  background: var(--accent-soft);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(90, 111, 214, 0.12);
}

.profile-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-card-item.active .profile-card-avatar {
  background: var(--accent-gradient);
  color: #FFFFFF;
}

.profile-card-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
}

.profile-card-item.active .profile-card-badge {
  background: var(--accent-border);
  color: var(--accent-primary);
}

/* Arama ve Filtreleme */
.search-bar-wrap {
  padding: 10px 18px 6px 18px;
  flex-shrink: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 13.5px;
  width: 100%;
  font-weight: 500;
  -webkit-appearance: none;
}
@media (max-width: 767px) {
  .search-bar input {
    font-size: 16px; /* iOS Safari otomatik zoom engelleme */
  }
}
.search-bar input::placeholder {
  color: var(--text-faint);
}

/* Görünüm Segment Seçici */
.view-segmented-control {
  display: flex;
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  padding: 3px;
  border-radius: var(--radius-md);
  margin: 0 18px 10px 18px;
  flex-shrink: 0;
}

.segment-btn {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 9px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s;
}

.segment-btn.active {
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Ana Kaydırma Alanı (Kartlar Listesi)
   ========================================================================== */
.content-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  background: #FFFFFF;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 8px 18px calc(95px + env(safe-area-inset-bottom, 0px)) 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .content-scroll-area {
    padding: 20px 28px 120px 28px;
    gap: 18px;
  }
}

/* Masaüstünde 2 Sütunlu Kart Izgarası, Mobilde Tek Sütun */
.cards-desktop-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .cards-desktop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
  }
}

.content-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.content-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.content-scroll-area::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.content-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   Yenilenmiş Kişisel Sağlık Profil Kartı (Modern Executive Patient Passport)
   ========================================================================== */
.patient-card-modern, .patient-vital-strip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.patient-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.patient-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.patient-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(90, 111, 214, 0.25);
}

.patient-info {
  flex: 1;
  min-width: 0;
}

.patient-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.patient-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.patient-relation-badge {
  background: #F1F5F9;
  color: #475569;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1.5px 5.5px;
  border-radius: 4px;
}

.patient-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.patient-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-reports-patient {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  padding: 4.5px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-reports-patient:active {
  transform: scale(0.97);
  background: #E0E7FF;
}

.btn-edit-patient {
  background: #F8FAFC;
  color: var(--navy);
  border: 1px solid #CBD5E1;
  padding: 4.5px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-edit-patient:active {
  transform: scale(0.97);
  background: #E2E8F0;
}

@media (max-width: 540px) {
  .patient-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .patient-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .patient-header-actions .btn-reports-patient,
  .patient-header-actions .btn-edit-patient {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
  }
}

.patient-metrics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.patient-chronic-block {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
  width: 100%;
}

.chronic-block-title {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.chronic-block-list {
  font-size: 10.5px;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.35;
}

.patient-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 2.5px 7px;
  border-radius: 5px;
  font-size: 10px;
}

.patient-metric-chip.chip-alert {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: var(--rose);
}

.patient-metric-chip.chip-blood {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

.metric-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 9.5px;
}

.metric-val {
  font-weight: 600;
  font-size: 10.5px;
  color: var(--text-main);
}

/* Standart Form Elemanları (Mobil Uyumlu) */
.form-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  background: #FFFFFF;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(90, 111, 214, 0.15);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea.form-input {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
  line-height: 1.4;
}

/* Rapor Yatay Kaydırma Kapsayıcısı */
.report-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.report-scroll-hint {
  font-size: 11px;
  color: #0369A1;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   Kart Mimarisi (Ferah Beyaz Zemin, Yüksek Kontrast, Okunaklı)
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.card:active {
  transform: scale(0.99);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.card-type-icon.episode {
  background: var(--sky-soft);
  border: 1px solid var(--sky-border);
}
.card-type-icon.prescription {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
}
.card-type-icon.surgery {
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
}
.card-type-icon.lab {
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
}

.card-title-group {
  margin-left: 10px;
  flex: 1;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.card-status-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-active {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}
.status-completed {
  background: #F1F5F9;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.status-control {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

/* İlaç Kalemleri Listesi */
.medication-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.medication-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 9px;
  border-radius: 7px;
}

.med-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.med-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.med-instructions {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

.med-badge {
  background: #FFFFFF;
  color: var(--accent-primary);
  border: 1px solid #CBD5E1;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 8px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FinansApp Tarzı Kompakt Kartlar (İlaç, Takip Dosyası, Randevu ve Muayene Kartları) */
.med-compact-card,
.compact-row-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.med-compact-card:hover,
.compact-row-card:hover,
.timeline-event-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: #CBD5E1;
}

.med-compact-card:active,
.compact-row-card:active,
.timeline-event-card:active {
  transform: scale(0.99);
}

.med-compact-row-top,
.compact-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.med-compact-row-bottom,
.compact-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.med-compact-badge,
.compact-row-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.med-compact-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  letter-spacing: -0.1px;
}

.compact-row-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.med-compact-freq,
.compact-row-freq {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.med-compact-subline,
.compact-row-subline {
  font-size: 10px;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.med-compact-tag,
.compact-row-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FinansApp Tarzı İlaç Grubu Başlığı */
.med-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.med-group-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.med-group-count {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.med-group-line {
  flex: 1;
  min-width: 15px;
  height: 1px;
  background: #E2E8F0;
}

/* Tahlil Sapmaları / Bulgular */
.findings-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 3px solid var(--rose);
  border-radius: 7px;
  padding: 6px 9px;
  margin-top: 7px;
}
.findings-box.findings-box-rad {
  border-left-color: #7E22CE;
}
.findings-title {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.findings-title.findings-title-rad {
  color: #7E22CE;
}
.finding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  padding: 2px 0;
  border-bottom: 1px dashed #F1F5F9;
}
.finding-row:last-child {
  border-bottom: none;
}
.finding-name {
  color: #334155;
  font-weight: 500;
}
.finding-val {
  font-weight: 700;
  font-size: 10.5px;
  color: var(--rose);
}

/* ==========================================================================
   Alt Navigasyon Çubuğu (iOS Bottom Tab Bar / Masaüstü Yüzen Dock)
   ========================================================================== */
.ios-tab-bar {
  flex-shrink: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 8px 10px;
  z-index: 40;
}

@media (max-width: 767px) {
  .ios-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    height: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .ios-tab-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 580px;
    max-width: 720px;
    border-radius: 40px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 0 24px;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
  }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  transition: color 0.2s;
  background: transparent;
  border: none;
}

.tab-item.active {
  color: var(--accent-primary);
}

.tab-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* Ortada Parlayan Kamera FAB Butonu */
.fab-camera-btn {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  border: 3px solid var(--bg-surface);
  margin-top: -30px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-camera-btn:hover {
  transform: scale(1.05);
}
.fab-camera-btn:active {
  transform: scale(0.95);
}
.fab-camera-btn svg {
  width: 26px;
  height: 26px;
  stroke: #FFFFFF;
  stroke-width: 2.2;
}

/* ==========================================================================
   Modal (Tarama, Detay ve PDF Rapor Görünümü)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  background: var(--bg-surface);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid var(--border-light);
  max-height: 90%;
  height: auto;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease-out;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .modal-sheet {
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    animation: modalFadeIn 0.2s ease-out;
  }
  #reportModal .modal-sheet {
    max-width: 920px;
    max-height: 92vh;
  }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-sheet-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.modal-sheet-body {
  padding: 20px 20px 40px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

/* ==========================================================================
   Sağlık Takip Raporu (A4 PDF Medikal Çıktı Şablonu & Discrete Page Mimarisi)
   ========================================================================== */
.medical-report-preview {
  background: transparent;
  color: #1E293B;
  padding: 0;
  margin: 0 auto;
  font-size: 10.5px;
  line-height: 1.35;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

/* Her Bir A4 Landscape Sayfası */
.report-pdf-page {
  width: 1000px;
  min-height: 685px;
  max-height: 685px;
  box-sizing: border-box;
  padding: 18px 24px 14px 24px;
  background: #FFFFFF;
  color: #1E293B;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10.5px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

/* Modal Önizleme İçinde Sayfa Görünümü */
.report-scroll-wrapper .report-pdf-page {
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  max-height: none;
}

.report-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--accent-primary);
  padding-bottom: 5px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.report-page-header .brand {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 0.3px;
}

.report-page-header .meta {
  font-size: 9.5px;
  color: #64748B;
  font-weight: 600;
}

.report-page-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.report-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #E2E8F0;
  padding-top: 5px;
  margin-top: auto;
  font-size: 9px;
  color: #94A3B8;
  flex-shrink: 0;
}

.report-page-footer .legal {
  color: #64748B;
}

.report-page-footer .page-number {
  font-weight: 700;
  color: #1E293B;
}

.report-header {
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid #E2E8F0;
  font-size: 10px;
}

.report-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 3px;
  margin: 10px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  background: #FFFFFF;
  table-layout: fixed;
}

.report-table th, .report-table td {
  border: 1px solid #CBD5E1;
  padding: 4px 6px;
  text-align: left;
  font-size: 10px;
  vertical-align: top;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.report-table th {
  background: #F1F5F9;
  font-weight: 700;
  color: #334155;
  border-bottom: 1.5px solid #94A3B8;
  font-size: 9.5px;
}

.report-table tbody tr:nth-child(even) td {
  background: #FAFAFA;
}

.report-table tr {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.alert-allergy {
  background: #FFE4E6;
  border: 1px solid #FDA4AF;
  color: #BE123C;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  font-size: 10px;
}

@media print {
  body {
    background: #FFF !important;
  }
  .simulator-container, .ios-status-bar, .app-header, .ios-tab-bar, .search-bar-wrap, .view-segmented-control {
    display: none !important;
  }
  .medical-report-preview {
    display: block !important;
    padding: 0;
    border: none;
    min-width: 100% !important;
  }
  table { page-break-inside: auto; }
  tbody, tr, td { page-break-inside: avoid !important; break-inside: avoid !important; }
  .report-section-title { page-break-after: avoid; break-after: avoid; }
}

/* -------------------------------------------------------------
 * ClinicApp Açılır/Kapanır Gruplar (Akordiyon / Collapse)
 * ------------------------------------------------------------- */
details.collapse-group {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

details.collapse-group[open] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

summary.collapse-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.15s ease;
}

summary.collapse-summary::-webkit-details-marker {
  display: none;
}

summary.collapse-summary:hover {
  background-color: #F8FAFC;
}

.collapse-chevron {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  color: #94A3B8;
  transition: transform 0.2s ease;
  line-height: 1;
}

details.collapse-group[open] > summary.collapse-summary .collapse-chevron {
  transform: rotate(90deg);
  color: var(--accent-primary);
}

.collapse-body {
  padding: 10px 10px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
}

/* -------------------------------------------------------------
 * Zaman Tüneli (Timeline) Özel Yıl Ayracı — Doğal & Çerçevesiz
 * ------------------------------------------------------------- */
details.timeline-year-group {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 8px;
}

details.timeline-year-group[open] {
  box-shadow: none;
}

summary.timeline-year-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 10px 4px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  list-style: none;
  border-bottom: 1.5px dashed var(--border-light);
  margin-bottom: 12px;
}

summary.timeline-year-summary::-webkit-details-marker {
  display: none;
}

summary.timeline-year-summary:hover {
  background: transparent;
  opacity: 0.9;
}

.timeline-year-body {
  position: relative;
  padding-left: 0;
  border-left: none;
  margin-left: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-top: none;
  padding-top: 4px;
  padding-right: 0;
  padding-bottom: 0;
}

/* ==========================================================================
   Tıbbi Terminoloji ve Dar Alan Mikro Etiketleri (Medical Glossary)
   ========================================================================== */
.finding-badge-interactive {
  display: inline-flex;
  flex-direction: column;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-align: left;
}

.finding-badge-interactive:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  transform: translateY(-1px);
}

.finding-badge-interactive.finding-badge-rad {
  background: #FAF5FF;
  border-color: #E9D5FF;
}

.finding-badge-interactive.finding-badge-rad:hover {
  background: #F3E8FF;
  border-color: #D8B4FE;
}

.finding-badge-interactive:active {
  transform: scale(0.98);
}

.finding-badge-top {
  font-size: 9.5px;
  font-weight: 700;
  color: #BE123C;
  line-height: 1.2;
}

.finding-badge-sub {
  font-size: 8px;
  font-weight: 500;
  color: #881337;
  opacity: 0.85;
  margin-top: 1px;
  white-space: nowrap;
}

.finding-row-interactive {
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 6px;
  padding: 4px 6px;
  margin: -1px -6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.finding-row-interactive:hover {
  background-color: #FFF1F2;
}

.finding-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.finding-name-wrap .finding-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

.finding-micro-label {
  font-size: 8.5px;
  color: #64748B;
  font-weight: 500;
  margin-top: 1px;
  line-height: 1.1;
}

.finding-val {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rose);
  flex-shrink: 0;
  text-align: right;
  white-space: normal;
  word-break: break-word;
}

/* -------------------------------------------------------------
 * Ferah ve Mobil Uyumlu 2-Kademeli Bulgu Kartı (Two-Tier Finding Card)
 * Dar mobil ekranlarda metin çakışmalarını tamamen önler.
 * ------------------------------------------------------------- */
.finding-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.finding-card-item:last-child {
  margin-bottom: 0;
}

.finding-card-item:hover {
  background: #FFF1F2;
  border-color: #FECDD3;
  transform: translateY(-1px);
}

.finding-card-item:active {
  transform: scale(0.99);
}

.finding-card-item.finding-card-rad {
  background: #FFFFFF;
  border: 1px solid #E9D5FF;
  border-left: 3.5px solid #7E22CE;
  border-radius: 9px;
  padding: 8px 10px;
  gap: 6px;
}

.finding-card-item.finding-card-rad:hover {
  background: #FAF5FF;
  border-color: #D8B4FE;
  border-left-color: #6B21A8;
}

.finding-card-rad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.finding-name-rad {
  font-size: 11.5px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.finding-micro-tag-rad {
  font-size: 9px;
  font-weight: 600;
  color: #6B21A8;
  background: #F3E8FF;
  border: 1px solid #E9D5FF;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.finding-card-rad-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF5FF;
  border: 1px solid #F3E8FF;
  padding: 5px 9px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.finding-val-rad {
  font-size: 11px;
  font-weight: 600;
  color: #581C87;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.finding-rad-arrow {
  font-size: 10.5px;
  font-weight: 700;
  color: #7E22CE;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
}

.finding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.finding-card-header .finding-name {
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
  word-break: break-word;
}

.finding-micro-tag {
  font-size: 8.5px;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.finding-card-rad .finding-micro-tag {
  color: #7E22CE;
  background: #FAF5FF;
  border-color: #E9D5FF;
}

.finding-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.finding-pill-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
  word-break: break-word;
  text-align: right;
}

.finding-pill-val.finding-pill-rad {
  background: #FAF5FF;
  border-color: #E9D5FF;
  color: #7E22CE;
}

.finding-pill-val.finding-pill-normal {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #047857 !important;
}

.finding-pill-val.finding-pill-low {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #1D4ED8 !important;
}

.finding-pill-val.finding-pill-high {
  background: #FFF1F2 !important;
  border-color: #FECDD3 !important;
  color: #BE123C !important;
}

.finding-pill-status {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.9;
}

.finding-pill-arrow {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-left: 2px;
}

