/* =====================================================
   KOLEKTİF - Şirket Muhasebe | assets/stil.css
   Mevcut uygulamanın tasarımı (adim7) + PHP sürümü ekleri
   ===================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f1f3f6; color: #20252b; }
.sidebar { position: fixed; left: 0; top: 0; width: 230px; height: 100vh; background: #18212b; color: white; padding: 20px 12px; overflow-y: auto; }
.logo { font-size: 19px; font-weight: bold; padding: 10px; margin-bottom: 20px; }
.menu button { width: 100%; border: 0; background: transparent; color: #dce2e8; padding: 12px 14px; text-align: left; font-size: 14px; cursor: pointer; border-radius: 6px; margin-bottom: 4px; }
.menu button:hover, .menu button.active { background: #263746; color: white; }
.main { margin-left: 230px; min-height: 100vh; }
.topbar { height: 65px; background: white; border-bottom: 1px solid #ddd; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; }
.topbar h1 { font-size: 20px; }
.date { color: #68727d; font-size: 13px; }
.content { padding: 25px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.card { background: white; border-radius: 8px; padding: 20px; border: 1px solid #e1e5e9; }
.card-title { font-size: 13px; color: #707983; margin-bottom: 10px; }
.card-value { font-size: 25px; font-weight: bold; }
.green { color: #16834a; }
.red { color: #c73535; }
.blue { color: #2563a8; }
.orange { color: #c56b16; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.panel { background: white; border: 1px solid #e1e5e9; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; margin-bottom: 15px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid #edf0f2; font-size: 13px; }
th { color: #6c757d; font-weight: normal; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccd2d8; border-radius: 5px; font-size: 14px; }
.form-group textarea { height: 70px; resize: vertical; }
.btn { border: 0; border-radius: 5px; padding: 10px 16px; cursor: pointer; font-size: 13px; }
.btn-green { background: #16834a; color: white; }
.btn-red { background: #c73535; color: white; }
.btn-blue { background: #2563a8; color: white; }
.btn-gray { background: #e9edf0; color: #333; }
.btn:hover { opacity: 0.9; }
.hidden { display: none; }
.actions { display: flex; gap: 8px; margin-bottom: 15px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 12px; font-size: 11px; }
.badge-green { background: #e7f7ee; color: #16834a; }
.badge-orange { background: #fff1df; color: #a85d13; }
.badge-red { background: #fdeaea; color: #b52e2e; }
.delete-btn { border: 0; background: #fdeaea; color: #b52e2e; padding: 5px 8px; border-radius: 4px; cursor: pointer; }
.detail-btn { border: 0; background: #e8f0f8; color: #2563a8; padding: 5px 8px; border-radius: 4px; cursor: pointer; }
.empty { color: #777; padding: 15px 0; font-size: 13px; }
.project-box { border: 1px solid #e1e5e9; border-radius: 7px; padding: 15px; margin-bottom: 12px; }
.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-name { font-size: 16px; font-weight: bold; }
.project-code { color: #777; font-size: 12px; }
.project-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.project-stat { background: #f7f8fa; padding: 10px; border-radius: 5px; }
.project-stat span { display: block; font-size: 11px; color: #777; margin-bottom: 5px; }
.project-stat strong { font-size: 14px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); }
.grid { grid-template-columns: 1fr; }
.project-stats { grid-template-columns: repeat(2, 1fr); } }
/* =========================
FATURA VE KART
========================= */
.fatura-kart-tabs {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.fatura-kart-tab {
border: 0;
background: #e9edf0;
color: #333;
padding: 10px 15px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
}
.fatura-kart-tab.active {
background: #2563a8;
color: white;
}
.fatura-kart-panel {
display: none;
}
.fatura-kart-panel.active {
display: block;
}
.kart-card,
.fatura-card {
border: 1px solid #e1e5e9;
border-radius: 8px;
padding: 15px;
margin-bottom: 12px;
background: white;
}
.kart-header,
.fatura-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 12px;
}
.kart-name,
.fatura-name {
font-size: 16px;
font-weight: bold;
}
.kart-sub,
.fatura-sub {
color: #68727d;
font-size: 12px;
margin-top: 4px;
}
.odeme-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin-bottom: 12px;
}
.odeme-stat {
background: #f7f8fa;
padding: 10px;
border-radius: 5px;
}
.odeme-stat span {
display: block;
font-size: 11px;
color: #777;
margin-bottom: 5px;
}
.odeme-stat strong {
font-size: 14px;
}
.odeme-durum {
display: inline-block;
padding: 5px 9px;
border-radius: 12px;
font-size: 11px;
}
.odeme-durum-bekliyor {
background: #fff1df;
color: #a85d13;
}
.odeme-durum-odendi {
background: #e7f7ee;
color: #16834a;
}
.odeme-durum-gecikti {
background: #fdeaea;
color: #b52e2e;
}
.fatura-kategori-badge {
display: inline-block;
background: #e8f0f8;
color: #2563a8;
padding: 5px 8px;
border-radius: 12px;
font-size: 11px;
}
@media (max-width: 1000px) {
.odeme-stats {
grid-template-columns: repeat(2, 1fr);
}
}
.project-checks {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
border: 1px solid #ccd2d8;
border-radius: 5px;
padding: 10px;
min-height: 45px;
background: #fafbfc;
}
.project-check {
display: flex;
align-items: center;
gap: 7px;
padding: 7px;
border-radius: 5px;
background: white;
border: 1px solid #e5e8eb;
font-size: 13px;
}
.project-check input { width: auto; }
.anketor-card {
border: 1px solid #e1e5e9;
border-radius: 7px;
padding: 15px;
margin-bottom: 12px;
}
.anketor-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 12px;
}
.anketor-id {
display: inline-block;
background: #2563a8;
color: white;
padding: 4px 8px;
border-radius: 5px;
font-size: 11px;
font-weight: bold;
margin-bottom: 6px;
}
.anketor-name { font-size: 16px; font-weight: bold; }
.anketor-iban {
color: #68727d;
font-size: 12px;
margin-top: 4px;
word-break: break-all;
}
.anketor-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-bottom: 12px;
}
.anketor-stat {
background: #f7f8fa;
padding: 10px;
border-radius: 5px;
}
.anketor-stat span {
display: block;
font-size: 11px;
color: #777;
margin-bottom: 5px;
}
.anketor-stat strong { font-size: 14px; }
.anketor-isim-listesi { margin: 0; padding-left: 28px; }
.anketor-isim-listesi li { padding: 10px 4px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: 600; }
.anketor-isim-listesi li:last-child { border-bottom: none; }
.ap-ara { width:100%; max-width:320px; padding:9px 12px; border:1px solid #ccd2d8; border-radius:6px; font-size:14px; margin-bottom:12px; }
.anketor-isim-listesi li { padding:0; }
.ap-isim-btn { display:flex; justify-content:space-between; align-items:center; width:100%; border:0; background:transparent; text-align:left; padding:11px 6px; font-size:15px; font-weight:600; color:#20252b; cursor:pointer; border-radius:6px; font-family:inherit; }
.ap-isim-btn:hover { background:#f1f5fa; color:#2563a8; }
.ap-isim-btn .ap-ok { color:#9aa4ae; font-weight:normal; font-size:13px; }
.ap-pasif { color:#9aa4ae; font-weight:normal; font-size:12px; margin-left:6px; }
.ap-modal { display:none; position:fixed; inset:0; background:rgba(15,23,32,.55); z-index:5000; overflow-y:auto; padding:30px 16px; }
.ap-modal.acik { display:block; }
.ap-pencere { background:#fff; max-width:980px; margin:0 auto; border-radius:10px; padding:24px; box-shadow:0 20px 50px rgba(0,0,0,.25); }
.ap-ust { display:flex; gap:16px; align-items:flex-start; margin-bottom:20px; flex-wrap:wrap; }
.ap-foto { width:76px; height:76px; border-radius:50%; object-fit:cover; border:1px solid #ddd; flex:none; }
.ap-foto-bos { background:#e8f0f8; color:#2563a8; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:bold; }
.ap-kimlik { flex:1; min-width:220px; }
.ap-ad { font-size:21px; font-weight:bold; margin-bottom:4px; }
.ap-alt { color:#68727d; font-size:12px; }
.ap-iban { margin-top:6px; font-family:monospace; font-size:14px; }
.ap-ust-butonlar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ap-kapat { border:0; background:#eef1f4; width:38px; height:38px; border-radius:50%; font-size:22px; cursor:pointer; line-height:1; }
.ap-kapat:hover { background:#dfe4e9; }
.ap-kartlar { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:12px; }
.ap-kart { background:#f7f8fa; border-radius:8px; padding:12px; }
.ap-kart span { display:block; font-size:11px; color:#777; margin-bottom:6px; }
.ap-kart strong { font-size:18px; }
.ap-ilerleme { height:8px; background:#eef1f4; border-radius:6px; overflow:hidden; margin-bottom:6px; }
.ap-ilerleme-dolu { height:100%; background:#16834a; border-radius:6px; }
.ap-baslik { font-size:15px; margin:6px 0 10px; }
.ap-tablo-sar { overflow-x:auto; margin-bottom:20px; border:1px solid #edf0f2; border-radius:8px; }
.ap-mini { border:0; background:#e8f0f8; color:#2563a8; padding:3px 7px; border-radius:4px; cursor:pointer; font-size:11px; margin-left:4px; }
.ap-mini-green { background:#e7f7ee; color:#16834a; }
.ap-formlar { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px; }
.ap-form { border:1px solid #e1e5e9; border-radius:8px; padding:16px; }
.ap-onay { display:flex; gap:8px; align-items:center; font-size:12px; color:#555; margin-bottom:12px; cursor:pointer; }
.ap-gecmis { border:1px solid #edf0f2; border-radius:8px; padding:6px 12px; max-height:320px; overflow-y:auto; }
.ap-zaman { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid #f0f2f4; }
.ap-zaman:last-child { border-bottom:none; }
.ap-zaman-govde { flex:1; font-size:13px; }
.ap-nokta { width:10px; height:10px; border-radius:50%; margin-top:4px; flex:none; }
.ap-nokta-mavi { background:#2563a8; }
.ap-nokta-yesil { background:#16834a; }
@media (max-width:800px) { .ap-kartlar { grid-template-columns:repeat(2,1fr); }
.ap-formlar { grid-template-columns:1fr; }
.ap-pencere { padding:16px; } }
@media print {
body.ap-acik > *:not(#apModal) { display:none !important; }
body.ap-acik #apModal { position:static; background:none; padding:0; overflow:visible; }
body.ap-acik .ap-pencere { box-shadow:none; max-width:none; }
body.ap-acik .ap-ust-butonlar, body.ap-acik .ap-formlar, body.ap-acik .delete-btn, body.ap-acik .ap-mini { display:none !important; }
body.ap-acik .ap-gecmis { max-height:none; overflow:visible; }
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
display: inline-block;
background: #e8f0f8;
color: #2563a8;
padding: 5px 8px;
border-radius: 12px;
font-size: 11px;
}
/* =========================
RAPORLAR
========================= */
.report-header { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; margin-bottom:15px; }
.report-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.report-tab { border:0; background:#e9edf0; color:#333; padding:10px 16px; border-radius:6px; cursor:pointer; font-size:13px; }
.report-tab.active { background:#2563a8; color:white; }
.report-panel { display:none; }
.report-panel.active { display:block; }
.report-cards { margin-top:5px; }
.report-chart-wrap { background:#fff; border:1px solid #e1e5e9; border-radius:8px; padding:20px; margin-bottom:20px; }
.report-chart-wrap h3 { font-size:15px; margin-bottom:18px; }
.report-chart { display:flex; align-items:flex-end; gap:8px; height:300px; padding:20px 10px 5px; border-left:1px solid #ccd2d8; border-bottom:1px solid #ccd2d8; overflow-x:auto; background:linear-gradient(to top, transparent 24%, #f1f3f6 25%, transparent 26%, transparent 49%, #f1f3f6 50%, transparent 51%, transparent 74%, #f1f3f6 75%, transparent 76%); }
.report-bar-group { min-width:48px; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; position:relative; }
.report-bars { height:250px; display:flex; align-items:flex-end; gap:3px; }
.report-bar { width:18px; min-height:2px; border-radius:3px 3px 0 0; position:relative; cursor:pointer; }
.report-bar.income { background:#16834a; }
.report-bar.expense { background:#c73535; }
.report-bar:hover::after { content:attr(data-value); position:absolute; bottom:100%; left:50%; transform:translateX(-50%); background:#18212b; color:#fff; padding:4px 6px; border-radius:4px; font-size:10px; white-space:nowrap; z-index:5; }
.report-label { font-size:10px; color:#68727d; margin-top:7px; white-space:nowrap; }
.report-legend { display:flex; gap:15px; margin-top:12px; font-size:12px; color:#555; }
.legend-dot { width:10px; height:10px; display:inline-block; border-radius:50%; margin-right:5px; }
.legend-income { background:#16834a; }
.legend-expense { background:#c73535; }
.report-table-panel h3 { font-size:15px; margin-bottom:12px; }
.table-scroll { overflow-x:auto; }
@media (max-width:1000px) { .report-header { flex-direction:column; }
.report-chart { min-width:650px; } }
.brand-logo{display:flex;align-items:center;gap:10px;padding:8px 6px 18px;border-bottom:1px solid rgba(255,255,255,.10);margin-bottom:14px;}
.brand-logo img{width:48px;height:48px;object-fit:contain;border-radius:10px;background:#fff;padding:2px;}
.brand-name{font-size:20px;font-weight:800;letter-spacing:.5px;color:#fff;}
.brand-sub{font-size:11px;color:#aeb8c3;margin-top:2px;}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;}
.page-head h2{font-size:20px;margin:0;}
.page-head p{font-size:13px;color:#707983;margin-top:5px;}
.excel-page-btn{background:#16834a!important;color:#fff!important;font-weight:600;}
.excel-page-btn:hover{background:#11683b!important;}
.topbar-brand{display:flex;align-items:center;gap:9px;}
.topbar-brand img{width:34px;height:34px;object-fit:contain;border-radius:7px;background:#fff;padding:1px;}
.topbar-brand span{font-weight:800;letter-spacing:.4px;}
@media(max-width:800px){.page-head{align-items:flex-start;flex-direction:column}.brand-logo{justify-content:center}.sidebar{width:210px}.main{margin-left:210px}}
/* =========================
GİRİŞ VE KULLANICI YETKİLERİ
========================= */
.auth-overlay{position:fixed;inset:0;background:linear-gradient(135deg,#18212b,#263746);display:flex;align-items:center;justify-content:center;z-index:99999;padding:20px;}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:14px;padding:30px;box-shadow:0 20px 60px rgba(0,0,0,.28);}
.auth-brand{text-align:center;margin-bottom:24px;}
.auth-brand-mark{width:78px;height:78px;border-radius:18px;background:#fff;border:1px solid #e1e5e9;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;box-shadow:0 6px 20px rgba(0,0,0,.08);}
.auth-brand-mark span{font-size:34px;font-weight:900;color:#119f9d;letter-spacing:-2px;}
.auth-brand h2{font-size:24px;color:#18212b;margin-bottom:5px;}
.auth-brand p{font-size:13px;color:#68727d;}
.auth-error{display:none;background:#fdeaea;color:#b52e2e;border:1px solid #f2c2c2;border-radius:6px;padding:10px;margin-bottom:14px;font-size:13px;}
.auth-user{display:flex;align-items:center;gap:8px;font-size:12px;color:#68727d;}
.auth-user strong{color:#20252b;}
.logout-btn{border:0;background:#fdeaea;color:#b52e2e;border-radius:5px;padding:8px 11px;cursor:pointer;font-size:12px;}
.user-card{border:1px solid #e1e5e9;border-radius:8px;padding:15px;margin-bottom:10px;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;}
.user-card-main strong{display:block;font-size:15px;margin-bottom:4px;}
.user-card-main span{font-size:12px;color:#68727d;}
.user-role{display:inline-block;padding:4px 8px;border-radius:12px;background:#e8f0f8;color:#2563a8;font-size:11px;margin-left:5px;}
.user-role.admin{background:#e7f7ee;color:#16834a;}
.permission-note{background:#fff8e8;border:1px solid #f2dfaa;color:#7a5b12;padding:11px;border-radius:6px;font-size:12px;margin-bottom:15px;}
.topbar-right{display:flex;align-items:center;gap:14px;}
@media(max-width:700px){.auth-card{padding:22px}.auth-user{display:none}.topbar-right{gap:6px}}

/* =========================
PHP SÜRÜMÜ EKLERİ (Adım 2)
========================= */
/* Menü artık buton değil link */
.menu a { display: block; width: 100%; color: #dce2e8; padding: 12px 14px; text-align: left; font-size: 14px; border-radius: 6px; margin-bottom: 4px; text-decoration: none; }
.menu a:hover, .menu a.active { background: #263746; color: white; }
.menu-ayrac { height: 1px; background: rgba(255,255,255,.10); margin: 10px 4px; }

/* Üst bar: çıkış ve şifre */
.topbar-right form { display: inline; margin: 0; }
.topbar-link { font-size: 12px; color: #2563a8; text-decoration: none; padding: 8px 6px; }
.topbar-link:hover { text-decoration: underline; }
a.btn { display: inline-block; text-decoration: none; }

/* Bildirim kutuları (flash mesajlar) */
.alert { padding: 12px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 15px; border: 1px solid transparent; }
.alert-basari { background: #e7f7ee; color: #16834a; border-color: #bfe6cf; }
.alert-hata   { background: #fdeaea; color: #b52e2e; border-color: #f2c2c2; }
.alert-bilgi  { background: #e8f0f8; color: #2563a8; border-color: #c9dbef; }
.alert-uyari  { background: #fff8e8; color: #7a5b12; border-color: #f2dfaa; }

/* Giriş sayfası: tam sayfa (overlay değil) */
.auth-sayfa { position: static; min-height: 100vh; }
.auth-error.goster { display: block; }
.auth-logo { width: 78px; height: 78px; object-fit: contain; border-radius: 18px; background: #fff; border: 1px solid #e1e5e9; padding: 4px; margin: 0 auto 12px; display: block; box-shadow: 0 6px 20px rgba(0,0,0,.08); }

/* Küçük form ekleri */
.form-dar { max-width: 460px; }
.zorunlu { color: #c73535; }
.yardim { font-size: 12px; color: #707983; margin-top: 5px; }

/* =========================
FATURA VE KART (Adım 4)
========================= */
a.fatura-kart-tab { display: inline-block; text-decoration: none; }
.sekme-sayac { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; background: #c73535; color: #fff; font-size: 11px; text-align: center; }
.fatura-kart-tab.active .sekme-sayac { background: #fff; color: #2563a8; }
.kayit-butonlar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.kayit-butonlar form { display: inline; margin: 0; }
a.detail-btn { text-decoration: none; font-size: 13px; }
.odeme-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: #555; margin-top: 4px; }
.odeme-form label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.odeme-form input[type="date"] { padding: 6px 8px; border: 1px solid #ccd2d8; border-radius: 5px; font-size: 13px; }
.odeme-bilgi { color: #16834a; font-size: 13px; }
.odeme-bilgi a { color: #2563a8; }
.form-group input, .form-group select, .form-group textarea, .btn { font-family: inherit; }

/* =========================
ANKETÖR / TEDARİKÇİ (Adım 5)
========================= */
.profil-ust-bar { margin-bottom: 12px; }
.ap-profil { padding: 24px; }
.ap-ust-butonlar form { display: inline; margin: 0; }
.ap-foto-kucuk { width: 56px; height: 56px; font-size: 18px; }
.ap-foto-mini { width: 32px; height: 32px; font-size: 12px; }
a.ap-isim-btn { text-decoration: none; }
.liste-sag { display: flex; gap: 14px; align-items: center; font-size: 13px; font-weight: normal; }
a.ap-mini { display: inline-block; text-decoration: none; }
.fiyat-duzenle { display: inline-block; }
.fiyat-duzenle summary { list-style: none; display: inline-block; }
.fiyat-duzenle summary::-webkit-details-marker { display: none; }
.fiyat-duzenle[open] form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 10px; background: #f7f8fa; border-radius: 6px; min-width: 220px; }
.fiyat-duzenle input[type="number"] { padding: 6px 8px; border: 1px solid #ccd2d8; border-radius: 5px; }
.fiyat-duzenle label { font-size: 11px; color: #555; display: flex; gap: 5px; align-items: center; }
.secim-grubu { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.secim-grubu label { display: flex; gap: 6px; align-items: center; margin: 0; cursor: pointer; color: #20252b; }
.secim-grubu input { width: auto !important; }
.tehlike { margin-top: 24px; padding-top: 14px; border-top: 1px dashed #e1e5e9; text-align: right; }
.sehir-etiket { display: inline-block; padding: 6px 10px; border-radius: 14px; background: #eef1f4; color: #333; font-size: 12px; text-decoration: none; }
.sehir-etiket.secili, .sehir-etiket:hover { background: #2563a8; color: #fff; }
.sehir-grup { margin-bottom: 18px; }
.bekleyen-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #edf0f2; color: #20252b; text-decoration: none; font-size: 13px; border-radius: 5px; }
.bekleyen-satir:hover { background: #f1f5fa; }
.content a:not(.btn):not(.detail-btn):not(.ap-mini):not(.sehir-etiket):not(.bekleyen-satir):not(.ap-isim-btn):not(.report-tab):not(.fatura-kart-tab) { color: #2563a8; }

@media print {
    .sidebar, .topbar, .yazdirma-gizle, .alert { display: none !important; }
    .main { margin-left: 0 !important; }
    .content { padding: 0 !important; }
    .panel { border: 0 !important; }
    .ap-gecmis { max-height: none !important; overflow: visible !important; }
}

/* =========================
RAPORLAR (Adım 6)
========================= */
.rapor-filtre { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.rapor-filtre .form-group { margin-bottom: 0; }
.rapor-filtre .btn { width: 100%; padding: 11px 16px; }
a.report-tab { display: inline-block; text-decoration: none; }
.rapor-tablo th.sag, .rapor-tablo td.sag { text-align: right; white-space: nowrap; }
.rapor-tablo tfoot th { color: #20252b; font-weight: bold; border-top: 2px solid #d5dbe1; background: #f7f8fa; }
@media (max-width: 1100px) { .rapor-filtre { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .rapor-filtre { grid-template-columns: 1fr 1fr; } }
a.report-tab { color: #333; } a.report-tab.active, a.fatura-kart-tab.active { color: #fff; } a.fatura-kart-tab { color: #333; }

/* =========================
TOPLU HAKEDİŞ YÜKLEME (Adım 7)
========================= */
.onizleme-tablo td { vertical-align: top; }
.onizleme-tablo tr.satir-hata td { background: #fff6f6; }
.onizleme-tablo tr.satir-mukerrer td { background: #fffaf0; }
.onizleme-tablo .aciklama-hucre { min-width: 240px; font-size: 12px; }
.onizleme-tablo thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.onay-kutusu { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf0f2; }
.onay-kutusu form { display: flex; flex-direction: column; gap: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.adim-listesi { padding-left: 20px; font-size: 13px; line-height: 1.6; color: #333; }
.adim-listesi li { margin-bottom: 8px; }

/* Toplu hakediş: eşleştirme paneli */
.esle-tablo tr.esle-bekliyor td { background: #fff3e0; }
.esle-tablo td { vertical-align: top; }

/* =========================
MOBİL DÜZEN (Adım 11)
- Kenar menü: telefonda gizli, ☰ ile açılan çekmece
- Kartlar/formlar tek sütun, tablolar yatay kaydırmalı, dokunma hedefleri 44px
========================= */
html { -webkit-text-size-adjust: 100%; }
.menu-dugme { display: none; border: 0; background: #eef1f4; color: #18212b; width: 42px; height: 42px; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.menu-ortu { display: none; position: fixed; inset: 0; background: rgba(15,23,32,.5); z-index: 900; }
.menu-kapat { display: none; }
.sidebar { z-index: 1000; transition: transform .22s ease; }

@media (max-width: 900px) {
    .sidebar { width: 270px; transform: translateX(-100%); box-shadow: 0 0 30px rgba(0,0,0,.35); padding-top: 14px; }
    body.menu-acik .sidebar { transform: none; }
    body.menu-acik .menu-ortu { display: block; }
    body.menu-acik { overflow: hidden; }
    .menu-kapat { display: flex; align-items: center; justify-content: center; position: absolute; top: 12px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
    .menu a { padding: 14px 16px; font-size: 16px; }
    .main { margin-left: 0; }
    .menu-dugme { display: inline-flex; align-items: center; justify-content: center; }
    .topbar { position: sticky; top: 0; z-index: 800; height: auto; min-height: 58px; padding: 8px 12px; gap: 8px; }
    .topbar-brand { gap: 8px; min-width: 0; }
    .topbar-brand img { width: 30px; height: 30px; }
    .topbar-brand > span { display: none; }
    .topbar h1 { font-size: 15px; margin-left: 2px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar .date, .topbar .auth-user { display: none; }
    .topbar-right { gap: 4px; flex: none; }
    .topbar-link { padding: 10px 8px; font-size: 13px; }
    .logout-btn { padding: 10px 11px; font-size: 13px; }
    .content { padding: 14px 12px 40px; }
    .panel { padding: 14px; border-radius: 10px; }
    .panel h2 { font-size: 16px; }
    .page-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 14px; }
    .page-head h2 { font-size: 19px; }
    .page-head .btn, .page-head .actions { width: 100%; }
    .page-head .actions { margin: 0; flex-wrap: wrap; }
    .page-head .actions .btn { flex: 1 1 auto; text-align: center; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
    .card { padding: 14px; }
    .card-value { font-size: 20px; }
    .grid { grid-template-columns: 1fr; gap: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; padding: 12px; }   /* 16px: iOS yakınlaştırmasını engeller */
    .btn, a.btn, .report-tab, a.report-tab, .fatura-kart-tab, .sehir-etiket { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; text-align: center; }
    .sehir-etiket { min-height: 38px; }
    .actions { flex-wrap: wrap; }
    .actions .btn { flex: 1 1 auto; }
    .detail-btn, .delete-btn, .ap-mini { padding: 9px 11px; font-size: 13px; min-height: 36px; }
    .kayit-butonlar { justify-content: flex-start; }
    /* Tablolar: yatay kaydırma, hücreler sarmasın */
    .grid > *, .cards > *, .panel, .ap-form, .ap-formlar > * { min-width: 0; }   /* grid çocukları daralabilsin; tablo sayfayı genişletmesin */
    .table-scroll, .ap-tablo-sar { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .panel > table, .ap-gecmis table, .panel .table-scroll table, .ap-tablo-sar table { min-width: 640px; }
    th, td { white-space: nowrap; padding: 10px 8px; }
    .onizleme-tablo .aciklama-hucre, .esle-tablo td { white-space: normal; }
    .table-scroll[style*="max-height"] { max-height: none !important; }
    /* Proje / anketör kartları */
    .project-stats, .anketor-stats, .odeme-stats, .ap-kartlar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .project-header, .anketor-header, .user-card { flex-direction: column; align-items: flex-start; }
    .project-checks { grid-template-columns: 1fr; }
    .ap-profil { padding: 14px; }
    .ap-ust { gap: 12px; }
    .ap-ad { font-size: 18px; }
    .ap-ust-butonlar { width: 100%; }
    .ap-ust-butonlar .btn, .ap-ust-butonlar form { flex: 1 1 45%; }
    .ap-ust-butonlar form .btn { width: 100%; }
    .ap-kart strong { font-size: 16px; }
    .ap-formlar { grid-template-columns: 1fr; }
    .ap-gecmis { max-height: none; padding: 4px 8px; }
    .ap-zaman { flex-wrap: wrap; }
    .ap-zaman form { width: 100%; text-align: right; }
    .tehlike { text-align: left; }
    .tehlike .delete-btn { width: 100%; }
    .bekleyen-satir { padding: 12px 6px; }
    .liste-sag .ap-ok { display: none; }
    /* Raporlar */
    .rapor-filtre { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rapor-filtre .form-group:nth-child(n+3) { grid-column: 1 / -1; }
    .report-tabs { gap: 6px; }
    .report-tab { flex: 1 1 45%; }
    /* Toplu yükleme */
    .onay-kutusu form, .onay-kutusu .btn { width: 100%; }
    .esle-tablo select { font-size: 16px; padding: 10px; }
    .auth-card { padding: 22px 18px; }
}
@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
    .ap-kartlar { grid-template-columns: 1fr 1fr; }
    .rapor-filtre { grid-template-columns: 1fr; }
    .ap-ust-butonlar .btn, .ap-ust-butonlar form { flex: 1 1 100%; }
}
