﻿/* İK & Araç Portalı — mobil öncelikli tek stil dosyası */
/* Marka renkleri: beyhekimosgb.com logosu (yeşil #009060, mavi #00a8d8, altın #d8c030) */
:root {
  --navy: #055239; --blue: #01698F; --teal: #009060; --green: #056848;
  --orange: #A8861B; --purple: #0B3A4A; --red: #A8352F;
  --bg: #F2F5F3; --surface: #FFFFFF; --surface-2: #E8EFEA;
  --ink: #1C2B24; --muted: #5C6A63; --line: #D3DDD6;
  --ok-bg: #E1F0E4; --ok-ink: #2E7D46;
  --warn-bg: #F6EBD2; --warn-ink: #8A5A00;
  --danger-bg: #F7E3E1; --danger-ink: #A8352F;
  --shadow: 0 1px 3px rgba(35,42,46,.08), 0 6px 18px rgba(35,42,46,.05);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* üst bar */
.topbar {
  background: var(--navy); color: #fff; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px 18px; padding: 10px 16px;
}
.brand { font-size: 17px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; }
.brand span { color: #D8C030; }
.logo-kutu { background: #fff; border-radius: 7px; padding: 3px 7px; display: inline-flex; align-items: center; }
.logo-kutu img { height: 30px; width: auto; display: block; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.topbar nav a {
  color: #DFF0E7; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
}
.topbar nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.userbox { font-size: 12.5px; color: #C8E0D2; display: flex; align-items: center; gap: 10px; }
.userbox b { color: #fff; }
.userbox a { color: #E2F0E8; font-weight: 700; }
/* rapor sekmeleri */
.rapor-turleri { display: flex; flex-wrap: wrap; gap: 6px; }
.rapor-sekme {
  display: inline-block; padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--ink); text-decoration: none; border: 1px solid var(--line);
}
.rapor-sekme:hover { background: #DCE8E0; text-decoration: none; }
.rapor-sekme.aktif { background: var(--navy); color: #fff; border-color: var(--navy); }

/* mesaj popup */
.modal-fon {
  position: fixed; inset: 0; background: rgba(15, 30, 24, .62); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-kutu {
  background: var(--surface); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 24px 26px; max-width: 460px; width: 100%; border-top: 6px solid var(--teal);
}
.modal-baslik { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.modal-metin { font-size: 15px; line-height: 1.6; white-space: pre-wrap; margin: 0 0 8px; }

.tehlike {
  border: 1px solid #E7C0BC; border-left: 4px solid var(--red); background: #FDF6F5;
  border-radius: 10px; padding: 14px 18px; margin-top: 16px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 14px 60px; }
h1 { font-size: 24px; margin: 6px 0 16px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.kucuk { font-size: 12.5px; }

/* uyarı / mesaj */
.uyari-bar {
  background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #E4D3A8;
  border-radius: 8px; padding: 9px 14px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600;
}
.mesaj { border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.mesaj.ok { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid #BBDCC2; }
.mesaj.hata { background: var(--danger-bg); color: var(--danger-ink); border: 1px solid #E7C0BC; }
.mesaj.bilgi { background: #E3E9F4; color: var(--navy); border: 1px solid #C3CFE4; }

/* kartlar */
.kart {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px;
}
.kart-baslik { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* metrik kartları */
.metrikler { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 700px) { .metrikler { grid-template-columns: repeat(5, 1fr); } }
.metrik {
  display: block; border-radius: 10px; padding: 12px 14px; color: #fff;
  box-shadow: var(--shadow); text-decoration: none;
}
.metrik:hover { text-decoration: none; filter: brightness(1.08); }
.metrik .deger { font-size: 26px; font-weight: 800; line-height: 1.1; }
.metrik .etiket { font-size: 12px; font-weight: 700; opacity: .92; margin-top: 2px; }
.m-navy { background: var(--navy); } .m-blue { background: var(--blue); }
.m-teal { background: var(--teal); } .m-green { background: var(--green); }
.m-orange { background: var(--orange); } .m-purple { background: var(--purple); }
.m-red { background: var(--red); } .m-gray { background: #595959; }

/* rozetler */
.chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px;
  border-radius: 99px; white-space: nowrap;
}
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.danger { background: var(--danger-bg); color: var(--danger-ink); }
.chip.gray { background: var(--surface-2); color: var(--muted); }
.chip.navy { background: #E3E9F4; color: var(--navy); }

/* tablolar */
.tablo-kab { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-2); white-space: nowrap;
}
tbody tr:hover { background: #FAFBF9; }
td.sag, th.sag { text-align: right; }

/* formlar */
form.satir { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.alan { display: flex; flex-direction: column; gap: 4px; min-width: 130px; flex: 1; }
.alan.genis { flex: 2 1 240px; }
.alan.dar { flex: 0 1 120px; min-width: 100px; }
label { font-size: 12px; font-weight: 700; color: var(--muted); }
input, select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
textarea { resize: vertical; min-height: 70px; }

.btn {
  display: inline-block; border: none; cursor: pointer; font: inherit; font-weight: 700;
  font-size: 14px; padding: 9px 18px; border-radius: 8px; background: var(--navy); color: #fff;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn.yesil { background: var(--green); }
.btn.turkuaz { background: var(--teal); }
.btn.kirmizi { background: var(--red); }
.btn.gri { background: #6B7672; }
.btn.kucukbtn { font-size: 12.5px; padding: 5px 12px; }
.btn.tam { width: 100%; text-align: center; }

/* giriş ekranı */
.giris-sayfa {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, #01698F 55%, var(--teal) 130%); padding: 20px;
}
.giris-kart {
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.30);
  padding: 32px 30px; width: 100%; max-width: 380px;
}
.giris-kart .logo { font-size: 21px; font-weight: 800; color: var(--navy); }
.giris-kart .logo span { color: var(--teal); }
.giris-kart form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

/* araç kartları */
.arac-izgara { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .arac-izgara { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.arac-kart {
  border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 10px;
  background: var(--surface); padding: 14px 16px; box-shadow: var(--shadow);
}
.plaka {
  font-family: Consolas, ui-monospace, monospace; font-size: 17px; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px;
  display: inline-block; padding: 2px 10px; letter-spacing: .05em;
}

/* görsel küçük resimleri */
.fotolar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fotolar img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); display: block;
}

/* liste satırı */
.satir-liste { list-style: none; margin: 0; padding: 0; }
.satir-liste li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.satir-liste li:last-child { border-bottom: none; }

/* izin özet şeridi */
.bakiye-serit { display: flex; flex-wrap: wrap; gap: 10px; }
.bakiye {
  flex: 1 1 100px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; text-align: center;
}
.bakiye .b-deger { font-size: 22px; font-weight: 800; }
.bakiye .b-etiket { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bakiye.vurgu { background: var(--ok-bg); }
.bakiye.vurgu .b-deger { color: var(--ok-ink); }

.sifre-gizli { font-family: Consolas, ui-monospace, monospace; letter-spacing: .12em; }

/* kullanıcı yönetimi kartları */
.kullanici-izgara { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .kullanici-izgara { grid-template-columns: 1fr 1fr; } }
.k-kart {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 16px 18px;
}
.k-kart.k-pasif { opacity: .65; }
.k-ust { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.k-ad { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.k-bilgi { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.k-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px; }
.yetki-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
@media (max-width: 560px) { .yetki-izgara { grid-template-columns: 1fr; } }
.yetki-kutu {
  display: flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 600;
  color: var(--ink); background: var(--surface-2); border-radius: 7px; padding: 6px 9px; cursor: pointer;
}
.yetki-kutu input { width: 15px; height: 15px; }
.k-eylemler { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

footer.altbilgi {
  text-align: center; color: var(--muted); font-size: 12px; padding: 18px 10px 26px;
}
@media (max-width: 620px) {
  .topbar { padding: 8px 10px; }
  .topbar nav a { padding: 6px 8px; font-size: 12.5px; }
  h1 { font-size: 20px; }
}

/* liste ici hizli arama */
.ara-kutu { padding: 7px 12px; border: 1.5px solid var(--cizgi, #d5dce3); border-radius: 8px;
  font-size: 13.5px; min-width: 220px; background: #fff; }
.ara-kutu:focus { outline: none; border-color: var(--blue); }
.ara-sonuc { margin-left: 8px; }

/* kullanici yonetimi: acilir satirlar */
.kullanici-izgara { display: flex; flex-direction: column; gap: 8px; }
details.k-kart { padding: 0; }
details.k-kart > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; padding: 11px 14px; flex-wrap: wrap; }
details.k-kart > summary::-webkit-details-marker { display: none; }
details.k-kart .ok-isaret::before { content: "\25B8"; color: var(--blue); }
details.k-kart[open] .ok-isaret::before { content: "\25BE"; }
details.k-kart[open] > summary { border-bottom: 1px solid #e4e9ee; }
details.k-kart > .k-ic { padding: 4px 14px 12px; }

/* tiklanabilir sutun basliklari */
th.siralanir { cursor: pointer; user-select: none; white-space: nowrap; }
th.siralanir::after { content: " \21C5"; opacity: .35; font-size: 11px; }
th.siralanir.sirali-artan::after { content: " \2191"; opacity: 1; }
th.siralanir.sirali-azalan::after { content: " \2193"; opacity: 1; }

/* aramali acilir secim (data-arali) */
.arali { position: relative; display: inline-block; min-width: 220px; }
.arali > select { display: none; }
.arali-dugme { width: 100%; text-align: left; padding: 8px 12px; border: 1.5px solid #cdd6de;
  border-radius: 8px; background: #fff; font-size: 13.5px; cursor: pointer; }
.arali-dugme:hover { border-color: var(--blue); }
.arali-panel { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  background: #fff; border: 1.5px solid #cdd6de; border-radius: 10px; padding: 8px;
  min-width: 100%; width: max-content; max-width: 340px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.arali-girdi { width: 100%; padding: 7px 10px; border: 1.5px solid #cdd6de; border-radius: 7px;
  font-size: 13px; box-sizing: border-box; }
.arali-girdi:focus { outline: none; border-color: var(--blue); }
.arali-liste { max-height: 260px; overflow-y: auto; margin-top: 6px; }
.arali-secenek { padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.arali-secenek:hover { background: #eef4f8; }
.arali-secenek.secili { background: var(--teal); color: #fff; }

/* panel karti baglantilarinda kayarken bosluk */
.kart[id], h2[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }

/* ust menu: Araclar acilir grubu */
.nav-grup { position: relative; display: inline-block; }
.nav-alt { display: none; position: absolute; top: 100%; left: 0; z-index: 70;
  background: var(--navy); min-width: 160px; border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); padding: 6px 0; flex-direction: column; }
.nav-grup:hover .nav-alt, .nav-grup:focus-within .nav-alt { display: flex; }
.nav-alt a { display: block; padding: 9px 16px; white-space: nowrap; }
.nav-alt a:hover { background: rgba(255,255,255,.12); }

/* arac bolumu sekme seridi */
.arac-sekmeler { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.arac-sekmeler a { padding: 8px 18px; border-radius: 20px; background: #fff;
  border: 1.5px solid #cdd6de; font-size: 13.5px; font-weight: 600; color: var(--navy);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.arac-sekmeler a:hover { border-color: var(--blue); }
.arac-sekmeler a.aktif { background: var(--navy); color: #fff; border-color: var(--navy); }
.arac-sekmeler .rozet { background: #c0392b; color: #fff; border-radius: 10px;
  padding: 1px 8px; font-size: 11px; font-weight: 700; }
.arac-sekmeler a.aktif .rozet { background: #fff; color: var(--navy); }

/* kaydirma cubugu her zaman yer kaplasin: hover/tooltip aninda sayfa kaymasin (imlec titremesi) */
html { overflow-y: scroll; scrollbar-gutter: stable; }

/* personel fotograflari */
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--line); background: var(--surface-2); flex: 0 0 auto; }
.avatar-buyuk { width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line); background: var(--surface-2); }
.avatar-bos { display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px; }
.avatar-buyuk.avatar-bos { font-size: 34px; }
