:root {
  --zemin: #f4f5f6;
  --yuzey: #fff;
  --grafit: #15181d;
  --metin: #15181d;
  --soluk: #5d6570;
  --cizgi: #dfe2e6;
  --petrol: #0a6c74;
  --petrol-acik: #e3f1f2;
  --amber: #8a5a00;
  --amber-acik: #fbf0d9;
  --koyu-amber: #6b3f00;
  --koyu-amber-acik: #f6dfb6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--zemin);
  color: var(--metin);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.yan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 16px;
  background: var(--grafit);
  color: #fff;
}

.marka { color: #c9ced6; text-decoration: none; font-size: 13px; }
.marka span { display: block; color: #fff; font-size: 18px; font-weight: 700; }

.yan nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.yan nav a { padding: 9px 12px; border-radius: 6px; color: #c9ced6; text-decoration: none; }
.yan nav a:hover { background: #242932; color: #fff; }
.yan nav a.aktif { background: var(--petrol); color: #fff; }

main { padding: 32px; max-width: 1240px; width: 100%; }
h1 { margin: 0 0 16px; font-size: 26px; line-height: 1.2; }
h2 { margin: 32px 0 12px; font-size: 18px; }

.kart { padding: 20px; margin-bottom: 20px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.ozetler { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ozet { padding: 16px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.ozet b { display: block; font-size: 26px; line-height: 1.2; }
.ozet span { color: var(--soluk); font-size: 13px; }

.tablo { overflow-x: auto; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cizgi); }
tr:last-child td { border-bottom: 0; }
th { color: var(--soluk); font-size: 12px; font-weight: 600; white-space: nowrap; }
td.say, th.say { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yol { min-width: 180px; overflow-wrap: anywhere; }

.form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form.dik { flex-direction: column; align-items: stretch; }
label { display: flex; flex-direction: column; gap: 4px; color: var(--soluk); font-size: 13px; }
input, select, textarea {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b9bfc7;
  border-radius: 6px;
  background: #fff;
  color: var(--metin);
  font: inherit;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--petrol);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #085a61; }
button:disabled { background: #b9bfc7; cursor: not-allowed; }
button.ikincil { background: var(--yuzey); color: var(--grafit); border: 1px solid #b9bfc7; }
button.kucuk { min-height: 32px; padding: 4px 10px; font-size: 13px; }
button.bag { padding: 0; min-height: 32px; background: none; color: #c9ced6; font-weight: 400; }

.cip { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cip.yesil { background: var(--petrol-acik); color: var(--petrol); }
.cip.sari { background: var(--amber-acik); color: var(--amber); }
.cip.kirmizi { background: var(--koyu-amber-acik); color: var(--koyu-amber); }

.ust-bos { margin-top: 0; }
.alt-bos { margin-bottom: 12px; }
.genis { flex: 1; min-width: 220px; }
.onay { flex-direction: row; align-items: center; min-height: 40px; }
.onay input { min-height: 0; }
.soluk { color: var(--soluk); }
.kucuk { font-size: 13px; }
.iyi { color: var(--petrol); font-weight: 600; }
.dikkat { color: var(--amber); font-weight: 600; }
.bildirim { padding: 10px 14px; border-radius: 6px; background: var(--petrol-acik); color: var(--petrol); }
.bildirim.hata { background: var(--amber-acik); color: var(--amber); }
.satir-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.satir-form select, .satir-form input { min-height: 32px; padding: 4px 6px; font-size: 13px; }

.giris-sayfa { display: grid; place-items: center; grid-template-columns: 1fr; background: var(--grafit); padding: 16px; }
.giris { width: 100%; max-width: 380px; padding: 28px; background: var(--yuzey); border-radius: 8px; }
.giris h1 { font-size: 22px; }

@media (max-width: 760px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .yan { gap: 12px; padding: 16px; }
  .yan nav { flex-direction: row; overflow-x: auto; }
  .yan nav a { white-space: nowrap; }
  main { padding: 20px 16px; }
}
