* { box-sizing: border-box; margin: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f4f6f9; color: #1e2530; }
.hidden { display: none !important; }
.muted { color: #7a8494; font-size: 14px; }
.error { color: #c0392b; font-size: 14px; margin: 8px 0; }

/* Giriş */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.08); width: 360px; }
.login-box h1 { font-size: 24px; margin-bottom: 4px; }
.login-box p { margin-bottom: 24px; }
.login-box label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }

/* Yapı */
header { display: flex; align-items: center; gap: 18px; background: #1e2a3a; color: #fff; padding: 0 24px; height: 56px; }
header img { height: 28px; }
.brand { font-weight: 700; font-size: 17px; white-space: nowrap; }
nav { display: flex; gap: 4px; flex: 1; }
nav button { background: none; border: none; color: #b8c2d0; padding: 8px 14px; cursor: pointer; border-radius: 6px; font-size: 14px; }
nav button:hover { color: #fff; }
nav button.active { background: #33455e; color: #fff; }
/* Üst menüde yer almayan sekmeler: muhasebe alt menüsünden veya proje sayfasından açılır */
#mainNav button.ust-gizli { display: none !important; }
/* Muhasebe alt menüsü */
.alt-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid #e3e6ea; }
.alt-nav button { background: #f2f4f7; border: 1px solid #dfe3e8; color: #55606e; padding: 7px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.alt-nav button:hover { background: #e8ebef; color: #1e2530; }
.alt-nav button.active { background: #1A1A1A; border-color: #1A1A1A; color: #fff; font-weight: 600; }
.user-area { display: flex; align-items: center; gap: 10px; font-size: 14px; }
main { max-width: 1900px; margin: 24px auto; padding: 0 24px; }

/* Kartlar */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 20px; }
.card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.card .label { font-size: 13px; color: #7a8494; }
.card .value { font-size: 22px; font-weight: 700; margin-top: 6px; }
.card.green .value { color: #1e8e4e; }
.card.red .value { color: #c0392b; }
.card.orange .value { color: #d68910; }
.card.mini { padding: 12px; }
.card.mini .value { font-size: 18px; }

/* Tablolar */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
th, td { text-align: left; padding: 10px 14px; font-size: 14px; }
th { background: #eef1f5; font-weight: 600; color: #4a5568; }
tr:not(:last-child) td { border-bottom: 1px solid #eef1f5; }
h3 { margin: 10px 0; }

/* Araç çubuğu */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; margin-right: 8px; }

/* Butonlar */
.btn { border: 1px solid #cbd3dd; background: #fff; padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #f0f3f7; }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4fd8; }
.btn.danger { color: #c0392b; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.full { width: 100%; }
td .btn { margin-right: 4px; }

/* Rozetler */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.gelen, .badge.odendi, .badge.aktif { background: #d5f2e0; color: #1e8e4e; }
.badge.giden, .badge.pasif { background: #fde2dc; color: #c0392b; }
.badge.bekliyor { background: #fdf0d5; color: #d68910; }
.badge.devam { background: #dbeafe; color: #2563eb; }

/* Muhasebe gezgini */
/* Panel: para birimi ve konu blokları — kartlar tek yığın hâlinde karışmasın */
.dash-blok { margin-bottom: 14px; }
.dash-blok-ad { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: #7a8494; margin: 0 0 6px 2px; }
.dash-blok .cards { margin-bottom: 0; }

/* Panel uyarıları: kapalı başlar, başlıktan açılır */
.uyari-kutu > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-size: 15px; user-select: none; }
.uyari-kutu > summary::-webkit-details-marker { display: none; }
.uyari-kutu > summary::before { content: '\25B8'; color: #7a8494; font-size: 13px; }
.uyari-kutu[open] > summary::before { content: '\25BE'; }
.uyari-kutu[open] > summary { margin-bottom: 10px; }
.uyari-grup { border-top: 1px solid #eef0f3; padding: 6px 0 0; }
.uyari-grup > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: #3b4452; padding: 5px 2px; user-select: none; }
.uyari-grup > summary::-webkit-details-marker { display: none; }
.uyari-grup > summary::before { content: '\25B8'; color: #a8aeb6; font-size: 11px; }
.uyari-grup[open] > summary::before { content: '\25BE'; }
.uyari-grup .uyari-liste { padding: 2px 0 8px; }

.muh-kat { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.muh-kat table { box-shadow: none; }
.muh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.muh-head h3 { margin: 0; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(20,30,45,.5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { position: relative; background: #fff; border-radius: 12px; padding: 26px; width: 460px; max-height: 88vh; overflow-y: auto; }
.modal h3 { margin-bottom: 16px; padding-right: 34px; }
/* Sağ üstteki kapatma düğmesi: pencere dışına tıklayınca kapanmadığı için her zaman görünür */
.modal-x { position: sticky; float: right; top: 0; z-index: 2; width: 30px; height: 30px; padding: 0;
  border: none; background: #f1f5f9; color: #64748b; font-size: 20px; line-height: 28px;
  border-radius: 8px; cursor: pointer; margin: -8px -8px 0 0; }
.modal-x:hover { background: #e2e8f0; color: #0f172a; }
.modal label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #cbd3dd; border-radius: 7px; font-size: 14px; margin-top: 4px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #2563eb33; border-color: #2563eb; }

/* Toplantı (sunum) kipi: yalnız maddeler, büyük yazı */
body.madde-sunum header,
body.madde-sunum #ozetBar,
body.madde-sunum .ps-ust,
body.madde-sunum .ps-sekme,
body.madde-sunum #psIcerik > .cards { display: none; }
body.madde-sunum main { padding-top: 10px; }
.sunum-serit { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; background: #0f172a; color: #fff; border-radius: 10px; padding: 10px 16px; margin-bottom: 10px; }
.sunum-serit .muted { color: #cbd5e1; }
/* Tutanak penceresi toplantı kipinde tam ekran */
.modal.sunum-modal { width: 99vw; max-width: none; max-height: 97vh; padding: 12px 16px; }
.modal.sunum-modal h3 { display: none; }
.md-buyuk { font-size: 16px; }
.md-buyuk th { font-size: 14px; padding: 10px 12px; }
.md-buyuk td { padding: 10px 12px; vertical-align: middle; }
.md-buyuk input, .md-buyuk select { font-size: 15px; padding: 8px 10px; }

/* Toplu işlem şeridi (seçili satırlar üzerinde işlem) */
.toplu-serit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px;
  background: #eef4ff; border: 1px solid #c7dbff; border-left: 4px solid #2563eb;
  border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #1e3a5f; }

/* Toplantı modu: müşteri yanındayken üst menü ve para bilgileri gizlenir */
.toplanti-serit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff7e6; border: 1px solid #ffd591; border-left: 4px solid #d68910;
  color: #7a4f01; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
body.toplanti-modu #mainNav,
body.toplanti-modu #ozetBar,
body.toplanti-modu .user-area button { display: none; }

/* Proje sayfası (ayrı pencere) */
.ps-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  border-bottom: 3px solid #E30613; padding-bottom: 10px; margin-bottom: 12px; }
.ps-kod { font-size: 12px; letter-spacing: 1px; color: #E30613; font-weight: 700; }
.ps-sekme { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e2e8f0; margin: 10px 0 4px; }
.ps-sekme button { border: none; background: transparent; padding: 8px 14px; font-size: 14px;
  font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; }
.ps-sekme button:hover { color: #0f172a; }
.ps-sekme button.active { color: #E30613; border-bottom-color: #E30613; }
.ps-bolme { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ps-bolme button { border: 1px solid #cbd3dd; background: #fff; padding: 6px 12px; border-radius: 8px;
  font-size: 13px; cursor: pointer; }
.ps-bolme button:hover { background: #f1f5f9; }
.ps-bolme button.active { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }
/* 52 haftalık plan şeridi */
.ps-hafta { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ps-hafta th { background: transparent; color: #94a3b8; font-size: 10px; padding: 0 0 2px; text-align: left; }
.ps-hafta td { border: 1px solid #e8edf3; height: 20px; padding: 0; }
.ps-hafta td.ps-dolu { background: #E30613; border-color: #E30613; }
.ps-hafta td.ps-bugun { border-left: 2px solid #2563eb; }

/* Klasör gezgini — araç çubuğu */
.fb-arac { display: flex; gap: 8px; margin-bottom: 10px; }

/* Klasör gezgini — dosya yükleme alanı */
.fb-yukle { border: 2px dashed #cbd3dd; border-radius: 10px; padding: 14px; margin-bottom: 12px;
  text-align: center; font-size: 14px; color: #4a5568; background: #fafbfc; }
.fb-yukle.uzerinde { border-color: #2563eb; background: #eef4ff; }
.fb-yukle .btn { margin-left: 8px; }

/* Klasör gezgini */
.fb-crumbs { margin-bottom: 12px; font-size: 14px; }
.fb-list { max-height: 50vh; overflow-y: auto; border: 1px solid #eef1f5; border-radius: 8px; padding: 6px; }
.fb-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.fb-row:hover { background: #f0f3f7; }
.fb-row a:first-child { flex: 1; }

/* Dosya önizleme */
.modal.viewer { width: 96vw; max-width: 1500px; }
/* Teklif hazırlama: ekranı tam kullansın, alanlar dar kalmasın */
.modal.teklif-modal { width: 98vw; max-width: 1700px; max-height: 96vh; padding: 18px 22px; }
.modal.teklif-modal .form-2li { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
.modal.teklif-modal label { margin-bottom: 10px; }
.viewer-frame { width: 100%; height: 82vh; border: none; border-radius: 8px; background: #f0f3f7; }
.viewer-img { max-width: 100%; max-height: 74vh; display: block; margin: 0 auto; }
.viewer-pre { max-height: 74vh; overflow: auto; background: #f7f9fb; padding: 12px; border-radius: 8px; font-size: 13px; }
.viewer-doc { max-height: 74vh; overflow: auto; padding: 4px; }
.viewer-doc img { max-width: 100%; }
.viewer-sheet table { width: auto; box-shadow: none; margin-bottom: 16px; }
.viewer-sheet td { border: 1px solid #e2e8f0; padding: 4px 8px; font-size: 13px; }

/* Bu ay ödenecekler grafiği */
.ch-wrap { display: flex; flex-direction: column; gap: 6px; }
.ch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ch-day { width: 70px; color: #7a8494; white-space: nowrap; }
.ch-label { width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-track { flex: 1; background: #eef1f5; border-radius: 6px; height: 18px; overflow: hidden; }
.ch-fill { display: block; height: 100%; border-radius: 6px; }
.ch-fill.giden { background: #e74c3c; }
.ch-fill.gelen { background: #1e8e4e; }
.ch-val { width: 110px; text-align: right; font-weight: 600; white-space: nowrap; }

.sum-row td { background: #eef1f5; }
td.num, th.num { text-align: right; }

.kalan-row td { background: #fdf0d5; }
.kalan-row td.num b { color: #b45309; }

/* Personel formu */
.form-2li { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-bolum { margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #eef1f5; color: #4a5568; font-size: 14px; }

/* Personel detay */
.pd-bilgi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; background: #f7f9fb; padding: 14px; border-radius: 10px; font-size: 14px; }
.pd-not { margin-top: 12px; padding: 12px; background: #fdf6e3; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.pd-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pd-doc { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: inherit; }
.pd-doc:hover { background: #eef4ff; border-color: #2563eb; text-decoration: none; }
.pd-ikon { font-size: 22px; }
.pd-ad { font-weight: 600; font-size: 13px; word-break: break-word; }

/* Çalışma takvimi */
.tk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.tk-baslik div { text-align: center; font-weight: 600; color: #4a5568; font-size: 13px; }
.tk-gun { position: relative; min-height: 58px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 6px; cursor: pointer; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 15px; user-select: none; }
.tk-gun:hover { border-color: #2563eb; }
.tk-gun.bos { border: none; cursor: default; }
.tk-gun.hsonu { background: #f4f6f9; }
.tk-no { position: absolute; top: 3px; left: 6px; font-size: 11px; color: #7a8494; }
.tk-gun small { font-size: 11px; color: #4a5568; }
.tk-gun.tC { background: #d5f2e0; border-color: #1e8e4e; }
.tk-gun.tY { background: #e8f7ee; border-color: #6fcf97; }
.tk-gun.tI { background: #fdf0d5; border-color: #d68910; }
.tk-gun.tR { background: #fde2dc; border-color: #c0392b; }
.tk-gun.tT { background: #e2e8f0; border-color: #7a8494; }
.tk-ozet { display: flex; gap: 10px; margin: 10px 0; }

.tk-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #eef4ff; border: 1px solid #2563eb; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.tk-panel label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.tk-panel input, .tk-panel select { width: auto; margin: 0; }
.tk-gun.secili { outline: 2px solid #2563eb; }

.tk-nav select { width: auto; margin: 0 4px; padding: 5px 8px; }
.tk-nav { margin-bottom: 12px; }

/* Genel bakış + rapor */
.uyari-liste { display: flex; flex-direction: column; gap: 6px; }
.uyari { padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.uyari.kritik { background: #fde2dc; color: #92251a; }
.uyari.uyari { background: #fdf0d5; color: #8a5a06; }
.tr-grafik { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 10px 4px 0; }
.tr-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.tr-bar { width: 70%; border-radius: 4px 4px 0 0; min-height: 2px; }
.tr-bar.poz { background: #1e8e4e; }
.tr-bar.neg { background: #e74c3c; }
.tr-col small { margin-top: 4px; color: #7a8494; }
.ara { width: 160px; margin-right: 8px; display: inline-block; }

/* Tarayıcının kendi tarih/başlık/URL satırları basılmasın */
@page { size: A4; margin: 0; }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  header, .toolbar, .btn, nav, .ara, .overlay { display: none !important; }
  main { max-width: 100%; margin: 0; padding: 12mm; }
  body { background: #fff; margin: 0; }
  .muh-kat { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}

.pd-doc { position: relative; }
.pd-sec { position: absolute; top: 8px; right: 8px; width: 17px; height: 17px; margin: 0; cursor: pointer; }

.ayar-kutular { display: flex; gap: 18px; flex-wrap: wrap; }
.ayar-kutular label { display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* PDKS giriş/çıkış */
.pdks-kart { border: 1px solid #2563eb33; }
.pdks-satir { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 10px; }
.pdks-bilgi { display: flex; flex-direction: column; min-width: 70px; }
.pdks-bilgi b { font-size: 20px; }
.pdks-btn { padding: 12px 22px; font-size: 16px; border-radius: 10px; }
.pdks-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Giriş görev özeti çubuğu */
.ozet-bar { max-width: 1900px; margin: 12px auto -6px; padding: 10px 16px; background: #fdf0d5; border: 1px solid #d68910; border-radius: 10px; font-size: 14px; }
.ozet-bar .badge { margin: 0 2px; }
.ozet-kapat { float: right; font-size: 18px; color: #8a5a06; text-decoration: none; margin-left: 10px; }

/* İdari işler alt menüsü */
.idari-alt { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.idari-alt .aktif { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Proje Planlayıcısı */
.pl-sar { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.pl-tablo { min-width: 1800px; font-size: 14px; }
.pl-tablo th { background: #1f3864; color: #fff; font-size: 12.5px; white-space: nowrap; padding: 8px 10px; }
.pl-tablo td { padding: 9px 10px; white-space: nowrap; }
.pl-tablo tbody tr:hover td { background: #f2f6fc; }
.pl-tablo tbody tr:hover .pl-sabit1, .pl-tablo tbody tr:hover .pl-sabit2 { background: #f2f6fc; }
.pl-durum { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 700; color: #10314f; }
.pl-gantt-bas { width: 900px; min-width: 900px; padding: 0 !important; }
.pl-aylar { display: grid; grid-template-columns: repeat(12, 1fr); }
.pl-ay { text-align: center; font-size: 13px; font-weight: 600; border-left: 1px solid rgba(255,255,255,.25); padding: 6px 0; }
.pl-haftalar { display: grid; grid-template-columns: repeat(52, 1fr); }
.pl-hafta { text-align: center; font-size: 8.5px; color: rgba(255,255,255,.75); border-left: 1px solid rgba(255,255,255,.12); padding: 3px 0; }
.pl-hafta.bugun { background: #e74c3c; color: #fff; font-weight: 700; }
.pl-grup { text-align: center !important; background: #16305a !important; }
.pl-tablo th[rowspan] { vertical-align: bottom; }
.pl-sabit1, .pl-sabit2 { position: sticky; background: #fff; z-index: 2; }
.pl-sabit1 { left: 0; min-width: 120px; }
.pl-sabit2 { left: 120px; min-width: 120px; box-shadow: 2px 0 4px rgba(0,0,0,.06); }
.pl-tablo thead .pl-sabit1, .pl-tablo thead .pl-sabit2 { background: #1f3864; z-index: 3; }
.pl-duzenle { margin-left: 8px; text-decoration: none; color: #2563eb; font-size: 15px; opacity: .45; }
.pl-tablo tr:hover .pl-duzenle { opacity: 1; }
.pl-plan { position: absolute; top: 3px; bottom: 3px; border: 1px dashed #7a8494; border-radius: 3px; background: rgba(122,132,148,.10); }
.pl-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: start; }
.pl-durum-tablo { max-width: 380px; }
.pl-pasta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pl-lejant div { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.pl-lejant span { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.pl-durum-tablo { max-width: 460px; font-size: 14px; }
.pl-durum-tablo td { padding: 7px 10px; }
@media (max-width: 1100px) {
  .pl-alt { grid-template-columns: 1fr; }
  .pl-sabit1, .pl-sabit2 { position: static; }
}
.pl-gantt { position: relative; width: 900px; min-width: 900px; background:
  repeating-linear-gradient(to right, #f2f5f9 0 calc(100%/12 - 1px), #dde3ea calc(100%/12 - 1px) calc(100%/12)); padding: 0 !important; }
.pl-bar { position: absolute; top: 7px; bottom: 7px; border-radius: 4px; min-width: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.pl-ilerleme { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0,0,0,.22); }
.pl-bugun { position: absolute; top: 0; bottom: 0; width: 2px; background: #e74c3c; }
.pl-cubuk { background: #eef1f5; border-radius: 4px; height: 14px; overflow: hidden; }
.pl-cubuk span { display: block; height: 100%; }

/* Trello tarzı pano */
.pk-pano { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding: 12px; border-radius: 10px; min-height: 68vh; background: #0079bf; }
.pk-liste { background: #ebecf0; border-radius: 10px; padding: 8px; width: 272px; flex-shrink: 0; max-height: 64vh; overflow-y: auto; }
.pk-liste-yeni { background: rgba(255,255,255,.25); min-height: 0; }
.pk-liste-yeni a { color: #fff; display: block; padding: 8px; font-weight: 600; }
.pk-liste-yeni a:hover { text-decoration: none; background: rgba(255,255,255,.15); border-radius: 6px; }
.pk-liste-bas { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; font-size: 14px; cursor: grab; }
.pk-liste-bas b { cursor: pointer; flex: 1; }
.pk-liste-bas a { color: #7a8494; font-size: 17px; text-decoration: none; }
.pk-kart { background: #fff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(9,30,66,.25); cursor: pointer; font-size: 14px; }
.pk-kart:hover { background: #f4f5f7; }
@keyframes pkYanip {
  0%, 100% { background: #fff; box-shadow: 0 1px 2px rgba(9,30,66,.25); }
  50% { background: #ffe3e0; box-shadow: 0 0 0 3px #eb5a46; }
}
.pk-kart.pk-yakin { animation: pkYanip 1.1s ease-in-out infinite; }
.pk-kart.pk-yakin:hover { animation-play-state: paused; }
.pk-etiketler { display: flex; gap: 4px; margin-bottom: 6px; }
.pk-etiket { width: 40px; height: 8px; border-radius: 4px; display: inline-block; }
.pk-rozetler { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; font-size: 12px; color: #5e6c84; }
.pk-rozet { background: #eef1f5; border-radius: 4px; padding: 1px 6px; }
.pk-rozet.gec { background: #eb5a46; color: #fff; }
.pk-rozet.tamam { background: #61bd4f; color: #fff; }
.pk-uyeler { margin-left: auto; display: flex; gap: 2px; }
.pk-avatar { background: #dfe1e6; color: #172b4d; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.pk-kart-ekle { display: block; padding: 7px; color: #5e6c84; border-radius: 6px; font-size: 14px; }
.pk-kart-ekle:hover { background: #dfe1e6; text-decoration: none; }
.pk-baslik { font-size: 18px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 6px; width: 100%; border-radius: 6px; }
.pk-baslik:hover, .pk-baslik:focus { border-color: #cbd3dd; background: #fff; }
.pk-blok { margin: 14px 0; }
.pk-renkler { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pk-renk { width: 46px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; font-weight: 700; }
.pk-renk input { display: none; }
.pk-renk.secili, .pk-renk:has(input:checked) { outline: 3px solid #172b4d; }
.pk-uyeler-sec { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pk-bar { background: #dfe1e6; height: 8px; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.pk-bar span { display: block; height: 100%; background: #61bd4f; }
.pk-kontrol { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 14px; }
.pk-kontrol a { color: #7a8494; text-decoration: none; font-size: 16px; }
.pk-cizili { text-decoration: line-through; color: #7a8494; }
.pk-yorum { background: #f7f9fb; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 14px; }
@media (max-width: 900px) { .pk-liste { width: 240px; } }

/* Görev panosu (kanban) */
.kb-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.kb-kolon { background: #eef1f5; border-radius: 10px; padding: 10px; min-height: 220px; }
.kb-baslik { font-weight: 700; margin-bottom: 10px; color: #4a5568; }
.kb-kart { background: #fff; border-radius: 8px; border-left: 4px solid #2563eb; padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.06); font-size: 14px; }
.kb-kart:hover { box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.kb-kart:active { cursor: grabbing; }
.kb-ack { font-size: 12px; margin: 4px 0; }
.kb-alt { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; align-items: center; }
.kb-bos { text-align: center; }
@media (max-width: 900px) { .kb-board { grid-template-columns: 1fr 1fr; } }

/* Sohbet */
.chat-wrap { display: flex; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); overflow: hidden; height: 72vh; }
.chat-kisiler { width: 220px; border-right: 1px solid #eef1f5; overflow-y: auto; flex-shrink: 0; }
.chat-kisi { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: inherit; border-bottom: 1px solid #f4f6f9; font-size: 14px; }
.chat-kisi:hover { background: #f0f3f7; text-decoration: none; }
.chat-kisi.aktif { background: #eef4ff; font-weight: 600; }
.chat-sag { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-mesajlar { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f7f9fb; }
.chat-msg { display: flex; }
.chat-msg.benim { justify-content: flex-end; }
.chat-balon { max-width: 72%; background: #fff; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; word-break: break-word; position: relative; }
.chat-gorev { display: none; position: absolute; top: -8px; right: -8px; background: #2563eb; color: #fff; border-radius: 50%; width: 20px; height: 20px; text-align: center; line-height: 20px; font-size: 11px; text-decoration: none; }
.chat-balon:hover .chat-gorev { display: block; }
.chat-msg.benim .chat-balon { background: #2563eb; color: #fff; border-color: #2563eb; }
.chat-saat { display: block; font-size: 10px; opacity: .65; text-align: right; margin-top: 2px; }
.chat-gun { text-align: center; color: #7a8494; font-size: 12px; margin: 6px 0; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eef1f5; }
.chat-form input { flex: 1; margin: 0; }
.chat-badge { background: #e74c3c; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; display: inline-block; }
@media (max-width: 900px) { .chat-kisiler { width: 130px; } .chat-balon { max-width: 88%; } }

/* Genel arama */
.ga-sonuc { max-height: 56vh; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.ga-row { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.ga-row:hover { background: #eef4ff; text-decoration: none; }
.ga-tip { width: 92px; font-size: 12px; color: #7a8494; flex-shrink: 0; }

/* Sütun sıralama */
thead th { cursor: pointer; user-select: none; }
th.sirala-asc::after { content: ' \25B2'; font-size: 10px; color: #2563eb; }
th.sirala-desc::after { content: ' \25BC'; font-size: 10px; color: #2563eb; }

/* Yıllık takvim özeti */
.tk-yil { border-top: 1px dashed #cbd3dd; padding-top: 8px; flex-wrap: wrap; }

/* Dar ekran / mobil */
@media (max-width: 900px) {
  header { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  nav { overflow-x: auto; width: 100%; order: 3; padding-bottom: 4px; }
  nav button { white-space: nowrap; }
  .brand { font-size: 15px; }
  main { margin: 12px auto; padding: 0 10px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .toolbar > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  table { display: block; overflow-x: auto; }
  .modal { width: 96vw; padding: 16px; }
  .ara { width: 130px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .tk-gun { min-height: 44px; font-size: 13px; }
  .tk-gun small { display: none; }
}

.tk-gun.salt { cursor: default; }
.tk-gun.salt:hover { border-color: #e2e8f0; }
.tk-gun.hsonu.salt:hover { border-color: #e2e8f0; }
.tk-gun.bugun { outline: 2px solid #2563eb; }

/* ---------- Çevrim (cycle time) hesaplama ---------- */
.cv-blok { border:1px solid #e3e6ea; border-radius:8px; padding:12px 14px; margin:12px 0; background:#fff; }
.cv-blok h3 { margin:0 0 10px; font-size:14px; color:#E30613; }
.cv-kartlar { margin:12px 0; }
table.cv-giris { width:100%; border-collapse:collapse; }
table.cv-giris th { text-align:left; font-size:12px; font-weight:600; padding:4px 8px 4px 0;
  white-space:nowrap; vertical-align:middle; width:1%; }
table.cv-giris th small { display:block; font-weight:400; color:#888; font-size:10.5px; }
table.cv-giris td { padding:3px 14px 3px 0; }
table.cv-adim { width:100%; border-collapse:collapse; font-size:12.5px; }
table.cv-adim th { background:#1A1A1A; color:#fff; font-size:11px; padding:5px 6px; text-align:left; }
table.cv-adim td { border:1px solid #e3e6ea; padding:3px 5px; vertical-align:top; }
table.cv-adim td.num { text-align:right; font-variant-numeric:tabular-nums; }
table.cv-adim td.ort { text-align:center; }
table.cv-adim input, table.cv-adim select { font-size:12px; padding:2px 4px; }
.cv-hesap { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:4px;
  background:#f7f8fa; border-radius:5px; padding:4px 6px; }
.cv-hesap label { font-size:11px; color:#555; }
.cv-hesap input { width:62px; font-size:11px; }
.cv-sema-sar { overflow-x:auto; border:1px solid #e3e6ea; border-radius:6px; }
table.cv-sema { border-collapse:collapse; font-size:11px; }
table.cv-sema th { background:#f2f3f5; font-size:8px; font-weight:400; color:#888;
  padding:1px 0; text-align:center; min-width:7px; border-bottom:1px solid #e3e6ea; }
table.cv-sema td { border:1px solid #eef0f2; height:15px; min-width:7px; padding:0; }
table.cv-sema td.cv-op { min-width:66px; font-weight:700; font-size:11px; padding:0 5px; background:#fafbfc; }
table.cv-sema td.cv-is { min-width:210px; max-width:210px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; font-size:11px; padding:0 5px; }
table.cv-sema td.cv-sr { min-width:34px; text-align:right; font-size:10.5px; padding:0 5px; color:#666; }
table.cv-sema th.cv-op, table.cv-sema th.cv-is, table.cv-sema th.cv-sr { font-size:10px; color:#333; text-align:left; padding:2px 5px; }
table.cv-sema td.cv-dolu { background:#E30613; border-color:#E30613; }
table.cv-sema .cv-hedef { background:#00963f; }
table.cv-sema td.cv-hedef.cv-dolu { background:#E30613; }
table.cv-sema tr.cv-yeniop td { border-top:2px solid #c9ced4; }
table.cv-ist { width:100%; border-collapse:collapse; font-size:12.5px; }
table.cv-ist th { background:#1A1A1A; color:#fff; font-size:11px; padding:5px 6px; text-align:left; }
table.cv-ist td { border:1px solid #e3e6ea; padding:4px 6px; }
table.cv-ist td.num { text-align:right; } table.cv-ist td.ort { text-align:center; }
table.cv-ist tr.cv-darbogaz td { background:#fdecea; }
.cv-bar { background:#eef0f2; border-radius:3px; height:9px; width:140px; overflow:hidden; }
.cv-bar span { display:block; height:100%; background:#E30613; }
.cv-toplu { margin:0 0 10px; font-size:12.5px; }
.cv-toplu input { font-size:12px; padding:2px 5px; }
.cv-ayrac { display:inline-block; width:1px; height:16px; background:#c9ced4; margin:0 4px; }
.cv-uyari { border-radius:6px; padding:8px 12px; margin:8px 0; font-size:12.5px; }
.cv-uyari.iyi { background:#e8f6ee; border-left:4px solid #00963f; }
.cv-uyari.orta { background:#fdf3e3; border-left:4px solid #d68910; }
.cv-uyari.kotu { background:#fdecea; border-left:4px solid #E30613; }
table.cv-ist tr.cv-dar td { background:#fdf3e3; }
.cv-bar span.orta { background:#d68910; }
.cv-bar span.kotu { background:#c0392b; }

/* ---------- Proje penceresinde doğrudan SAS yükleme ---------- */
.sas-kutu { border:1px dashed #c9ced4; border-radius:8px; padding:10px 12px; margin:6px 0 10px; background:#fafbfc; }
.sas-kutu.uzerinde { border-color:#E30613; background:#fdecea; }
.sas-ust { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:13px; }
.sas-liste { font-size:12.5px; max-height:160px; overflow-y:auto; }
.sas-satir { display:flex; justify-content:space-between; gap:10px; padding:3px 0; border-bottom:1px solid #eef0f2; }
.sas-satir:last-child { border-bottom:0; }
.sas-birak { font-size:11.5px; color:#8a9099; margin-top:8px; }

/* ---------- Proje penceresi: logo yanı rozeti ve kapalı üst şerit ---------- */
.proje-rozet { display:flex; align-items:center; gap:8px; margin-left:14px; padding:4px 12px;
  background:rgba(227,6,19,.10); border-left:3px solid #E30613; border-radius:0 6px 6px 0;
  font-size:14px; white-space:nowrap; }
.proje-rozet b { font-size:15px; letter-spacing:.3px; }
.proje-rozet span { opacity:.85; max-width:340px; overflow:hidden; text-overflow:ellipsis; }
.ps-ust-mini { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap;
  padding-bottom:8px; margin-bottom:6px; border-bottom:1px solid #e3e6ea; }

/* ---------- Ayrı pencerede açılan proje sayfası (yalnız proje görünür) ---------- */
body.proje-penceresi #mainNav,
body.proje-penceresi #ozetBar,
body.proje-penceresi .user-area { display: none; }
body.proje-penceresi header .brand { display: none; }
body.proje-penceresi .proje-rozet { margin-left: 8px; }
body.proje-penceresi main { padding-top: 8px; }

/* ---------- Mizan ---------- */
table.mz-tablo { width:100%; border-collapse:collapse; font-size:12.5px; margin:8px 0; }
table.mz-tablo th { background:#1A1A1A; color:#fff; font-size:11px; padding:6px 8px; text-align:left; }
table.mz-tablo th.num, table.mz-tablo td.num { text-align:right; }
table.mz-tablo td { border:1px solid #e3e6ea; padding:4px 8px; }
table.mz-tablo tr.mz-vurgu td { background:#f2f3f5; font-weight:700; }
table.mz-hesap { width:100%; border-collapse:collapse; font-size:12px; }
table.mz-hesap th { background:#1A1A1A; color:#fff; font-size:11px; padding:5px 6px;
  position:sticky; top:0; text-align:left; }
table.mz-hesap td { border-bottom:1px solid #eef0f2; padding:3px 6px; }
table.mz-hesap td.num { text-align:right; }
table.mz-hesap tr.mz-s1 td { font-weight:700; background:#f2f3f5; }
table.mz-hesap tr.mz-s2 td { font-weight:600; }
td.kirmizi { color:#c0392b; }
.rev-serit { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px;
  padding:8px 12px; background:#f7f8fa; border-left:3px solid #E30613; border-radius:0 6px 6px 0; font-size:13px; }
.rev-serit input { font-size:13px; padding:2px 5px; }
.ck-banka { border:1px solid #e3e6ea; border-radius:7px; padding:8px 10px; margin-bottom:8px; background:#fafbfc; }

/* ---------- Proje fotoğrafları ---------- */
.foto-birak {
  border: 2px dashed #cfd6e0; border-radius: 8px; padding: 10px 12px; margin: 10px 0;
  font-size: 12.5px; color: #5a6676; background: #fafbfc; text-align: center;
}
.foto-birak.uzerinde { border-color: #E30613; background: #fff5f5; color: #1A1A1A; }
.foto-izgara {
  display: grid; gap: 10px; margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.foto-kutu {
  margin: 0; border: 1px solid #e3e7ec; border-radius: 8px; overflow: hidden;
  background: #fff; cursor: zoom-in; transition: box-shadow .15s, transform .15s;
}
.foto-kutu:hover { box-shadow: 0 4px 14px rgba(0,0,0,.14); transform: translateY(-2px); }
.foto-kutu img { display: block; width: 100%; height: 130px; object-fit: cover; background: #f1f3f6; }
.foto-kutu figcaption {
  padding: 5px 7px; font-size: 11.5px; line-height: 1.35; word-break: break-word;
}
.foto-kutu figcaption .muted { display: block; font-size: 10.5px; }
/* Klasör listesindeki küçük önizlemeler */
.fb-tirnak {
  width: 34px; height: 26px; object-fit: cover; border-radius: 3px; vertical-align: middle;
  border: 1px solid #e3e7ec; cursor: zoom-in; background: #f1f3f6;
}
/* Büyük görüntüleme */
.foto-buyut {
  position: fixed; inset: 0; z-index: 9000; background: rgba(20,22,26,.86);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.foto-buyut-ic { background: #fff; border-radius: 10px; max-width: 94vw; max-height: 94vh;
  display: flex; flex-direction: column; overflow: hidden; }
.foto-buyut-ust {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid #e9ecf0; font-size: 12.5px; flex-wrap: wrap;
}
.foto-buyut-gov { position: relative; display: flex; align-items: center; justify-content: center;
  background: #16181c; }
.foto-buyut-gov img { max-width: 92vw; max-height: 80vh; display: block; }
.foto-ok {
  position: absolute; top: 50%; transform: translateY(-50%); border: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 1;
  padding: 10px 14px; border-radius: 6px;
}
.foto-ok:hover { background: rgba(227,6,19,.85); }
.foto-ok.sol { left: 8px; } .foto-ok.sag { right: 8px; }
@media print { .foto-buyut { display: none !important; } }
