:root{
  --bg: #eef1f6;
  --card-bg: #ffffff;
  --card-border: #d7dce6;
  --text-main: #1c2433;
  --text-muted: #6b7280;

  --track: #f0d9d9;
  --bar: #dc2626;
  --bar-dark: #b91c1c;
  --bar-overflow: #7c3aed;
  --bar-overflow-dark: #5b21b6;
  --track-overflow: #ede9fe;

  --c-analiz: #2563eb;
  --c-gelistirme: #ea580c;
  --c-kgg: #7c3aed;
  --c-test: #059669;

  --badge-islem-bg: #dbeafe; --badge-islem-fg: #1d4ed8;
  --badge-hata-bg: #fee2e2; --badge-hata-fg: #b91c1c;
  --badge-gelistirme-bg: #dcfce7; --badge-gelistirme-fg: #15803d;
  --badge-web-bg: #ede9fe; --badge-web-fg: #6d28d9;
  --badge-default-bg: #e5e7eb; --badge-default-fg: #374151;
}

*{box-sizing:border-box;}
html,body{
  margin:0; padding:0;
  background: #f4f5f7;
  color: #1c2433;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.topbar{
  display:flex; flex-wrap:wrap; align-items:center; gap:14px;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #d7dce6;
  position: sticky; top:0; z-index: 30;
}
.topbar h1{
  font-size: 17px; font-weight: 700; margin: 0 8px 0 0;
  color: #1c2433; letter-spacing: -0.2px; white-space: nowrap;
}
.page-nav{
  display:flex; gap:4px;
  background:#eef1f6;
  border-radius:9px;
  padding:3px;
  margin-right: 6px;
}
/* ☰ menü ve ⚙️ filtre düğmeleri sadece mobilde (≤900px) görünür; masaüstünde
   menü linkleri ve filtreler zaten satır içinde açık olduğundan gizlidirler. */
