/* Rebirth Mail Paneli — kurumsal ince ayarlar (Filament teması üzerine, derleme gerektirmez). */
.rb-footer {
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    font-size: .75rem;
    letter-spacing: .02em;
    color: rgb(100 116 139);
}
.dark .rb-footer { color: rgb(148 163 184); }

/* Tablo yoğunluğu: tutarlı, sıkı satırlar */
.fi-ta-cell { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.fi-ta-header-cell { font-size: .75rem; text-transform: none; letter-spacing: .01em; }

/* Sayfa başlığı altı kısa açıklama */
.fi-header-subheading { max-width: 60rem; color: rgb(100 116 139); }
.dark .fi-header-subheading { color: rgb(148 163 184); }

/* Şablon kütüphanesi kartları */
.rb-tpl-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); }
.rb-tpl-frame { width: 100%; height: 36rem; border: 0; background: #fff; display: block; margin: 0 auto; transition: width .2s ease; }
.rb-tpl-frame.is-mobile { width: 390px; max-width: 100%; }
.rb-tpl-stage { background: rgb(241 245 249); border-radius: .5rem; padding: .75rem; overflow: hidden; }
.dark .rb-tpl-stage { background: rgb(15 23 42); }

/* Takvim */
.rb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: rgb(226 232 240); border-radius: .5rem; overflow: hidden; }
.dark .rb-cal { background: rgb(51 65 85); }
.rb-cal-head { background: rgb(248 250 252); padding: .4rem; font-size: .7rem; font-weight: 600; text-align: center; color: rgb(71 85 105); }
.dark .rb-cal-head { background: rgb(30 41 59); color: rgb(203 213 225); }
.rb-cal-day { background: #fff; min-height: 6.5rem; padding: .35rem; font-size: .75rem; }
.dark .rb-cal-day { background: rgb(15 23 42); }
.rb-cal-day.is-out { opacity: .45; }
.rb-cal-day.is-today { box-shadow: inset 0 0 0 2px #009FC1; }
.rb-cal-num { font-weight: 600; margin-bottom: .25rem; }
.rb-cal-item { display: block; border-radius: .25rem; padding: .1rem .35rem; margin-bottom: .2rem; font-size: .7rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-cal-item.is-task { background: rgb(224 242 254); color: rgb(7 89 133); }
.rb-cal-item.is-done { background: rgb(220 252 231); color: rgb(22 101 52); text-decoration: line-through; }
.rb-cal-item.is-overdue { background: rgb(254 226 226); color: rgb(153 27 27); }
.rb-cal-item.is-campaign { background: rgb(237 233 254); color: rgb(91 33 182); }
.dark .rb-cal-item.is-task { background: rgb(12 74 110); color: rgb(224 242 254); }
.dark .rb-cal-item.is-done { background: rgb(20 83 45); color: rgb(220 252 231); }
.dark .rb-cal-item.is-overdue { background: rgb(127 29 29); color: rgb(254 226 226); }
.dark .rb-cal-item.is-campaign { background: rgb(76 29 149); color: rgb(237 233 254); }

/* Durum rozetleri (sağlık / sistem) */
.rb-check { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid rgb(226 232 240); }
.dark .rb-check { border-color: rgb(51 65 85); }
.rb-dot { flex: none; width: .65rem; height: .65rem; border-radius: 999px; margin-top: .35rem; }
.rb-dot.ok { background: rgb(16 185 129); }
.rb-dot.bad { background: rgb(244 63 94); }
.rb-dot.warn { background: rgb(245 158 11); }
.rb-log { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; background: rgb(15 23 42); color: rgb(226 232 240); padding: .75rem; border-radius: .5rem; max-height: 22rem; overflow: auto; white-space: pre-wrap; }

@media print {
    .fi-sidebar, .fi-topbar, .rb-footer, .rb-noprint, .fi-header-actions { display: none !important; }
    .fi-main { padding: 0 !important; }
    body { background: #fff !important; }
}

/* Guncellemeler / Sistem durumu: anahtar-deger kartlari */
.rb-kv-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.rb-kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; font-size: .875rem; }
.rb-kv dt { color: rgb(100 116 139); }
.rb-kv dd { margin: 0; word-break: break-word; }
.rb-run { border: 1px solid rgb(226 232 240); border-radius: .5rem; padding: .5rem .75rem; }
.dark .rb-run { border-color: rgb(51 65 85); }
.rb-run summary { cursor: pointer; font-size: .875rem; display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.rb-run .rb-log { margin-top: .5rem; }
.rb-prose { font-size: .875rem; line-height: 1.6; }
.rb-prose h1 { display: none; }
.rb-prose h2 { font-weight: 600; font-size: 1rem; margin: 1rem 0 .35rem; }
.rb-prose h3 { font-weight: 600; margin: .75rem 0 .25rem; }
.rb-prose ul { list-style: disc; padding-inline-start: 1.25rem; }

/* Takvim arac cubugu + hafta gorunumu */
.rb-cal-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
.rb-cal-nav { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rb-cal-title { font-size: 1.05rem; font-weight: 600; margin-inline-start: .5rem; }
.rb-cal-scroll { overflow-x: auto; }
.rb-cal-scroll .rb-cal { min-width: 44rem; }
.rb-cal.is-week .rb-cal-day { min-height: 16rem; }
.rb-cal-item.is-planned { background: transparent; border: 1px dashed rgb(139 92 246); }
.rb-cal-legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-cal-legend .rb-cal-item { display: inline-block; margin: 0; }
a.rb-cal-item:hover { filter: brightness(.95); text-decoration: underline; }
.rb-row-overdue { background: rgb(254 242 242); }
.dark .rb-row-overdue { background: rgb(69 10 10 / .45); }

/* Alan adi sagligi */
.rb-health { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rb-health-item { display: flex; gap: .75rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid rgb(226 232 240); }
.rb-health-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rb-health-title { font-size: .9rem; margin: 0; }
.rb-health-detail { font-size: .8rem; color: rgb(100 116 139); margin: .25rem 0 0; word-break: break-word; }
.dark .rb-health-item { border-color: rgb(51 65 85); }

/* Aylik rapor */
.rb-report-toolbar { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.rb-report-select { border: 1px solid rgb(203 213 225); border-radius: .5rem; padding: .4rem 2rem .4rem .75rem; font-size: .875rem; background-color: transparent; }
.rb-report-head { display: flex; align-items: center; gap: 1.25rem; border-bottom: 3px solid rgb(15 23 42); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.rb-report-logo { height: 2.5rem; width: auto; }
.rb-report-head h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.rb-report-sub, .rb-report-muted { color: rgb(100 116 139); font-size: .875rem; margin: .25rem 0 0; }
.rb-report-kpis { width: 100%; border-collapse: separate; border-spacing: .5rem; margin: 0 -.5rem 1rem; }
.rb-report-kpi { border: 1px solid rgb(226 232 240); border-radius: .75rem; padding: .75rem 1rem; vertical-align: top; }
.rb-report-kpi-label { display: block; font-size: .75rem; color: rgb(100 116 139); }
.rb-report-kpi-value { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.rb-report-kpi-rate { font-size: .8rem; color: rgb(100 116 139); }
.rb-report-section { margin-top: 1.5rem; }
.rb-report-section h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.rb-report-chart { width: 100%; height: 10rem; color: rgb(37 99 235); border-bottom: 1px solid rgb(226 232 240); }
.rb-report-axis { display: flex; justify-content: space-between; font-size: .75rem; color: rgb(100 116 139); }
.rb-report-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rb-report-table th, .rb-report-table td { padding: .5rem .6rem; border-bottom: 1px solid rgb(226 232 240); }
.rb-report-table th { font-weight: 600; color: rgb(71 85 105); }
.rb-report-foot { margin-top: 1.5rem; font-size: .75rem; color: rgb(100 116 139); }
.dark .rb-report-head { border-color: rgb(226 232 240); }
.dark .rb-report-kpi, .dark .rb-report-table th, .dark .rb-report-table td, .dark .rb-report-select { border-color: rgb(51 65 85); }
.dark .rb-report-logo { filter: brightness(0) invert(1); }
@media (max-width: 640px) { .rb-report-kpis, .rb-report-kpis tbody, .rb-report-kpis tr, .rb-report-kpi { display: block; } }
@media print {
  .fi-sidebar, .fi-topbar, .fi-header-actions, .fi-page-sub-navigation, .fi-page-sub-navigation-tabs, .fi-page-sub-navigation-select,
  .fi-breadcrumbs, .rb-report-toolbar, .fi-header-subheading { display: none !important; }
  .fi-main, .fi-main-ctn, .fi-layout { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .rb-report-sheet { box-shadow: none !important; border: 0 !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .rb-report-logo { filter: none !important; }
}

/* ---- CRM: Kanban, zaman akisi, gorevler ---- */
.rb-crm-muted { color: rgb(100 116 139); font-size: .8rem; }
.dark .rb-crm-muted { color: rgb(148 163 184); }
.rb-crm-h { font-size: .95rem; font-weight: 600; margin: 0 0 .6rem; }
.rb-crm-select { border: 1px solid rgb(203 213 225); border-radius: .5rem; padding: .4rem 2rem .4rem .75rem; font-size: .875rem; background-color: transparent; max-width: 100%; }
.rb-crm-select.is-small { padding: .2rem 1.6rem .2rem .5rem; font-size: .75rem; margin-top: .5rem; width: 100%; }
.dark .rb-crm-select { border-color: rgb(51 65 85); background-color: rgb(15 23 42); color: rgb(226 232 240); }
.rb-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; margin-top: 1rem; scroll-snap-type: x proximity; }
.rb-kanban-col { background: rgb(241 245 249); border: 2px dashed transparent; border-radius: .75rem; padding: .6rem; min-height: 12rem; scroll-snap-align: start; transition: border-color .15s, background .15s; }
.rb-kanban-col.is-over { border-color: rgb(37 99 235); background: rgb(219 234 254); }
.dark .rb-kanban-col { background: rgb(30 41 59); }
.dark .rb-kanban-col.is-over { background: rgb(30 58 138 / .5); }
.rb-kanban-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.rb-kanban-list { display: flex; flex-direction: column; gap: .5rem; }
.rb-kanban-card { background: #fff; border: 1px solid rgb(226 232 240); border-radius: .6rem; padding: .6rem .7rem; box-shadow: 0 1px 2px rgb(15 23 42 / .06); cursor: grab; }
.rb-kanban-card:active { cursor: grabbing; }
.dark .rb-kanban-card { background: rgb(15 23 42); border-color: rgb(51 65 85); }
.rb-kanban-title { display: block; font-weight: 600; font-size: .9rem; color: inherit; text-decoration: none; word-break: break-word; }
.rb-kanban-title:hover { text-decoration: underline; }
.rb-kanban-value { font-size: .8rem; font-weight: 600; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.rb-kanban-empty { padding: .5rem; text-align: center; }
.rb-crm-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; }
@media (max-width: 900px) { .rb-crm-detail { grid-template-columns: 1fr; } }
.rb-crm-task { display: flex; gap: .75rem; justify-content: space-between; align-items: center; border: 1px solid rgb(226 232 240); border-left-width: 4px; border-left-color: rgb(37 99 235); border-radius: .5rem; padding: .5rem .7rem; margin-bottom: .5rem; }
.rb-crm-task.is-overdue { border-left-color: rgb(220 38 38); background: rgb(254 242 242); }
.rb-crm-task.is-done { border-left-color: rgb(22 163 74); opacity: .7; }
.rb-crm-task.is-done .rb-crm-task-title { text-decoration: line-through; }
.dark .rb-crm-task { border-color: rgb(51 65 85); }
.dark .rb-crm-task.is-overdue { background: rgb(69 10 10 / .45); border-left-color: rgb(248 113 113); }
.rb-crm-task-title { font-weight: 600; font-size: .875rem; }
.rb-crm-tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgb(226 232 240); }
.dark .rb-crm-tl { border-color: rgb(51 65 85); }
.rb-crm-tl-item { position: relative; display: flex; gap: .6rem; padding: 0 0 1rem 1.4rem; }
.rb-crm-tl-icon { position: absolute; left: -.8rem; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: rgb(241 245 249); color: rgb(71 85 105); border: 2px solid #fff; }
.dark .rb-crm-tl-icon { background: rgb(30 41 59); color: rgb(203 213 225); border-color: rgb(15 23 42); }
.rb-crm-tl-item.is-olusturuldu .rb-crm-tl-icon, .rb-crm-tl-item.is-tekrar_basvuru .rb-crm-tl-icon { background: rgb(219 234 254); color: rgb(29 78 216); }
.rb-crm-tl-item.is-durum .rb-crm-tl-icon { background: rgb(254 243 199); color: rgb(180 83 9); }
.rb-crm-tl-item.is-not .rb-crm-tl-icon { background: rgb(220 252 231); color: rgb(21 128 61); }
.rb-crm-tl-head { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; font-size: .875rem; }
.rb-crm-tl-text { margin-top: .25rem; font-size: .875rem; white-space: pre-line; word-break: break-word; }
