/* Aynı Gemideyiz · Envanter Platformu — DESIGN-SYSTEM.md tokenları */
/* Yazı tipleri kendi sunucudan (AK-30). Kaynak: Fontsource @fontsource-variable/* 5.3.0, lisans OFL-1.1 (assets/fonts/LICENSE-*.txt). */
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("fonts/sora-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("fonts/sora-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ag-bg: #F3F7F7; --ag-surface: #FFFFFF; --ag-sunken: #E8EEF0; --ag-neutral: #EEF2F4;
  --ag-ink: #132433; --ag-ink-2: #3B4D5C; --ag-ink-3: #566978;
  --ag-line: #D3DEE1; --ag-line-soft: #E8EEF0; --ag-line-dashed: #B9C6CB; --ag-line-control: #748692;
  --ag-navy: #173B5E; --ag-sea: #2A7F86; --ag-sea-ink: #25757D; --ag-sea-strong: #1F6268; --ag-sea-soft: #E3F1F2;
  --ag-copper: #A9541C; --ag-copper-hover: #8E4515; --ag-copper-soft: #FBEFE4; --ag-copper-ink: #8A4416;
  --ag-success: #2F7D4F; --ag-success-strong: #245F3A; --ag-success-soft: #E5F3EA;
  --ag-warning-ink: #7A5200; --ag-warning-soft: #FBF0D6; --ag-error: #B23A3A; --ag-error-soft: #FBE9E7;
  --ag-green: #2B8049; --ag-yellow: #E8B53A; --ag-red: #C8473D;
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ag-bg); color: var(--ag-ink); font: 16px/24px var(--f-body); }
a { color: var(--ag-sea-ink); } a:hover { color: var(--ag-navy); }
:focus-visible { outline: 3px solid var(--ag-sea); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; }
h1 { font-size: 28px; line-height: 36px; font-weight: 700; }
h2 { font-size: 22px; line-height: 30px; font-weight: 700; }
h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ag-ink-3); font-weight: 500; }
.kod { font-family: var(--f-mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.ince { color: var(--ag-ink-3); font-size: 14px; line-height: 20px; }
.ikincil { color: var(--ag-ink-2); }
.atla { position: absolute; left: -999px; top: 8px; background: var(--ag-surface); padding: 8px 16px; z-index: 999; }
.atla:focus { left: 8px; }

/* Üst bar ve kabuk */
.ust { background: var(--ag-surface); border-bottom: 1px solid var(--ag-line); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 2px rgba(19,36,51,.06); }
.ust-ic { max-width: 1200px; margin: 0 auto; min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ag-ink); min-height: 44px; }
.logo img { width: 36px; height: 36px; display: block; }
.logo b { font-family: Montserrat, var(--f-head); font-weight: 700; letter-spacing: .08em; color: #0E3894; font-size: 14px; }
.logo span { display: block; font-size: 13px; color: var(--ag-ink-3); line-height: 1.2; }
.ust-sag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kabuk { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.yan { flex: 1 1 220px; max-width: 260px; background: var(--ag-navy); border-radius: 16px; padding: 12px; color: #fff; }
.yan a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #DCE7EE; text-decoration: none; font-size: 15px; }
.yan a:hover { background: rgba(255,255,255,.08); color: #fff; }
.yan a[aria-current] { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 #fff; }
.yan .mono { color: #DCE7EE; padding: 8px 12px 4px; display: block; }
.ana { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tek { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 20px; }
.dar { max-width: 460px; margin: 0 auto; padding: 32px 20px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 767px) {
  .yan { max-width: none; flex-basis: 100%; display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-radius: 12px; }
  .yan .mono { display: none; }
  .yan a { white-space: nowrap; flex-shrink: 0; }
  .yan a[aria-current] { box-shadow: inset 0 -3px 0 #fff; }
  h1 { font-size: 26px; line-height: 34px; } .kabuk { padding: 16px 16px 40px; }
}

/* Kart, şerit, çip */
.kart { background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 767px) { .kart { padding: 16px; } }
.izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.serit { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 22px; }
.serit.bilgi { background: var(--ag-sea-soft); box-shadow: inset 4px 0 0 var(--ag-sea); }
.serit.basari { background: var(--ag-success-soft); box-shadow: inset 4px 0 0 var(--ag-success); }
.serit.uyari { background: var(--ag-warning-soft); box-shadow: inset 4px 0 0 var(--ag-yellow); }
.serit.hata { background: var(--ag-error-soft); box-shadow: inset 4px 0 0 var(--ag-error); }
.serit b { display: block; }
.serit.bilgi b { color: var(--ag-sea-strong); } .serit.basari b { color: var(--ag-success-strong); } .serit.uyari b { color: var(--ag-warning-ink); } .serit.hata b { color: var(--ag-error); }
.cip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--ag-neutral); color: var(--ag-ink-2); }
.cip.devam { background: var(--ag-sea-soft); color: var(--ag-sea-strong); }
.cip.tamam { background: var(--ag-success-soft); color: var(--ag-success-strong); }
.cip.bekle { background: var(--ag-copper-soft); color: var(--ag-copper-ink); }
.cip.uyari { background: var(--ag-warning-soft); color: var(--ag-warning-ink); }
.cip.hata { background: var(--ag-error-soft); color: var(--ag-error); }
.yer-tutucu { border: 1.5px dashed var(--ag-line-dashed); border-radius: 8px; padding: 8px 12px; color: var(--ag-ink-3); font-size: 14px; }

/* Bant işareti (renk + işaret + ad; renk tek başına bilgi taşımaz) */
.bant { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; }
.bant > span { white-space: nowrap; }
.bant i { font-style: normal; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.b-YESIL i { background: var(--ag-green); color: #fff; }
.b-SARI i { background: var(--ag-yellow); color: var(--ag-ink); border: 1px solid #7A5200; }
.b-KIRMIZI i { background: var(--ag-red); color: #fff; }
.b-HESAPLANAMADI i { background: var(--ag-neutral); color: var(--ag-ink-2); border: 1px dashed var(--ag-line-control); }

/* Form ve buton */
label { font-weight: 700; font-size: 15px; }
.alan { display: flex; flex-direction: column; gap: 8px; }
.yardim { font-size: 14px; line-height: 20px; color: var(--ag-ink-3); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; font-size: 16px; color: var(--ag-ink); background: #fff; border: 1.5px solid var(--ag-line-control); border-radius: 10px; min-height: 48px; padding: 10px 12px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input[aria-invalid=true] { border-color: var(--ag-error); }
.kutu { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 22px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.kutu input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ag-sea); flex-shrink: 0; }
.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--ag-copper); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ag-copper-hover); color: #fff; }
.btn[disabled], .btn[aria-disabled=true] { background: var(--ag-sunken); color: var(--ag-ink-3); cursor: not-allowed; }
.btn.ikinci { background: #fff; color: var(--ag-ink); border: 1.5px solid var(--ag-line); font-weight: 400; }
.btn.ikinci:hover { border-color: var(--ag-line-control); }
.btn.kucuk { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.bag { background: transparent; color: var(--ag-sea-ink); padding: 0 8px; font-weight: 600; }
.btn.tehlike { background: var(--ag-error); }
.satir { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ara { justify-content: space-between; }
.yigin { display: flex; flex-direction: column; gap: 12px; }

/* Tablo */
.kaydir { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 14px; color: var(--ag-ink-2); padding: 10px 12px; background: var(--ag-sunken); }
td { padding: 12px; border-bottom: 1px solid var(--ag-line-soft); vertical-align: middle; }
td.sag, th.sag { text-align: right; }

/* Test ekranı */
#test { display: flex; flex-direction: column; gap: 16px; }
.test-ust { position: sticky; top: 0; z-index: 100; background: var(--ag-surface); border-bottom: 1px solid var(--ag-line); }
.test-ust .ic { max-width: 760px; margin: 0 auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.ray { height: 6px; border-radius: 3px; background: var(--ag-sunken); overflow: hidden; }
.ray div { height: 100%; background: var(--ag-sea); transition: width .2s; }
.sayac { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ag-line); background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.sayac.son { background: var(--ag-copper-soft); border-color: var(--ag-copper); color: var(--ag-copper-ink); }
.kayit { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; color: var(--ag-ink-3); min-height: 24px; }
.kayit[data-d=kaydedildi] { color: var(--ag-success-strong); }
.kayit[data-d=kaydedilemedi], .kayit[data-d=cevrimdisi] { color: var(--ag-error); font-weight: 700; }
.madde { background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.madde legend { font-size: 21px; line-height: 30px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.madde fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 767px) { .likert { grid-template-columns: 1fr; } .madde legend { font-size: 19px; line-height: 28px; } }
.likert label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px; border: 1.5px solid var(--ag-line); border-radius: 12px; background: #fff; font-weight: 400; font-size: 16px; cursor: pointer; }
@media (max-width: 767px) { .likert label { justify-content: flex-start; padding: 0 16px; } }
.likert input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.likert input:checked + span { font-weight: 700; }
.likert label:has(input:checked) { background: var(--ag-sea-soft); border: 2.5px solid var(--ag-sea); }
.likert label:has(input:focus-visible) { outline: 3px solid var(--ag-sea); outline-offset: 2px; }
.sayfa-harita { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.sayfa-harita button { font: inherit; min-height: 44px; border-radius: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sayfa-harita .tam { background: var(--ag-success-soft); border: 1.5px solid var(--ag-success); color: var(--ag-success-strong); font-weight: 700; }
.sayfa-harita .eksik { background: #fff; border: 1.5px dashed var(--ag-line-control); color: var(--ag-ink); }

/* Rapor */
.sekme { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ag-line); }
.sekme a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ag-ink-3); text-decoration: none; white-space: nowrap; }
.sekme a[aria-current] { color: var(--ag-ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ag-sea); }
.kpi { font-family: var(--f-head); font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.genel { font-family: var(--f-head); font-size: 40px; line-height: 48px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cubuk-satir { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ag-line-soft); }
.cubuk-satir .ad { flex: 0 1 260px; min-width: 160px; font-weight: 700; }
.cubuk-satir .sag { flex: 999 1 300px; min-width: 0; display: flex; align-items: center; gap: 16px; }
.iz { flex: 1 1 140px; min-width: 0; height: 12px; background: var(--ag-sunken); border-radius: 6px; position: relative; }
.iz div { height: 100%; border-radius: 6px; }
.iz .esik { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ag-line-control); }
.dolgu-YESIL { background: var(--ag-green); } .dolgu-SARI { background: var(--ag-yellow); box-shadow: inset 0 0 0 1px #7A5200; } .dolgu-KIRMIZI { background: var(--ag-red); } .dolgu-HESAPLANAMADI { background: var(--ag-line-control); }
.deger { flex: 0 0 232px; display: flex; gap: 12px; align-items: center; }
.matris { border-collapse: separate; border-spacing: 4px; min-width: 760px; }
.matris th { background: transparent; text-align: center; font-size: 14px; padding: 4px; }
.matris th[scope=row] { text-align: left; font-weight: 700; color: var(--ag-ink); min-width: 160px; }
.matris td { padding: 0; border: 0; }
.hucre { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 8px; border-radius: 10px; font-size: 14px; line-height: 18px; }
.hucre.YESIL { background: var(--ag-success-soft); border: 1.5px solid var(--ag-green); }
.hucre.SARI { background: var(--ag-warning-soft); border: 1.5px solid var(--ag-yellow); }
.hucre.KIRMIZI { background: var(--ag-error-soft); border: 1.5px solid var(--ag-red); }
.hucre.HESAPLANAMADI { background: var(--ag-neutral); border: 1.5px dashed var(--ag-line-control); }
.hucre b { font-variant-numeric: tabular-nums; }
.basamak { display: flex; align-items: flex-end; gap: 4px; }
.basamak span { width: 18px; border-radius: 4px; background: var(--ag-sunken); }
.basamak span.on { background: var(--ag-sea); }

@media print {
  .ust, .yan, .sekme, .yazdirma, .atla { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .kabuk, .tek { padding: 0; max-width: none; }
  .kart { break-inside: avoid; border-color: #bbb; }
  .sayfa-kir { break-before: page; }
}

/* KY-06 takım taşıma (AK-36): dar ekranda liste ezilmesin */
.tasi { gap: 8px; flex-wrap: nowrap; }
.tasi select { min-width: 170px; }

/* Demo girişi (DEMO_GIRIS=1): yalnız test ortamında görünür */
.demo-sec { border: 1px solid var(--ag-yellow); border-radius: 12px; padding: 16px; background: var(--ag-warning-soft); }
.demo-sec .satir { gap: 8px; flex-wrap: wrap; }
.demo-sec select { flex: 1 1 220px; min-width: 0; }
