/* KontrolOS — tasarım sistemi v2 */
:root {
  --ana: #1d4ed8;
  --ana-koyu: #1e3a8a;
  --ana-acik: #eff6ff;
  --zemin: #f6f7f9;
  --kart: #ffffff;
  --metin: #0f172a;
  --soluk: #64748b;
  --cizgi: #e2e8f0;
  --yesil: #16a34a; --yesil-k: #166534; --yesil-z: #dcfce7;
  --kirmizi: #dc2626; --kirmizi-k: #991b1b; --kirmizi-z: #fee2e2;
  --sari: #d97706; --sari-k: #92400e; --sari-z: #fef3c7;
  --mavi: #2563eb; --mavi-k: #1e40af; --mavi-z: #dbeafe;
  --radius: 14px;
  --golge: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px -6px rgba(15,23,42,.08);
  --golge-buyuk: 0 8px 30px -8px rgba(15,23,42,.2);
  --sidebar-w: 232px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--zemin); color: var(--metin); font-size: 15px; line-height: 1.5; }
a { color: var(--mavi); text-decoration: none; }
h1 { font-size: 1.45rem; margin: 0 0 .35rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; margin: 1.25rem 0 .6rem; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 1rem 0 .4rem; font-weight: 700; }
::selection { background: #bfdbfe; }

/* ================= YERLEŞİM ================= */
.yerlesim { display: flex; min-height: 100vh; }

/* --- Kenar çubuğu (masaüstü) --- */
.sidebar { width: var(--sidebar-w); flex: none; background: linear-gradient(180deg, var(--sidebar-1, #0f172a) 0%, var(--sidebar-2, #1e293b) 100%);
  color: #cbd5e1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.2rem .9rem; color: #fff;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.sidebar .logo .amblem { width: 34px; height: 34px; border-radius: 9px; background: var(--ana);
  display: grid; place-items: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--ana) 45%, transparent); overflow: hidden; }
.sidebar .logo .amblem svg { width: 20px; height: 20px; }
.sidebar .logo .amblem-logo { background: #fff; padding: 2px; }
.sidebar .logo .amblem-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar .logo span { color: var(--sidebar-accent, #93c5fd); }
.sidebar .logo .firma-ad { color: #fff; }
.sidebar .logo .firma-alt { color: var(--sidebar-accent, #93c5fd); font-size: .68rem; font-weight: 600; }
.s-nav { padding: .4rem .7rem; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.s-nav a { display: flex; align-items: center; gap: .7rem; color: #cbd5e1; padding: .6rem .8rem;
  border-radius: 10px; font-weight: 600; font-size: .92rem; transition: background .12s, color .12s; }
.s-nav a svg { width: 19px; height: 19px; flex: none; opacity: .75; }
.s-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.s-nav a.aktif { background: var(--ana); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--ana) 35%, transparent); }
.s-nav a.aktif svg { opacity: 1; }
.s-nav .ayrac { margin: .5rem .8rem .3rem; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: #78716c; font-weight: 700; }
.s-alt { padding: .9rem 1.1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.s-alt .k-ad { color: #fff; font-weight: 700; }
.s-alt .k-rol { color: #94a3b8; font-size: .75rem; }
.s-alt a { color: #93c5fd; font-weight: 600; }

/* --- Üst bar --- */
.icerik-alan { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ustbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cizgi); padding: .6rem 1.2rem; }
.ustbar .baslik-m { display: none; font-weight: 800; font-size: 1.1rem; }
.ustbar .baslik-m span { color: var(--ana); }
.ara-kutu { flex: 1; max-width: 460px; position: relative; }
.ara-kutu input { width: 100%; padding: .5rem .9rem .5rem 2.3rem; border: 1px solid var(--cizgi);
  border-radius: 99px; background: var(--zemin); font-size: .9rem; }
.ara-kutu input:focus { background: #fff; outline: 2px solid var(--ana); border-color: transparent; }
.ara-kutu svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--soluk); pointer-events: none; }
.ustbar .bosluk-esnek { flex: 1; }
.tara-btn { display: flex; align-items: center; gap: .45rem; background: var(--metin); color: #fff;
  padding: .5rem .95rem; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.tara-btn:hover { background: #000; }
.tara-btn svg { width: 16px; height: 16px; }

.icerik { width: 100%; padding: 1.3rem 1.5rem 5rem; }

/* --- Mobil alt sekme çubuğu --- */
.alt-nav { display: none; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .ustbar .baslik-m { display: block; }
  .icerik { padding: 1rem .9rem 5.5rem; }
  .alt-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--cizgi); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
  .alt-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--soluk); font-size: .62rem; font-weight: 700; padding: .3rem 0; border-radius: 10px; }
  .alt-nav a svg { width: 22px; height: 22px; }
  .alt-nav a.aktif { color: var(--ana); }
  .alt-nav a.tara { color: #fff; }
  .alt-nav a.tara .yuvarlak { width: 44px; height: 44px; margin-top: -20px; border-radius: 50%;
    background: var(--ana); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(29,78,216,.45); }
  .durum-serit { bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
  .menu-btn { display: inline-flex !important; }
  .mobil-menu, .mobil-menu-fon { display: block; }
}

.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--cizgi); border-radius: 10px; background: var(--kart); font-size: 1.2rem; cursor: pointer; }
.mobil-menu-fon { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 80; }
.mobil-menu-fon.acik { display: block; }
.mobil-menu { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 90;
  background: #0f172a; color: #e2e8f0; padding: 1rem .85rem 2rem; overflow-y: auto;
  transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 24px rgba(0,0,0,.25); }
.mobil-menu.acik { display: block; transform: translateX(0); }
.mobil-menu .mm-baslik { display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; margin-bottom: .8rem; color: #fff; }
.mobil-menu a { display: block; padding: .65rem .7rem; border-radius: 10px; color: #cbd5e1; font-weight: 600; font-size: .92rem; }
.mobil-menu a:hover, .mobil-menu a:focus { background: rgba(255,255,255,.08); color: #fff; }
.mobil-menu .mm-cikis { margin-top: 1rem; color: #fca5a5; border-top: 1px solid rgba(255,255,255,.1); padding-top: .9rem; }

/* ================= BİLEŞENLER ================= */
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--golge); }
.kart h2:first-child, .kart h3:first-child { margin-top: 0; }

.sayfa-baslik { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem;
  flex-wrap: wrap; margin-bottom: 1.1rem; }
.sayfa-baslik .alt-metin { color: var(--soluk); font-size: .88rem; }

/* Özet kartları */
.ozet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1.1rem; }
.ozet { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--radius);
  padding: .9rem 1rem; box-shadow: var(--golge); position: relative; overflow: hidden; }
.ozet::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cizgi); }
.ozet.iyi::before { background: var(--yesil); }
.ozet.uyari::before { background: var(--sari); }
.ozet.tehlike::before { background: var(--kirmizi); }
.ozet.notr::before { background: var(--mavi); }
.ozet .sayi { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ozet.tehlike .sayi { color: var(--kirmizi); }
.ozet.uyari .sayi { color: var(--sari); }
.ozet.iyi .sayi { color: var(--yesil-k); }
.ozet .ad { font-size: .74rem; color: var(--soluk); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Rozetler */
.rozet { display: inline-flex; align-items: center; gap: .3rem; padding: .14rem .6rem; border-radius: 99px;
  font-size: .73rem; font-weight: 700; white-space: nowrap; }
.rozet.yesil { background: var(--yesil-z); color: var(--yesil-k); }
.rozet.kirmizi { background: var(--kirmizi-z); color: var(--kirmizi-k); }
.rozet.sari { background: var(--sari-z); color: var(--sari-k); }
.rozet.gri { background: #f5f5f4; color: var(--soluk); border: 1px solid var(--cizgi); }
.rozet.mavi { background: var(--mavi-z); color: var(--mavi-k); }

/* Tablolar */
.tablo-sar { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1.25rem; padding: 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--cizgi); padding: .6rem .65rem; text-align: left; vertical-align: middle; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
tr.tiklanir { cursor: pointer; transition: background .1s; }
tr.tiklanir:hover { background: #fafaf9; }

/* Form elemanları */
label { display: block; font-size: .76rem; font-weight: 700; color: var(--soluk); margin: .65rem 0 .25rem;
  text-transform: uppercase; letter-spacing: .03em; }
input[type=text], input[type=date], input[type=time], input[type=datetime-local], input[type=number],
input[type=email], input[type=password], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #d6d3d1; border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: #fff; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ana);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
textarea { min-height: 72px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2rem .9rem; }
.form-grid-genis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .2rem .9rem; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.05rem; border-radius: 10px; border: 1px solid var(--cizgi);
  background: #fff; color: var(--metin); font-weight: 700; font-size: .88rem; cursor: pointer;
  text-align: center; transition: transform .08s, box-shadow .12s, background .12s; box-shadow: var(--golge); }
.btn:hover { border-color: #a8a29e; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ana { background: var(--ana); border-color: var(--ana); color: #fff; }
.btn.ana:hover { background: var(--ana-koyu); }
.btn.yesil { background: var(--yesil); border-color: var(--yesil); color: #fff; }
.btn.kucuk { padding: .32rem .65rem; font-size: .78rem; border-radius: 8px; }
.btn.tehlike { color: var(--kirmizi); border-color: #fecaca; }
.btn-satir { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 .2rem; }

/* ================= GRAFİKLER ================= */
.grafik-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cubuk-grafik { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: .5rem; }
.cubuk-grafik .cubuk { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.cubuk-grafik .cubuk .dolgu { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8); min-height: 3px; transition: height .3s; position: relative; }
.cubuk-grafik .cubuk .deger { font-size: .68rem; font-weight: 800; color: var(--metin); }
.cubuk-grafik .cubuk .ay { font-size: .62rem; color: var(--soluk); font-weight: 600; }
.ilerleme { margin: .55rem 0; }
.ilerleme .ust { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: .25rem; }
.ilerleme .ust .oran { color: var(--soluk); font-weight: 700; }
.ilerleme .cizgi { height: 9px; background: #f0efee; border-radius: 99px; overflow: hidden; }
.ilerleme .cizgi > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width .3s; }
.ilerleme.tam .cizgi > div { background: linear-gradient(90deg, #16a34a, #4ade80); }
.halka-sar { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.halka-lejant { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; }
.halka-lejant .madde { display: flex; align-items: center; gap: .5rem; }
.halka-lejant .nokta { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ================= MUAYENE FORMU ================= */
.kriter-grup-baslik { background: linear-gradient(90deg, #f5f5f4, #fafaf9); border: 1px solid var(--cizgi);
  border-radius: 10px; padding: .55rem .9rem; font-weight: 800; font-size: .82rem; margin: 1rem 0 .4rem;
  text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.kriter-grup-baslik .g-durum { font-size: .72rem; color: var(--soluk); font-weight: 700; }
.kriter { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .35rem;
  border-bottom: 1px dashed var(--cizgi); }
.kriter:last-child { border-bottom: none; }
.kriter .no { flex: 0 0 1.7rem; font-weight: 800; color: var(--soluk); font-size: .85rem; padding-top: .15rem; }
.kriter .metin { flex: 1; font-size: .9rem; }
.kriter .secim { flex: 0 0 auto; display: flex; gap: .3rem; }
.secim button { min-width: 2.9rem; padding: .5rem .55rem; border-radius: 9px; border: 1.5px solid #d6d3d1;
  background: #fff; font-weight: 800; font-size: .8rem; cursor: pointer; color: var(--soluk); transition: all .1s; }
.secim button:hover { border-color: #a8a29e; }
.secim button.sec-U.secili { background: var(--yesil); border-color: var(--yesil); color: #fff; box-shadow: 0 3px 10px rgba(22,163,74,.35); }
.secim button.sec-UD.secili { background: var(--kirmizi); border-color: var(--kirmizi); color: #fff; box-shadow: 0 3px 10px rgba(220,38,38,.35); }
.secim button.secili { background: #57534e; border-color: #57534e; color: #fff; }
@media (max-width: 560px) {
  .kriter { flex-wrap: wrap; }
  .kriter .secim { flex-basis: 100%; justify-content: flex-end; }
  .secim button { min-width: 3.4rem; padding: .65rem .5rem; font-size: .85rem; }
}

/* Form ilerleme çubuğu */
.form-ilerleme { position: sticky; top: 53px; z-index: 45; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--cizgi);
  border-radius: 12px; padding: .55rem .9rem; margin-bottom: 1rem; box-shadow: var(--golge); }
.form-ilerleme .ust { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; }
.form-ilerleme .cizgi { height: 7px; background: #f0efee; border-radius: 99px; overflow: hidden; margin-top: .35rem; }
.form-ilerleme .cizgi > div { height: 100%; background: linear-gradient(90deg, var(--ana), #60a5fa); border-radius: 99px; transition: width .25s; }
.form-ilerleme.tam .cizgi > div { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bolum-cipler { display: flex; gap: .4rem; overflow-x: auto; padding: .45rem 0 .1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bolum-cipler::-webkit-scrollbar { display: none; }
.bolum-cipler a { flex: none; font-size: .74rem; font-weight: 700; color: var(--soluk);
  border: 1px solid var(--cizgi); border-radius: 99px; padding: .22rem .7rem; background: #fff; }
.bolum-cipler a:hover { border-color: var(--ana); color: var(--ana); }

/* Bulgu ve fotoğraflar */
.bulgu { border: 1px solid var(--cizgi); border-left: 4px solid var(--sari); border-radius: 10px;
  padding: .75rem .85rem; margin: .55rem 0; background: #fffbeb; }
.bulgu.agir { border-left-color: var(--kirmizi); background: #fef2f2; }
.bulgu.giderildi { border-left-color: var(--yesil); background: #f0fdf4; opacity: .85; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: .55rem; margin-top: .5rem; }
.foto-grid .foto-kutu { position: relative; }
.foto-grid img { width: 100%; height: 105px; object-fit: cover; border-radius: 10px; border: 1px solid var(--cizgi); }
.foto-sil { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,.65); color: #fff;
  border: 0; border-radius: 7px; width: 25px; height: 25px; cursor: pointer; }

/* Durum şeridi */
.durum-serit { position: sticky; bottom: 0; z-index: 40; display: flex; gap: .5rem;
  align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--cizgi);
  padding: .65rem 1rem; margin: 0 -1.4rem; flex-wrap: wrap; }
.kayit-durumu { font-size: .78rem; color: var(--soluk); margin-left: auto; font-weight: 600; }

/* İmza */
.imza-pad { border: 2px dashed #d6d3d1; border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 170px; }
.imza-kart { display: inline-block; border: 1px solid var(--cizgi); border-radius: 12px; padding: .7rem; margin: .3rem; text-align: center; box-shadow: var(--golge); }
.imza-kart img { height: 58px; }

/* Ağaç görünümü */
.agac details { border: 1px solid var(--cizgi); border-radius: 12px; margin-bottom: .55rem; background: #fff; box-shadow: var(--golge); overflow: hidden; }
.agac summary { padding: .75rem 1rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: .55rem; }
.agac summary::-webkit-details-marker { display: none; }
.agac summary::before { content: '▸'; color: var(--soluk); transition: transform .15s; }
.agac details[open] > summary::before { transform: rotate(90deg); }
.agac details[open] > summary { border-bottom: 1px solid var(--cizgi); background: #fafaf9; }
.agac .ic { padding: .2rem 1rem .7rem; }
.ist-satir { display: flex; align-items: center; gap: .6rem; padding: .55rem .3rem; border-top: 1px dashed var(--cizgi); flex-wrap: wrap; }
.ist-satir:first-child { border-top: none; }
.ist-satir .ad { font-weight: 600; flex: 1; min-width: 150px; color: var(--metin); }
.ist-satir .ad:hover { color: var(--ana); }
.ist-satir .kod { font-size: .73rem; color: var(--soluk); font-family: ui-monospace, monospace;
  background: #f5f5f4; border-radius: 6px; padding: .1rem .4rem; }

/* Giriş sayfası */
.giris-sayfa { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1000px 600px at 20% -10%, #1d4ed8 0%, #1e3a8a 45%, #0f172a 100%); padding: 1rem; }
.giris-kutu { background: #fff; border-radius: 20px; padding: 2.2rem; width: 100%; max-width: 390px; box-shadow: var(--golge-buyuk); }
.giris-kutu h1 { text-align: center; font-size: 1.35rem; line-height: 1.25; }
.giris-kutu .logo-b { color: var(--ana); }
.giris-logo { display: flex; justify-content: center; margin-bottom: .75rem; }
.giris-logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.hata-mesaj { background: var(--kirmizi-z); color: var(--kirmizi-k); padding: .65rem .85rem; border-radius: 10px; font-size: .85rem; margin: .5rem 0; }

/* Modal */
.modal-fon { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100;
  align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-fon.acik { display: flex; }
.modal { background: #fff; border-radius: 18px 18px 0 0; width: 100%; max-width: 660px;
  max-height: 88vh; overflow-y: auto; padding: 1.3rem 1.4rem; box-shadow: var(--golge-buyuk);
  animation: modal-gir .18s ease-out; }
@keyframes modal-gir { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .modal-fon.acik { align-items: center; } .modal { border-radius: 18px; } }

/* Tarayıcı (QR) */
.tara-alan { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3/4; max-height: 65vh; }
.tara-alan video { width: 100%; height: 100%; object-fit: cover; }
.tara-cerceve { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tara-cerceve .kare { width: min(62%, 260px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.9);
  border-radius: 18px; box-shadow: 0 0 0 2000px rgba(0,0,0,.35); }

/* Yardımcılar */
.soluk { color: var(--soluk); font-size: .84rem; }
.sag { text-align: right; }
.orta { text-align: center; }
.bosluk { height: .75rem; }
.satir { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.gecikmis { color: var(--kirmizi); font-weight: 700; }
.bos-durum { text-align: center; color: var(--soluk); padding: 1.6rem .5rem; }
.bos-durum .ikon { font-size: 2rem; opacity: .5; }

@media print {
  .sidebar, .ustbar, .alt-nav, .durum-serit, .btn, .yazdirma-gizle, .form-ilerleme { display: none !important; }
  body { background: #fff; }
  .icerik { max-width: none; padding: 0; }
  .kart { border: none; padding: 0; box-shadow: none; }
}

/* ================= SEKMELER (istasyon detay) ================= */
.sekme-bar { display: flex; flex-wrap: wrap; gap: .1rem .15rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; border-bottom: 2px solid var(--cizgi); margin-bottom: 1rem; padding-bottom: 0; }
.sekme-bar a { flex: none; padding: .45rem .55rem; font-size: .8rem; font-weight: 700; color: var(--soluk);
  border-bottom: 2.5px solid transparent; margin-bottom: -2px; white-space: nowrap; display: flex; align-items: center; gap: .25rem; }
.sekme-bar a:hover { color: var(--metin); }
.sekme-bar a.aktif { color: var(--ana); border-bottom-color: var(--ana); }
.sekme-bar a .adet { background: #f1f5f9; color: var(--soluk); border-radius: 99px; font-size: .64rem;
  padding: .05rem .45rem; font-weight: 800; }
.sekme-bar a.aktif .adet { background: var(--ana-acik); color: var(--ana); }
.sekme-bar a .adet.dolu { background: var(--mavi-z); color: var(--mavi-k); }

/* 3 kolonlu form yerleşimi */
.form-yerlesim { display: grid; grid-template-columns: 220px minmax(0,1fr) 290px; gap: 1rem; align-items: start; }
.form-sol, .form-sag { position: sticky; top: 66px; max-height: calc(100vh - 90px); overflow-y: auto; }
.form-sol .kart, .form-sag .kart { padding: .85rem .95rem; }
.form-sol nav { display: flex; flex-direction: column; gap: 2px; }
.form-sol nav a { display: flex; justify-content: space-between; align-items: center; gap: .4rem;
  padding: .45rem .6rem; border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--metin); }
.form-sol nav a:hover { background: #f1f5f9; }
.form-sol nav a .d { font-size: .68rem; font-weight: 800; color: var(--soluk); }
.form-sol nav a .d.tamam { color: var(--yesil); }
.form-sag .ozet-madde { padding: .4rem 0; border-bottom: 1px dashed var(--cizgi); font-size: .82rem; }
.form-sag .ozet-madde:last-child { border-bottom: none; }
.form-sag .ozet-madde .b { font-weight: 700; }
@media (max-width: 1100px) { .form-yerlesim { grid-template-columns: 200px minmax(0,1fr); } .form-sag { display: none; } }
@media (max-width: 860px) { .form-yerlesim { display: block; } .form-sol { position: static; max-height: none; margin-bottom: .8rem; }
  .form-sol nav { flex-direction: row; overflow-x: auto; } .form-sol nav a { flex: none; } }

/* ================= MOCKUP EKLERİ ================= */
.logo-metin { display: flex; flex-direction: column; line-height: 1.15; }
.firma-ad { font-size: .98rem; font-weight: 800; }
.sidebar .logo .firma-alt { color: var(--sidebar-accent, #93c5fd); font-size: .68rem; font-weight: 600; letter-spacing: .02em; }

/* İkonlu istatistik kartları (mockup: metin solda, ikon sağ üstte) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  background: var(--kart); border: 1px solid var(--cizgi);
  border-radius: var(--radius); padding: .95rem 1.05rem; box-shadow: var(--golge); }
.stat .ikon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; order: 2; }
.stat .ikon svg { width: 22px; height: 22px; }
.stat .ikon.mavi { background: var(--mavi-z); color: var(--mavi-k); }
.stat .ikon.yesil { background: var(--yesil-z); color: var(--yesil-k); }
.stat .ikon.kirmizi { background: var(--kirmizi-z); color: var(--kirmizi-k); }
.stat .ikon.sari { background: var(--sari-z); color: var(--sari-k); }
.stat .sayi { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.stat .ad { font-size: .76rem; color: var(--soluk); font-weight: 600; margin-bottom: .1rem; }
.stat .ikon.mor { background: #f3e8ff; color: #7e22ce; }
.stat .ikon.gri-i { background: #f1f5f9; color: #475569; }
.stat .alt { font-size: .68rem; color: var(--soluk); }

/* Donut + lejant */
.donut-sar { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.donut-lejant { display: flex; flex-direction: column; gap: .45rem; font-size: .84rem; flex: 1; min-width: 170px; }
.donut-lejant .madde { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.donut-lejant .sol-l { display: flex; align-items: center; gap: .5rem; }
.donut-lejant .nokta { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* Gruplu çubuk grafik (yapılan vs planlanan) */
.gbar { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: .4rem; }
.gbar .grup-c { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.gbar .cubuklar { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.gbar .c { width: 22px; border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.gbar .c .v { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: .64rem; font-weight: 800; }
.gbar .c.yapilan { background: #1d4ed8; }
.gbar .c.planlanan { background: #93c5fd; }
.gbar .etk { font-size: .68rem; color: var(--soluk); font-weight: 700; }
.grafik-lejant { display: flex; gap: 1rem; font-size: .75rem; color: var(--soluk); font-weight: 600; margin-top: .4rem; }
.grafik-lejant .n { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: .3rem; }

/* Son uygunsuzluklar mini listesi */
.mini-liste { display: flex; flex-direction: column; }
.mini-liste .satir-m { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--cizgi); align-items: flex-start; }
.mini-liste .satir-m:last-child { border-bottom: none; }
.mini-liste .u-ikon { width: 28px; height: 28px; border-radius: 8px; background: var(--kirmizi-z); color: var(--kirmizi);
  display: grid; place-items: center; flex: none; font-weight: 800; }
.mini-liste .b { font-weight: 700; font-size: .86rem; }
.mini-liste .a { font-size: .78rem; color: var(--soluk); }
.pano-3li { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 1000px) { .pano-3li { grid-template-columns: 1fr; } }

/* ================= AYLIK TAKVİM + BİLDİRİM ================= */
.takvim-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tg-baslik { text-align: center; font-size: .68rem; font-weight: 800; color: var(--soluk);
  text-transform: uppercase; padding: .2rem 0; }
.tg-hucre { min-height: 86px; border: 1px solid var(--cizgi); border-radius: 9px; padding: .3rem;
  background: #fff; overflow: hidden; }
.tg-hucre.bos { background: transparent; border: none; }
.tg-hucre.bugun { border-color: var(--ana); box-shadow: 0 0 0 2px rgba(29,78,216,.15); }
.tg-gun { font-size: .72rem; font-weight: 800; color: var(--soluk); margin-bottom: .15rem; }
.tg-hucre.bugun .tg-gun { color: var(--ana); }
.tg-cip { display: block; font-size: .64rem; font-weight: 700; color: #fff; background: #1d4ed8;
  border-radius: 5px; padding: .1rem .3rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-cip.yapildi { background: #16a34a; }
.tg-cip.gecikti { background: #dc2626; }
.tg-fazla { font-size: .62rem; color: var(--soluk); font-weight: 700; }
@media (max-width: 700px) { .tg-hucre { min-height: 56px; } .tg-cip { font-size: .55rem; } }

.zil-sar { position: relative; }
.zil { position: relative; background: none; border: 1px solid var(--cizgi); border-radius: 99px;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--metin); background: #fff; }
.zil:hover { border-color: #94a3b8; }
.zil svg { width: 18px; height: 18px; }
.zil-rozet { position: absolute; top: -4px; right: -4px; background: var(--kirmizi); color: #fff;
  font-size: .62rem; font-weight: 800; border-radius: 99px; min-width: 17px; height: 17px;
  display: grid; place-items: center; padding: 0 3px; }
.bildirim-panel { display: none; position: absolute; right: 0; top: 46px; width: 330px; max-width: 88vw;
  background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge-buyuk);
  z-index: 90; overflow: hidden; }
.bildirim-panel.acik { display: block; }
.bp-baslik { padding: .6rem .9rem; font-weight: 800; font-size: .85rem; border-bottom: 1px solid var(--cizgi); background: #fafafa; }
.bp-bos { padding: 1rem .9rem; color: var(--soluk); font-size: .85rem; }
.bp-satir { display: flex; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px dashed var(--cizgi);
  color: var(--metin); font-size: .82rem; align-items: flex-start; }
.bp-satir:hover { background: #f8fafc; }
.bp-nokta { width: 9px; height: 9px; border-radius: 99px; margin-top: .35rem; flex: none; }
.bp-nokta.gecikti { background: var(--kirmizi); }
.bp-nokta.yaklasiyor { background: var(--sari); }
.bp-ic { display: flex; flex-direction: column; }
.bp-alt { display: block; text-align: center; padding: .55rem; font-size: .8rem; font-weight: 700; background: #fafafa; }


/* ================= MOCKUP v2 ================= */
.firma-chip { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--cizgi);
  border-radius: 99px; padding: .4rem .85rem; font-size: .82rem; font-weight: 700; background: #fff; white-space: nowrap; }
.yardim-btn { background: #fff; border: 1px solid var(--cizgi); border-radius: 99px; width: 38px; height: 38px;
  display: grid; place-items: center; cursor: pointer; font-weight: 800; color: var(--soluk); }

/* İstasyon hero kartı */
.hero { display: flex; gap: 1.1rem; background: var(--kart); border: 1px solid var(--cizgi);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--golge); margin-bottom: 1rem;
  align-items: stretch; flex-wrap: wrap; }
.hero .gorsel { width: 92px; height: 92px; border-radius: 12px; background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: grid; place-items: center; color: var(--mavi-k); flex: none; }
.hero .gorsel svg { width: 42px; height: 42px; }
.hero .kimlik { flex: 1; min-width: 240px; }
.hero .kimlik h1 { margin-bottom: .35rem; }
.hero .kimlik .sat { font-size: .84rem; color: var(--soluk); padding: .07rem 0; }
.hero .kimlik .sat strong { color: var(--metin); font-weight: 600; }
.hero .mini-ist { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.4rem; align-content: center; min-width: 220px; }
.hero .mini-ist .m { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; padding: .18rem 0; }
.hero .mini-ist .m strong { font-weight: 800; }
.hero .durum-kart { min-width: 150px; border: 1px solid var(--cizgi); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .8rem; }
.hero .durum-kart .yuvarlak { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; }
.hero .durum-kart.iyi .yuvarlak { background: var(--yesil); }
.hero .durum-kart.dikkat .yuvarlak { background: var(--sari); }
.hero .durum-kart.kritik .yuvarlak { background: var(--kirmizi); }
.hero .durum-kart .b { font-weight: 800; font-size: .95rem; }
.hero .durum-kart .a { font-size: .7rem; color: var(--soluk); text-transform: uppercase; font-weight: 700; }

/* Form sol panel — numaralı bölümler */
.form-sol nav a .no-daire { width: 21px; height: 21px; border-radius: 50%; background: #e2e8f0; color: var(--soluk);
  display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800; flex: none; margin-right: .45rem; }
.form-sol nav a.tamam .no-daire { background: var(--yesil); color: #fff; }
.form-sol nav a { justify-content: flex-start; }
.form-sol nav a .d { margin-left: auto; }

/* Kriter satırı — tablo görünümü (açıklama + foto kolonu) */
.kriter { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto minmax(140px,190px) 38px;
  gap: .55rem; align-items: center; }
.kriter .aciklama-k input { padding: .4rem .5rem; font-size: .8rem; }
.kriter .foto-k { display: grid; place-items: center; }
.kriter .foto-k label { margin: 0; cursor: pointer; width: 32px; height: 32px; border: 1px solid var(--cizgi);
  border-radius: 8px; display: grid; place-items: center; color: var(--soluk); background: #fff; }
.kriter .foto-k label:hover { border-color: var(--ana); color: var(--ana); }
@media (max-width: 760px) {
  .kriter { grid-template-columns: 2rem minmax(0,1fr) 38px; }
  .kriter .secim { grid-column: 1 / -1; justify-content: flex-end; }
  .kriter .aciklama-k { grid-column: 1 / -1; }
}
.form-ust-btnlar { display: flex; gap: .5rem; flex-wrap: wrap; }
.bolum-gecis { display: flex; justify-content: space-between; margin-top: .6rem; }

/* ArkSigner OnlyJS durum satırı */
.ark-durum { margin: .6rem 0 0; font-size: .88rem; min-height: 1.2em; }
.tema-secenekler { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 1rem; }
.tema-secenek { position: relative; cursor: pointer; }
.tema-secenek input { position: absolute; opacity: 0; pointer-events: none; }
.tema-kutu { display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .55rem .7rem; border: 2px solid var(--cizgi); border-radius: 12px; min-width: 5.2rem;
  background: #fff; transition: border-color .12s, box-shadow .12s; }
.tema-secenek input:checked + .tema-kutu { border-color: var(--ana); box-shadow: 0 0 0 3px var(--ana-acik); }
.tema-renk { width: 28px; height: 28px; border-radius: 8px; }
.tema-ad { font-size: .72rem; font-weight: 700; color: var(--soluk); }
.logo-onizleme { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--cizgi);
  object-fit: contain; background: #fff; padding: 4px; }
.ark-durum.bilgi { color: var(--soluk); }
.ark-durum.ok { color: var(--yesil); font-weight: 600; }
.ark-durum.hata { color: var(--kirmizi); font-weight: 600; }
.ark-durum.uyari { color: var(--sari); font-weight: 600; }

/* Toast bildirimleri */
.toast-kok {
  position: fixed; top: 1rem; right: 1rem; z-index: 400;
  display: flex; flex-direction: column; gap: .45rem;
  max-width: min(22rem, calc(100vw - 2rem)); pointer-events: none;
}
.toast {
  background: #0f172a; color: #fff; padding: .7rem 1rem; border-radius: 10px;
  font-size: .85rem; font-weight: 600; line-height: 1.35;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
  opacity: 0; transform: translateY(-8px); transition: opacity .22s, transform .22s;
}
.toast.goster { opacity: 1; transform: translateY(0); }
.toast-ok { background: #166534; }
.toast-hata { background: #991b1b; }
.toast-uyari { background: #92400e; }
.toast-bilgi { background: #1e3a8a; }
@media (max-width: 640px) {
  .toast-kok { left: 1rem; right: 1rem; max-width: none; }
}

/* Capacitor saha uygulaması — rapor/imza menülerini gizle */
html.kos-native .saha-gizle,
body.kos-native .saha-gizle { display: none !important; }
