/* =====================================================================
   BATSO 2026 · Tasarım Dili
   Yalnızca renk/font değişkenleri, Bootstrap override'ları ve özel
   componentler. Layout ve boşluklar Bootstrap utility class'ları ile.
   ===================================================================== */

:root {
  /* Manifesto paleti */
  --primary:   #1A2530;   /* Gece mavisi */
  --primary-2: #0F1A22;
  --secondary: #64748B;   /* Gümüş gri */
  --bg:        #F8FAFC;
  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --info:      #3B82F6;
  --line:      #EEF2F6;
  --line-soft: #F6F8FA;
  --muted:     #94A3B8;
  --ink:       #1A2530;

  /* Tipografi — Fontshare: Cabinet Grotesk + Satoshi */
  --font-display: "Cabinet Grotesk", -apple-system, "Segoe UI", sans-serif; /* 700/800/900 */
  --font-body:    "Satoshi", -apple-system, "Segoe UI", sans-serif;         /* 400/500/700/900 */

  /* Bootstrap değişkenlerini palete bağla → utility'ler doğru renk verir */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 26, 37, 48;
  --bs-body-font-family: var(--font-body);
  --bs-font-sans-serif: var(--font-body);
  --bs-border-color: var(--line);
  --bs-link-color: var(--info);
  --bs-link-hover-color: var(--primary);
  --bs-link-decoration: none;
  --bs-link-hover-decoration: none;
}

/* --- Tipografi ---------------------------------------------------- */
/* Satoshi: gövde, tablolar, form etiketleri, butonlar */
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* SaaS paneli: linklerde alt çizgi yok (CLAUDE.md — temiz operasyon UI) */
a,
a:hover,
a:focus,
a:active {
  text-decoration: none !important;
}

