/* Kurumsal renkler: logo altını (#DCA53C) ve RAL 7016 antrasit gri (#293133). */
:root {
  --antrasit: #293133; --antrasit-koyu: #1b2123; --antrasit-acik: #3d494b;
  --altin: #dca53c; --altin-koyu: #b98427; --altin-acik: #efca7a;

  --zemin: #f2f0ea; --kart: #ffffff; --yazi: #232b2d; --soluk: #68726f; --cizgi: #ddd9cf;
  --vurgu: #b98427; --tehlike: #b3392f; --basari: #2f7d4f; --uyari: #b98427;
  --golge: 0 1px 3px rgba(41,49,51,.10);
  --logo-saydamlik: .16;
  --ust-gradyan: linear-gradient(120deg, var(--antrasit-koyu) 0%, var(--antrasit) 55%, var(--antrasit-acik) 100%);
  --altin-gradyan: linear-gradient(180deg, #ecc468 0%, #dca53c 55%, #c58f2c 100%);
  --altin-cizgi: linear-gradient(90deg, transparent, var(--altin) 20%, var(--altin-acik) 50%, var(--altin) 80%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="acik"]) {
    --zemin: #1b2123; --kart: #262e30; --yazi: #ecefee; --soluk: #9aa5a2; --cizgi: #3a4547;
    --vurgu: #dca53c; --tehlike: #e0665b; --basari: #5cb77f; --uyari: #dca53c;
    --golge: none; --logo-saydamlik: .22;
  }
}
/* Kullanıcının seçtiği koyu tema (sistemden bağımsız) */
:root[data-tema="koyu"] {
  --zemin: #1b2123; --kart: #262e30; --yazi: #ecefee; --soluk: #9aa5a2; --cizgi: #3a4547;
  --vurgu: #dca53c; --tehlike: #e0665b; --basari: #5cb77f; --uyari: #dca53c;
  --golge: none; --logo-saydamlik: .22;
  color-scheme: dark;
}
:root[data-tema="acik"] { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--zemin); color: var(--yazi); min-height: 100vh;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
/* Boş alanlarda büyük, çizgili logo (kartların arkasında görünür) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("logo-cizgi.svg") center 55% / min(92vw, 78vh) no-repeat;
  opacity: var(--logo-saydamlik);
}
#uygulama, #bildirim { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 1.25rem; margin: 0 0 .75rem; }
h2 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.soluk { color: var(--soluk); font-size: .9rem; }
.sag { margin-left: auto; }

/* Üst çubuk ve gezinme */
.cevrimdisi-serit { position: sticky; top: 0; z-index: 6; background: #b8860b; color: #fff; font-weight: 600; text-align: center;
  padding: .45rem .8rem; font-size: .9rem; }
.ust { position: sticky; top: 0; z-index: 5; background: var(--ust-gradyan); color: #fff;
  display: flex; align-items: center; gap: .75rem; padding: .55rem 16px; padding-top: calc(.55rem + env(safe-area-inset-top));
  box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ust::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--altin-cizgi); }
.ust .marka { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: .12em; color: var(--altin-acik); }
.ust .marka img { height: 28px; width: auto; display: block; }
.ust .kisi { margin-left: auto; font-size: .85rem; text-align: right; line-height: 1.2; }
.ust .kisi .unvan { color: var(--altin-acik); opacity: .9; font-size: .78rem; }
.ust button { background: rgba(255,255,255,.08); border: 1px solid rgba(220,165,60,.55); color: var(--altin-acik);
  border-radius: 8px; padding: .3rem .65rem; cursor: pointer; }
nav.sekmeler { display: flex; background: var(--kart); border-bottom: 1px solid var(--cizgi); position: sticky; top: 0; overflow-x: auto; }
nav.sekmeler a { flex: 1 0 auto; text-align: center; padding: .7rem 1rem; text-decoration: none; color: var(--soluk);
  border-bottom: 3px solid transparent; font-weight: 600; white-space: nowrap; }
nav.sekmeler a.secili { color: var(--yazi); border-image: var(--altin-cizgi) 1; border-bottom: 3px solid var(--altin); }
.icerik { max-width: 880px; margin: 0 auto; padding: 16px; }
.icerik.genis { max-width: 1500px; }   /* kesim / malzeme listesi: tüm sütunlar tek ekranda */
.malzeme-grid td { padding: .1rem .2rem; vertical-align: middle; }
.malzeme-grid select { min-height: 30px; padding: .1rem .2rem; font-size: .85rem; border: 0; background: var(--kart); color: var(--metin); max-width: 130px; }
.malzeme-grid input { background: var(--kart); color: var(--metin); }
.malzeme-grid select option { background: var(--kart); color: var(--metin); }
.malzeme-grid tr.soluk-satir input, .malzeme-grid tr.soluk-satir select { opacity: .7; }
.olcu-hucre { display: inline-flex; align-items: center; gap: .15rem; }

/* Kartlar */
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px; box-shadow: var(--golge); }
.kart.tikla { cursor: pointer; transition: border-color .15s, transform .15s; }
.kart.tikla:hover { border-color: var(--altin); }
.kart.tikla:active { transform: scale(.995); }
.kart .baslik { font-weight: 650; }
.kart .alt { color: var(--soluk); font-size: .88rem; margin-top: 2px; }
.satir { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.etiket { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--altin) 26%, transparent), color-mix(in srgb, var(--altin) 14%, transparent));
  color: var(--vurgu); border: 1px solid color-mix(in srgb, var(--altin) 40%, transparent); white-space: nowrap; }
.etiket.uyari { color: var(--uyari); }
.etiket.tehlike { background: color-mix(in srgb, var(--tehlike) 16%, transparent); color: var(--tehlike); border-color: color-mix(in srgb, var(--tehlike) 40%, transparent); }
.etiket.basari { background: color-mix(in srgb, var(--basari) 16%, transparent); color: var(--basari); border-color: color-mix(in srgb, var(--basari) 40%, transparent); }
.bos { text-align: center; color: var(--soluk); padding: 2rem 1rem; }

