/* Kovan arayüzü. Renkler şirket ayarlarından gelir (base.html içindeki :root). */
@import url("fonts.css");
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, "Segoe UI", system-ui, sans-serif; color: var(--yazi); background: var(--zemin); font-size: 14px; }
a { color: var(--ana); }
a:hover { color: var(--ana-koyu); }
h1 { margin: 0; font-size: 28px; font-weight: 800; }
h2 { margin: 0; font-size: 18px; font-weight: 800; }
:root {
  --yazi: #141414; --soluk: #4B5563; --zemin: #F4F7FB; --kart: #FFFFFF; --cizgi: #DCE4EF; --ince: #EEF2F7;
  --kirmizi: #B91C1C; --yesil: #166534; --turuncu: #B45309;
}

.yerlesim { display: flex; flex-wrap: wrap; min-height: 100vh; }
.menu { flex: 1 1 228px; max-width: 100%; background: var(--menu); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; }
.menu .marka { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; }
.menu .marka-satir { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; }
.menu .sirket { font-size: 12px; color: #9CA3AF; }
.menu .sirket img { max-width: 160px; max-height: 40px; background: #fff; border-radius: 6px; padding: 4px; }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; color: #D1D5DB; font-weight: 500; }
.menu nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu nav a.aktif { background: var(--ana); color: #fff; font-weight: 700; }
.menu .kullanici { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.menu .kullanici small { display: block; color: #9CA3AF; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 17px; background: var(--ana); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.icerik { flex: 999 1 560px; min-width: 0; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 24px; }

.ust { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.arama { flex: 1 1 320px; max-width: 560px; position: relative; }
.arama label { display: flex; align-items: center; gap: 10px; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 0 14px; height: 44px; color: var(--soluk); }
.arama input[type=search], .arama input[type=search]:focus { flex: 1; border: none; outline: none; min-height: 0; padding: 0; font: inherit; background: transparent; color: var(--yazi); }
.arama kbd { font: inherit; font-size: 12px; border: 1px solid var(--cizgi); border-radius: 6px; padding: 2px 6px; }
.arama-sonuc { position: absolute; top: 48px; left: 0; right: 0; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 20; max-height: 420px; overflow: auto; }
.arama-sonuc a { display: block; padding: 10px 14px; text-decoration: none; color: var(--yazi); border-top: 1px solid var(--ince); }
.arama-sonuc a small { color: var(--soluk); display: block; }
.ust-sag { display: flex; gap: 10px; align-items: center; }
.zil { position: relative; }
.zil .rozet { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--kirmizi); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--kart); color: var(--yazi); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.btn:hover { border-color: var(--ana); color: var(--ana); }
.btn.ana { background: var(--ana); border-color: var(--ana); color: #fff; }
.btn.ana:hover { background: var(--ana-koyu); color: #fff; }
.btn.cerceve { border-color: var(--ana); color: var(--ana); }
.btn.kucuk { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.buyuk { height: 44px; }
.btn.ikon { width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.btn.ikon.kucuk { width: 36px; height: 36px; }
.btn.tehlike { color: var(--kirmizi); }

.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 16px; padding: 20px 22px; }
.kart-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.kart-bas a { font-size: 13px; font-weight: 700; text-decoration: none; }
.iki-kolon { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.iki-kolon > .genis { flex: 2 1 520px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.iki-kolon > .dar { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.istatistikler { display: flex; flex-wrap: wrap; gap: 14px; }
.istatistik { flex: 1 1 180px; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--yazi); }
.istatistik span:first-child { font-size: 13px; color: var(--soluk); font-weight: 600; }
.istatistik b { font-size: 28px; font-weight: 800; }
.istatistik small { font-size: 12px; color: var(--soluk); }
.satir { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--ince); }
.satir .ana-bilgi { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.etiket { font-size: 12px; font-weight: 700; color: var(--ana); text-decoration: none; }
.baslik { font-size: 15px; font-weight: 700; color: var(--yazi); text-decoration: none; }
.soluk { color: var(--soluk); font-size: 12.5px; }
.kirmizi { color: var(--kirmizi); }
.bos { color: var(--soluk); padding: 14px 0; border-top: 1px solid var(--ince); }
.butonlar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sayfa-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sayfa-bas .alt { font-size: 14px; color: var(--soluk); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ekmek { font-size: 13px; font-weight: 700; text-decoration: none; }

.rozet-durum { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: #EEF2F7; color: #374151; }
.d-onaylandi, .d-tamamlandi { background: #DCFCE7; color: #166534; }
.d-gonderildi { background: #DBEAFE; color: #1E40AF; }
.d-beklemede, .d-revizyon { background: #FEF3C7; color: #92400E; }
.d-kaybedildi, .d-iptal { background: #FEE2E2; color: #991B1B; }
.d-taslak { background: #F3F4F6; color: #374151; }

.sekmeler { display: flex; flex-wrap: wrap; gap: 22px; border-bottom: 1px solid var(--ince); margin-bottom: 4px; }
.sekmeler a { padding: 10px 2px; font-size: 14px; text-decoration: none; color: var(--soluk); border-bottom: 3px solid transparent; font-weight: 600; }
.sekmeler a.aktif { color: var(--ana); border-bottom-color: var(--ana); font-weight: 800; }
.olay { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ince); }
.olay-ikon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--ana-acik); color: var(--ana); display: flex; align-items: center; justify-content: center; }
.olay .ana-bilgi { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tutar { font-weight: 700; white-space: nowrap; }

.uyari { display: flex; gap: 10px; align-items: flex-start; background: #FEF3C7; color: #78350F; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.mesajlar { display: flex; flex-direction: column; gap: 8px; }
.mesaj { padding: 12px 16px; border-radius: 12px; background: #DCFCE7; color: #14532D; font-weight: 600; }
.mesaj.error { background: #FEE2E2; color: #7F1D1D; }
.mesaj.warning { background: #FEF3C7; color: #78350F; }
.bilgi-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; column-gap: 12px; font-size: 13.5px; }
.bilgi-izgara span:nth-child(odd) { color: var(--soluk); }
.bilgi-izgara span:nth-child(even) { font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }

/* Formlar */
form .alanlar { display: flex; flex-wrap: wrap; gap: 14px; }
.alan { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; min-width: 0; }
.alanlar > .alan, .butonlar > .alan { flex: 1 1 260px; }
.alan.tam { width: 100%; }
.alanlar > .alan.tam { flex-basis: 100%; }
.alan > span, .alan > label { font-size: 13px; font-weight: 700; }
.alan small, .alan .yardim { font-size: 12px; color: var(--soluk); }
.alan .hata, .hata { color: var(--kirmizi); font-size: 12.5px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--cizgi); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--yazi); background: #fff;
}
textarea { padding: 10px 12px; resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ana-acik2); border-color: var(--ana); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ana); }
input[type=color] { width: 56px; height: 40px; border: 1px solid var(--cizgi); border-radius: 8px; padding: 2px; background: #fff; }
.secenekler { display: flex; flex-wrap: wrap; gap: 8px; }
.secenekler input { position: absolute; opacity: 0; pointer-events: none; }
.secenekler label { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--cizgi); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.secenekler input:checked + label { background: var(--ana); border-color: var(--ana); color: #fff; }
.secenekler input:focus-visible + label { outline: 2px solid var(--ana-acik2); }
.form-alt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--ince); padding-top: 18px; margin-top: 6px; }
.surukle { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--ana-acik2); border-radius: 12px; padding: 14px 16px; color: var(--soluk); }
.surukle.uzerinde { background: var(--ana-acik); }

/* Tablolar */
.tablo-kutu { overflow-x: auto; border: 1px solid var(--ince); border-radius: 12px; background: var(--kart); }
table.liste { width: 100%; border-collapse: collapse; }
table.liste th { padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--soluk); text-align: left; background: var(--zemin); white-space: nowrap; }
table.liste td { padding: 11px 12px; border-top: 1px solid var(--ince); vertical-align: top; }
table.liste tr:hover td { background: #FAFBFD; }
table.liste td.sag, table.liste th.sag { text-align: right; }

/* Haftalık takvim / rapor */
.hafta-izgara { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gun { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 14px; padding: 12px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.gun.bugun { border-color: var(--ana); box-shadow: 0 0 0 1px var(--ana); }
.gun h3 { margin: 0; font-size: 13px; display: flex; justify-content: space-between; }
.gun .not { background: var(--ana-acik); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; text-decoration: none; color: var(--yazi); display: block; }
.gun .not b { display: block; font-size: 11.5px; color: var(--ana); }
.ilerleme { display: flex; gap: 6px; }
.ilerleme div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--soluk); }
.ilerleme div span { width: 100%; height: 8px; border-radius: 4px; background: var(--ince); }
.ilerleme div.dolu span { background: var(--ana); }
.ilerleme div.bugun { font-weight: 800; color: var(--yazi); }

/* Giriş */
.giris-sayfa { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--zemin); }
.giris-kart { width: 100%; max-width: 400px; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 800px) {
  .icerik { padding: 16px; }
  .menu { padding: 12px; gap: 12px; }
  .menu nav { flex-direction: row; flex-wrap: wrap; }
  .menu nav a { padding: 8px 10px; }
  .menu .kullanici { display: none; }
  .arama kbd, .menu .sirket { display: none; }
  .hafta-izgara { grid-template-columns: 1fr; }
}

/* Teklif sihirbazı */
.adimlar { display: flex; flex-wrap: wrap; gap: 14px; }
.adim { flex: 1 1 180px; display: flex; align-items: center; gap: 10px; color: var(--soluk); }
.adim > span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 15px; background: var(--ince); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.adim small { display: block; font-size: 12px; color: var(--soluk); }
.adim.aktif { color: var(--ana); }
.adim.aktif > span { background: #fff; border: 2px solid var(--ana); }
.adim.tamam { color: var(--yazi); }
.adim.tamam > span { background: var(--ana); color: #fff; }
.kalem { border: 1px solid var(--ince); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.kalem.hatali { border-color: var(--kirmizi); }
.kalem-ust { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.kalem-ust .kod-alan { flex: 1 1 150px; }
.kalem-ust .k-dar { flex: 0 1 72px; }
.kalem-ust .k-birim { flex: 0 1 78px; }
.kalem-ust .k-fiyat { flex: 0 1 108px; }
.kalem-alt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.kalem-tutar { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kalem-tutar b { font-size: 15px; min-width: 90px; text-align: right; }
.kalem textarea { min-height: 52px; }
.kalem input { min-height: 40px; }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.oneri-kutu { position: relative; display: block; }
.oneri { position: absolute; top: 44px; left: 0; min-width: 380px; background: #fff; border: 1px solid var(--cizgi); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 30; display: flex; flex-direction: column; max-height: 300px; overflow: auto; }
.oneri[hidden] { display: none; }
.oneri button { text-align: left; border: none; background: #fff; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; border-top: 1px solid var(--ince); }
.oneri button:hover { background: var(--ana-acik); }
.oneri small { display: block; color: var(--soluk); font-size: 11.5px; }
.ipucu { display: flex; flex-wrap: wrap; gap: 6px; }
.ipucu:empty { min-height: 1px; }
.gecmis-fiyat { border: 1px solid var(--cizgi); background: #fff; border-radius: 14px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--yazi); }
.gecmis-fiyat.secili { background: var(--ana-acik); border-color: var(--ana); color: var(--ana); font-weight: 700; }
.ilk-kez { font-size: 12.5px; font-weight: 600; color: var(--turuncu); }

/* Raporlar */
.grafik-cubuklar { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cubuk-satir { display: grid; grid-template-columns: minmax(120px, 190px) 1fr minmax(120px, auto); gap: 12px; align-items: center; font-size: 13px; }
.cubuk-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--yazi); text-decoration: none; }
.cubuk-iz { height: 14px; background: var(--ince); border-radius: 4px; overflow: hidden; }
.cubuk { display: block; height: 100%; background: #257de0; border-radius: 0 4px 4px 0; min-width: 2px; }
.cubuk-deger { text-align: right; white-space: nowrap; color: var(--soluk); }
.cubuk-deger b { color: var(--yazi); }
.lejant { display: flex; gap: 14px; font-size: 12.5px; color: var(--soluk); }
.lejant i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.aylik { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 220px; margin-top: 12px; }
.ay { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.ay-cubuklar { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--cizgi); }
.ay-cubuklar span { width: 40%; max-width: 16px; border-radius: 4px 4px 0 0; min-height: 1px; }
.ay small { color: var(--soluk); font-size: 11.5px; }
@media (max-width: 800px) { .cubuk-satir { grid-template-columns: 1fr; gap: 4px; } .cubuk-deger { text-align: left; } }