/* Cabinet Grotesk: başlıklar, rakamlar, kart başlıkları */
h1, h2, h3, h4, h5, h6,
.font-display,
.stat-num,
.brand-badge {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.font-display { font-weight: 800; }
.stat-num     { font-weight: 900; }
h1, h2        { font-weight: 900; }
h3, h4        { font-weight: 800; }
h5, h6        { font-weight: 700; }

.tracking-wide { letter-spacing: 0.1em; }
.text-muted-2 { color: var(--muted) !important; }

/* --- App shell ---------------------------------------------------- */
.app { display: flex; min-height: 100vh; align-items: stretch; }
.app > .flex-fill { min-width: 0; } /* flex çocuğu taşmasını engeller */

.app-sidebar {
  width: 252px; flex: none; background: var(--primary);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
}
.brand-badge {
  width: 36px; height: 36px; border: 1.5px solid #ffffff33;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 13px;
}
.nav-label { padding: 0 8px 8px; color: #475569; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.nav-item {
  display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 10px;
  border: 0; border-radius: 6px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  text-align: left; width: 100%; background: transparent; color: var(--muted);
  text-decoration: none; transition: background .15s, color .15s;
}
.nav-item:hover { background: #ffffff14; color: #fff; text-decoration: none; }
.nav-item.active { background: #ffffff14; color: #fff; }
.nav-item .dot { width: 7px; height: 7px; border-radius: 2px; flex: none; background: #334155; }
.nav-item.active .dot { background: var(--success); }
.nav-item .count {
  margin-left: auto; font-size: 11px; font-weight: 700; color: #FCA5A5;
  background: #ef444426; padding: 2px 7px; border-radius: 20px;
}
.sidebar-meter { margin-top: auto; padding: 14px; border-radius: 8px; background: #ffffff0a; }

/* --- Header ------------------------------------------------------- */
.app-header {
  min-height: 70px; flex: none; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; padding: 0 32px;
  position: sticky; top: 0; z-index: 5;
}
.menu-toggle { width: 40px; padding: 0; }
.menu-toggle-icon {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 18px; height: 12px;
}
.menu-toggle-icon span {
  display: block; height: 2px; border-radius: 1px; background: var(--ink);
}
.app-main { flex: 1; padding: 32px; display: flex; flex-direction: column; gap: 26px; }
.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

/* --- Kartlar ------------------------------------------------------ */
.card { border: 0; border-radius: 8px; box-shadow: 0 1px 3px #1a25300f; }
.card.card-dark { background: var(--primary); color: #fff; }
.card-hover { transition: box-shadow .18s, transform .18s; cursor: pointer; }
.card-hover:hover { box-shadow: 0 6px 18px #1a253017; transform: translateY(-2px); }
.stat-num { font-size: 46px; line-height: 1; letter-spacing: -.03em; }

/* Metin linkleri — renk + ağırlık, alt çizgisiz */
a.link-quiet {
  color: var(--info); font-weight: 700; text-decoration: none;
}
a.link-quiet:hover { color: var(--primary); }

/* --- Rozetler (soft badge + dot) --------------------------------- */
.badge-soft {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .6rem; border-radius: 20px; font-weight: 700; font-size: .72rem;
  color: var(--secondary); background: #64748b14;
}
.badge-soft::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-soft.no-dot::before { display: none; }
.d-bekliyor { color: #64748B; background: #64748b14; }
.d-teklif   { color: #3B82F6; background: #3b82f614; }
.d-kararsiz { color: #F59E0B; background: #f59e0b14; }
.d-onay     { color: #10B981; background: #10b98114; }
.d-red      { color: #EF4444; background: #ef444414; }
.r-asil     { color: #10B981; background: #10b98114; }
.r-yedek    { color: #3B82F6; background: #3b82f614; }
.r-sektor   { color: #F59E0B; background: #f59e0b14; }

/* --- İnce progress ----------------------------------------------- */
.progress.progress-thin { height: 5px; border-radius: 4px; background: #F1F5F9; }
.progress.progress-xthin { height: 4px; border-radius: 4px; background: #F1F5F9; }
.progress-bar { border-radius: 4px; }

/* --- Form / buton — tek görünüm dili ---------------------------- */
.form-control, .form-select {
  font-family: var(--font-body);
  border: 1px solid #E9EEF3; border-radius: 6px; font-size: 14px; font-weight: 400; min-height: 46px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px #1a253012;
}
.form-label { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: #334155; }

/* Standalone butonlar (Bootstrap .btn) */
.btn {
  --btn-h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--btn-h); min-height: var(--btn-h); padding: 0 16px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  line-height: 1; border-radius: 6px; white-space: nowrap;
  text-decoration: none;
}
.btn-sm { --btn-h: 34px; padding: 0 12px; font-size: 12px; }
.btn-lg, .btn-touch { --btn-h: 48px; padding: 0 20px; font-size: 13.5px; }
.btn-primary {
  --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-2); --bs-btn-hover-border-color: var(--primary-2);
  --bs-btn-active-bg: var(--primary-2); --bs-btn-color: #fff;
}
.btn-secondary, .btn-light {
  --bs-btn-bg: #fff; --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: #F8FAFC; --bs-btn-hover-border-color: var(--line);
  --bs-btn-active-bg: #F1F5F9; --bs-btn-color: #334155;
  color: #334155; background: #fff; border: 1px solid var(--line);
}
.btn-secondary:hover, .btn-light:hover,
.btn-secondary:focus, .btn-light:focus {
  color: var(--ink); background: #F8FAFC; border-color: var(--line);
}
.btn-danger-soft {
  color: var(--danger); background: #fff; border: 1px solid var(--line);
}
.btn-danger-soft:hover {
  color: var(--danger); background: #FEF2F2; border-color: #FECACA;
}
.btn-ghost {
  border: 1.5px dashed #E2E8F0; background: transparent; color: var(--muted);
  height: var(--btn-h); min-height: var(--btn-h);
}
.btn-ghost:hover { border-color: var(--muted); color: #334155; background: #FBFCFD; }

/* Form altı aksiyon satırı */
.form-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.form-actions.mt-2 { margin-top: 8px; }

/* Segmentli aksiyon grubu (sayfa / tablo / export — aynı dil) */
.ui-actions,
.page-actions,
.export-actions,
.row-actions {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff;
}
.ui-actions > form,
.page-actions > form,
.export-actions > form,
.row-actions > form,
.row-actions > .dropdown { display: inline-flex; margin: 0; }

.ui-actions .ui-btn,
.page-actions .page-action,
.export-actions .export-btn,
.row-actions .row-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 14px; border: 0; border-radius: 0;
  background: #fff; color: #334155;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: background .15s, color .15s;
}
.row-actions .row-action { height: 34px; padding: 0 12px; font-size: 12px; }

.ui-actions > .ui-btn + .ui-btn,
.ui-actions > form + .ui-btn,
.ui-actions > .ui-btn + form .ui-btn,
.ui-actions > form + form .ui-btn,
.page-actions > .page-action + .page-action,
.page-actions > form + .page-action,
.page-actions > .page-action + form .page-action,
.page-actions > form + form .page-action,
.export-actions > .export-btn + .export-btn,
.export-actions > form + .export-btn,
.export-actions > .export-btn + form .export-btn,
.row-actions > .row-action + .row-action,
.row-actions > form + .row-action,
.row-actions > .row-action + form .row-action,
.row-actions > form + form .row-action,
.row-actions > .dropdown .row-action,
.row-actions > .row-action + .dropdown .row-action,
.row-actions > form + .dropdown .row-action {
  border-left: 1px solid var(--line);
}

.ui-actions .ui-btn:hover,
.page-actions .page-action:hover,
.export-actions .export-btn:hover,
.row-actions .row-action:hover {
  background: #F8FAFC; color: var(--ink); text-decoration: none;
}

.ui-actions .ui-btn.is-primary,
.page-actions .page-action.is-primary {
  background: var(--primary); color: #fff;
}
.ui-actions .ui-btn.is-primary:hover,
.page-actions .page-action.is-primary:hover {
  background: var(--primary-2); color: #fff;
}
.ui-actions .ui-btn.is-danger,
.page-actions .page-action.is-danger,
.row-actions .row-action.is-danger,
.row-actions .row-action.text-danger {
  color: var(--danger);
}
.ui-actions .ui-btn.is-danger:hover,
.page-actions .page-action.is-danger:hover,
.row-actions .row-action.is-danger:hover,
.row-actions .row-action.text-danger:hover {
  background: #FEF2F2; color: var(--danger);
}

.row-actions .row-action-icon { width: 34px; padding: 0; color: var(--secondary); }
.row-actions .row-action-icon:hover { color: var(--ink); }
.row-actions .chev {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7;
}

.export-actions .export-dot,
.ui-actions .export-dot {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
}
.export-actions .export-dot.is-xls,
.ui-actions .export-dot.is-xls { background: var(--success); }
.export-actions .export-dot.is-pdf,
.ui-actions .export-dot.is-pdf { background: var(--danger); }

@media (max-width: 575.98px) {
  .ui-actions, .page-actions { width: 100%; }
  .ui-actions .ui-btn,
  .page-actions .page-action { flex: 1; justify-content: center; padding: 0 10px; }
}

/* --- Filtre chip'leri (Aday Havuzu) -------------------------------- */
.filter-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.filter-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 14px; border: 0; border-radius: 6px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  color: var(--secondary); background: transparent;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.filter-chip:hover { background: #EEF2F6; color: var(--ink); text-decoration: none; }
.filter-chip.is-active {
  background: var(--primary); color: #fff;
}
.filter-chip.is-active:hover { background: var(--primary-2); color: #fff; }

/* --- Slot (komite detay) ----------------------------------------- */
.slot-card { border: 1px solid #F1F5F9; border-radius: 7px; padding: 14px; text-decoration: none; color: inherit; }
.slot-card.linked { cursor: pointer; transition: border-color .15s, background .15s; }
.slot-card.linked:hover { border-color: #CBD5E1; background: #FBFCFD; text-decoration: none; color: inherit; }
.slot-empty { min-height: 96px; }
.initials {
  font-family: var(--font-display);
  border-radius: 50%; background: #F1F5F9; display: flex; align-items: center;
  justify-content: center; font-weight: 800; color: #475569;
}

/* --- Timeline (görüşme geçmişi) ---------------------------------- */
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 16px; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.timeline-node { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.timeline-line { flex: 1; width: 1.5px; background: var(--line); }

/* --- Kanban ------------------------------------------------------- */
.kanban {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  align-items: start;
}
.kanban-col { background: #F1F5F9; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kanban-card { background: #fff; border-radius: 7px; padding: 13px; box-shadow: 0 1px 2px #1a25300f;
  cursor: pointer; border-left: 3px solid var(--secondary); transition: box-shadow .15s;
  text-decoration: none; color: inherit; }
.kanban-card:hover { box-shadow: 0 5px 14px #1a253017; text-decoration: none; color: inherit; }

/* Teklif liste — accordion */
.teklif-acc-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 16px; border: 0; background: #fff; cursor: pointer;
  font-family: var(--font-body); text-align: left; color: var(--ink);
  transition: background .15s;
}
.teklif-acc-head:hover { background: #F8FAFC; }
.teklif-acc-dot {
  width: 8px; height: 8px; border-radius: 2px; flex: none;
}
.teklif-acc-chev {
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #94A3B8;
  transition: transform .2s;
}
.teklif-acc-head.collapsed .teklif-acc-chev {
  transform: rotate(-90deg);
}

/* --- Responsive tablo → kart fallback (Satoshi) ------------------ */
.rtable { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.rtable thead th {
  font-family: var(--font-body);
  color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.rtable tbody td {
  font-family: var(--font-body);
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; font-weight: 400; vertical-align: middle;
}
.rtable tbody tr:hover { background: #FBFCFD; }

/* Rapor tablosu — sayı sütunları sabit oran + ortalı */
.rtable-report { table-layout: fixed; }
.rtable-report th:nth-child(1),
.rtable-report td:nth-child(1) { width: 40%; }
.rtable-report th:nth-child(n+2),
.rtable-report td:nth-child(n+2) { width: 15%; }
.rtable-report .text-center { text-align: center; }
.rtable-report tfoot .rtable-total td {
  background: var(--primary); color: #fff; border: 0;
  padding: 14px 20px; font-family: var(--font-display); font-weight: 800;
  font-size: 13px; letter-spacing: -0.01em;
}
.rtable-report tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 991.98px) {
  .rtable thead { display: none; }
  .rtable tbody tr {
    display: block; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px #1a25300f;
    padding: 6px 4px; margin-bottom: 12px;
  }
  .rtable tbody td { display: flex; justify-content: space-between; align-items: center;
    gap: 14px; border: 0; border-bottom: 1px solid var(--line-soft); padding: 11px 16px; text-align: left !important; }
  .rtable tbody tr td:last-child { border-bottom: 0; }
  .rtable tbody td::before {
    content: attr(data-label); font-size: 11px; font-weight: 700; color: var(--muted);
    letter-spacing: .04em; text-transform: uppercase; flex: none;
  }
  .rtable td[data-label=""]::before { display: none; }
  .rtable td[data-label=""] { justify-content: stretch; }
  .rtable .row-actions { width: 100%; }
  .rtable .row-actions .row-action { flex: 1; }

  /* Accordion içi tabloda çift gölge olmasın */
  .teklif-acc-item .rtable tbody tr {
    box-shadow: none; border: 1px solid var(--line); margin: 8px 12px; margin-bottom: 8px;
  }
  .teklif-acc-item .rtable tbody tr:last-child { margin-bottom: 12px; }

  /* Kanban: yatay kaydırılabilir kolonlar */
  .kanban {
    display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -4px; padding-left: 4px; padding-right: 4px;
  }
  .kanban-col {
    flex: 0 0 min(272px, 82vw); scroll-snap-align: start; max-height: none;
  }
}

/* Raporlar mobil kart listesi (tablo display:grid Safari'de kırılıyor) */
.rapor-mobile { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rapor-m-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px;
}
.rapor-m-card-total {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.rapor-m-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.rapor-m-name {
  font-size: 13.5px; font-weight: 700; line-height: 1.3; min-width: 0;
}
.rapor-m-total {
  font-size: 15px; font-weight: 800; flex: none; white-space: nowrap;
}
.rapor-m-card-total .rapor-m-name {
  font-size: 11px; letter-spacing: .08em; font-weight: 700; color: #94A3B8;
}
.rapor-m-bar {
  height: 4px; border-radius: 4px; background: #F1F5F9; margin-top: 10px; overflow: hidden;
}
.rapor-m-fill { height: 100%; border-radius: 4px; }
.rapor-m-metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.rapor-m-card-total .rapor-m-metrics { border-top-color: #ffffff1a; }
.rapor-m-metric {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13.5px; font-weight: 800;
}
.rapor-m-label {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.rapor-m-card-total .rapor-m-label { color: #94A3B8; }
.rapor-m-card-total .rapor-m-metric span:last-child { color: #fff; }

/* --- Login ------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; }
.login-hero {
  background: var(--primary); padding: 56px 60px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.login-hero .grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-hero-title { font-weight: 900; font-size: 54px; line-height: 1.02; color: #fff; letter-spacing: -.03em; }
.login-mobile-brand {
  display: none; align-items: center; gap: 10px; margin-bottom: 8px;
}
.login-mobile-brand .brand-badge {
  background: var(--primary); border-color: transparent;
}

/* --- Responsive shell (tablet + telefon) ------------------------- */
@media (max-width: 1199.98px) {
  .kanban {
    display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 8px;
  }
  .kanban-col { flex: 0 0 230px; scroll-snap-align: start; }
}

@media (max-width: 991.98px) {
  .app-main { padding: 18px 16px; gap: 18px; }
  .app-header {
    min-height: 60px; gap: 10px; padding: 0 14px;
  }
  .app-header .font-display { font-size: 17px !important; }
  .app-header .text-muted-2 { font-size: 11.5px !important; }
  .stat-num { font-size: 36px; }
  .card.p-4 { padding: 1.1rem !important; }
}

@media (max-width: 767.98px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-mobile-brand { display: flex; }
  .login-hero-title { font-size: 40px; }

  /* Araç çubukları: tam genişlik, düzgün sarma */
  .page-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  }
  .page-toolbar .btn.ms-auto,
  .page-toolbar > .btn.btn-primary {
    width: 100%; margin-left: 0 !important;
  }
  .page-toolbar .ui-actions.ms-auto,
  .page-toolbar .export-actions.ms-auto {
    width: 100%; margin-left: 0 !important;
  }
  .page-toolbar .ui-actions.ms-auto .ui-btn,
  .page-toolbar .export-actions.ms-auto .export-btn {
    flex: 1; justify-content: center;
  }
  .page-toolbar .filter-chips {
    width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .page-toolbar .filter-chip { flex: none; }
  .page-toolbar > form[action="adaylar.php"] {
    width: 100% !important; max-width: none !important;
  }

  /* Komite detay üst kartı */
  .komite-hero-actions { width: 100%; }
  .komite-hero-actions.ui-actions { width: 100%; }

  /* Form alt aksiyonlar */
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }

  /* Timeline aksiyonları taşmasın */
  .timeline-item .row-actions { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .app-main { padding: 14px 12px; gap: 14px; }
  .stat-num { font-size: 32px; }
  .app-header { gap: 8px; }
  .app-header .ms-auto.d-flex { gap: 8px !important; }
  .badge-soft { white-space: nowrap; }

  /* Slot kartları dokunmatik */
  .slot-empty { min-height: 88px; }
  .btn-ghost.slot-empty { width: 100%; }

  /* Export / segment grupları taşmasın */
  .ui-actions, .export-actions { max-width: 100%; }
  .ui-actions .ui-btn, .export-actions .export-btn { padding: 0 12px; }

  /* Aday detay geri butonu */
  .app-main > .btn.btn-secondary.btn-sm { margin-bottom: 4px; }

  /* Dashboard acil şerit */
  #acil .btn { width: 100%; }
}

/* Komite detay üst kart — mobilde dikey */
@media (max-width: 991.98px) {
  .komite-hero {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .komite-hero .flex-fill { max-width: none !important; width: 100%; }
}

/* Sidebar offcanvas (mobil) içinde tam boy görünsün */
.offcanvas .app-sidebar { position: static; height: auto; width: 100%; min-height: 100%; }