.nav-toggle-btn{ display:none; }
.filter-toggle-btn{ display:none; }
.page-nav .nav-link{
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight:700;
  color:#6b7280;
  text-decoration:none;
  white-space:nowrap;
}
.page-nav .nav-link.active{
  background:#ffffff;
  color:#2563eb;
  box-shadow: 0 1px 2px rgba(20,25,40,0.12);
}
.page-nav .nav-link:hover:not(.active){
  color:#374151;
}
.filters{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.filters label{
  font-size: 11px; color: #6b7280; font-weight:600;
  text-transform:uppercase; letter-spacing:0.4px; margin-right:2px;
}
.filters input[type="date"], .filters select{
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d7dce6;
  background: #f8f9fc;
  color: #1c2433;
  font-size: 13px;
  cursor:pointer;
}
.filters select{ min-width: 140px; }
.filters .sep{ color:#9aa1b0; font-size:12px; }
.filters .divider{
  width:1px; height:24px; background:#e2e6ee; margin: 0 4px;
}
.filters button{
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #d7dce6;
  background: #ffffff;
  color: #374151;
  font-size: 12.5px;
  cursor:pointer;
  font-weight:600;
}
.filters button:hover{ background:#f0f2f7; }
.filters button.primary{
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.filters button.primary:hover{ background:#1d4ed8; }
.filters button:disabled{ opacity:0.6; cursor:not-allowed; }

.filters .checkbox-filter{
  display:flex; align-items:center; gap:6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  background: #fffbeb;
  cursor:pointer;
  font-size: 12.5px;
  font-weight:700;
  color: #92400e;
}
.filters .checkbox-filter input{
  cursor:pointer;
  accent-color: #f59e0b;
}
.filters .checkbox-filter.active{
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
}

.counter{
  margin-left:auto;
  font-size: 12.5px;
  color: #6b7280;
  font-weight:600;
  white-space:nowrap;
}
/* Kanban panosunda sayaç artık .filters satırının içinde, yenileme bilgisinin
   yanında yer alıyor — orada margin-left:auto'ya gerek yok, akışta kalsın. */
.counter.counter-inline{ margin-left:0; }

.status-bar{
  padding: 10px 20px;
  font-size: 13px;
  font-weight:600;
}
.status-bar.error{ background:#fee2e2; color:#b91c1c; }
.status-bar.loading{ background:#dbeafe; color:#1d4ed8; }

.main-layout{
  display:flex;
  align-items:stretch;
  height: calc(100vh - 66px);
}

.board{
  display:flex;
  gap: 14px;
  padding: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items:flex-start;
  flex: 1;
  min-width: 0;
}

.side-panel{
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  background: #ffffff;
  border-left: 1px solid #d7dce6;
  display:flex;
  flex-direction:column;
  height: 100%;
}

/* ---------- Çalışılıyor orta kolon ---------- */
.working-column{
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  background: #fffdf7;
  border-left: 1px solid #d7dce6;
  border-right: 1px solid #d7dce6;
  display:flex;
  flex-direction:column;
  height: 100%;
}
.working-column.is-hidden{ display:none; }

.toggle-working-btn{
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
  font-weight:700;
  border-radius:8px;
  padding:6px 12px;
  cursor:pointer;
  white-space:nowrap;
}
.toggle-working-btn:hover{ background:#fef3c7; }
.toggle-working-btn.active{
  background:#f59e0b;
  border-color:#f59e0b;
  color:#ffffff;
}
.working-col-head{
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid #fde68a;
  background: #fffbeb;
}
.working-col-head h2{
  margin:0;
  font-size: 14.5px;
  font-weight:800;
  color: #92400e;
  display:flex;
  align-items:center;
  gap:8px;
}
.working-col-head .cnt{
  background: #f59e0b;
  color:#ffffff;
  border-radius:999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight:800;
}
.working-col-controls{
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f6;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.working-col-body{
  padding: 10px 12px;
  overflow-y: auto;
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.working-col-body::-webkit-scrollbar{ width:6px; }
.working-col-body::-webkit-scrollbar-thumb{ background:#c3cadb; border-radius:10px; }

.toggle-switch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 12px;
  font-weight:700;
  color:#374151;
  cursor:pointer;
}
.toggle-switch{
  position:relative;
  display:inline-block;
  width: 38px;
  height: 20px;
  flex-shrink:0;
}
.toggle-switch input{
  opacity:0;
  width:0;
  height:0;
}
.toggle-slider{
  position:absolute;
  cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background:#d7dce6;
  border-radius:999px;
  transition:.15s;
}
.toggle-slider::before{
  content:"";
  position:absolute;
  width:16px; height:16px;
  left:2px; bottom:2px;
  background:#ffffff;
  border-radius:50%;
  transition:.15s;
  box-shadow:0 1px 2px rgba(0,0,0,0.25);
}
.toggle-switch input:checked + .toggle-slider{
  background:#f59e0b;
}
.toggle-switch input:checked + .toggle-slider::before{
  transform: translateX(18px);
}

/* Çalışılıyor kolonundaki kompakt kartlar */
.working-card{
  background:#ffffff;
  border:1px solid #d7dce6;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
}
.working-card .wc-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 3px;
  gap:6px;
}
.working-card .wc-id{
  font-weight:800;
  font-size: 12px;
  color:#1c2433;
}
.working-card .wc-proje{
  font-size: 10.5px;
  font-weight:700;
  color:#4b5563;
  margin-bottom: 4px;
}
.working-card .wc-aciklama{
  font-size: 10.8px;
  color:#374151;
  line-height:1.35;
  margin-bottom: 6px;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.working-card .wc-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 5px;
  border-top: 1px dashed #eef1f6;
  gap:6px;
}
.working-card .wc-resp-col{
  display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-width:0;
}
.working-card .wc-resp{
  font-size: 10.5px;
  font-weight:700;
  color:#1c2433;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.working-card .wc-status{
  font-size: 9px;
  font-weight:700;
  color:#9aa1b0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 100px;
}

.side-panel-head{
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid #eef1f6;
}
.side-panel-head h2{
  margin:0;
  font-size: 14.5px;
  font-weight:800;
  color: #1c2433;
}

.side-panel-controls{
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f6;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.mode-toggle{
  display:flex;
  background: #eef1f6;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.mode-btn{
  flex:1;
  border:none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight:700;
  color: #6b7280;
  cursor:pointer;
}
.mode-btn.active{
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 2px rgba(20,25,40,0.12);
}

.mode-toggle-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
}
.mode-toggle-grid .mode-btn{
  font-size: 11px;
  padding: 6px 4px;
  white-space:nowrap;
}

.range-inputs{
  display:flex;
  align-items:center;
  gap: 6px;
}
.range-inputs input[type="date"]{
  flex:1;
  min-width:0;
  padding: 6px 6px;
  border-radius: 7px;
  border: 1px solid #d7dce6;
  background: #f8f9fc;
  font-size: 12px;
}
.range-inputs .sep{ color:#9aa1b0; font-size:11px; }

.refresh-btn{
  width:100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 12.5px;
  font-weight:700;
  cursor:pointer;
}
.refresh-btn:hover{ background:#1d4ed8; }
.refresh-btn:disabled{ opacity:0.6; cursor:not-allowed; }

.side-panel-meta{
  font-size: 10.5px;
  color: #9aa1b0;
  text-align:center;
}

.side-panel-body{
  padding: 12px 14px;
  overflow-y: auto;
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.side-panel-body::-webkit-scrollbar{ width:6px; }
.side-panel-body::-webkit-scrollbar-thumb{ background:#c3cadb; border-radius:10px; }

.summary-card{
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8f9fc;
}
.summary-card .s-title{
  font-size: 12px;
  font-weight:800;
  color: #1c2433;
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  gap:6px;
}
.summary-card .s-dot{
  width:8px; height:8px; border-radius:50%;
}
.summary-metrics{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.summary-metric{
  text-align:center;
  background: #ffffff;
  border-radius: 7px;
  padding: 6px 4px;
  border: 1px solid #eef1f6;
}
.summary-metric .m-val{
  font-size: 15px;
  font-weight:800;
  color: #1c2433;
  display:block;
}
.summary-metric .m-label{
  font-size: 8.5px;
  color: #9aa1b0;
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:0.2px;
}
.summary-metric.gelen .m-val{ color:#2563eb; }
.summary-metric.biten .m-val{ color:#059669; }
.summary-metric.devam .m-val{ color:#dc2626; }

.summary-wait{
  font-size: 10.5px;
  color: #6b7280;
  border-top: 1px dashed #e2e6ee;
  padding-top: 6px;
  display:flex;
  justify-content:space-between;
}
.summary-wait b{ color:#b91c1c; }

.column{
  flex: 0 0 340px;
  width: 340px;
  min-width: 340px;
  max-width: 340px;
  background: #e4e8f0;
  border-radius: 12px;
  display:flex;
  flex-direction:column;
  max-height: 100%;
  border: 1px solid #d7dce6;
}

.col-head{
  position:relative;
  padding: 12px 12px 10px 12px;
  border-radius: 12px 12px 0 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  letter-spacing:0.2px;
}
.col-head .cnt{
  position:relative;
  background: rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight:700;
  cursor:pointer;
}
.col-head .cnt:hover{ background: rgba(255,255,255,0.45); }
.col-head .cnt.status-over:hover{ background:#b91c1c; }
.col-head .cnt.status-at:hover{ background:#1d4ed8; }
.col-head .cnt.status-under:hover{ background:#15803d; }

.col-analiz .col-head{ background: #2563eb; }
.col-gelistirme .col-head{ background: #ea580c; }
.col-kgg .col-head{ background: #7c3aed; }
.col-test .col-head{ background: #059669; }
.col-merge .col-head{ background: #0891b2; }

/* Kolon kapasite hedefi tanımlıysa, sayı rozeti kendi düz (solid) rengini
   alır — animasyonlu efektler zemini zaten renkli olan başlıkta net
   okunmuyordu; bu yüzden tek bakışta anlaşılır, sabit bir renk kodu
   kullanılıyor: kırmızı=aşım, mavi=tam hedefte, yeşil=hedefin altında. */
.col-head .cnt.cnt-has-hedef{ color:#ffffff; font-weight:800; }
.col-head .cnt.status-at{ background:#2563eb; }
.col-head .cnt.status-under{ background:#16a34a; }

/* Aşım (hedefi geçmiş) durumunda dikkat çekmesi için kabarma + yanıp sönen
   halka efekti — sadece gerçekten sorun olan (yüksek) sayılarda çalışır. */
.col-head .cnt.status-over{
  background:#dc2626;
  animation: cntOverPulse 1.4s ease-in-out infinite;
}
@keyframes cntOverPulse{
  0%, 100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,0.55); }
  50%{ transform: scale(1.16); box-shadow: 0 0 0 5px rgba(220,38,38,0); }
}

.col-body{
  padding: 8px;
  overflow-y: auto;
  display:flex;
  flex-direction:column;
  gap: 7px;
  flex: 1;
}
.col-body::-webkit-scrollbar{ width:7px; }
.col-body::-webkit-scrollbar-thumb{ background:#c3cadb; border-radius:10px; }

.card{
  background: #ffffff;
  border: 1px solid #d7dce6;
  border-left: 4px solid #9ca3af;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(20,25,40,0.06);
}
.col-analiz .card{ border-left-color: #2563eb; }
.col-gelistirme .card{ border-left-color: #ea580c; }
.col-kgg .card{ border-left-color: #7c3aed; }
.col-test .card{ border-left-color: #059669; }
.col-merge .card{ border-left-color: #0891b2; }

.card.calisiliyor{
  background: #fffbeb;
  border-color: #fbbf24;
  border-left-width: 5px;
  box-shadow: 0 0 0 1px #fde68a, 0 2px 5px rgba(217,119,6,0.18);
}

.calisiliyor-badge{
  display:inline-flex;
  align-items:center;
  gap: 4px;
  font-size: 9px;
  font-weight:800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  text-transform:uppercase;
  letter-spacing:0.3px;
  white-space:nowrap;
  margin-bottom: 5px;
}
.calisiliyor-badge .dot{
  width:6px; height:6px; border-radius:50%;
  background:#ffffff;
}
.calisiliyor-badge .elapsed-sep{ opacity:0.7; }

.elapsed-badge{
  display:inline-flex; align-items:center; gap:2px;
  font-size: 9.5px; font-weight:800;
  padding: 2px 7px; border-radius: 999px;
  background: #fef3c7; color: #92400e;
  white-space:nowrap;
}
.calisiliyor-badge .elapsed-badge{
  background:rgba(255,255,255,0.25); color:#ffffff;
  text-transform:none; letter-spacing:normal;
  padding: 1px 6px;
}

.card-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 3px; gap:6px;
}
.req-id{ font-weight:800; font-size: 12.5px; color: #1c2433; }
.card-top-right{ display:flex; align-items:center; gap:5px; }
.puan-badge{
  font-size: 9.5px;
  font-weight:800;
  padding: 2px 6px;
  border-radius: 5px;
  background:#fef3c7;
  color:#a16207;
  white-space:nowrap;
}
.badge{
  font-size: 9.5px; font-weight:800; padding: 2px 6px; border-radius: 5px;
  text-transform:uppercase; letter-spacing:0.3px; white-space:nowrap;
  background: #e5e7eb; color: #374151;
}
.badge-islem{ background:#dbeafe; color:#1d4ed8; }
.badge-hata{ background:#fee2e2; color:#b91c1c; }
.badge-gelistirme{ background:#dcfce7; color:#15803d; }
.badge-web{ background:#ede9fe; color:#6d28d9; }

.card-meta-row{
  display:flex; align-items:baseline; justify-content:space-between; gap:8px;
  margin-bottom: 4px;
}
.proje{ font-size: 11px; font-weight:700; color: #4b5563; white-space:nowrap; }
.ilk-yb{ font-size: 10px; font-weight:600; color: #059669; white-space:nowrap; }
.testten-donus{
  font-size: 10px; font-weight:700; color: #b91c1c; background:#fee2e2;
  border:1px solid #fecaca; border-radius:999px; padding:0 6px; white-space:nowrap;
}

.aciklama{
  font-size: 11px; color: #374151; line-height:1.35; margin-bottom: 6px;
  display:-webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow:hidden;
}

.metrics-row{
  display:flex;
  gap: 8px;
  margin-bottom: 6px;
}
.metric-col{
  flex: 1;
  min-width: 0;
}
.metric-label{
  display:block;
  font-size: 8.6px; color: #6b7280;
  font-weight:700; margin-bottom: 2px; text-transform:uppercase; letter-spacing:0.15px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.metric-val{
  display:block;
  font-size: 10.5px; font-weight:800; color: #b91c1c; margin-bottom: 2px;
}
.metric-val.overflow{ color: #6d28d9; }
.track{ width:100%; height: 5px; background: #f0d9d9; border-radius: 999px; overflow:hidden; }
.track.overflow{ background: #ede9fe; }
.fill{ height:100%; background: #dc2626; border-radius: 999px; }
.fill.overflow{ background: #7c3aed; }

.card-footer{
  margin-top: 6px; padding-top: 5px; border-top: 1px dashed #e2e6ee;
  display:flex; align-items:center; justify-content:space-between; gap: 6px;
}
.version-tag{
  font-size: 9.5px; color: #6b7280; font-weight:600; background: #f3f4f6;
  padding: 2px 6px; border-radius: 5px; white-space:nowrap;
}
.responsible{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; min-width:0; }
.resp-name{
  font-size: 10px; font-weight:700; color: #1c2433; text-align:right;
  max-width: 200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.dev-tag{
  display:inline-flex; align-items:center; gap:3px;
  font-size: 9.5px; font-weight:700; color: #1d4ed8;
  background: #dbeafe; padding: 1px 8px; border-radius: 999px;
  max-width: 210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  margin-top: 2px;
}
.dev-tag::before{ content: "≈"; font-weight:800; }
.status-tag{
  font-size: 8.7px; font-weight:700; color: #6b7280; text-align:right;
  max-width: 210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.empty-col, .empty-board{
  padding: 20px 10px; text-align:center; color: #9aa1b0; font-size: 12px; font-style: italic;
}
.empty-board{ padding: 60px 20px; width:100%; font-size:14px; }

@media (max-width: 600px){
  .topbar h1{ font-size:14px; }
  .filters select{ min-width:110px; font-size:12px; }
}

/* ===========================================================================
   Menü başlıkları (page-nav) — mobil uyum
   =========================================================================== */
@media (max-width: 900px){
  /* Mobilde üst bar tek satır: [☰ menü] [başlık] [⚙️ filtre] [KÇ avatar].
     Üçü de kompakt ikon düğmesi; başlık ortada esner, gerekirse kısalır.
     Kaynak sırası sayfalar arası farklı olduğundan konum flex "order" ile
     sabitlenir. */
  .topbar{ gap:8px; padding:10px 12px; }
  /* Başlık solda esner; üç buton sağda menü → filtre → avatar sırasıyla. */
  .topbar h1{
    order: 1;
    flex: 1 1 auto; min-width: 0;
    font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin: 0;
  }
  .page-nav{ order: 2; flex-wrap:wrap; gap:3px; margin-right:0; padding:4px; }
  .nav-toggle-btn{
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; border:none; border-radius:8px;
    background:#ffffff; color:#374151; font-size:15px; cursor:pointer;
  }
  .page-nav .nav-link{ display:none; padding:5px 9px; font-size:11.5px; }
  /* Menü açıldığında linkler ☰'in altında tam genişlikte açılır. */
  .page-nav.expanded{ flex: 1 1 100%; order: 5; }
  .page-nav.expanded .nav-link{ display:inline-flex; align-items:center; }

  /* Filtre düğmesi artık tam genişlik bir çubuk değil; ☰ ile aynı boyutta
     kompakt bir ikon (caption kaldırıldı). */
  .filter-toggle-btn{
    display:inline-flex; align-items:center; justify-content:center;
    order: 3;
    width:32px; height:32px; padding:0; margin:0;
    border:1px solid #d7dce6; border-radius:8px;
    background:#ffffff; color:#374151; font-size:15px; cursor:pointer;
  }

  /* Avatar en sağda. */
  .auth-menu-wrap{ order: 4; margin-left: 0; }
  .auth-menu{ min-width:200px; max-width: calc(100vw - 24px); }

  /* Filtreler paneli varsayılan kapalı — ⚙️ ile açılır, kendi tam-genişlik
     satırında görünür. */
  .topbar .filters{ display:none; width:100%; order: 6; }
  .topbar .filters.expanded{ display:flex; }

  /* Topbar'daki bağımsız kayıt sayacı ("66 kayıt (21 personel)" vb.) mobilde
     gizlenir — başlık satırını kalabalıklaştırıp butonları alt satıra itiyordu;
     aynı bilgi zaten alttaki KPI kutularında var. (Kanban'da sayaç .filters
     içinde olduğundan bu kural onu etkilemez, filtre açılınca görünür.) */
  .topbar > .counter{ display:none; }
}
@media (max-width: 480px){
  .page-nav .nav-link{ padding:5px 7px; font-size:10.5px; }
}

/* ===========================================================================
   Kanban ana ekran — mobil uyum
   Masaüstünde board + Çalışılıyor kolonu + Günlük Özet paneli yan yana
   (row-flex, sabit 300px genişlikler) sığdırılıyor; dar ekranda bu üçü
   yan yana sıkıştırılmaya çalışılınca üst üste biniyormuş gibi görünüyordu.
   Bunun yerine dar ekranda hepsi ALT ALTA dizilir, sayfa dikey kaydırılır.
   =========================================================================== */
@media (max-width: 900px){
  .main-layout{
    flex-direction: column;
    height: auto;
    align-items: stretch;
  }
  .board{
    height: auto;
    max-height: none;
    flex: none;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
  }
  /* Kolonlar yan yana yatay kaydırma yerine alt alta tek sütun; kartlar
     için ayrı bir iç kaydırma yok, sayfa tek parça dikey kayar. */
  .column{
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    max-height: none;
  }
  .col-body{
    overflow-y: visible;
    max-height: none;
  }
  /* Board gibi bunlar da artık sabit yarım-ekran yüksekliğe kilitli değil —
     içeriğine göre büyüyor, tüm sayfa tek parça dikey kayıyor. */
  .working-column, .side-panel{
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #d7dce6;
  }
  /* İçerik artık kendi kutusunda değil, sayfayla birlikte akıyor. */
  .side-panel-body, .working-col-body{
    overflow-y: visible;
    min-height: 0;
  }
}

@media (max-width: 600px){
  .board{ padding: 10px; gap:10px; }
}

/* ===========================================================================
   Daily Rapor — toplantı öncesi hızlı analiz raporu
   =========================================================================== */
.daily-rapor-btn{
  background: #1c2433;
  border-color: #1c2433;
  color: #ffffff;
}
.daily-rapor-btn:hover{ background: #2a3444; }

.daily-overlay{
  position: fixed; inset: 0;
  background: rgba(15,20,30,0.5);
  display:flex; align-items:center; justify-content:center;
  z-index: 1000;
}
.daily-overlay.is-hidden{ display:none; }

.daily-modal{
  background:#fff;
  border-radius:14px;
  width: 760px; max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display:flex; flex-direction:column;
  overflow:hidden;
}
.daily-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 20px; border-bottom: 1px solid #e2e6ee;
}
.daily-modal-head h2{ margin:0; font-size:16px; font-weight:800; color:#1c2433; }
.daily-modal-head-actions{ display:flex; gap:8px; align-items:center; }
.daily-copy-btn{
  padding: 7px 12px; border-radius:8px; border:1px solid #d7dce6;
  background:#f8f9fc; color:#374151; font-size:12.5px; font-weight:700; cursor:pointer;
}
.daily-copy-btn:hover{ background:#eef1f6; }
.daily-copy-btn.copied{ background:#dcfce7; border-color:#86efac; color:#15803d; }
.daily-close-btn{
  width:28px; height:28px; border-radius:8px; border:1px solid #d7dce6;
  background:#fff; color:#6b7280; font-size:13px; cursor:pointer;
}
.daily-close-btn:hover{ background:#f0f2f7; }

.daily-modal-body{
  padding: 18px 20px; overflow-y:auto;
}

.daily-summary-strip{
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px;
}
.daily-summary-item{
  flex:1 1 100px; background:#f8f9fc; border:1px solid #e2e6ee; border-radius:10px;
  padding:10px 12px; text-align:center;
}
.daily-summary-item .d-val{ display:block; font-size:20px; font-weight:800; color:#1c2433; }
.daily-summary-item .d-label{ display:block; font-size:10.5px; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:0.3px; margin-top:2px; }
.daily-summary-item.d-analiz .d-val{ color:#2563eb; }
.daily-summary-item.d-gelistirme .d-val{ color:#ea580c; }
.daily-summary-item.d-kgg .d-val{ color:#7c3aed; }
.daily-summary-item.d-test .d-val{ color:#059669; }
.daily-summary-item.d-merge .d-val{ color:#0891b2; }
.daily-summary-item.d-calisiliyor .d-val{ color:#d97706; }
.daily-summary-item.d-riskli .d-val{ color:#dc2626; }

.daily-section{ margin-bottom: 20px; }
.daily-section h3{
  font-size:13px; font-weight:800; color:#1c2433; margin:0 0 10px 0;
  display:flex; align-items:center; gap:6px;
}
.daily-empty{ font-size:12.5px; color:#9aa1b0; font-style:italic; }

.daily-risk-list{ display:flex; flex-direction:column; gap:8px; }
.daily-risk-card{
  border:1px solid #e2e6ee; border-left-width:4px; border-radius:9px;
  padding:9px 12px; background:#fff;
}
.daily-risk-card.col-analiz{ border-left-color:#2563eb; }
.daily-risk-card.col-gelistirme{ border-left-color:#ea580c; }
.daily-risk-card.col-kgg{ border-left-color:#7c3aed; }
.daily-risk-card.col-test{ border-left-color:#059669; }
.daily-risk-card.col-merge{ border-left-color:#0891b2; }
.daily-risk-top{
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:3px;
}
.daily-risk-title{ font-size:12.5px; font-weight:700; color:#1c2433; }
.daily-risk-title .d-proje{ color:#6b7280; font-weight:600; margin-left:6px; }
.daily-risk-resp-col{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; min-width:0; }
.daily-risk-resp{ font-size:11px; font-weight:700; color:#374151; white-space:nowrap; }
.daily-risk-aciklama{ font-size:11.5px; color:#6b7280; margin-bottom:5px; }
.daily-risk-nedenler{ display:flex; flex-wrap:wrap; gap:5px; }
.daily-neden-badge{
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:6px;
  background:#fef2f2; color:#b91c1c;
}
.daily-neden-badge.d-working{ background:#fffbeb; color:#92400e; }

.daily-person-table{ width:100%; border-collapse:collapse; font-size:12px; }
.daily-person-table th{
  text-align:left; font-size:10.5px; font-weight:700; color:#9aa1b0;
  text-transform:uppercase; letter-spacing:0.3px; padding:4px 8px; border-bottom:1px solid #e2e6ee;
}
.daily-person-table td{ padding:6px 8px; border-bottom:1px solid #f0f2f7; }
.daily-person-table tr:last-child td{ border-bottom:none; }
.daily-person-warn{ color:#d97706; font-weight:700; font-size:10.5px; margin-left:6px; }

@media (max-width: 600px){
  .daily-modal{ width:100%; }
  .daily-summary-item{ flex:1 1 45%; }
}

/* ===========================================================================
   Kullanıcı etiketi (auth chip) — artık sabit/floating değil, topbar'ın
   normal bir flex öğesi (her zaman en sağda görünür — order:99 sayesinde
   şablondaki konumundan bağımsız olarak). Böylece Paylaş/Geri Dön gibi
   sağa itilen diğer öğelerle asla üst üste binmez, flex akışı ona göre
   yer ayırır.
   =========================================================================== */
/* Kullanıcı avatarı (baş harfli buton) + tıklayınca açılan hesap menüsü.
   Eskiden isim/rol/çıkış'ın hepsi tek satırda uzun bir çip'ti; artık sadece
   baş harfli yuvarlak bir buton, detaylar tıklayınca açılan menüde. */
.auth-menu-wrap{
  order: 99;
  margin-left: auto;
  position: relative;
}
.auth-avatar-btn{
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border:none; border-radius:50%;
  background:#1c2433; color:#fff;
  font-size:12.5px; font-weight:800; letter-spacing:0.3px;
  cursor:pointer;
  box-shadow: 0 2px 8px rgba(20,25,40,0.25);
  text-transform:uppercase;
}
.auth-avatar-btn:hover{ background:#2b3550; }
.auth-menu{
  position:absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background:#ffffff;
  border:1px solid #d7dce6;
  border-radius:12px;
  box-shadow: 0 8px 24px rgba(20,25,40,0.18);
  padding:8px;
  z-index: 60;
}
.auth-menu.is-hidden{ display:none; }
.auth-menu-head{
  display:flex; align-items:center; gap:10px;
  padding:8px 8px 10px 8px;
}
.auth-menu-avatar{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; flex:0 0 36px;
  border-radius:50%;
  background:#1c2433; color:#fff;
  font-size:13px; font-weight:800; text-transform:uppercase;
}
.auth-menu-head-text{ min-width:0; }
.auth-menu-name{ font-size:13px; font-weight:800; color:#1c2433; white-space:nowrap; }
.auth-menu-role{
  font-size:11px; font-weight:600; color:#6b7280; margin-top:2px;
}
.auth-menu-role.demo{ color:#b45309; }
.auth-menu-sep{ height:1px; background:#eef1f6; margin:2px 4px 6px 4px; }
.auth-menu-item{
  display:block;
  padding:9px 10px; border-radius:8px;
  font-size:12.5px; font-weight:600; color:#374151;
  text-decoration:none;
}
.auth-menu-item:hover{ background:#f0f2f7; }
.auth-menu-item-danger{ color:#b91c1c; }
.auth-menu-item-danger:hover{ background:#fef2f2; }

/* Uygulama genelinde talep numaralarının tıklanabilir hali (kart, tablo,
   Daily Rapor vb. — hepsi /talep/<id> detay sayfasına gider) */
a.talep-link{ color:inherit; text-decoration:none; }
a.talep-link:hover{ text-decoration:underline; }

/* Takım seçici (Bizmed / Web) — Kanban panosunda da kullanılır */
.team-toggle{
  display:flex;
  gap:0;
  border:1px solid #d7dce6;
  border-radius:8px;
  overflow:hidden;
}
.team-btn{
  border:none;
  background:#fff;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
  padding:7px 14px;
  cursor:pointer;
  white-space:nowrap;
}
.team-btn:hover{ background:#f8f9fc; }
.team-btn.active{
  background:#2563eb;
  color:#fff;
}
.team-btn + .team-btn{ border-left:1px solid #d7dce6; }

/* ===========================================================================
   Paylaşılan bileşenler — birden çok sayfada kullanılan sınıflar burada durur
   (style.css her sayfada yüklenir); sayfa-CSS'lerinde tekrar tanımlanmaz.
   =========================================================================== */

/* Sayfa başlığı yanındaki küçük sürüm/etiket rozeti (Analiz, Destek, Talep Detay) */
.app-version{
  font-size: 11px;
  font-weight: 700;
  color: #9aa1b0;
  background: #eef1f6;
  padding: 2px 8px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 8px;
}

/* "← Geri dön" topbar linki (Talep Detay, Yönetim alt sayfaları) */
.talep-back-link{
  margin-left:12px; font-size:12.5px; font-weight:700; color:#2563eb; text-decoration:none;
}
.talep-back-link:hover{ text-decoration:underline; }

/* Analiz/veri tablosu taban stili (Tamamlanan, Talep Arama, Talep Detay, Yönetim) */
.analiz-table{
  width:100%;
  border-collapse:collapse;
  font-size: 12px;
}
.analiz-table th{
  text-align:left;
  font-size: 10px;
  text-transform:uppercase;
  letter-spacing:0.3px;
  color:#9aa1b0;
  font-weight:700;
  padding: 8px 10px;
  border-bottom: 2px solid #eef1f6;
  white-space:nowrap;
}
.analiz-table th.num, .analiz-table td.num{ text-align:right; }
.analiz-table td{
  padding: 9px 10px;
  border-bottom: 1px solid #f1f3f7;
  color:#374151;
}
.analiz-table tr:last-child td{ border-bottom:none; }
.analiz-table tbody tr:hover{ background:#f8f9fc; }
.analiz-table .name-cell{
  font-weight:800;
  color:#1c2433;
  display:flex;
  align-items:center;
  gap:8px;
}
.analiz-table .row-dot{
  width:9px; height:9px; border-radius:50%; flex-shrink:0;
}
.analiz-table .big{
  font-weight:800;
  color:#1c2433;
}
.analiz-table .muted{ color:#9aa1b0; font-size:11px; }

/* İkincil metin (eski inline style="color:#9aa1b0" yerine) */
.muted-text{ color:#9aa1b0; }

/* ===========================================================================
   Genel amaçlı sıralanabilir/filtrelenebilir grid (common.js: buildGrid).
   talep.css'ten taşındı — Tamamlanan İşler modalı gibi başka sayfalar da
   kullanıyor.
   =========================================================================== */
.grid-count{ font-size:11px; color:#9aa1b0; margin-bottom:6px; text-align:right; }
.grid-scroll{ overflow-x:auto; }
.grid-table{ width:100%; }
.grid-th{ cursor:pointer; user-select:none; white-space:nowrap; }
.grid-th:hover{ color:#2563eb; }
.grid-filter-th{ padding:4px 8px !important; border-bottom:1px solid #eef1f6 !important; }
.grid-filter-input{
  width:100%; padding:4px 7px; border:1px solid #e2e6ee; border-radius:6px; font-size:11px; box-sizing:border-box;
}

/* Uygulama genelinde talep numaralarının tıklanabilir hali */
a.talep-link{ color:inherit; text-decoration:none; }
a.talep-link:hover{ text-decoration:underline; }

/* Grid çoklu seçim filtresi (buildGrid filterType:'select') */
.grid-ms{ position:relative; }
.grid-ms-btn{
  width:100%; padding:4px 7px; border:1px solid #e2e6ee; border-radius:6px;
  font-size:11px; background:#fff; cursor:pointer; text-align:left;
  color:#374151; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-weight:500; text-transform:none; letter-spacing:0;
}
.grid-ms-btn.has-filter{ border-color:#2563eb; color:#2563eb; font-weight:700; }
.grid-ms-panel{
  position:fixed; z-index:1200; /* modal (1000) üstünde */
  background:#fff; border:1px solid #d7dce6; border-radius:8px;
  box-shadow:0 8px 24px rgba(20,25,40,0.18); padding:6px;
  min-width:180px; max-width:260px;
}
.grid-ms-search{
  width:100%; padding:4px 7px; border:1px solid #e2e6ee; border-radius:6px;
  font-size:11px; margin-bottom:6px; box-sizing:border-box;
}
.grid-ms-opts{ max-height:200px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.grid-ms-opt{
  display:flex; align-items:center; gap:6px; font-size:11.5px; color:#374151;
  padding:3px 4px; border-radius:5px; cursor:pointer;
  font-weight:500; text-transform:none; letter-spacing:0; /* th stilinden arınsın */
}
.grid-ms-opt:hover{ background:#f3f5f9; }
.grid-ms-opt input{ flex-shrink:0; }
.grid-ms-clear{
  margin-top:6px; width:100%; border:1px solid #e2e6ee; background:#f8f9fc;
  border-radius:6px; font-size:11px; padding:4px; cursor:pointer; color:#6b7280;
}
.grid-ms-clear:hover{ background:#eef1f6; }

/* Grid araç çubuğu: Excel'e aktar + kayıt sayacı */
.grid-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:6px;
}
.grid-toolbar .grid-count{ margin-bottom:0; }
.grid-export-btn{
  border:1px solid #d7dce6; background:#fff; color:#374151;
  border-radius:7px; font-size:11px; font-weight:700; padding:4px 10px; cursor:pointer;
}
.grid-export-btn:hover{ background:#f0fdf4; border-color:#16a34a; color:#15803d; }

/* ---------- Exe Derle kutusu (KGG/Test kartları) ---------- */
.exe-box{
  margin-top: 8px; padding: 7px 8px;
  border: 1px dashed #cbd5e1; border-radius: 8px;
  background: #f8fafc; font-size: 11px; line-height: 1.45;
}
.exe-box:empty{ display: none; }
.exe-head{ display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #334155; }
.exe-ikon{
  font-size: 9px; font-weight: 800; letter-spacing: .05em; color: #1e3a8a;
  background: #e0e7ff; border: 1px solid #c7d2fe; border-radius: 4px; padding: 0 4px;
}
.exe-meta b{ color: #0f172a; font-weight: 700; }
.exe-soluk{ color: #94a3b8; }
.exe-alt{ margin-top: 2px; color: #64748b; }
.exe-dal{ font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 10.5px; color: #475569; }
.exe-link{ color: #4f46e5; text-decoration: none; font-weight: 600; }
.exe-link:hover{ text-decoration: underline; }
.exe-rozet{ font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.exe-rozet.guncel{ background: #dcfce7; color: #166534; }
.exe-rozet.bayat{ background: #fef3c7; color: #92400e; box-shadow: inset 0 0 0 1px #fcd34d; }
.exe-rozet.doldu{ background: #e2e8f0; color: #475569; }
.exe-rozet.kaynak{ background: #e0f2fe; color: #075985; }
.exe-is{ margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #a16207; font-weight: 600; }
.exe-is.hata{ color: #b91c1c; align-items: flex-start; }
.exe-spin{
  width: 10px; height: 10px; flex: none; border-radius: 50%;
  border: 2px solid #fde68a; border-top-color: #a16207; animation: exeSpin .8s linear infinite;
}
@keyframes exeSpin{ to{ transform: rotate(360deg); } }
.exe-not{ margin-top: 5px; color: #92400e; font-weight: 600; }
.exe-bilgi{ margin-top: 5px; color: #075985; font-weight: 600; }
.exe-yukleniyor{ margin-top: 4px; font-style: italic; }
.exe-log-wrap{ margin-top: 4px; }
.exe-log-wrap > summary{ cursor: pointer; color: #b91c1c; font-weight: 600; }
.exe-log{
  margin: 4px 0 0; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: #0f172a; color: #e2e8f0; font: 10px/1.5 ui-monospace, Consolas, monospace;
  padding: 6px 8px; border-radius: 6px;
}
.exe-btns{ display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.exe-btn{
  font-size: 11px; font-weight: 700; line-height: 1.3; padding: 4px 9px;
  border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; color: #1e293b;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.exe-btn:hover{ background: #f1f5f9; }
.exe-btn:disabled{ opacity: .55; cursor: default; }
.exe-btn.derle{ background: #4f46e5; border-color: #4f46e5; color: #fff; }
.exe-btn.derle:hover:not(:disabled){ background: #4338ca; }
.exe-btn.indir{ background: #0f172a; border-color: #0f172a; color: #fff; }
.exe-btn.indir:hover{ background: #1e293b; }
.exe-btn.sil{ color: #b91c1c; border-color: #fecaca; }
.exe-btn.sil:hover:not(:disabled){ background: #fef2f2; }

/* Dal seçim penceresi */
.exe-secim-overlay{
  position: fixed; inset: 0; z-index: 10000; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.exe-secim-kutu{
  background: #fff; border-radius: 12px; padding: 16px 18px; width: min(520px, 100%);
  box-shadow: 0 20px 50px -12px rgba(15,23,42,.45);
}
.exe-secim-kutu h3{ margin: 0 0 4px; font-size: 15px; }
.exe-secim-kutu p{ margin: 0 0 10px; font-size: 12px; }
.exe-secim-liste{ display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.exe-secim-satir{
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px;
  padding: 7px 9px; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer;
}
.exe-secim-satir:hover{ background: #f8fafc; }
.exe-secim-btns{ display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------- GitHub token uyarı şeridi (yalnız yöneticiler) ---------- */
.token-serit{ padding: 8px 16px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid; }
.token-serit.uyari{ background: #fffbeb; color: #92400e; border-color: #fde68a; }
.token-serit.kritik{ background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.token-serit a{ color: inherit; text-decoration: underline; margin-left: 6px; }
