/* Telefonun/tarayıcının kendi yazı büyütmesi (font boosting, yazı boyutu ayarı) kapalı: ölçüler yalnız bu sistemden */
html { -webkit-text-size-adjust: 100% !important; -moz-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
/* Opus Takip Oto: ortak form teması (2026-11-13, görev 44521663 madde 1.2-1.3).
 * Hızlı Araç Girişi formunun kutu, yazı ve renk ölçüleri BÜTÜN formlarda (React paketi + bağımsız sayfalar) standart.
 * Uygulamanın Tailwind kuralları @layer içinde; bu dosya katmansız olduğu için onları ezer (inline style hariç).
 * Ölçüler: kutu slate-950 (#020617), kenar slate-800 (#1e293b), köşe 12px, yazı 15px/500 telefon, 14px bilgisayar; etiket 12px/700; odakta amber-500.
 * Yazı ölçüsü telefonun yazı boyutu ayarından etkilenmez: text-size-adjust 100% + Android 1.8 WebView textZoom 100.
 * Örnek (placeholder) yazılar çok soluk: kullanıcı önceden girilmiş veri sanmasın.
 * Bir alanı kapsam dışı tutmak için: data-tema-yok. */

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):not([data-tema-yok]):not(.osc-ara),
select:not([data-tema-yok]),
textarea:not([data-tema-yok]) {
  background-color: #020617;
  border: 1px solid #1e293b;
  border-radius: .75rem;
  color: #f1f5f9;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: none;
  outline: none;
  transition: border-color .15s, background-color .15s;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):not([data-tema-yok]):not(.osc-ara):not([class*=tracking-widest]):not(.plate),
select:not([data-tema-yok]),
textarea:not([data-tema-yok]) {
  font-size: 15px;
  min-height: 44px;
}
textarea:not([data-tema-yok]) { min-height: 72px; }
@media (min-width: 1024px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):not([data-tema-yok]):not(.osc-ara):not([class*=tracking-widest]):not(.plate),
  select:not([data-tema-yok]), textarea:not([data-tema-yok]) { font-size: 14px; }
}
input:not([type=checkbox]):not([type=radio]):not([data-tema-yok]):hover,
select:not([data-tema-yok]):hover, textarea:not([data-tema-yok]):hover { border-color: #334155; }
input:not([type=checkbox]):not([type=radio]):not([data-tema-yok]):focus,
select:not([data-tema-yok]):focus, textarea:not([data-tema-yok]):focus,
select:not([data-tema-yok]):focus-visible {
  border-color: #f59e0b;
  outline: none;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .25);
  --tw-ring-shadow: 0 0 #0000;
}
input:disabled:not([type=checkbox]):not([type=radio]), select:disabled, textarea:disabled,
input[readonly]:not([type=checkbox]):not([type=radio]):not([data-tema-yok]) { opacity: .6; cursor: not-allowed; }
input[readonly][data-secici], input[readonly].opus-secici-girdi { opacity: 1; cursor: pointer; }

/* Örnek yazılar: çok soluk, ince; gerçek veriyle karışmaz */
input::placeholder, textarea::placeholder { color: rgba(148, 163, 184, .34) !important; font-weight: 400 !important; opacity: 1; font-style: normal; letter-spacing: normal; }
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: rgba(148, 163, 184, .34) !important; font-weight: 400 !important; }

