:root {
  color-scheme: light;
  --bg: #e7eef2;
  --ink: #102029;
  --muted: #5c6f7c;
  --card: #ffffff;
  --line: #d5e0e7;
  --accent: #0c6778;
  --cyan: #67dbf6;
  --warn: #9f1239;
  --warn-bg: #ffe4e8;
  --amber: #9a3412;
  --amber-bg: #ffedd5;
  --ok: #166534;
  --ok-bg: #dcfce7;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; max-width: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
}
.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cyan);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.titles strong { font-size: 16px; }
.step {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.kim {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 58%;
}
#kim-ad {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  color: #d7f6fd;
}
#cikis {
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
  width: min(1040px, 100%);
  margin: 0 auto;
}
main {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 12px 16px 32px;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 4px 0 8px;
}
h2 {
  margin: 18px 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { margin: 0 0 12px; color: var(--muted); }
.soluk { color: var(--muted); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.dosya {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  min-height: 48px;
}
a { color: var(--accent); font-weight: 700; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
button:disabled { opacity: 0.5; cursor: default; }

.birincil, .ikincil, .tehlike {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 14px;
}
.birincil { border: 0; background: var(--accent); color: white; }
a.birincil { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 12px; }
.ikincil { border: 1px solid #c5d3dc; background: white; color: var(--ink); }
.tehlike { border: 0; background: var(--warn); color: white; }
.genis { width: 100%; }
button.genis, a.genis { display: block; margin-top: 8px; }
.kucuk { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.satir-dugme { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.satir-dugme .birincil, .satir-dugme .tehlike, .satir-dugme .ikincil { flex: 1; }

.cips {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
}
.cips.secili { background: var(--ink); color: white; border-color: var(--ink); }

.arama, .yan { display: flex; gap: 8px; align-items: center; }
.arama { margin: 12px 0; }
.arama input, .yan input, .yan select { flex: 1; min-width: 0; }

input[type="text"], input[type="password"], input[type="search"], input[type="date"],
input[type="file"], select, textarea, .alan input, .alan select, .alan textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #c5d3dc;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 16px;
}
textarea { min-height: 88px; resize: vertical; }
.alan { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }

.uyari {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  margin: 10px 0;
}
.bilgi {
  background: #e0f2fe;
  color: #075985;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
}

.kart, .tablo-kutu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 32, 41, 0.05);
}
.kart { padding: 14px; margin-bottom: 12px; }
.tablo-kutu { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f4fafb; }
.sag { text-align: right; font-variant-numeric: tabular-nums; }

.rozet, .gun {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.rozet-talep { background: #e8eef2; color: #334155; }
.rozet-fiyatlandiriliyor { background: #e0f2fe; color: #075985; }
.rozet-teklif_gonderildi, .rozet-kismi_sevk { background: var(--amber-bg); color: var(--amber); }
.rozet-onaylandi, .rozet-sevk_edildi { background: var(--ok-bg); color: var(--ok); }
.rozet-reddedildi { background: var(--warn-bg); color: var(--warn); }
.gun-kirmizi { background: var(--warn-bg); color: var(--warn); }
.gun-amber { background: var(--amber-bg); color: var(--amber); }
.gun-yesil { background: var(--ok-bg); color: var(--ok); }

.baslik-satir, .meta-satir, .iki {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.meta-satir { padding: 7px 0; border-bottom: 1px solid var(--line); }
.meta-satir b { text-align: right; }
.toplam { font-size: 20px; }

.diyalog {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 41, 0.45);
  display: grid;
  place-items: end center;
  padding: 16px;
  z-index: 5;
}
.diyalog .kart { width: min(100%, 420px); }
.giris-kutu { max-width: 420px; margin: 24px auto; }

@media (max-width: 760px) {
  .kim { max-width: 52%; }
  #kim-ad { display: none; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 10px;
    padding: 6px 0;
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 8px 12px;
  }
  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
    flex: none;
  }
  .tablo-kutu { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .yan { flex-direction: column; align-items: stretch; }
}
