:root{
  --kyass-turuncu:#f36f21;
  --kyass-kirmizi:#d52b1e;
  --kyass-siyah:#0b0b0c;
  --kyass-koyu:#121214;
  --kyass-gri:#1f2023;
  --kyass-gri2:#2a2c31;
  --kyass-yazi:#f2f2f2;
  --kyass-soluk:#b9bcc4;
  --kyass-kenar:#32343a;
  --kyass-yesil:#2ecc71;
  --kyass-sari:#f1c40f;
  --kyass-kirmizi2:#e74c3c;
  --radius:18px;
  --golge: 0 12px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--kyass-yazi);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(243,111,33,.18), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(213,43,30,.16), transparent 55%),
              var(--kyass-siyah);
}

/* --- Giriş --- */
.giris-body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.giris-kutu{
  width: min(480px, 100%);
  background: linear-gradient(180deg, rgba(31,32,35,.92), rgba(18,18,20,.92));
  border:1px solid var(--kyass-kenar);
  border-radius: var(--radius);
  box-shadow: var(--golge);
  padding:28px;
}
.giris-logo{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}
.giris-logo img{ height:52px; width:auto; }
.giris-baslik{
  margin:0 0 12px 0;
  font-size:22px;
  letter-spacing:.2px;
  text-align:center;
}
.aciklama{
  color:var(--kyass-soluk);
  font-size:13px;
  line-height:1.45;
  margin:10px 0 0 0;
}
.alt-not{
  margin-top:14px;
  color:var(--kyass-soluk);
  font-size:12px;
  text-align:center;
}

/* --- Form --- */
.form{ display:flex; flex-direction:column; gap:10px; }
.etiket{ font-size:12px; color:var(--kyass-soluk); }
.girdi{
  width:100%;
  padding:11px 12px;
  border-radius: 12px;
  border:1px solid var(--kyass-kenar);
  background: rgba(10,10,12,.65);
  color: var(--kyass-yazi);
  outline:none;
}
.girdi:focus{ border-color: rgba(243,111,33,.8); box-shadow: 0 0 0 3px rgba(243,111,33,.18); }

textarea.girdi{ resize: vertical; min-height: 72px; }

.secim{ display:flex; align-items:center; gap:10px; color:var(--kyass-soluk); font-size:13px; }
.secim input{ width:16px; height:16px; }

.buton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--kyass-kenar);
  background: rgba(42,44,49,.6);
  color: var(--kyass-yazi);
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}
.buton:hover{ background: rgba(42,44,49,.85); }
.buton-ana{
  border: none;
  background: linear-gradient(135deg, var(--kyass-kirmizi), var(--kyass-turuncu));
}
.buton-ana:hover{ filter: brightness(1.05); }

.buton-mini{
  padding:6px 10px;
  border-radius: 10px;
  font-size:12px;
  line-height:1;
  margin-left:8px;
}
.ikon{
  display:inline-flex;
  width:18px;
  justify-content:center;
  font-weight:700;
}
.gorsel-duzenle{
  margin:6px 0 8px 0;
  border:1px dashed var(--kyass-kenar);
  border-radius: 14px;
  padding:10px;
  background: rgba(10,10,12,.35);
}
.gorsel-duzenle .gorsel{ width:100%; height:auto; max-height:220px; object-fit:contain; border-radius: 12px; }
.gorsel-duzenle .gorsel-bos{ color:var(--kyass-soluk); font-size:12px; text-align:center; padding:18px 10px; }
.buton-tehlike{
  border:none;
  background: linear-gradient(135deg, #a31212, var(--kyass-kirmizi2));
}
.buton-tehlike:hover{ filter: brightness(1.05); }

.uyari{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--kyass-kenar);
  font-size:13px;
}
.uyari-hata{ background: rgba(231,76,60,.14); border-color: rgba(231,76,60,.35); }
.uyari-uyari{ background: rgba(241,196,15,.12); border-color: rgba(241,196,15,.35); }

/* --- Uygulama gövde / yan menü --- */
.app-shell{
  height:100%;
  display:flex;
}
.yan-menu{
  width:280px;
  min-width:280px;
  background:linear-gradient(180deg, rgba(31,32,35,.88), rgba(18,18,20,.92));
  border-right:1px solid var(--kyass-kenar);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:width .18s ease, min-width .18s ease, box-shadow .18s ease;
}
.yan-menu.kapali{
  width:76px;
  min-width:76px;
}
.yan-menu.kapali:hover,
.yan-menu.kapali:focus-within{
  width:280px;
  min-width:280px;
  box-shadow:14px 0 32px rgba(0,0,0,.24);
}
.yan-menu-ust{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 14px 10px;
}
.yan-menu.kapali .yan-menu-ust{
  justify-content:center;
  padding:14px 8px 10px;
}
.yan-menu.kapali:hover .yan-menu-ust,
.yan-menu.kapali:focus-within .yan-menu-ust{
  justify-content:flex-start;
  padding:14px 14px 10px;
}
.ikon-dugme{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--kyass-kenar);
  background:rgba(42,44,49,.35);
  color:var(--kyass-yazi);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ikon-dugme:hover{ background:rgba(42,44,49,.7); }
.ikon{ font-size:18px; line-height:1; }
.logo-alan{ display:flex; align-items:center; gap:10px; overflow:hidden; text-decoration:none; color:inherit; cursor:pointer; }
.logo-yatay{ height:30px; width:auto; }
.logo-dikey{ height:42px; width:auto; display:none; }
.yan-menu.kapali .logo-yatay{ display:none; }
.yan-menu.kapali .logo-dikey{ display:block; }
.yan-menu.kapali:hover .logo-yatay,
.yan-menu.kapali:focus-within .logo-yatay{ display:block; }
.yan-menu.kapali:hover .logo-dikey,
.yan-menu.kapali:focus-within .logo-dikey{ display:none; }
.menu-liste{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  overflow:auto;
}
.yan-menu.kapali .menu-liste{ padding:10px 8px; }
.yan-menu.kapali:hover .menu-liste,
.yan-menu.kapali:focus-within .menu-liste{ padding:10px; }
.menu-ogesi{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  color:var(--kyass-yazi);
  text-decoration:none;
  border:1px solid transparent;
  background:transparent;
}
.menu-ogesi:hover{ background:rgba(42,44,49,.5); }
.menu-ogesi.aktif{ background:rgba(243,111,33,.12); border-color:rgba(243,111,33,.35); }
.menu-ikon{ width:28px; display:flex; justify-content:center; font-size:18px; }
.menu-yazi{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.yan-menu.kapali .menu-ogesi,
.yan-menu.kapali .cikis{
  justify-content:center;
  gap:0;
  padding:10px;
  width:100%;
}
.yan-menu.kapali .menu-ikon{ width:34px; min-width:34px; }
.yan-menu.kapali .menu-yazi{
  display:block;
  opacity:0;
  width:0;
  max-width:0;
  overflow:hidden;
  white-space:nowrap;
  transition:opacity .12s ease, max-width .18s ease;
}
.yan-menu.kapali:hover .menu-ogesi,
.yan-menu.kapali:focus-within .menu-ogesi,
.yan-menu.kapali:hover .cikis,
.yan-menu.kapali:focus-within .cikis{
  justify-content:flex-start;
  gap:12px;
  padding:10px 12px;
}
.yan-menu.kapali:hover .menu-yazi,
.yan-menu.kapali:focus-within .menu-yazi{
  opacity:1;
  width:auto;
  max-width:190px;
}
#menu-dugme{ display:none; }
.yan-menu:not(.kapali) #menu-dugme,
.yan-menu.kapali:hover #menu-dugme,
.yan-menu.kapali:focus-within #menu-dugme{ display:flex; }
.yan-menu-alt{
  margin-top:auto;
  padding:12px;
  border-top:1px solid var(--kyass-kenar);
  display:flex;
  align-items:center;
  gap:10px;
}
.yan-menu.kapali .yan-menu-alt{ padding:12px 8px; }
.yan-menu.kapali:hover .yan-menu-alt,
.yan-menu.kapali:focus-within .yan-menu-alt{ padding:12px; }
.cikis{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--kyass-yazi);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--kyass-kenar);
  background:rgba(42,44,49,.35);
}
.cikis:hover{ background:rgba(42,44,49,.7); }
@media (max-width:760px){
  .yan-menu.kapali,
  .yan-menu.kapali:hover,
  .yan-menu.kapali:focus-within{ width:76px; min-width:76px; }
  .yan-menu.kapali:hover .menu-yazi,
  .yan-menu.kapali:focus-within .menu-yazi{ opacity:0; width:0; max-width:0; }
}