/* Düğmeler */
.btn { border: 1px solid var(--cizgi); background: linear-gradient(180deg, var(--kart), color-mix(in srgb, var(--kart) 88%, var(--cizgi)));
  border-radius: 10px; padding: .55rem .9rem; font-weight: 600; cursor: pointer; min-height: 44px;
  transition: filter .15s, box-shadow .15s; }
.btn:hover { filter: brightness(1.04); }
.btn.ana { background: var(--altin-gradyan); color: #20272a; border-color: #b98427; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 1px 3px rgba(0,0,0,.18); }
.btn.tehlike { color: var(--tehlike); border-color: color-mix(in srgb, var(--tehlike) 50%, var(--cizgi)); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.kucuk { min-height: 36px; padding: .3rem .7rem; font-size: .92rem; }
.eylemler { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

/* Formlar */
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; font-size: .92rem; }
input, select, textarea { width: 100%; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 10px;
  padding: .6rem .75rem; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--altin) 55%, transparent); border-color: var(--altin); }
textarea { min-height: 84px; resize: vertical; }
.hata { color: var(--tehlike); font-size: .92rem; margin-top: .6rem; min-height: 1.2em; }

/* Giriş ekranı: koyu antrasit gradyan, büyük çizgili logo */
body.giris-gorunum { background: radial-gradient(120% 90% at 50% 0%, var(--antrasit-acik) 0%, var(--antrasit) 45%, var(--antrasit-koyu) 100%); --logo-saydamlik: .34; }
.giris { max-width: 380px; margin: 9vh auto 0; padding: 0 16px; }
.giris .kart { padding: 22px; background: color-mix(in srgb, var(--antrasit-koyu) 82%, transparent); border-color: rgba(220,165,60,.45);
  color: #f2f0ea; backdrop-filter: blur(6px); }
.giris .kart input { background: rgba(255,255,255,.07); border-color: rgba(220,165,60,.35); color: #fff; }
.giris .kart label { color: var(--altin-acik); }
.giris .logo { width: 76px; display: block; margin: 0 auto 14px; }
.giris h1 { text-align: center; color: #fff; letter-spacing: .06em; }
.giris .hata { color: #ff9d92; }

/* Ayrıntı sayfası */
.geri { display: inline-block; margin-bottom: .5rem; color: var(--soluk); text-decoration: none; font-size: .92rem; }
.bilgi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem .75rem; margin: .5rem 0; }
.bilgi div span { display: block; }
.bilgi .k { color: var(--soluk); font-size: .8rem; }
.zaman { border-left: 2px solid var(--altin); margin-left: 6px; padding-left: 12px; }
.zaman > div { margin-bottom: .6rem; }

/* Pencere (açıklama / kişi seçimi) */
.perde { position: fixed; inset: 0; background: rgba(15,20,21,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.pencere { background: var(--kart); width: 100%; max-width: 520px; border-radius: 16px 16px 0 0; padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom)); border-top: 3px solid var(--altin); }
@media (min-width: 640px) { .perde { align-items: center; } .pencere { border-radius: 16px; } }

#bildirim { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 30; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 520px; }
#bildirim div { background: var(--antrasit); color: #fff; border-left: 4px solid var(--altin); padding: .65rem .9rem; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); pointer-events: auto; }
#bildirim div.hata { background: var(--tehlike); color: #fff; margin: 0; border-left-color: #fff; }

.alt-cubuk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--antrasit); color: #fff;
  border-top: 2px solid var(--altin); display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .8rem; align-items: baseline; }
.alt-cubuk-ad { color: var(--altin-acik); opacity: .85; font-size: .88rem; }
.alt-cubuk-tutar { font-weight: 700; font-size: 1.05rem; color: var(--altin-acik); }

/* Bağlantılar tıklandıktan sonra mora dönmesin */
a, a:visited { color: var(--vurgu); }
a.btn, a.btn:visited { color: var(--yazi); text-decoration: none; display: inline-flex; align-items: center; }
a.btn.ana, a.btn.ana:visited { color: #20272a; }

/* Bildirim zili */
.ust .zil { position: relative; font-size: 1.05rem; padding: .25rem .55rem; margin-left: .4rem; }
.zil-rozet { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--tehlike); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.bildirim-kilidi { z-index: 50; }

/* ---- Teklif / irsaliye belgesi (ekranda A4 benzeri; yazdırınca yalnız belge) ---- */
body.belge-gorunum { background: #e9e7e1; }
body.belge-gorunum::before { display: none; }
.belge-arac { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 10px 16px; position: sticky; top: 0; background: var(--antrasit); z-index: 5; }
.belge-arac .soluk { color: #cfd6d4; }
.belge { background: #fff; color: #1d2324; max-width: 820px; margin: 16px auto; padding: 28px 30px; box-shadow: 0 2px 12px rgba(0,0,0,.15); font-size: 12.5px; line-height: 1.4; }
.belge-ust { display: flex; align-items: flex-start; gap: 16px; border-bottom: 2px solid #dca53c; padding-bottom: 10px; }
.belge-logo { height: 52px; }
.belge-baslik { font-size: 26px; font-weight: 800; letter-spacing: .12em; color: #293133; flex: 1; align-self: center; }
.belge-bilgi { border-collapse: collapse; }
.belge-bilgi td { padding: 1px 6px 1px 0; vertical-align: top; }
.belge-bilgi td:first-child { color: #5d6765; white-space: nowrap; }
.belge-iki { display: flex; gap: 20px; justify-content: space-between; margin: 8px 0; flex-wrap: wrap; }
.belge-hak { margin: 6px 0 8px; padding-left: 16px; font-size: 10px; line-height: 1.3; color: #3c4547; column-count: 2; column-gap: 22px; }
.belge-hak li { break-inside: avoid; }
.belge-hak li { margin-bottom: 2px; }
.belge-is { font-weight: 700; margin: 6px 0; }
.belge-tablo { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.belge-tablo th { background: #293133; color: #fff; text-align: left; padding: 5px 6px; font-size: 11px; letter-spacing: .04em; }
.belge-tablo td { border-bottom: 1px solid #dedad0; padding: 4px 6px; vertical-align: top; }
.belge-tablo td.sayi, .belge-tablo th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.belge-tablo .urun { font-weight: 700; }
.belge-tablo .aciklama { color: #4a5355; font-size: 11px; white-space: pre-wrap; }
.belge-tablo tr.alt-kalem td { background: #faf8f2; }
.belge-tablo tr.alt-kalem .urun { font-weight: 600; padding-left: 14px; }
.belge-toplam { margin-left: auto; border-collapse: collapse; min-width: 300px; }
.belge-toplam td { padding: 2px 6px; text-align: right; }
.belge-toplam td:first-child { text-align: left; color: #5d6765; }
.belge-toplam tr.genel td { font-weight: 800; border-top: 1px solid #293133; color: #1d2324; }
.belge-plan, .belge-not { margin: 8px 0; }
.belge-sozlesme { margin-top: 8px; font-size: 10px; line-height: 1.3; color: #3c4547; column-count: 2; column-gap: 22px; }
.belge-sozlesme .madde-baslik { font-weight: 700; margin-top: 6px; color: #1d2324; }
.belge-imza { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; page-break-inside: avoid; }
.belge-imza > div { flex: 1; text-align: center; display: flex; flex-direction: column; }
.belge-imza .imza-bosluk { flex: 1; min-height: 26px; }
.belge-serbest > div { margin: 1px 0; }
.belge-imza .imza-baslik { font-weight: 800; margin-bottom: 4px; }
.belge-imza .imza-cizgi { margin-top: 0; min-height: 1.45em; box-sizing: border-box; border-top: 1px solid #293133; padding-top: 2px; font-size: 10px; color: #5d6765; }
.belge-alt { margin-top: 14px; text-align: right; font-size: 10px; color: #8a9391; }
@media print {
  @page { size: A4; margin: 12mm; }
  body.belge-gorunum { background: #fff; }
  .belge-arac, #bildirim { display: none !important; }
  .belge { box-shadow: none; margin: 0; max-width: none; padding: 0; }
}
body.belge-gorunum #uygulama { overflow-x: auto; }
.belge { min-width: 680px; }
.belge-ust .belge-logo { height: 52px; width: auto; flex: 0 0 auto; }
@media print { .belge { min-width: 0; } }

/* Belgeyi tek A4'e sığdırma: ölçüm yazdırma genişliğinde yapılır, yazdırırken küçültülür */
.belge.baski-olcum { width: 703px; min-width: 0; max-width: none; padding: 0; margin: 0; box-shadow: none; }
@media print {
  .belge { zoom: var(--baski-olcek, 1); width: calc(186mm / var(--baski-olcek, 1)); }
  .belge-imza { margin-top: 14px; }
}
/* Üst menü: tek satır; diğer ekranlar Menü penceresinde gruplu */
nav.sekmeler { scrollbar-width: none; }
nav.sekmeler a { flex: 1 1 auto; padding: .7rem .55rem; }
nav.sekmeler a:last-child { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { nav.sekmeler a { padding: .7rem 1rem; } nav.sekmeler a:last-child { max-width: none; } }

/* Pencere açılış / kapanış animasyonu (kısa, akışı bozmadan) */
@keyframes perde-ac { from { opacity: 0; } to { opacity: 1; } }
@keyframes perde-kapa { from { opacity: 1; } to { opacity: 0; } }
@keyframes pencere-ac { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pencere-kapa { from { opacity: 1; } to { transform: translateY(28px); opacity: 0; } }
.perde { animation: perde-ac .18s ease-out; }
.perde .pencere { animation: pencere-ac .22s cubic-bezier(.2, .8, .2, 1); transition: transform .15s ease-out; }
.perde.kapaniyor { animation: perde-kapa .16s ease-in forwards; pointer-events: none; }
.perde.kapaniyor .pencere { animation: pencere-kapa .16s ease-in forwards; }
.pencere .tutamac { width: 42px; height: 4px; border-radius: 2px; background: var(--cizgi); margin: -6px auto 10px; }
@media (min-width: 640px) { .pencere .tutamac { display: none; } }
.menu-perde .pencere a.btn { transition: transform .12s, border-color .12s; }
.menu-perde .pencere a.btn:active { transform: scale(.97); }
.kart.tikla, .btn { transition: filter .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .perde, .perde .pencere, .perde.kapaniyor, .perde.kapaniyor .pencere { animation: none; }
}
/* Uzun uyarı etiketleri ekrandan taşmasın (satıra sığmazsa alt satıra iner) */
div.etiket { display: block; width: fit-content; max-width: 100%; white-space: normal; border-radius: 10px; }
body { overflow-x: hidden; }

/* Takvim */
.takvim { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.takvim-baslik { text-align: center; font-size: .75rem; color: var(--soluk); font-weight: 600; padding: 2px 0; }
.takvim-gun { position: relative; min-height: 52px; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--kart); color: var(--yazi);
  display: flex; flex-direction: column; align-items: flex-start; padding: 4px 5px; cursor: pointer; font: inherit; }
.takvim-gun.disarda { opacity: .45; }
.takvim-gun.bugun { border-color: var(--altin); box-shadow: inset 0 0 0 1px var(--altin); }
.takvim-gun.secili { background: color-mix(in srgb, var(--altin) 18%, var(--kart)); }
.takvim-no { font-size: .85rem; font-weight: 700; }
.takvim-noktalar { display: flex; gap: 2px; margin-top: auto; flex-wrap: wrap; }
.takvim-noktalar i, .takvim-nokta { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.takvim-sayi { position: absolute; top: 3px; right: 5px; font-size: .68rem; color: var(--soluk); }
.takvim-olay { display: block; text-decoration: none; color: var(--yazi); border-left: 4px solid #999; padding: .35rem .6rem; margin: .2rem 0; border-radius: 4px; }
.takvim-olay:hover { background: color-mix(in srgb, var(--altin) 8%, transparent); }
a.takvim-olay, a.takvim-olay:visited { color: var(--yazi); }
.sekme-secici { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--cizgi); border-radius: 10px; overflow: hidden; }
.sekme-secici a { padding: .35rem .8rem; text-decoration: none; color: var(--soluk); font-weight: 600; font-size: .9rem; }
.sekme-secici a.secili { background: color-mix(in srgb, var(--altin) 22%, var(--kart)); color: var(--yazi); box-shadow: inset 0 -3px 0 var(--altin); }
/* Seçili süzgeç / seçim: sarı "bas" düğmesinden ayrı, çerçeveli görünür */
.btn.secili { background: color-mix(in srgb, var(--altin) 16%, var(--kart)); border: 2px solid var(--altin); color: var(--yazi); font-weight: 700; }

/* Form yan paneli: benzer kayıtlar */
.pencere.yanli { max-width: 520px; }
.yanli-govde { display: grid; grid-template-columns: 1fr; gap: 12px; }
.yan-panel { display: none; border: 1px solid var(--altin); border-radius: 10px; padding: 8px 10px; background: var(--zemin); align-self: start; }
.yanli-govde.dolu .yan-panel { display: block; }
@media (min-width: 800px) {
  .pencere.yanli:has(.yanli-govde.dolu) { max-width: 820px; }
  .yanli-govde.dolu { grid-template-columns: 1fr 260px; }
  .yanli-govde.dolu .yan-panel { position: sticky; top: 0; max-height: 70vh; overflow: auto; }
}

/* Görev kartında "şimdi ne yapmalıyım" yönlendirmesi */
.rehber { margin-top: .4rem; padding: .35rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--altin) 14%, transparent); font-size: .85rem; }

/* ---- İş emri belgesi: Excel şablonu düzeni; kapak / kontrol dikey, formlar yatay A4 ---- */
.ie-belge { padding: 8px; }
.ie-sayfa { background: #fff; color: #1d2324; margin: 16px auto; padding: 14mm 12mm; box-shadow: 0 2px 12px rgba(0,0,0,.15); font-size: 12px; line-height: 1.35; box-sizing: border-box; }
.ie-sayfa.dikey { width: 210mm; min-height: 297mm; }
.ie-sayfa.yatay { width: 297mm; min-height: 210mm; display: flex; flex-direction: column; }
.ie-baslik { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #dca53c; padding-bottom: 6px; margin-bottom: 8px; font-size: 22px; font-weight: 800; letter-spacing: .1em; color: #293133; }
.ie-baslik > div { flex: 1; text-align: center; }
.ie-logo { height: 40px; width: auto; }
.ie-bilgi { border-collapse: collapse; margin-bottom: 8px; width: auto; }
.ie-bilgi th { text-align: left; font-weight: 700; padding: 1px 10px 1px 0; white-space: nowrap; color: #293133; }
.ie-bilgi th::after { content: ' :'; }
.ie-bilgi td { padding: 1px 0; min-width: 90mm; border-bottom: 1px dotted #b9b4a8; }
.ie-tablo { width: 100%; border-collapse: collapse; }
.ie-tablo th, .ie-tablo td { border: 1px solid #7d8583; padding: 4px 5px; vertical-align: top; }
.ie-tablo th { background: #e8e5dc; font-size: 10.5px; text-align: left; }
.ie-tablo td.sayi { text-align: right; white-space: nowrap; }
.ie-tablo .orta { text-align: center; }
/* İş programı belgesi: zebra satırlar (yazdırırken de basılır) */
.ie-tablo.zebra tbody tr:nth-child(even) td { background: #f1efe9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ie-tablo.zebra tbody tr:nth-child(odd) td { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ie-tablo .kalin { font-weight: 700; }
.ie-tablo .sag-yaz { text-align: right; }
.ie-tablo .aciklama { white-space: pre-wrap; font-size: 10.5px; }
.ie-tablo.kapak td { font-size: 11px; }
.ie-sayfa.yatay .ie-tablo td { height: 9mm; }
.ie-uretim { flex: 1; display: grid; grid-template-columns: 30% 1fr; grid-template-rows: auto 1fr; gap: 0; border: 1px solid #7d8583; min-height: 120mm; }
.ie-uretim-sol { grid-row: 1 / span 2; display: flex; flex-direction: column; border-right: 1px solid #7d8583; }
.ie-urun { padding: 6px 8px; font-size: 12px; border-bottom: 1px solid #7d8583; }
.ie-urun-ad { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.ie-ek { padding: 6px 8px; flex: 1; }
.ie-cizim { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px; color: #c9c4b8; font-size: 10px; letter-spacing: .1em; }
/* Yazdırma: sayfa yönü yazdırma sırasında eklenir (isemri.js yazdir: dikey ya da yatay, ayrı düğmeler); sayfa kâğıda sığar */
@media print {
  .ie-belge { padding: 0; }
  .ie-sayfa { box-shadow: none; margin: 0; padding: 0; width: auto !important; min-height: 0 !important; max-width: 100%; break-after: page; }
  .ie-sayfa:last-child { break-after: auto; }
  .ie-sayfa.yatay { height: auto; max-height: 192mm; overflow: hidden; }
  .ie-sayfa.yatay .ie-uretim { min-height: 0; height: 150mm; }
  .ie-tablo tr { break-inside: avoid; }
}

/* Görev kartı: en çok iki büyük düğme + "⋯ Diğer" */
.gorev-eylemler { display: flex; gap: .45rem; margin-top: .6rem; }
.gorev-eylemler > .btn { flex: 1 1 0; min-height: 46px; justify-content: center; text-align: center; font-size: 1rem; }
.gorev-eylemler > .btn:last-child[title="Diğer işlemler"] { flex: 0 0 auto; }
.bolum-basligi { font-size: 1rem; margin: 1rem 0 .4rem; color: var(--soluk); }
/* Telefonda üst bant tek satır: ünvan gizli, uzun ad kısaltılır */
@media (max-width: 480px) {
  .ust .kisi .unvan { display: none; }
  .ust .kisi > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
}
.gorev-eylemler { flex-wrap: wrap; }
.gorev-eylemler > .btn:first-child { flex: 1 1 100%; }
.gorev-eylemler > .btn:nth-child(2):last-child { flex: 1 1 0; }
.gorev-eylemler > .btn { white-space: nowrap; }

/* İşin dosyaları: görseller ızgara */
.is-gorseller { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .3rem 0 .6rem; }
.is-gorsel { display: flex; flex-direction: column; gap: .2rem; color: inherit; text-decoration: none; font-size: .78rem; word-break: break-all; }
.is-gorsel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--cizgi); background: var(--zemin); }

/* Günlük rapor: büyük dokunma düğmeleri */
.rapor-adim { font-weight: 700; margin: .9rem 0 .35rem; }
.rapor-is { width: 100%; text-align: left; justify-content: flex-start; margin-bottom: .35rem; min-height: 46px; }
.rapor-saatler { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.rapor-saatler .btn { min-height: 48px; font-size: 1.1rem; justify-content: center; }
.rapor-sayac { font-size: 1.1rem; margin: .4rem 0; }
.rapor-sayac b { font-size: 2rem; }
.rapor-cubuk { height: 10px; border-radius: 6px; background: var(--cizgi); overflow: hidden; display: flex; }
.rapor-cubuk > div { height: 100%; background: var(--altin); border-radius: 6px; }
/* Beklenen saatin üstü (ek mesai) koyu sarı */
.rapor-cubuk > div.fazla { background: #a8720e; border-radius: 0 6px 6px 0; }
.rapor-fazla { color: #a8720e; font-weight: 700; font-size: .9rem; }
/* Dar telefonda 5 sekme sığsın */
@media (max-width: 420px) {
  nav.sekmeler a { padding: .7rem .3rem; font-size: .86rem; }
  nav.sekmeler a:last-child { flex: 0 0 auto; max-width: 30vw; }
}

/* Kesim listesi tablosu ve belgesi */
.kesim-tablo { border-collapse: collapse; width: 100%; font-size: .85rem; }
.kesim-tablo th, .kesim-tablo td { border-bottom: 1px solid var(--cizgi); padding: .25rem .3rem; text-align: left; white-space: nowrap; }
.kesim-tablo td.sayi { text-align: right; }
.kesim-belge { display: grid; grid-template-columns: 1fr 34%; gap: 10px; }
/* Ekip izin takvimi */
.izin-takvim { border-collapse: collapse; font-size: .8rem; }
.izin-takvim th, .izin-takvim td { border: 1px solid var(--cizgi); padding: .2rem .35rem; text-align: center; min-width: 26px; }
.izin-takvim tbody th { text-align: left; white-space: nowrap; font-weight: 600; }
.izin-takvim td.izin-var { background: color-mix(in srgb, var(--basari) 35%, transparent); }
.izin-takvim td.izin-rapor { background: color-mix(in srgb, var(--tehlike) 30%, transparent); }
.izin-takvim td.izin-saat { background: color-mix(in srgb, var(--basari) 15%, transparent); }
.izin-takvim td.izin-talep { background: color-mix(in srgb, var(--altin) 35%, transparent); }
.izin-takvim td.izin-tatil { background: color-mix(in srgb, var(--soluk) 18%, transparent); }
/* Ay sonu hakediş belgesi: kişi başına 1 A4 */
.bordro-sayfa { font-size: 10.5px; }
.bordro-sayfa .ie-baslik { font-size: 16px; }
.bordro-gunler th, .bordro-gunler td { padding: 1px 4px !important; height: auto !important; font-size: 9.5px; }
.bordro-gunler tr.bordro-tatil td { background: #f1efe9; }
.bordro-ozet { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11px; }
.bordro-ozet td { padding: 2px 0; border-bottom: 1px dotted #c9c4b8; }
.bordro-beyan { font-size: 10.5px; margin: 8px 0; font-style: italic; }
.bordro-imza { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; }
/* Katalog: alan sekmeleri (gövde, yüzey, menteşe …) yan yana */
.katalog-alanlar { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 .6rem; position: sticky; top: 44px; background: var(--zemin); padding: .3rem 0; z-index: 2; }
/* Kesim listesi: mini Excel */
.kesim-grid-kutu { overflow: auto; max-height: 65vh; border: 1px solid var(--cizgi); border-radius: 8px; }
.kesim-grid { border-collapse: collapse; font-size: .85rem; }
.kesim-grid th { position: sticky; top: 0; background: var(--kart); z-index: 1; padding: .3rem; border-bottom: 2px solid var(--cizgi); white-space: nowrap; font-size: .78rem; }
.kesim-grid td { border: 1px solid var(--cizgi); padding: 0; }
.kesim-grid td.soluk { padding: 0 .3rem; text-align: right; font-size: .75rem; }
.kesim-grid td.hesap { padding: 0 .4rem; background: color-mix(in srgb, var(--soluk) 10%, transparent); white-space: nowrap; }
.kesim-grid input { border: 0; border-radius: 0; min-height: 30px; padding: .15rem .3rem; background: transparent; font-size: .85rem; }
.kesim-grid input:focus { outline: 2px solid var(--altin); outline-offset: -2px; background: var(--kart); }
.bordro-gunler td:nth-child(2) { max-width: 95mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- İkonlar (ince çizgili, tek renk; rengi yazıdan alır) ---- */
.ikon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; margin-right: .4em; }
.ikon.yalniz { margin-right: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.btn .ikon { opacity: .9; }
.btn.ana .ikon { opacity: 1; }
.rehber .ikon, .etiket .ikon { width: 1em; height: 1em; }
.zil .ikon { width: 1.25em; height: 1.25em; margin: 0; vertical-align: -0.25em; }
.sekme-secici a .ikon { width: 1em; height: 1em; margin-right: .3em; }
.geri .ikon { width: 1em; height: 1em; margin-right: .2em; }
/* Üst sekmeler: ikon üstte, ad altta (telefonda mobil bankacılık uygulamaları gibi) */
nav.sekmeler a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; font-size: .74rem;
  padding: .45rem .35rem .4rem; line-height: 1.15; white-space: normal; min-width: 64px; }
nav.sekmeler a .ikon { width: 1.45rem; height: 1.45rem; margin: 0; stroke-width: 1.5; }
nav.sekmeler a.secili .ikon { color: var(--vurgu); }
nav.sekmeler a:last-child { max-width: none; }
@media (min-width: 640px) {
  nav.sekmeler a { flex-direction: row; font-size: .95rem; gap: .45rem; padding: .7rem 1rem; white-space: nowrap; }
  nav.sekmeler a .ikon { width: 1.2rem; height: 1.2rem; }
}
/* Menü: gruplar ve büyük kutucuklar */
.menu-perde .pencere { max-height: 94vh; overflow-y: auto; max-width: 720px; }
.menu-grup { margin-bottom: .5rem; }
.menu-grup-ad { color: var(--soluk); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: .4rem 0 .35rem; }
.menu-kutular { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .35rem; }
.menu-kutu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  padding: .5rem .3rem; min-height: 64px; border: 1px solid var(--cizgi); border-radius: 12px; background: var(--kart);
  color: var(--yazi); text-decoration: none; font-weight: 600; font-size: .78rem; line-height: 1.15;
  transition: transform .12s, border-color .12s, box-shadow .12s; }
.menu-kutu .ikon { width: 1.4rem; height: 1.4rem; margin: 0; color: var(--vurgu); stroke-width: 1.4; }
.menu-kutu:hover { border-color: var(--altin); box-shadow: 0 2px 10px rgba(185,132,39,.12); }
.menu-kutu:active { transform: scale(.97); }
.btn[style*="text-align:left"], .btn[style*="text-align: left"] { justify-content: flex-start; text-align: left; }
.btn[style*="display:block"] .ikon { vertical-align: -0.2em; }
/* Kesim tablosu: doldurma tutamacı (Excel gibi sürükleyerek kopyalama) */
.kesim-grid td { position: relative; }
.kesim-tutamak { position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; background: var(--altin); border: 1px solid #fff;
  cursor: crosshair; z-index: 2; touch-action: none; }
.kesim-grid td.kopya-aralik { outline: 2px dashed var(--altin); outline-offset: -2px; }
/* İş programı ızgarası */
.plan-izgara td { min-width: 26px; text-align: center; font-weight: 700; }
.plan-izgara td.plan-var { background: color-mix(in srgb, var(--basari) 22%, transparent); }
.plan-izgara td.plan-yok { background: color-mix(in srgb, var(--tehlike) 12%, transparent); }
.plan-izgara th.bugun { color: var(--vurgu); }
/* İş emri üretim formu: sağ çerçevede görseller (sayfa başına en çok 2), sayfa numarası */
.ie-cizim:has(img) { flex-direction: column; align-items: center; justify-content: space-evenly; gap: 4mm; overflow: hidden; }
.ie-cizim img { max-height: 58mm; object-fit: contain; display: block; }
.ie-cizim img:only-child { max-height: 120mm; }
.ie-sayfa-no { margin-left: auto; font-size: 11px; font-weight: 700; color: #4b5553; white-space: nowrap; }
.ie-sayfa-alt { margin-top: 4px; text-align: right; font-size: 10px; color: #4b5553; }
/* Form: küçük resimler; önizleme penceresi (A4 yatay benzeri) */
.gorsel-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin: .5rem 0; }
.gorsel-kucuk { border: 1px solid var(--cizgi); border-radius: 8px; padding: 4px; text-align: center; background: var(--kart); }
.gorsel-kucuk img { width: 100%; height: 90px; object-fit: contain; display: block; }
.onizleme-sayfa { border: 1px solid var(--cizgi); border-radius: 10px; padding: .5rem; margin: .6rem 0; background: #fff; color: #232b2d; }
.onizleme-govde { display: grid; grid-template-columns: 30% 1fr; border: 1px solid #7d8583; aspect-ratio: 297 / 150; margin-top: .3rem; }
.onizleme-sol { border-right: 1px solid #7d8583; padding: 6px; font-size: .68rem; line-height: 1.3; overflow: hidden; }
.onizleme-cerceve { display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 6px; gap: 6px; overflow: auto; }
.onizleme-gorsel { width: 100%; text-align: center; }
.onizleme-gorsel img { max-height: 32vh; object-fit: contain; border: 1px dashed #c9c4b8; }
.onizleme-arac { justify-content: center; gap: .25rem; margin-top: .2rem; }
.onizleme-arac .btn { min-height: 28px; padding: .1rem .45rem; }
.onizleme-sayfa .btn { background: #f2f0ea; color: #232b2d; border-color: #cfcabe; }
.onizleme-sayfa .btn.tehlike { color: #b3392f; }
@media (max-width: 640px) {
  .onizleme-govde { aspect-ratio: auto; grid-template-columns: 1fr; }
  .onizleme-sol { border-right: 0; border-bottom: 1px solid #7d8583; max-height: 90px; }
  .onizleme-cerceve { overflow: visible; }
}
.rapor-saatler { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.rapor-saatler .btn { min-width: 0; padding: .4rem 0; }
.rapor-saatler input { grid-column: span 2; width: 100% !important; }
/* Yazı boyutu (Menü → Görünüm): rem ile ölçülen her şey oranlı büyür */
:root[data-yazi="buyuk"] { font-size: 112.5%; }
:root[data-yazi="cokbuyuk"] { font-size: 125%; }
:root[data-yazi="cokbuyuk"] nav.sekmeler a { font-size: .7rem; }
/* Telefonda sekmeler ekranın altında (başparmakla ulaşılır, mobil bankacılık gibi) */
@media (max-width: 639px) {
  nav.sekmeler { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 6; border-bottom: 0; border-top: 1px solid var(--cizgi);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,.10); overflow-x: hidden; }
  nav.sekmeler a { flex: 1 1 0; min-width: 0; border-bottom: 0; border-top: 3px solid transparent; padding: .45rem .15rem .4rem;
    overflow-wrap: anywhere; hyphens: auto; }
  nav.sekmeler a.secili { border-bottom: 0; border-top: 3px solid var(--altin); border-image: none; }
  .icerik { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  #bildirim { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media print { nav.sekmeler { display: none !important; } }
/* Ana sayfa özeti: küçük kutular */
.ozet-kutular { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin-bottom: .7rem; }
.ozet-kutu { display: flex; gap: .55rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--cizgi); border-radius: 12px;
  background: var(--kart); color: var(--yazi); text-decoration: none; box-shadow: var(--golge); min-height: 56px; }
.ozet-kutu .ikon { width: 1.5rem; height: 1.5rem; color: var(--vurgu); flex: 0 0 auto; margin: 0; }
.ozet-kutu b { display: block; font-size: 1.05rem; line-height: 1.15; }
.ozet-kutu span { font-size: .78rem; color: var(--soluk); line-height: 1.2; }
.ozet-kutu.uyari { border-color: var(--tehlike); }
.ozet-kutu.uyari .ikon { color: var(--tehlike); }
/* Askıdaki iş, bekleyen işler bilgisi */
.gorev-karti.askida { opacity: .8; border-style: dashed; }
.bekleyen-bilgi { text-align: center; padding: .8rem; border: 1px dashed var(--cizgi); border-radius: 12px; color: var(--soluk); margin: .5rem 0; }
/* Üretim formu çizim alanı: görseller figure içinde (önizlemede altında düzenleme düğmeleri); iki dikey görsel yan yana */
.ie-cizim:has(figure) { flex-direction: column; align-items: center; justify-content: space-evenly; gap: 4mm; overflow: hidden; color: inherit; }
.ie-cizim figure { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.ie-cizim figure img { max-height: 58mm; max-width: 100%; object-fit: contain; display: block; }
.ie-cizim figure:only-child img { max-height: 120mm; }
.ie-cizim.yan-yana { flex-direction: row; align-items: center; justify-content: space-evenly; }
.ie-cizim.yan-yana figure { width: 49%; }
.ie-cizim.yan-yana figure img { max-height: 120mm; }
.ie-gorsel-arac { display: flex; gap: .2rem; align-items: center; justify-content: center; margin-top: 2mm; font-size: 11px; color: #4b5553; }
.ie-gorsel-arac .btn { min-height: 26px; padding: .05rem .4rem; background: #f2f0ea; color: #232b2d; border-color: #cfcabe; }
/* Görsel serbest yerleşim: çizim alanının yüzdesiyle konum ve genişlik (önizleme ve baskı aynı) */
.ie-cizim.serbest { display: block; position: relative; overflow: hidden; padding: 0; }
.ie-cizim figure.serbest { position: absolute; margin: 0; display: block; width: auto; }
.ie-cizim figure.serbest img { width: 100%; max-height: none; height: auto; display: block; }
/* Tek görsel: çizim alanına sığdır (yüksek fotoğrafın altı kesilmesin) */
.ie-cizim figure.serbest.tek { max-height: 96%; }
.ie-cizim figure.serbest.tek img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.onizleme-baski figure.serbest img { cursor: move; outline: 1px dashed #c9c4b8; }
.onizleme-baski figure.serbest.tasiniyor img { outline: 2px solid var(--altin); }
.ie-tutamac { position: absolute; right: -8px; top: -8px; width: 18px; height: 18px; background: var(--altin); border: 2px solid #fff; border-radius: 4px; cursor: nesw-resize; touch-action: none; z-index: 3; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.onizleme-baski .ie-cizim.serbest, .onizleme-baski figure.serbest { user-select: none; -webkit-user-select: none; }
.ie-cizim figure.serbest .ie-gorsel-arac { position: absolute; top: 4px; left: 4px; right: 14px; margin: 0; background: rgba(255,255,255,.9); border-radius: 6px; padding: 2px; flex-wrap: wrap; justify-content: flex-start; z-index: 2; }
.ie-onizleme-ekle { margin-top: 4px; }
.ie-onizleme-ekle .btn { background: #f2f0ea; color: #232b2d; border-color: #cfcabe; }
.onizleme-baski { overflow-x: hidden; }
.onizleme-baski .ie-sayfa { margin: 10px auto; }
/* Kapak tablosu: kalemler hücrelerde ortalı (yatay ve dikey) */
.ie-tablo.kapak td { text-align: center; vertical-align: middle; }
.ie-tablo.kapak th { text-align: center; vertical-align: middle; }
/* Müşteri sayfasında projeler: olumsuz / iptal kırmızı, tamamlanan yeşil */
.kart.proje-olumsuz { border-left: 4px solid var(--tehlike); background: color-mix(in srgb, var(--tehlike) 6%, var(--kart)); }
.kart.proje-tamam { border-left: 4px solid var(--basari); background: color-mix(in srgb, var(--basari) 7%, var(--kart)); }
.etiket.tehlike { background: color-mix(in srgb, var(--tehlike) 14%, transparent); color: var(--tehlike); }
/* Kesim listesi: çoklu hücre seçimi, eksik satır; belge (dikey A4, modül renkleri, zebra) */
.kesim-grid td.secili-aralik { background: color-mix(in srgb, var(--altin) 22%, transparent); }
.kesim-grid td.secili-aralik input { background: transparent; }
.kesim-grid tr.eksik-satir td { background: color-mix(in srgb, var(--tehlike) 10%, transparent); }
.kesim-sayfa { font-size: 10.5px; }
.kesim-tablo-belge { font-size: 9.5px; }
.kesim-tablo-belge th { font-size: 9px; padding: 3px 3px; text-align: center; }
.kesim-tablo-belge td { padding: 2px 3px; vertical-align: middle; }
.kesim-tablo-belge.zebra tbody tr:nth-child(even) td { background: #f4f2ec; }
.kesim-tablo-belge tr.modul-ayrac td { border-top: 2px solid #7d8583; }
.kesim-tablo-belge td.modul-hucre { vertical-align: middle; font-size: 10px; }
@media print { .kesim-tablo-belge td, .kesim-tablo-belge tr { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Grafikler (hata analizi): yatay çubuklar ve aylık sütunlar */
.grafik-satir { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: .5rem; align-items: center; padding: .22rem 0; border-top: 1px solid var(--cizgi); font-size: .86rem; }
.grafik-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grafik-cubuk { display: block; height: 12px; background: color-mix(in srgb, var(--cizgi) 60%, transparent); border-radius: 6px; overflow: hidden; }
.grafik-cubuk > span { display: block; height: 100%; border-radius: 6px; min-width: 3px; transition: width .3s; }
.grafik-sayi { min-width: 2rem; text-align: right; }
.grafik-sutunlar { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: .4rem; overflow-x: auto; }
.grafik-sutun { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1 0 34px; height: 100%; font-size: .72rem; }
.grafik-sutun > span { display: block; width: 100%; background: var(--altin); border-radius: 4px 4px 0 0; }
.grafik-sutun > b { font-size: .75rem; margin-bottom: 2px; }
.grafik-sutun > small { color: var(--soluk); margin-top: 3px; white-space: nowrap; }
/* Kesim listesi satır taşıma tutamacı */
.kesim-grid td.tasima { cursor: grab; user-select: none; text-align: center; color: var(--soluk); font-size: .75rem; padding: 0 .25rem; white-space: nowrap; }
.kesim-grid tr.tasiniyor { opacity: .45; }
.kesim-grid tr.hedef-ustu td { border-top: 2px solid var(--altin); }
/* Müşteri takip / web talep küçük yardımcılar */
.takip-kodu { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; font-weight: 700; }

.grafik-satir.tikla { cursor: pointer; }
.grafik-satir.tikla:hover { background: color-mix(in srgb, var(--altin) 10%, transparent); }

/* Q turu: tebliğ edilen yeni iş, önceki aşamalar (proje sayfası), teklif önizleme */
.gorev-karti.yeni-teblig { border-color: var(--altin); box-shadow: 0 0 0 2px color-mix(in srgb, var(--altin) 35%, transparent); }
details.onceki-asamalar { margin-top: 1rem; border: 1px dashed var(--cizgi); border-radius: 12px; padding: .2rem .8rem; }
details.onceki-asamalar > summary { cursor: pointer; font-weight: 600; padding: .5rem 0; color: var(--soluk); }
details.onceki-asamalar[open] > summary { color: var(--metin); }
details.onceki-asamalar .onceki-icerik { padding-bottom: .6rem; }
.teklif-onizleme .belge { margin: 0 auto; box-shadow: none; border: 1px solid var(--cizgi); max-width: 100%; color: #1d2324; }
.malzeme-grid input.ayrinti-zorunlu { border-color: var(--uyari); }
.teblig-bilgi { font-size: .8rem; color: var(--soluk); }

/* Teklif belgesi: iskontolu kalemde normal tutar çizili, altında iskontolu tutar */
.belge-tablo .normal-tutar { text-decoration: line-through; color: #8a9391; font-size: 11px; }
.belge-tablo .indirimli-tutar { font-weight: 700; }
.belge-tablo .iskonto-etiket { color: #7a5c14; font-size: 10px; }
/* Çok sayfalı belge: tablo başlığı her sayfada, satır ve toplam bölünmez */
@media print {
  .belge-tablo thead { display: table-header-group; }
  .belge-tablo tr, .belge-toplam, .belge-imza, .belge-plan, .belge-sozlesme .madde { break-inside: avoid; }
  .belge-sozlesme .madde-baslik { break-after: avoid; }
}
/* Çift tıklama koruması: işlem sürerken düğme */
[data-isleniyor] { cursor: progress; opacity: .75; }

/* KVKK onay ekranı (0100): metin kutusu kaydırılır; geniş giriş çerçevesi */
.giris.kvkk-giris { max-width: 760px; }
.kvkk-metin { max-height: 55vh; overflow-y: auto; border: 1px solid var(--cizgi); border-radius: 10px; padding: .8rem 1rem; background: var(--kart, transparent); text-align: left; line-height: 1.5; font-size: .95em; }
.kvkk-metin h3 { font-size: 1em; margin: .9rem 0 .35rem; }
.kvkk-metin p { margin: .3rem 0; }
.kvkk-metin .kvkk-madde { padding-left: .9rem; text-indent: -.7rem; }