/* Select: tarayıcı oku yerine tema oku; açılır liste opus-secici.js */
select:not([data-tema-yok]):not([multiple]) {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px;
  padding-right: 2.25rem !important;
  text-overflow: ellipsis; white-space: nowrap;
}
select option, select optgroup { background: #0f172a; color: #e2e8f0; }

/* Sayı kutuları: ok düğmeleri yok (0 silinebilir, boş bırakılabilir) */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tarih/saat: koyu tema seçici */
input[type=date], input[type=time], input[type=datetime-local], input[type=month] { color-scheme: dark; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }

/* Form etiketleri: kutu üstünde küçük, kalın, açık gri (alan içeren etiketler hariç) */
form label:not(:has(input, select, textarea, button)),
.fixed.inset-0 label:not(:has(input, select, textarea, button)),
[data-opus-form] label:not(:has(input, select, textarea, button)) {
  font-size: 12px; font-weight: 700; color: #cbd5e1; letter-spacing: 0; text-transform: none; line-height: 1.3;
}
form label:not(:has(input, select, textarea, button)) .text-rose-400,
form label:not(:has(input, select, textarea, button)) .text-red-400 { color: #fb7185; }

/* Formdaki zemin (kart) ile kutular net ayrılsın: koyu zeminli form kartı slate-900 */
.fixed.inset-0 form:where(.bg-slate-950, [class*="bg-slate-950"]),
form.bg-slate-950 { background-color: #0f172a; }

/* Zorunlu alan uyarısı: kırmızı yanıp sönme (madde 3 parça satırları ve genel) */
@keyframes ot-kirmizi { 0%, 100% { border-color: #f43f5e; box-shadow: 0 0 0 2px rgba(244, 63, 94, .35); } 50% { border-color: #1e293b; box-shadow: none; } }
.ot-eksik, input.ot-eksik, select.ot-eksik, textarea.ot-eksik { animation: ot-kirmizi .5s ease-in-out 4; border-color: #f43f5e !important; }

/* Yeni kayıt / eşleşme ipuçları (madde 1.5) */
.ot-yeni-kayit { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #34d399; line-height: 1.35; }
.ot-kayitli { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #7dd3fc; line-height: 1.35; }

/* Kutu başlığı (etiketi olmayan alanlarda, ör. müşterinin ilk araçları) */
[data-baslik]::before { content: attr(data-baslik); display: block; font-size: 12px; font-weight: 700; color: #cbd5e1; margin-bottom: 6px; line-height: 1.3; }

/* Marka logosu + plaka (madde 6) */
.ot-arac { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; }
/* 2026-11-13: logo zeminsiz (saydam PNG, koyu zemine göre üretildi: deploy/logo_uret.py), ayrılan alanı doldurur */
.ot-arac { gap: 10px; }
.ot-logo { flex: none; width: 40px; height: 40px; background: transparent; display: inline-flex; align-items: center; justify-content: center; overflow: visible; }
.ot-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ot-arac-adsiz .ot-logo { width: 34px; height: 34px; }
.ot-logo.harf { width: 34px; height: 34px; border-radius: 50%; background: #1e293b; border: 1px solid #334155; color: #fbbf24; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.ot-arac-yazi { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ot-arac-yazi small { font-size: 11px; font-weight: 600; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; margin-top: 2px; letter-spacing: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; text-transform: none; }

/* Ana sayfa: onay bekleyen şeridi (madde 2), onaylanana kadar sürekli yanıp söner */
@keyframes ot-yanip { 0%, 100% { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .7); } 50% { background: rgba(245, 158, 11, .04); border-color: rgba(245, 158, 11, .2); } }
.ot-onay-bant { animation: ot-yanip 1.1s ease-in-out infinite; color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .5); }
.ot-onay-nokta { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
@media (prefers-reduced-motion: reduce) { .ot-onay-bant { animation-duration: 2.4s; } }

/* İş emirleri: hızlı girişten yeni gelen kayıt iki kez yanıp söner (madde 3) */
@keyframes ot-yeni-yanip { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); background-color: inherit; } 50% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .75); background-color: rgba(16, 185, 129, .16); } }
.ot-yeni-yanip { animation: ot-yeni-yanip .7s ease-in-out 2; border-radius: 1rem; }
.ot-eksik-sabit { border-color: #f43f5e !important; }
/* Plaka kutuları kendi görünümünde kalır (kalın, geniş aralıklı) */
input.plate, input[class*=tracking-widest] { font-weight: 900; }

/* Kasa üst özeti (madde 7) */
.ot-kasa-ozet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ot-kasa-kart { border-radius: 16px; padding: 14px 14px 12px; border: 1px solid; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ot-kasa-kart .ot-kk-bas { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ot-kasa-kart b { font-size: 22px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ot-kasa-kart small { font-size: 11px; font-weight: 600; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-kasa-kart.alacak { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .45); }
.ot-kasa-kart.alacak .ot-kk-bas, .ot-kasa-kart.alacak b { color: #34d399; }
.ot-kasa-kart.borc { background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .45); }
.ot-kasa-kart.borc .ot-kk-bas, .ot-kasa-kart.borc b { color: #fb7185; }
@media (min-width: 768px) { .ot-kasa-kart b { font-size: 28px; } }

/* Ortada küçük açılır pencere (ör. tek stok kategorisi düzenleme, madde 8) */
.ot-orta-perde { position: fixed; inset: 0; z-index: 70; background: rgba(2, 6, 23, .78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ot-orta-pencere { width: 100%; max-width: 30rem; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 25px 60px -10px rgba(0, 0, 0, .8); background: #0f172a !important; }

/* Akordeon oku, personel rol kartı, hakediş barı (madde 9) */
.ot-ak-ok { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #334155; background: #1e293b; color: #cbd5e1; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ot-ak-ok:hover { border-color: #f59e0b; color: #fbbf24; }
.ot-rol-kart { margin-top: 8px; background: #020617; border: 1px solid #1e293b; border-radius: 12px; padding: 10px 12px; }
.ot-rol-bas { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ot-rol-ikon { font-size: 18px; flex: none; }
.ot-rol-ad { flex: 1; min-width: 0; font-weight: 900; color: #fcd34d; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-rol-dgm { flex: none; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.ot-rol-dgm:hover { border-color: #f59e0b; color: #fbbf24; }
.ot-rol-govde { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.ot-hak-bar { display: flex; align-items: center; gap: 8px; }
.ot-hak-bar input { flex: 1; min-width: 0; min-height: 40px !important; padding: 8px 12px !important; font-size: 14px !important; }
.ot-hak-btn { flex: none; min-height: 40px; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; border-radius: 10px; padding: 0 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ot-hak-btn.aktif, .ot-hak-btn:hover { border-color: #f59e0b; color: #fbbf24; }
select:not([data-tema-yok]) { max-width: 100%; }

/* 2026-11-13 düzeltme (Murat: "Parça Kartını Düzenle" telefonda zemin ile kutular aynı siyah). Telefonda pencereler tam sayfa açılır
   (opus-mobil.js "sayfa", opus-altmenu .opus-sayfa-ici): sayfa zemini #020617, form kartı saydam → kutularla aynı renk.
   Hızlı Araç Girişi düzeni: form zemini slate-900 (#0f172a), kutular slate-950 (#020617). Alan içeren her sayfa-pencere ve iç panel böyle. */
@media (max-width: 1023.98px) {
  html body [data-opus-m="sayfa"].fixed.inset-0:has(input, select, textarea),
  html body .opus-sayfa-ici.opus-sayfa-ici.opus-sayfa-ici.opus-sayfa-ici.opus-sayfa-ici.opus-sayfa-ici.opus-sayfa-ici.fixed.inset-0:has(input, select, textarea) {
    background: #0f172a !important;
  }
  html body [data-opus-m="sayfa"] > [data-opus-kart]:has(input, select, textarea),
  html body .opus-sayfa-ici.fixed.inset-0 > form { background: #0f172a !important; }
}
/* Formun içindeki koyu paneller (alan içeren) de zemin rengi: kutular üstünde ayrışsın */
.fixed.inset-0 form :where(div, section, fieldset):where(.bg-slate-950, [class*="bg-slate-950"]):has(input, select, textarea) { background-color: #0f172a; }

/* Dış katalog "M" (2026-11-13, görev 5d6201e3): düğme, kalem etiketi, stok kartı fotoğrafı */
.ot-m-dugme { min-width: 40px; height: 40px; padding: 0 12px; border-radius: .75rem; border: 1px solid #f09c14; background: rgba(240, 156, 20, .12); color: #f6b93b; font-weight: 900; font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ot-m-dugme:hover { background: #f09c14; color: #0C131D; }
.ot-m-btn .ot-m-harf { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #f09c14; color: #0C131D; font-weight: 900; font-size: 12px; }
.ot-kalem-alt { margin-top: 8px; }
@media (max-width: 639.98px) { .ot-kalem-alt > .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding-left: 8px; padding-right: 8px; } }
.ot-m-etiket { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 4px; border-radius: 5px; background: #f09c14; color: #0C131D; font: 900 11px/1 system-ui, sans-serif; vertical-align: middle; }
.ot-stok-foto { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; border: 1px solid #1e293b; }
.ot-stok-kart-foto { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 4px 0 2px; border: 1px solid #1e293b; border-radius: 14px; background: #020617; }
.ot-stok-kart-foto img, .ot-stok-kart-foto .ot-foto-yok { flex: none; width: 96px; height: 96px; border-radius: 12px; background: #fff; object-fit: contain; }
.ot-stok-kart-foto .ot-foto-yok { background: #0f172a; color: #64748b; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ot-stok-kart-foto > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; color: #94a3b8; }
.ot-stok-kart-foto b { color: #e2e8f0; font-size: 13px; }
.ot-stok-kart-foto .ot-m-etiket-yazi { color: #f6b93b; font-weight: 700; }