.icerik{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width: 0; /* tablo taşmasını kontrol */
}
.ust-bar{
  padding:14px 18px;
  border-bottom:1px solid var(--kyass-kenar);
  background: rgba(18,18,20,.72);
  backdrop-filter: blur(6px);
  flex: 0 0 auto;
}
.sayfa{
  padding:18px;
  overflow:auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* Sağ üst kullanıcı + tema */
.ust-sag{
  display:flex;
  align-items:center;
  gap:10px;
}
.ust-kullanici{
  font-size:13px;
  color: var(--kyass-soluk);
  /* Kullanıcı isteği: isim soyisim sade, kenarlıksız */
  padding:0;
  border:none;
  background: transparent;
  white-space:nowrap;
}

.satir{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap; /* taşma istemiyoruz */
  margin-bottom:12px;
}
.satir.sag{ justify-content:flex-end; }
.arama{
  display:flex;
  gap:10px;
  flex:1;
  min-width: 0;
}
.arama .girdi{ flex:1; }

.kart{
  background: rgba(31,32,35,.55);
  border:1px solid var(--kyass-kenar);
  border-radius: var(--radius);
  box-shadow: var(--golge);
  padding:16px;
  margin-bottom:14px;
}
.kart-baslik{ margin:0 0 12px 0; font-size:18px; }
.kart-ust{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.grid-3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
.grid-2-1{ display:grid; grid-template-columns: 2fr 1fr; gap:14px; }
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-2-1{ grid-template-columns: 1fr; }
}

/* Tablo */
.tablo-sar{ overflow:auto; border-radius: 14px; border:1px solid var(--kyass-kenar); }
.tablo{
  width:100%;
  border-collapse: collapse;
  min-width: 820px; /* küçük ekranda yatay kaydırma olur, taşma olmaz */
}
.tablo thead th{
  text-align:left;
  font-size:12px;
  color:var(--kyass-soluk);
  padding:10px;
  border-bottom:1px solid var(--kyass-kenar);
  background: rgba(10,10,12,.55);
  position: sticky; top:0;
}
.tablo tbody td{
  padding:10px;
  border-bottom:1px solid rgba(50,52,58,.55);
  font-size:13px;
}
.tablo tbody tr:hover{ background: rgba(42,44,49,.35); }
.bos{ text-align:center; color:var(--kyass-soluk); padding:16px; }

.baglanti{ color: #ffd6b9; text-decoration:none; }
.baglanti:hover{ text-decoration: underline; }


.rozet{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius: 999px;
  font-size:12px;
  border:1px solid var(--kyass-kenar);
  background: rgba(42,44,49,.35);
}
.rozet-aktif{ border-color: rgba(46,204,113,.35); background: rgba(46,204,113,.12); }
.rozet-aktif::before{ content:"●"; margin-right:6px; color: var(--kyass-yesil); }

.rozet-bakımda{ border-color: rgba(241,196,15,.35); background: rgba(241,196,15,.12); }
.rozet-bakımda::before{ content:"●"; margin-right:6px; color: var(--kyass-sari); }

.rozet-dışarıda{ border-color: rgba(231,76,60,.35); background: rgba(231,76,60,.12); }
.rozet-dışarıda::before{ content:"●"; margin-right:6px; color: var(--kyass-kirmizi2); }


/* Makine detay */
.alanlar{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.alan{ display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius: 14px; border:1px solid rgba(50,52,58,.55); background: rgba(10,10,12,.25); }
.alan-etiket{ color:var(--kyass-soluk); font-size:12px; }
.alan-deger{ font-size:13px; text-align:right; max-width: 70%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.gorsel-kutu{ flex: 1; min-width:0; }
.gorsel{ width:100%; border-radius: 14px; border:1px solid rgba(50,52,58,.55); }
.gorsel-bos{ height:220px; display:flex; align-items:center; justify-content:center; border-radius:14px; border:1px dashed rgba(50,52,58,.8); color: var(--kyass-soluk); background: rgba(10,10,12,.2); }

.qr-kutu{ width: 220px; border-radius: 14px; border:1px solid rgba(50,52,58,.55); padding:12px; background: rgba(10,10,12,.25); display:flex; flex-direction:column; gap:10px; }
.qr{ width:100%; border-radius: 12px; background:#fff; padding:8px; }
.qr-baslik{ font-size:12px; color: var(--kyass-soluk); }

/* Sağ tık menü */
.sag-tik-menu{
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  background: rgba(31,32,35,.98);
  border:1px solid var(--kyass-kenar);
  border-radius: 14px;
  box-shadow: var(--golge);
  padding:8px;
}
.sag-tik-menu.gizli{ display:none; }
.sag-tik-ogesi{
  width:100%;
  display:flex;
  padding:10px 10px;
  border-radius: 12px;
  cursor:pointer;
  color: var(--kyass-yazi);
}
.sag-tik-ogesi:hover{ background: rgba(42,44,49,.75); }
.sag-tik-ayir{ height:1px; margin:6px 0; background: rgba(50,52,58,.8); }

/* QR sayfası */
.qr-body{ background: var(--kyass-siyah); }
.qr-sayfa{ padding:16px; max-width: 720px; margin: 0 auto; }
.qr-ust{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.qr-logo{ height:44px; width:auto; }
.qr-baslik{ font-size:22px; font-weight:700; }
.qr-alt{ color: var(--kyass-soluk); font-size:13px; }
.qr-kart{ margin-top:12px; border-radius: var(--radius); border:1px solid var(--kyass-kenar); background: rgba(31,32,35,.55); padding:14px; }
.qr-alan{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid rgba(50,52,58,.55); }
.qr-alan:last-child{ border-bottom:none; }
.qr-etiket{ color: var(--kyass-soluk); font-size:12px; }
.qr-deger{ font-size:13px; text-align:right; }
.qr-gorsel{ margin-top:12px; }
.qr-gorsel img{ width:100%; border-radius: var(--radius); border:1px solid rgba(50,52,58,.55); }
.qr-alt-not{ margin-top:14px; color: var(--kyass-soluk); font-size:12px; }




.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0;}
@media (max-width: 1100px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.grid-4{grid-template-columns:1fr;}}

.mini-uyari{margin-top:6px;font-size:12px;color:#d23;}


@media (max-width: 640px){
  .satir{ flex-wrap:wrap; justify-content:flex-start; }
  .arama{ flex-wrap:wrap; }
  .arama .girdi, .arama .secim{ flex: 1 1 100%; }
  .satir > .buton, .satir > a.buton{ flex: 1 1 auto; }
  .kart-ust{ flex-wrap:wrap; align-items:flex-start; }
  .kpi-deger{ font-size: 26px; }
}



/* =========================================================
   KYASS - Giriş ekranı hareketli fabrika arka planı
   Amaç: Sadece giriş ekranında arka plan görseli hafif sağa-sola hareket eder.
   Backend, veri, kullanıcı ve yetki mantığına dokunmaz.
   Görsel dosyası: /static/img/giris-bg.png
   ========================================================= */
body.giris-body{
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #0b0f18;
  color:#101114;
}

body.giris-body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/static/img/giris-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 18%;
  transform: scale(1.08) translateX(-18px);
  animation: kyassLoginBgPan 22s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

body.giris-body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(90deg, rgba(7,10,18,.72), rgba(7,10,18,.36), rgba(7,10,18,.72));
  pointer-events: none;
}

body.giris-body .giris-kutu{
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.34);
  box-shadow: 0 22px 70px rgba(0,0,0,.30);
  backdrop-filter: blur(8px);
}

body.giris-body .giris-logo,
body.giris-body .giris-baslik,
body.giris-body .form,
body.giris-body .alt-not,
body.giris-body .uyari{
  position: relative;
  z-index: 3;
}

@keyframes kyassLoginBgPan{
  0%{
    transform: scale(1.08) translateX(-22px);
    background-position: 44% 16%;
  }
  100%{
    transform: scale(1.08) translateX(22px);
    background-position: 56% 16%;
  }
}

@media (max-width: 760px){
  body.giris-body::before{
    background-position: center 20%;
    transform: scale(1.14) translateX(-12px);
    animation-duration: 26s;
  }

  @keyframes kyassLoginBgPan{
    0%{
      transform: scale(1.14) translateX(-12px);
      background-position: 47% 20%;
    }
    100%{
      transform: scale(1.14) translateX(12px);
      background-position: 53% 20%;
    }
  }
}


/* =========================================================
   KYASS - Giriş kutusu sağ konum + sağdan kayarak geliş animasyonu
   Amaç: Giriş kutusu sayfanın sağ tarafında kalır; sayfa açılırken sağdan içeri kayar.
   Not: Sadece giriş ekranını etkiler.
   ========================================================= */
body.giris-body{
  justify-content: flex-end;
  align-items: center;
  padding: 24px clamp(28px, 7vw, 120px) 24px 24px;
}

body.giris-body .giris-kutu{
  margin: 0;
  animation: kyassLoginBoxSlideIn .72s cubic-bezier(.22, .84, .36, 1) both;
}

@keyframes kyassLoginBoxSlideIn{
  0%{
    opacity: 0;
    transform: translateX(140px) scale(.985);
  }
  100%{
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 760px){
  body.giris-body{
    justify-content: center;
    padding: 20px;
  }

  body.giris-body .giris-kutu{
    animation: kyassLoginBoxSlideInMobile .62s cubic-bezier(.22, .84, .36, 1) both;
  }

  @keyframes kyassLoginBoxSlideInMobile{
    0%{
      opacity: 0;
      transform: translateY(28px) scale(.985);
    }
    100%{
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}


/* --- Aktif filtre göstergesi --- */
.aktif-filtre-kutusu{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px 0;
  padding:10px 12px;
  border:1px solid rgba(243,111,33,.28);
  border-radius:14px;
  background:rgba(243,111,33,.08);
}
.aktif-filtre-baslik{
  color:var(--kyass-soluk);
  font-size:12px;
  margin-right:8px;
}
.aktif-filtre-rozet{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  margin:2px 4px 2px 0;
  border-radius:999px;
  border:1px solid rgba(243,111,33,.30);
  background:rgba(10,10,12,.26);
  font-size:12px;
}
@media (max-width:640px){
  .aktif-filtre-kutusu{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* =========================================================
   KYASS - Makine detay hızlı işlem akışı
   Amaç: Hareket işlemlerini tek karmaşık form yerine işlem bazlı hale getirir.
   ========================================================= */
.detay-gorsel-satir{
  align-items:flex-start;
  flex-wrap:wrap;
}
.detay-alt-islemler{
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  margin-top:12px;
}
.gorsel-hizli-form{
  margin:0;
  align-items:center;
  flex:1 1 360px;
}
.gorsel-hizli-form .girdi{
  max-width:280px;
}
.kompakt-alanlar .alan{
  min-height:42px;
}
.hizli-islem-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin:14px 0;
}
.hizli-islem-kart{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(243,111,33,.18);
  background:rgba(10,10,12,.22);
  color:var(--kyass-yazi);
  text-decoration:none;
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}
.hizli-islem-kart:hover{
  background:rgba(243,111,33,.10);
  border-color:rgba(243,111,33,.42);
  transform:translateY(-1px);
}
.hizli-islem-kart.aktif{
  background:linear-gradient(135deg, rgba(213,43,30,.20), rgba(243,111,33,.16));
  border-color:rgba(243,111,33,.58);
}
.hizli-islem-kart.tehlikeli{
  border-color:rgba(231,76,60,.28);
}
.hizli-islem-kart.tehlikeli:hover,
.hizli-islem-kart.tehlikeli.aktif{
  background:rgba(231,76,60,.12);
  border-color:rgba(231,76,60,.55);
}
.hizli-islem-ikon{
  width:36px;
  height:36px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(243,111,33,.14);
  border:1px solid rgba(243,111,33,.20);
  flex:0 0 auto;
  font-weight:800;
}
.hizli-islem-kart b{
  display:block;
  font-size:13px;
}
.hizli-islem-kart small{
  display:block;
  margin-top:2px;
  color:var(--kyass-soluk);
  font-size:11px;
  line-height:1.3;
}
.hareket-paneller{
  margin-top:10px;
}
.hareket-panel{
  display:none;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(50,52,58,.70);
  background:rgba(10,10,12,.18);
}
.hareket-panel.aktif{
  display:flex;
}
.hareket-panel.tehlikeli-panel{
  border-color:rgba(231,76,60,.35);
  background:rgba(231,76,60,.08);
}
.form-not{
  padding:10px 12px;
  border-radius:13px;
  background:rgba(243,111,33,.08);
  border:1px solid rgba(243,111,33,.20);
  color:var(--kyass-soluk);
  font-size:13px;
  line-height:1.4;
}
@media (max-width: 900px){
  .hizli-islem-grid{ grid-template-columns:1fr; }
  .gorsel-hizli-form .girdi{ max-width:none; }
}


/* =========================================================
   KYASS - Oturum süre uyarısı
   ========================================================= */
.oturum-uyari{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.48);
  backdrop-filter:blur(4px);
}
.oturum-uyari.gizli{ display:none; }
.oturum-uyari-kart{
  width:min(420px, 100%);
  border-radius:22px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(31,32,35,.98), rgba(18,18,20,.98));
  color:var(--kyass-yazi);
  box-shadow:0 24px 80px rgba(0,0,0,.42);
  padding:24px;
  text-align:center;
}
.oturum-uyari-ikon{
  width:58px;
  height:58px;
  border-radius:22px;
  margin:0 auto 12px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  background:rgba(243,111,33,.14);
  border:1px solid rgba(243,111,33,.32);
}
.oturum-uyari-kart h2{
  margin:0 0 8px 0;
  font-size:22px;
}
.oturum-uyari-kart p{
  margin:0;
  color:var(--kyass-soluk);
  line-height:1.45;
}
#oturumSayac{
  color:var(--kyass-turuncu);
  font-size:22px;
}
.oturum-uyari-butonlar{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:18px;
}
html[data-theme="light"] body .oturum-uyari-kart{
  background:#ffffff !important;
  color:#111827 !important;
  border-color:#d1d5db !important;
}
html[data-theme="light"] body .oturum-uyari-kart p{ color:#4b5563 !important; }
html[data-theme="light"] body .oturum-uyari-ikon{ background:#fff7ed !important; border-color:#fed7aa !important; }

/* =========================================================
   KYASS - Durum filtresi select görünümü
   Amaç: Koyu temada Durum filtresinin beyaz/native görünmesini engeller.
   ========================================================= */
select.secim{
  min-height:42px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--kyass-kenar);
  background:rgba(10,10,12,.65);
  color:var(--kyass-yazi);
  outline:none;
  font-size:13px;
}
select.secim:focus{
  border-color:rgba(243,111,33,.8);
  box-shadow:0 0 0 3px rgba(243,111,33,.18);
}
select.secim option{
  background:#1f2023;
  color:#f2f2f2;
}
html[data-theme="light"] body select.secim{
  background:#ffffff !important;
  color:#111827 !important;
  border-color:#cbd5e1 !important;
}
html[data-theme="light"] body select.secim option{
  background:#ffffff !important;
  color:#111827 !important;
}


/* =========================================================
   KYASS - Dashboard / takip / rapor sayfaları
   ========================================================= */
.grid-6{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin:12px 0;
}
@media (max-width:1200px){.grid-6{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:700px){.grid-6{grid-template-columns:1fr;}}

.kpi-kart{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:112px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(50,52,58,.70);
  background:linear-gradient(180deg, rgba(31,32,35,.72), rgba(18,18,20,.70));
  color:var(--kyass-yazi);
  text-decoration:none;
  box-shadow:0 12px 28px rgba(0,0,0,.20);
  position:relative;
  overflow:hidden;
}
.kpi-kart::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:4px;
  background:linear-gradient(90deg, var(--kyass-kirmizi), var(--kyass-turuncu));
  opacity:.85;
}
.kpi-kart span{ color:var(--kyass-soluk); font-size:13px; }
.kpi-kart b{ font-size:34px; line-height:1; }
.kpi-kart:hover{ transform:translateY(-1px); filter:brightness(1.04); }
.kpi-kart.aktif::after{ background:#2ecc71; }
.kpi-kart.disarida::after{ background:#e74c3c; }
.kpi-kart.bakimda::after{ background:#f1c40f; }
.kpi-kart.hurda::after{ background:#7f1d1d; }
.kpi-kart.eksik::after{ background:#f36f21; }

.mini-liste{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mini-satir{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:4px 12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(50,52,58,.55);
  background:rgba(10,10,12,.22);
  color:var(--kyass-yazi);
  text-decoration:none;
}
.mini-satir:hover{ background:rgba(243,111,33,.10); border-color:rgba(243,111,33,.32); }
.mini-satir b{ font-size:13px; }
.mini-satir span{ color:var(--kyass-soluk); font-size:12px; }
.mini-satir small{ grid-column:1 / -1; color:var(--kyass-soluk); font-size:11px; }

.rapor-kart{ min-height:240px; }
.rapor-satir{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(50,52,58,.45);
}
.rapor-satir:last-child{ border-bottom:none; }
.rapor-satir span{ color:var(--kyass-soluk); }
.rapor-satir b{ font-size:16px; }

.qr-etiket-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.qr-etiket-kart{
  background:#fff;
  color:#111827;
  border:1px solid #d1d5db;
  border-radius:14px;
  padding:12px;
  text-align:center;
  break-inside:avoid;
}
.qr-etiket-kart img{
  width:120px;
  height:120px;
  object-fit:contain;
  display:block;
  margin:0 auto 8px auto;
}
.qr-etiket-kart b{ display:block; font-size:15px; }
.qr-etiket-kart span{ display:block; font-size:12px; color:#374151; }
.qr-etiket-kart small{ display:block; font-size:11px; color:#6b7280; margin-top:4px; }

@media (max-width:1100px){.qr-etiket-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:760px){.qr-etiket-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
html[data-theme="light"] body .kpi-kart,
html[data-theme="light"] body .mini-satir{
  background:#ffffff !important;
  color:#111827 !important;
  border-color:#d1d5db !important;
}
html[data-theme="light"] body .mini-satir:hover{ background:#fff7ed !important; border-color:#fdba74 !important; }
html[data-theme="light"] body .mini-satir span,
html[data-theme="light"] body .mini-satir small,
html[data-theme="light"] body .kpi-kart span,
html[data-theme="light"] body .rapor-satir span{ color:#4b5563 !important; }
html[data-theme="light"] body .rapor-satir{ border-bottom-color:#e5e7eb !important; }

/* =========================================================
   KYASS - Anasayfa ve timeline gelistirmeleri
   ========================================================= */
.anasayfa-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:radial-gradient(420px 160px at 10% 10%, rgba(243,111,33,.16), transparent 62%), linear-gradient(180deg, rgba(31,32,35,.70), rgba(18,18,20,.76));
}
.timeline{position:relative;display:flex;flex-direction:column;gap:12px;margin:8px 0 16px 0;}
.timeline::before{content:"";position:absolute;left:13px;top:8px;bottom:8px;width:2px;background:linear-gradient(180deg, rgba(243,111,33,.65), rgba(243,111,33,.06));}
.timeline-item{position:relative;display:flex;gap:12px;align-items:flex-start;}
.timeline-dot{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg, var(--kyass-kirmizi), var(--kyass-turuncu));border:4px solid rgba(18,18,20,.96);box-shadow:0 0 0 1px rgba(243,111,33,.32);flex:0 0 auto;z-index:1;}
.timeline-card{flex:1;border:1px solid rgba(50,52,58,.65);border-radius:16px;background:rgba(10,10,12,.22);padding:12px;}
.timeline-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px;}
.timeline-head b{font-size:13px;}.timeline-head span{color:var(--kyass-soluk);font-size:12px;}
.timeline-body{display:flex;align-items:center;gap:8px;color:var(--kyass-soluk);font-size:13px;flex-wrap:wrap;}
.timeline-body strong{color:var(--kyass-turuncu);}.timeline-note{margin-top:8px;color:var(--kyass-soluk);font-size:12px;line-height:1.4;}
.gun-rozet{font-weight:700;}.gun-normal{border-color:rgba(46,204,113,.35);background:rgba(46,204,113,.12);color:#7bed9f;}.gun-uyari{border-color:rgba(241,196,15,.45);background:rgba(241,196,15,.14);color:#f1c40f;}.gun-kritik{border-color:rgba(231,76,60,.45);background:rgba(231,76,60,.14);color:#ff7675;}
html[data-theme="light"] body .anasayfa-hero{background:radial-gradient(420px 160px at 10% 10%, rgba(243,111,33,.12), transparent 62%), #ffffff !important;}
html[data-theme="light"] body .timeline-card{background:#ffffff !important;border-color:#d1d5db !important;color:#111827 !important;}
html[data-theme="light"] body .timeline-dot{border-color:#ffffff !important;}html[data-theme="light"] body .timeline-head span,html[data-theme="light"] body .timeline-body,html[data-theme="light"] body .timeline-note{color:#4b5563 !important;}
html[data-theme="light"] body .gun-normal{background:#dcfce7 !important;border-color:#86efac !important;color:#166534 !important;}html[data-theme="light"] body .gun-uyari{background:#fef3c7 !important;border-color:#fde68a !important;color:#92400e !important;}html[data-theme="light"] body .gun-kritik{background:#fee2e2 !important;border-color:#fecaca !important;color:#991b1b !important;}
@media (max-width:700px){.anasayfa-hero{align-items:flex-start;flex-direction:column;}.timeline-head{align-items:flex-start;flex-direction:column;gap:4px;}}

/* =========================================================
   KYASS - Yedekler sayfası
   ========================================================= */
.yedek-ust-kart{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:radial-gradient(420px 160px at 10% 10%, rgba(243,111,33,.14), transparent 62%), linear-gradient(180deg, rgba(31,32,35,.70), rgba(18,18,20,.76));
}
html[data-theme="light"] body .yedek-ust-kart{
  background:radial-gradient(420px 160px at 10% 10%, rgba(243,111,33,.12), transparent 62%), #ffffff !important;
}
@media (max-width:700px){.yedek-ust-kart{align-items:flex-start;flex-direction:column;}}

/* =========================================================
   KYASS - Logo, hareket ve sade ekran bileşenleri
   ========================================================= */
.gizli{display:none !important;}
.logo-yatay-beyaz{height:30px;width:auto;display:none;}
html[data-theme="dark"] body .yan-menu:not(.kapali) .logo-renkli{display:none;}
html[data-theme="dark"] body .yan-menu:not(.kapali) .logo-yatay-beyaz{display:block;}
.yan-menu.kapali .logo-yatay-beyaz{display:none !important;}
.yan-menu.kapali:hover .logo-yatay-beyaz,
.yan-menu.kapali:focus-within .logo-yatay-beyaz{display:none !important;}
.hareket-duzenle-satir td{background:rgba(243,111,33,.06);}
.hareket-duzenle-form{padding:12px;border:1px solid rgba(243,111,33,.20);border-radius:16px;background:rgba(10,10,12,.18);margin-bottom:10px;}
html[data-theme="light"] body .hareket-duzenle-satir td{background:#fff7ed !important;}
html[data-theme="light"] body .hareket-duzenle-form{background:#ffffff !important;border-color:#fed7aa !important;}

/* =========================================================
   KYASS - Koyu tema yatay logo davranışı
   ========================================================= */
.logo-yatay-beyaz{height:30px;width:auto;display:none;}
html[data-theme="dark"] .yan-menu:not(.kapali) .logo-renkli,
html[data-theme="dark"] body .yan-menu:not(.kapali) .logo-renkli,
html[data-theme="dark"] .yan-menu.kapali:hover .logo-renkli,
html[data-theme="dark"] body .yan-menu.kapali:hover .logo-renkli,
html[data-theme="dark"] .yan-menu.kapali:focus-within .logo-renkli,
html[data-theme="dark"] body .yan-menu.kapali:focus-within .logo-renkli{
  display:none !important;
}
html[data-theme="dark"] .yan-menu:not(.kapali) .logo-yatay-beyaz,
html[data-theme="dark"] body .yan-menu:not(.kapali) .logo-yatay-beyaz,
html[data-theme="dark"] .yan-menu.kapali:hover .logo-yatay-beyaz,
html[data-theme="dark"] body .yan-menu.kapali:hover .logo-yatay-beyaz,
html[data-theme="dark"] .yan-menu.kapali:focus-within .logo-yatay-beyaz,
html[data-theme="dark"] body .yan-menu.kapali:focus-within .logo-yatay-beyaz{
  display:block !important;
}
html[data-theme="dark"] .yan-menu.kapali:not(:hover):not(:focus-within) .logo-yatay-beyaz,
html[data-theme="dark"] body .yan-menu.kapali:not(:hover):not(:focus-within) .logo-yatay-beyaz{
  display:none !important;
}
html[data-theme="light"] .yan-menu .logo-yatay-beyaz,
html[data-theme="light"] body .yan-menu .logo-yatay-beyaz{
  display:none !important;
}

/* =========================================================
   KYASS - QR etiket ve rapor çıktı geliştirmeleri
   ========================================================= */
.qr-etiket-bilgi{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px 0;}
.qr-etiket-kart{position:relative;cursor:pointer;transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;}
.qr-etiket-kart:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(0,0,0,.16);}
.qr-etiket-kart .qr-secim{position:absolute;top:8px;left:8px;width:18px;height:18px;}
.qr-etiket-kart:not(.secili){opacity:.48;filter:grayscale(.65);}
.rapor-indir-kart{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.rapor-butonlar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
/* QR etiket yazdırma: A+ 70x55 mm / A4 üzerinde 3 x 5 = 15 etiket. */
.qr-baski-alani{display:none;}

@media print{
  @page{
    size:A4 portrait;
    margin:0;
  }

  html,body{
    width:210mm !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
  }

  body.qr-baski-aktif .app-shell,
  body.qr-baski-aktif .mobil-alt-menu,
  body.qr-baski-aktif > *:not(#qrBaskiAlani){
    display:none !important;
  }

  body.qr-baski-aktif #qrBaskiAlani{
    display:block !important;
    width:210mm !important;
    margin:0 !important;
    padding:0 !important;
  }

  .qr-baski-sayfa{
    width:210mm !important;
    height:297mm !important;
    box-sizing:border-box !important;
    padding:10mm 0 12mm 0 !important;
    margin:0 !important;
    display:grid !important;
    grid-template-columns:repeat(3,70mm) !important;
    grid-template-rows:repeat(5,55mm) !important;
    gap:0 !important;
    overflow:hidden !important;
    break-after:page !important;
    page-break-after:always !important;
  }

  .qr-baski-sayfa:last-child{
    break-after:auto !important;
    page-break-after:auto !important;
  }

  .qr-baski-etiket{
    width:70mm !important;
    height:55mm !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:1.2mm 3mm !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:#fff !important;
    color:#111 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    overflow:hidden !important;
    opacity:1 !important;
    filter:none !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
    cursor:default !important;
    transform:none !important;
    transition:none !important;
  }

  .qr-baski-etiket img{
    width:39mm !important;
    height:39mm !important;
    object-fit:contain !important;
    display:block !important;
    margin:0 auto .8mm auto !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
  }

  .qr-baski-etiket b{
    display:block !important;
    max-width:64mm !important;
    margin:0 !important;
    font-size:9pt !important;
    line-height:1 !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .qr-baski-etiket span{
    display:block !important;
    max-width:64mm !important;
    margin:.6mm 0 0 0 !important;
    color:#222 !important;
    font-size:8pt !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .qr-baski-etiket small{
    display:block !important;
    max-width:62mm !important;
    margin:.7mm 0 0 0 !important;
    color:#333 !important;
    font-size:7pt !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}
@media (max-width:700px){.rapor-indir-kart{align-items:flex-start;flex-direction:column;}.rapor-butonlar{justify-content:flex-start;}}


/* --- Bakım Planlama --- */
.bakim-plan-rozet{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--kyass-kenar);
  background:rgba(42,44,49,.35);
  white-space:nowrap;
}
.bakim-plan-gecikmis{
  border-color:rgba(231,76,60,.45);
  background:rgba(231,76,60,.14);
  color:#ffd4cf;
}
.bakim-plan-yaklasan{
  border-color:rgba(241,196,15,.45);
  background:rgba(241,196,15,.14);
  color:#ffeaa5;
}
.bakim-plan-bakimda{
  border-color:rgba(52,152,219,.45);
  background:rgba(52,152,219,.14);
  color:#d8ecff;
}
.bakim-plan-normal{
  border-color:rgba(46,204,113,.45);
  background:rgba(46,204,113,.12);
  color:#c8f7dd;
}
html[data-theme="light"] body .bakim-plan-gecikmis{ color:#9b1c12; background:#fff1ef; border-color:#f3b8b0; }
html[data-theme="light"] body .bakim-plan-yaklasan{ color:#7a5200; background:#fff8df; border-color:#efd37a; }
html[data-theme="light"] body .bakim-plan-bakimda{ color:#155c8a; background:#eef8ff; border-color:#9bc9e8; }
html[data-theme="light"] body .bakim-plan-normal{ color:#187142; background:#edf9f1; border-color:#a9dfbf; }


/* --- Mobil uygulama görünümü --- */
.mobil-alt-menu{
  display:none;
}

@media (max-width: 768px){
  html, body{
    min-height:100%;
    height:auto;
    overflow-x:hidden;
  }

  body.app-body{
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .app-shell{
    display:block;
    min-height:100dvh;
    height:auto;
  }

  .yan-menu{
    display:none !important;
  }

  .icerik{
    width:100%;
    min-height:100dvh;
    display:block;
  }

  .ust-bar{
    position:sticky;
    top:0;
    z-index:80;
    padding:10px 12px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .ust-bar-ic{
    gap:8px !important;
    align-items:flex-start !important;
  }

  .sayfa-baslik{
    min-width:0;
  }

  .sayfa-baslik-ust{
    font-size:16px;
    line-height:1.2;
    white-space:normal;
  }

  .sayfa-baslik-alt{
    font-size:12px;
    line-height:1.25;
    max-width:64vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ust-sag{
    gap:8px;
    flex-shrink:0;
  }

  .ust-kullanici{
    display:none;
  }

  .sayfa{
    padding:12px 10px calc(92px + env(safe-area-inset-bottom));
    overflow:visible;
  }

  .kart{
    padding:12px;
    margin-bottom:12px;
    border-radius:16px;
  }

  .kart-ust,
  .satir{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .arama,
  form.arama{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .arama .girdi,
  .arama .buton,
  form.arama .girdi,
  form.arama .buton{
    width:100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-2-1,
  .dashboard-grid,
  .rapor-grid,
  .qr-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .kpi{
    min-width:0;
  }

  .tablo-sar{
    width:100%;
    max-width:calc(100vw - 20px);
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .tablo{
    min-width:760px;
  }

  .tablo th,
  .tablo td{
    padding:9px 8px;
    font-size:12px;
  }

  .buton{
    min-height:40px;
    white-space:normal;
    text-align:center;
  }

  .buton-mini{
    margin:3px 2px;
    min-height:34px;
  }

  .girdi,
  select.girdi,
  select.secim,
  textarea.girdi{
    min-height:42px;
    font-size:14px;
  }

  img,
  svg,
  canvas{
    max-width:100%;
  }

  .gorsel{
    max-width:100%;
    height:auto;
  }

  .sag-tik-menu{
    display:none !important;
  }

  .mobil-alt-menu{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:120;
    display:flex;
    align-items:stretch;
    gap:4px;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top:1px solid rgba(255,255,255,.10);
    background:rgba(15,15,17,.94);
    backdrop-filter:blur(14px);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    box-shadow:0 -10px 26px rgba(0,0,0,.30);
  }

  .mobil-alt-menu::-webkit-scrollbar{
    display:none;
  }

  .mobil-menu-ogesi{
    flex:0 0 76px;
    min-width:76px;
    height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:var(--kyass-soluk);
    text-decoration:none;
    border-radius:15px;
    border:1px solid transparent;
    background:transparent;
  }

  .mobil-menu-ogesi.aktif{
    color:#fff;
    background:linear-gradient(135deg, rgba(213,43,30,.28), rgba(243,111,33,.24));
    border-color:rgba(243,111,33,.38);
  }

  .mobil-menu-ogesi:active{
    transform:scale(.98);
  }

  .mobil-menu-ikon{
    font-size:19px;
    line-height:1;
  }

  .mobil-menu-yazi{
    width:100%;
    font-size:10.5px;
    line-height:1.05;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    padding:0 2px;
  }

  .mobil-cikis{
    color:#ffb4ad;
  }

  .qr-etiket,
  .etiket-kart{
    break-inside:avoid;
  }
}

@media (max-width: 420px){
  .sayfa{
    padding-left:8px;
    padding-right:8px;
  }

  .kart-baslik{
    font-size:16px;
  }

  .mobil-menu-ogesi{
    flex-basis:70px;
    min-width:70px;
  }

  .mobil-menu-yazi{
    font-size:10px;
  }

  .tablo{
    min-width:700px;
  }
}

@media print{
  .mobil-alt-menu{
    display:none !important;
  }
}

/* --- Periyodik Bakım Altyapısı --- */
.periyodik-form{
  display:grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap:10px;
  align-items:end;
  margin-top:12px;
}
.alan-mini span,
.periyodik-satir-form label span{
  display:block;
  font-size:12px;
  color:var(--kyass-soluk);
  margin-bottom:5px;
}
.periyodik-secim{
  align-self:center;
  padding-bottom:8px;
}
.periyodik-detay summary{
  list-style:none;
  cursor:pointer;
}
.periyodik-detay summary::-webkit-details-marker{ display:none; }
.periyodik-panel{
  position:absolute;
  right:16px;
  z-index:30;
  width:min(760px, calc(100vw - 40px));
  margin-top:8px;
  padding:14px;
  border:1px solid var(--kyass-kenar);
  border-radius:16px;
  background:rgba(18,18,20,.98);
  box-shadow:var(--golge);
}
.periyodik-satir-form{
  display:grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap:10px;
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--kyass-kenar);
}
.periyodik-satir-form:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}
.bakim-plan-plansiz{
  border-color:rgba(148,163,184,.45);
  background:rgba(148,163,184,.12);
  color:#dbe3ee;
}
html[data-theme="light"] body .periyodik-panel{ background:#fff; }
html[data-theme="light"] body .bakim-plan-plansiz{ color:#475569; background:#f1f5f9; border-color:#cbd5e1; }

@media (max-width: 980px){
  .periyodik-form{ grid-template-columns:1fr 1fr; }
  .periyodik-satir-form{ grid-template-columns:1fr; }
  .periyodik-panel{ position:static; width:100%; }
}

@media (max-width: 768px){
  .periyodik-form{ grid-template-columns:1fr; }
  .periyodik-panel{ width:100%; padding:12px; }
}

/* --- F91 çıktı bağlantısı --- */
.periyodik-detay > .buton-mini + summary.buton-mini{
  margin-top:4px;
}

/* --- Genel sadeleştirme: üst başlık varsa alttaki tekrar açıklama panelini azalt --- */
body:not(.menu-dashboard) .anasayfa-hero{
  display:none !important;
}

/* --- Bakım Planlama sade görünüm --- */
.menu-bakim-planlama .sayfa{
  padding-top:12px;
}
.kpi-kompakt-grid{
  margin-bottom:10px;
}
.kpi-kompakt{
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(42,44,49,.72), rgba(24,25,28,.64));
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}
.kpi-kompakt .kpi-baslik{
  font-size:12px;
  opacity:.82;
}
.kpi-kompakt .kpi-deger{
  font-size:28px;
  line-height:1.1;
  margin-top:4px;
}
.bakim-kontrol-karti{
  padding:12px;
}
.bakim-filtre{
  display:grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px,.7fr) minmax(150px,.7fr) auto auto;
  gap:8px;
  align-items:center;
}
.bakim-aksiyonlar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--kyass-kenar);
}
.bakim-ust-detay{
  position:relative;
}
.bakim-ust-detay > summary{
  list-style:none;
  cursor:pointer;
}
.bakim-ust-detay > summary::-webkit-details-marker{ display:none; }
.bakim-ust-detay[open] > summary{
  background:rgba(243,111,33,.16);
  border-color:rgba(243,111,33,.35);
}
.periyodik-form-sade{
  position:absolute;
  z-index:60;
  left:0;
  top:48px;
  width:min(760px, calc(100vw - 60px));
  padding:12px;
  border:1px solid var(--kyass-kenar);
  border-radius:16px;
  background:rgba(18,18,20,.98);
  box-shadow:var(--golge);
}
.sade-baslik{
  margin-bottom:8px;
}
.sade-baslik .kart-baslik{
  margin:0;
}
.bakim-liste-karti{
  padding:12px;
}
.panel-baslik-sade{
  font-weight:700;
  margin-bottom:10px;
  color:var(--kyass-yazi);
}
.periyodik-panel{
  position:fixed !important;
  top:84px !important;
  right:22px !important;
  bottom:auto !important;
  max-height:calc(100dvh - 120px);
  overflow:auto;
  z-index:140;
}
.periyodik-detay[open] > summary{
  background:rgba(243,111,33,.16);
  border-color:rgba(243,111,33,.35);
}
html[data-theme="light"] body .kpi-kompakt{
  background:#fff;
  border-color:#e5e7eb;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
html[data-theme="light"] body .periyodik-form-sade{
  background:#fff;
}

@media (max-width: 1100px){
  .bakim-filtre{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width: 768px){
  .bakim-filtre{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .bakim-aksiyonlar{
    flex-direction:column;
  }
  .periyodik-form-sade,
  .periyodik-panel{
    position:static !important;
    width:100% !important;
    max-height:none;
    margin-top:8px;
  }
  .kpi-kompakt-grid{
    grid-template-columns:1fr 1fr !important;
  }
}


/* --- Toplu bildirim sistemi --- */
.bildirim-kapsayici{ position:relative; display:inline-flex; align-items:center; }
.bildirim-btn{
  position:relative;
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid var(--kyass-kenar);
  background:rgba(42,44,49,.45);
  color:var(--kyass-yazi);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.bildirim-btn:hover{ background:rgba(42,44,49,.78); }
.bildirim-ikon{ font-size:18px; line-height:1; }
.bildirim-sayac{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--kyass-kirmizi), var(--kyass-turuncu));
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.bildirim-sayac.gizli{ display:none; }
.bildirim-panel{
  position:absolute;
  top:48px;
  right:0;
  z-index:260;
  width:360px;
  max-width:calc(100vw - 24px);
  padding:10px;
  border-radius:18px;
  border:1px solid var(--kyass-kenar);
  background:rgba(18,18,20,.97);
  box-shadow:0 18px 44px rgba(0,0,0,.45);
  backdrop-filter:blur(12px);
}
.bildirim-panel.gizli{ display:none; }
.bildirim-panel-baslik{
  padding:4px 6px 10px;
  font-weight:800;
  font-size:14px;
}
.bildirim-panel-satir{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px;
  border-radius:14px;
  color:var(--kyass-yazi);
  text-decoration:none;
  border:1px solid transparent;
}
.bildirim-panel-satir:hover{ background:rgba(42,44,49,.55); border-color:var(--kyass-kenar); }
.bildirim-nokta{ width:10px; height:10px; border-radius:50%; margin-top:5px; background:#8ea0b8; flex:0 0 auto; }
.bildirim-panel-satir.kritik .bildirim-nokta{ background:#ff5d52; }
.bildirim-panel-satir.uyari .bildirim-nokta{ background:#f1c40f; }
.bildirim-panel-satir.bilgi .bildirim-nokta{ background:#4aa3ff; }
.bildirim-metin{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.bildirim-metin b{ font-size:13px; }
.bildirim-metin small{ font-size:12px; color:var(--kyass-soluk); line-height:1.35; }
.bildirim-bos{ padding:12px 8px; color:var(--kyass-soluk); font-size:13px; }
.bildirim-toast{
  width:340px;
  max-width:calc(100vw - 36px);
  text-align:left;
  border-radius:18px;
  border:1px solid var(--kyass-kenar);
  background:rgba(18,18,20,.96);
  color:var(--kyass-yazi);
  box-shadow:0 16px 40px rgba(0,0,0,.42);
  padding:12px 14px;
  cursor:pointer;
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  gap:4px;
  animation:bildirim-giris .28s ease-out;
}
.bildirim-toast b{ font-size:13px; }
.bildirim-toast span{ font-size:12px; color:var(--kyass-soluk); line-height:1.35; }
.bildirim-toast.kritik{ border-color:rgba(231,76,60,.55); }
.bildirim-toast.uyari{ border-color:rgba(241,196,15,.55); }
.bildirim-toast.bilgi{ border-color:rgba(74,163,255,.45); }
.bildirim-toast.cikiyor{ opacity:0; transform:translateX(20px); transition:.32s ease; }
@keyframes bildirim-giris{ from{ opacity:0; transform:translateX(24px); } to{ opacity:1; transform:translateX(0); } }
html[data-theme="light"] body .bildirim-btn{ background:#fff; color:#1f2530; }
html[data-theme="light"] body .bildirim-panel,
html[data-theme="light"] body .bildirim-toast{ background:#fff; color:#1f2530; border-color:#e1e5ec; box-shadow:0 16px 36px rgba(31,37,48,.16); }
html[data-theme="light"] body .bildirim-metin small,
html[data-theme="light"] body .bildirim-toast span,
html[data-theme="light"] body .bildirim-bos{ color:#667085; }

@media (max-width:768px){
  .bildirim-btn{ width:38px; height:38px; border-radius:13px; }
  .bildirim-panel{
    position:fixed;
    top:62px;
    right:10px;
    left:10px;
    width:auto;
    max-width:none;
  }
  .bildirim-toast{
    width:100%;
    max-width:none;
  }
}



/* --- Bildirim katmanı --- */
.bildirim-kapsayici{ position:relative; z-index:7000; }
.bildirim-panel-global{
  position:fixed;
  top:64px;
  right:18px;
  left:auto;
  z-index:2147483000;
  width:380px;
  max-width:calc(100vw - 36px);
  max-height:calc(100vh - 90px);
  overflow:auto;
  background:rgba(18,18,20,1);
  box-shadow:0 28px 90px rgba(0,0,0,.78);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:none;
  isolation:isolate;
}
.bildirim-panel-global::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:inherit;
  z-index:-1;
}
.bildirim-toast-alani{
  position:fixed;
  top:auto;
  bottom:22px;
  right:22px;
  left:auto;
  z-index:2147482990;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-end;
  pointer-events:none;
}
.bildirim-toast{ animation:bildirim-giris-alt .28s ease-out; }
.bildirim-toast.cikiyor{ opacity:0; transform:translateY(14px); transition:.32s ease; }
@keyframes bildirim-giris-alt{
  from{ opacity:0; transform:translateY(24px); }
  to{ opacity:1; transform:translateY(0); }
}
html[data-theme="light"] body .bildirim-panel-global{
  background:#fff;
  border-color:#d7dce5;
  box-shadow:0 28px 90px rgba(31,37,48,.30);
}
@media (max-width:768px){
  .bildirim-panel-global{
    top:58px;
    left:10px;
    right:10px;
    width:auto;
    max-width:none;
    max-height:calc(100dvh - 150px);
  }
  .bildirim-toast-alani{
    top:auto;
    bottom:calc(86px + env(safe-area-inset-bottom));
    right:10px;
    left:10px;
    align-items:stretch;
  }
}

/* KYASS - Makineler gelişmiş filtre ve görünür işlem butonları */
.filtre-karti{ margin-bottom:12px; }
.arama-gelismis{ display:block; width:100%; }
.filtre-grid{
  display:grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(160px,.8fr) minmax(160px,.8fr) minmax(150px,.7fr) auto;
  gap:12px;
  align-items:end;
}
.filtre-alan{ min-width:0; }
.filtre-alan .etiket{ display:block; margin-bottom:6px; }
.filtre-butonlar{ display:flex; gap:8px; align-items:center; justify-content:flex-end; }
.liste-ust-islemler{ align-items:flex-start; }
.liste-aksiyonlar{ margin-bottom:0; flex-wrap:wrap; justify-content:flex-end; }
.aktif-filtre-sade{ margin:0; }
.islem-hucre{ white-space:nowrap; }
.islem-hucre .buton-mini{ margin-left:0; margin-right:6px; margin-bottom:4px; }
@media (max-width: 1100px){
  .filtre-grid{ grid-template-columns:1fr 1fr; }
  .filtre-genel{ grid-column:1 / -1; }
  .filtre-butonlar{ justify-content:flex-start; }
}
@media (max-width: 640px){
  .filtre-grid{ grid-template-columns:1fr; }
  .liste-ust-islemler{ flex-direction:column; }
  .liste-aksiyonlar{ width:100%; justify-content:flex-start; }
}

/* Mobil açık tema: alt menü yazı kontrastı */
@media (max-width:768px){
  html[data-theme="light"] body .mobil-alt-menu{
    background:#ffffff !important;
    border-top:1px solid #d1d5db !important;
    box-shadow:0 -8px 24px rgba(15,23,42,.10) !important;
  }
  html[data-theme="light"] body .mobil-menu-ogesi,
  html[data-theme="light"] body .mobil-menu-yazi,
  html[data-theme="light"] body .mobil-menu-ikon{
    color:#111827 !important;
  }
  html[data-theme="light"] body .mobil-menu-ogesi.aktif{
    background:#fff7ed !important;
    color:#9a3412 !important;
    border-color:#fed7aa !important;
  }
  html[data-theme="light"] body .mobil-menu-ogesi.aktif .mobil-menu-yazi,
  html[data-theme="light"] body .mobil-menu-ogesi.aktif .mobil-menu-ikon{
    color:#9a3412 !important;
  }
  html[data-theme="light"] body .mobil-cikis,
  html[data-theme="light"] body .mobil-cikis .mobil-menu-yazi,
  html[data-theme="light"] body .mobil-cikis .mobil-menu-ikon{
    color:#991b1b !important;
  }
}

/* Sade tema uyumlu menü ikonları */
.kyass-menu-svg{width:20px;height:20px;display:block;fill:currentColor;transition:color .18s ease, transform .18s ease;}
.menu-ikon,.mobil-menu-ikon{display:inline-flex;align-items:center;justify-content:center;color:currentColor;}
.menu-ogesi:hover .kyass-menu-svg,.menu-ogesi.aktif .kyass-menu-svg{transform:translateY(-1px);}
html[data-theme="light"] body .menu-ogesi{color:#374151;}
html[data-theme="light"] body .menu-ogesi.aktif{color:#d52b1e;}
html[data-theme="light"] body .mobil-menu-ogesi{color:#374151;}
html[data-theme="light"] body .mobil-menu-ogesi.aktif{color:#d52b1e;}

/* Kullanıcı rahatlığı: görsel önizleme, bakım özeti, yapılacaklar */
.makine-thumb{width:58px;height:58px;object-fit:cover;border-radius:12px;border:1px solid rgba(148,163,184,.28);background:#f8fafc;display:block;}
.makine-thumb-link{display:inline-flex;vertical-align:middle;text-decoration:none;margin-right:6px;}
.gorsel-mini-hucre{display:flex;align-items:center;gap:8px;min-width:135px;}
.gorsel-yok-mini{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:12px;border:1px dashed rgba(148,163,184,.55);font-size:11px;color:var(--kyass-soluk);text-align:center;background:rgba(148,163,184,.08);}
.makine-kod-link{font-weight:800;}
.bakim-ozet-kutu{margin-top:18px;padding-top:16px;border-top:1px solid rgba(148,163,184,.18);}
.bakim-gecmis-listesi{display:grid;gap:8px;margin-top:12px;}
.bakim-gecmis-satir{display:grid;grid-template-columns:110px 1fr;gap:4px 12px;padding:10px 12px;border:1px solid rgba(148,163,184,.18);border-radius:12px;background:rgba(148,163,184,.06);}
.bakim-gecmis-satir small{grid-column:2;color:var(--kyass-soluk);}
.mini-bos{padding:10px 0;}
.yapilacak-karti{margin-top:16px;margin-bottom:16px;}
.yapilacak-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.yapilacak-satir{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 10px;align-items:center;padding:14px;border:1px solid rgba(148,163,184,.18);border-radius:16px;text-decoration:none;color:inherit;background:rgba(148,163,184,.06);}
.yapilacak-satir b{grid-row:1/3;font-size:28px;line-height:1;color:#f36f21;min-width:42px;text-align:center;}
.yapilacak-satir span{font-weight:800;}
.yapilacak-satir small{color:var(--kyass-soluk);}
.qr-sayfa-yeni{max-width:560px;}
.qr-gorsel-ust{margin:14px 0;}
.qr-giris-link{width:100%;justify-content:center;margin-top:12px;}
.qr-bilgi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.qr-alan-genis{grid-column:1/-1;}
.qr-yazdir-butonlari{margin-top:8px;flex-wrap:wrap;}
html[data-theme="light"] body .gorsel-yok-mini,html[data-theme="light"] body .yapilacak-satir,html[data-theme="light"] body .bakim-gecmis-satir{background:#f8fafc;border-color:#d1d5db;color:#111827;}

@media (max-width:980px){.yapilacak-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:720px){
  .yapilacak-grid{grid-template-columns:1fr;}
  .qr-bilgi-grid{grid-template-columns:1fr;}
  .bakim-gecmis-satir{grid-template-columns:1fr;}
  .bakim-gecmis-satir small{grid-column:auto;}
  table.mobil-kart-tablo{border-collapse:separate;border-spacing:0 10px;min-width:0!important;width:100%;}
  table.mobil-kart-tablo thead{display:none;}
  table.mobil-kart-tablo tbody,table.mobil-kart-tablo tr,table.mobil-kart-tablo td{display:block;width:100%;}
  table.mobil-kart-tablo tr{padding:12px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:rgba(15,23,42,.18);box-shadow:0 10px 24px rgba(0,0,0,.10);}
  html[data-theme="light"] body table.mobil-kart-tablo tr{background:#fff;border-color:#e5e7eb;box-shadow:0 10px 24px rgba(15,23,42,.08);}
  table.mobil-kart-tablo td{border:0!important;padding:7px 0!important;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
  table.mobil-kart-tablo td::before{content:attr(data-label);font-weight:800;color:var(--kyass-soluk);min-width:105px;}
  table.mobil-kart-tablo td.gorsel-mini-hucre{align-items:center;}
  table.mobil-kart-tablo td.islem-hucre{justify-content:flex-start;flex-wrap:wrap;}
  table.mobil-kart-tablo td.islem-hucre::before{width:100%;min-width:100%;}
}
.form-yardim{font-size:12px;line-height:1.35;color:var(--kyass-soluk);margin-top:6px;max-width:520px;}
html[data-theme="light"] body .form-yardim{color:#4b5563;}

/* Daha kurumsal dashboard ve kompakt eksik bilgi KPI'ları */
.dashboard-hero-pro{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;background:radial-gradient(520px 180px at 0% 0%, rgba(243,111,33,.18), transparent 65%), linear-gradient(135deg, rgba(17,24,39,.96), rgba(30,41,59,.92));border:1px solid rgba(255,255,255,.10);}
.hero-eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:#fdba74;margin-bottom:6px;}
.hero-aksiyonlar{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.dashboard-kpi-pro{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:16px 0;}
.kpi-pro{position:relative;overflow:hidden;text-decoration:none;color:inherit;padding:18px;border-radius:20px;border:1px solid rgba(148,163,184,.18);background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));box-shadow:0 16px 34px rgba(0,0,0,.16);}
.kpi-pro::after{content:"";position:absolute;right:-30px;top:-30px;width:96px;height:96px;border-radius:50%;background:currentColor;opacity:.08;}
.kpi-pro span{display:block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--kyass-soluk);}
.kpi-pro b{display:block;font-size:34px;line-height:1.05;margin-top:8px;}
.kpi-pro small{display:block;color:var(--kyass-soluk);margin-top:4px;}
.kpi-toplam{color:#f8fafc}.kpi-aktif{color:#22c55e}.kpi-disarida{color:#f59e0b}.kpi-bakim{color:#60a5fa}.kpi-eksik{color:#f97316}
.dashboard-akis-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:16px;margin-bottom:16px;}
.dashboard-panel{min-height:100%;}
.oncelik-listesi{display:grid;gap:10px;}
.oncelik-satir{display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;gap:3px 12px;align-items:center;padding:12px 14px;border-radius:16px;border:1px solid rgba(148,163,184,.18);background:rgba(148,163,184,.06);text-decoration:none;color:inherit;}
.oncelik-satir b{grid-row:1/3;font-size:28px;line-height:1;color:#f36f21;text-align:center;}
.oncelik-satir span{font-weight:900;}.oncelik-satir small{color:var(--kyass-soluk);}
.dashboard-alt-grid{align-items:start;}
.kalite-kpi-grid,.grid-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.kalite-kpi-grid .kpi-kart{min-height:auto;padding:14px 16px;border-radius:18px;}
.kalite-kpi-grid .kpi-kart b{font-size:28px;}.kalite-kpi-grid .kpi-kart span{font-size:12px;}
.tanim-form{align-items:flex-end;}.tanim-form .girdi{min-width:0;flex:1;}.tanim-tablosu form{display:inline-flex;margin:0 4px 0 0;}
html[data-theme="light"] body .dashboard-hero-pro{background:radial-gradient(520px 180px at 0% 0%, rgba(243,111,33,.14), transparent 65%), linear-gradient(135deg,#fff,#f8fafc);border-color:#e5e7eb;color:#111827;}
html[data-theme="light"] body .hero-eyebrow{color:#c2410c;}html[data-theme="light"] body .kpi-pro,html[data-theme="light"] body .oncelik-satir{background:#fff;border-color:#e5e7eb;box-shadow:0 14px 30px rgba(15,23,42,.08);}html[data-theme="light"] body .kpi-toplam{color:#111827;}
@media(max-width:1180px){.dashboard-kpi-pro{grid-template-columns:repeat(3,minmax(0,1fr));}.dashboard-akis-grid{grid-template-columns:1fr;}.kalite-kpi-grid,.grid-5{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:720px){.dashboard-hero-pro{align-items:flex-start;flex-direction:column;}.hero-aksiyonlar{width:100%;justify-content:flex-start}.dashboard-kpi-pro,.kalite-kpi-grid,.grid-5{grid-template-columns:repeat(2,minmax(0,1fr));}.kpi-pro{padding:14px}.kpi-pro b{font-size:28px}.oncelik-satir{grid-template-columns:48px 1fr;}}

/* Aşama 4 — Makineler merkez görünümü ve sade navigasyon */
.makine-gorunum-cubugu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.makine-gorunum {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--kyass-kenar);
  border-radius: 10px;
  background: var(--kyass-gri);
  color: var(--kyass-yazi);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.makine-gorunum:hover { transform: translateY(-1px); border-color: var(--kyass-kirmizi); }
.makine-gorunum b { font-size: 1.25rem; line-height: 1; }
.makine-gorunum.aktif { border-color: var(--kyass-kirmizi); box-shadow: inset 0 0 0 1px var(--kyass-kirmizi); }
.makine-gorunum-uyari span::before { content: "⚠ "; }
.menu-grup-baslik {
  margin: 12px 10px 5px;
  padding: 8px 9px 5px;
  border-top: 1px solid var(--kyass-kenar);
  color: var(--kyass-soluk);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.menu-ogesi-alt { padding-left: 18px; }
@media (max-width: 980px) {
  .makine-gorunum-cubugu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .makine-gorunum-cubugu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .makine-gorunum { min-height: 48px; padding: 8px 10px; }
}

/* Aşama 5 — Makine detayında katmanlı görünüm, bakımda seçime bağlı işlemler */
.detay-sekme-cubugu{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:5px;border:1px solid var(--kyass-kenar);border-radius:12px;background:var(--kyass-gri)}
.detay-sekme{appearance:none;border:0;border-radius:9px;padding:9px 14px;background:transparent;color:var(--kyass-soluk);font:inherit;font-weight:800;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.detay-sekme span{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;margin-left:6px;padding:0 6px;border-radius:999px;background:rgba(148,163,184,.16);font-size:.76rem}
.detay-sekme.aktif{background:var(--kyass-kirmizi);color:#fff;box-shadow:0 5px 14px rgba(213,43,30,.2)}
.detay-sekme-panel{display:none}.detay-sekme-panel.aktif{display:block}
.detay-tek-kolon{grid-template-columns:minmax(0,1fr)}
.detay-tek-kolon>.kart{max-width:none}
.detay-gecmis-kart .timeline{margin-bottom:12px}
.bakim-secim-cubugu{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:12px;padding:12px;border:1px solid var(--kyass-kenar);border-radius:12px;background:rgba(243,111,33,.08)}
.bakim-secim-cubugu.gizli{display:none}
.bakim-secim-ozet{white-space:nowrap;padding:9px 4px;font-weight:800}.bakim-secim-ozet b{color:#f36f21;font-size:1.15rem}
.bakim-secim-cubugu .bakim-aksiyonlar{margin:0;display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.bakim-secimli-form{min-width:min(720px,80vw)}
.bakim-secim-hucre{width:42px;text-align:center!important}.bakim-secim-hucre input{width:17px;height:17px;cursor:pointer}
@media(max-width:760px){.detay-sekme-cubugu{display:grid;grid-template-columns:1fr 1fr 1fr}.detay-sekme{padding:9px 7px;font-size:.82rem}.bakim-secim-cubugu{flex-direction:column}.bakim-secim-cubugu .bakim-aksiyonlar{justify-content:flex-start;width:100%}.bakim-secimli-form{min-width:min(560px,88vw)}}

/* Bakım açılır panelleri — dışarı tıklama/çarpı ve viewport taşma düzeltmesi */
.bakim-ust-detay .periyodik-form-sade,
.periyodik-detay .periyodik-panel{
  box-sizing:border-box;
}
.bakim-ust-detay .periyodik-form-sade{
  position:fixed;
  left:50%;
  right:auto;
  top:96px;
  transform:translateX(-50%);
  width:min(760px, calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 128px);
  overflow:auto;
  z-index:160;
  padding-top:42px;
}
.periyodik-detay .periyodik-panel{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  top:84px !important;
  transform:translateX(-50%);
  width:min(760px, calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 116px);
  overflow:auto;
  z-index:160;
  padding-top:42px;
}
.bakim-panel-kapat{
  position:absolute;
  top:9px;
  right:10px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--kyass-kenar);
  border-radius:8px;
  background:transparent;
  color:var(--kyass-yazi);
  font:700 20px/1 Arial,sans-serif;
  cursor:pointer;
  z-index:3;
}
.bakim-panel-kapat:hover{
  background:rgba(148,163,184,.14);
}
@media(max-width:768px){
  .bakim-ust-detay .periyodik-form-sade,
  .periyodik-detay .periyodik-panel{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    top:72px !important;
    transform:none;
    width:auto !important;
    max-width:none;
    max-height:calc(100dvh - 92px);
    margin:0;
  }
}

/* v5.2 — Bakım modal görünürlüğü ve taşmasız yerleşim */
.bakim-modal-overlay{
  position:fixed;
  inset:0;
  z-index:150;
  background:rgba(0,0,0,.52);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease, visibility .14s ease;
}
.bakim-modal-overlay.aktif{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.bakim-ust-detay .periyodik-form-sade,
.periyodik-detay .periyodik-panel{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  top:50% !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  width:min(900px, calc(100vw - 40px)) !important;
  max-width:calc(100vw - 40px) !important;
  max-height:calc(100dvh - 40px) !important;
  margin:0 !important;
  padding:48px 20px 20px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  z-index:160 !important;
  border:1px solid #454954;
  border-radius:18px;
  background:#17191d;
  color:var(--kyass-yazi);
  box-shadow:0 24px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.04) inset;
}

/* Seçilenleri Planla / Bakımı Tamamla: içerik panel genişliğine göre sarılır. */
.bakim-ust-detay .periyodik-form-sade{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:end;
  min-width:0;
}
.bakim-ust-detay .periyodik-form-sade > *{min-width:0;}
.bakim-ust-detay .periyodik-form-sade .alan-genis{grid-column:span 2;}
.bakim-ust-detay .periyodik-form-sade .periyodik-secim{align-self:center;padding-bottom:8px;}

/* Plan / İşlem paneli: yatay taşma üretmeyen kontrollü form ızgarası. */
.periyodik-detay .periyodik-satir-form{
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
}
.periyodik-detay .periyodik-satir-form > *{min-width:0;}
.periyodik-detay .periyodik-satir-form .girdi{min-width:0;max-width:100%;}

html[data-theme="light"] body .bakim-modal-overlay{
  background:rgba(15,23,42,.38);
}
html[data-theme="light"] body .bakim-ust-detay .periyodik-form-sade,
html[data-theme="light"] body .periyodik-detay .periyodik-panel{
  background:#ffffff;
  color:#111827;
  border-color:#cbd5e1;
  box-shadow:0 24px 70px rgba(15,23,42,.24), 0 0 0 1px rgba(255,255,255,.9) inset;
}

@media(max-width:760px){
  .bakim-ust-detay .periyodik-form-sade,
  .periyodik-detay .periyodik-panel{
    left:50% !important;
    right:auto !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
    padding:44px 14px 16px !important;
  }
  .bakim-ust-detay .periyodik-form-sade,
  .periyodik-detay .periyodik-satir-form{
    grid-template-columns:1fr;
  }
  .bakim-ust-detay .periyodik-form-sade .alan-genis{grid-column:auto;}
}


/* F91 hazırlama ve A4 yazdırma önizlemesi */
.f91-hazirla-form{position:fixed;z-index:1002;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1120px,calc(100vw - 40px));max-height:90vh;overflow:auto;background:var(--kart-bg,#fff);border:1px solid var(--kenar,#d8dde6);border-radius:14px;padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.f91-hazirla-baslik{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.f91-hazirla-baslik span{display:block;font-size:12px;opacity:.72;margin-top:4px}.f91-hizli-secimler{display:flex;gap:8px;flex-wrap:wrap}.f91-islem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}.f91-islem-satir{border:1px solid var(--kenar,#d8dde6);border-radius:8px;padding:7px 9px;min-width:0}.f91-islem-ad{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.25}.f91-islem-ad b{min-width:18px}.f91-sonuc-secim{display:flex;gap:9px;flex-wrap:wrap;margin-top:6px;font-size:11px}.f91-sonuc-secim label{display:flex;align-items:center;gap:3px}.f91-hazirla-alt{display:flex;justify-content:flex-end;margin-top:12px}
.f91-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.f91-preview-actions{display:flex;gap:8px}.f91-preview-actions form{margin:0}.f91-preview-wrap{display:flex;flex-direction:column;align-items:center;gap:18px}

/* Şablonun gerçek baskı oranları: A4 portrait, %43 ölçek, A1:X88. */
.f91-print-page{width:210mm;height:297mm;min-height:297mm;box-sizing:border-box;background:#fff;color:#111;padding:10mm 15mm 10mm 10mm;box-shadow:0 4px 24px rgba(0,0,0,.16);font-family:Calibri,Arial,sans-serif;overflow:hidden}
.f91-machine-row{height:131.45mm;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:8.2mm;padding-left:6.4mm;align-items:start;overflow:hidden}
.f91-machine-row+.f91-machine-row{margin-top:13.1mm;border:0;padding-top:0}
.f91-form-card{height:131.45mm;min-width:0;box-sizing:border-box;padding-top:2.18mm;overflow:hidden}

/* Excel: C2:D6 logo, E2:I6 başlık, J2:L6 doküman bilgileri. */
.f91-doc-head{display:grid;grid-template-columns:19.25% 51.85% 28.90%;height:16.56mm;box-sizing:border-box;border:0.22mm solid #111;overflow:hidden}
.f91-logo-cell,.f91-title{display:flex;align-items:center;justify-content:center;border-right:0.22mm solid #111;min-width:0;overflow:hidden}
.f91-logo-cell img{display:block;max-width:80%;max-height:13.5mm;object-fit:contain}
.f91-title{padding:0 .55mm;text-align:center;font-weight:700;font-size:4.3pt;line-height:1;white-space:nowrap}
.f91-doc-meta{display:grid;grid-template-rows:repeat(5,1fr);font-size:4.3pt;font-weight:700;line-height:1;min-width:0;overflow:hidden}
.f91-doc-meta>div{display:flex;align-items:center;padding:0 .45mm;border-bottom:0.22mm solid #111;white-space:nowrap;overflow:hidden}
.f91-doc-meta>div:last-child{border-bottom:0}

/* Excel satır 7 boşluk, satır 8:13 bilgi tablosu. */
.f91-info-table,.f91-task-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0}
.f91-info-table{margin-top:2.37mm;font-size:4.3pt}
.f91-info-table tr{height:3.28mm}
.f91-info-table th,.f91-info-table td{box-sizing:border-box;border:0.22mm solid #111;padding:0 .45mm;height:3.28mm;line-height:1;vertical-align:middle;text-align:left;white-space:nowrap;overflow:hidden}
.f91-info-table th{width:48.15%;font-weight:700;font-size:4.3pt}
.f91-info-table td{font-size:5.15pt;font-weight:400}

/* Excel satır 14 boşluk, satır 15:41 bakım tablosu. Tüm veri satırları sabit yükseklikte. */
.f91-task-table{margin-top:3.28mm;font-size:4.3pt}
.f91-task-table tr{height:3.28mm}
.f91-task-table th,.f91-task-table td{box-sizing:border-box;border:0.22mm solid #111;padding:0 .30mm;height:3.28mm;line-height:1;vertical-align:middle;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:clip}
.f91-task-table td:nth-child(2),.f91-task-table th:nth-child(2){text-align:left}
.f91-task-table .f91-no{width:9.60%}
.f91-task-table th:nth-last-child(-n+3){width:9.63%}
.f91-task-table td:nth-last-child(-n+3){font-size:5.15pt;font-weight:400}
.f91-task-table tbody tr:last-child{height:2.18mm}
.f91-task-table tbody tr:last-child td{height:2.18mm}
.f91-na-note{text-align:left!important;font-size:4.3pt!important;font-weight:400!important;padding-left:.4mm!important}

body.tema-acik .f91-hazirla-form{background:#fff;color:#1d2430;border-color:#cbd3df}body:not(.tema-acik) .f91-hazirla-form{background:#171b22;color:#f2f4f7;border-color:#39414d}
@media(max-width:900px){.f91-islem-grid{grid-template-columns:1fr}.f91-hazirla-form{width:calc(100vw - 24px)}.f91-preview-wrap{align-items:flex-start;overflow-x:auto;padding-bottom:10px}}
@media print{@page{size:A4 portrait;margin:0}.no-print,.yan-menu,.ust-bar,.mobil-alt-menu,.bildirim-panel,.bildirim-toast-alani{display:none!important}.app-shell,.icerik,.sayfa{display:block!important;margin:0!important;padding:0!important;width:auto!important;max-width:none!important;background:#fff!important}.f91-preview-wrap{display:block}.f91-print-page{width:210mm;height:297mm;min-height:297mm;margin:0;box-shadow:none;page-break-after:always;break-after:page}.f91-print-page:last-child{page-break-after:auto;break-after:auto}}

/* F91 v6.3 — şablonun gerçek kolon oranları ve N.A. not satırı */
.f91-task-table col.f91-col-no{width:9.63%}
.f91-task-table col.f91-col-islem{width:61.47%}
.f91-task-table col.f91-col-sonuc{width:9.63%}
.f91-task-table .f91-no{width:auto}
.f91-task-table .f91-na-note{border-left:0!important;border-right:0!important}
