/* ═════════════════ TEKNİK RESİM ARŞİVİ (11.10.2026) ═════════════════
   Sayfa (/satis/teknik-resimler) + sihirbazdaki "Arşivden Ekle" / künye / "yeni revizyon var".
   Keskin köşe (border-radius: 0), telefon / tablet / masaüstü. */

.tra-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 14px 16px;
    gap: 12px;
    background: var(--yl-bg, #f5f7fa);
    overflow-y: auto;
}
.tra-shell > * { flex-shrink: 0; }

.tra-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 14px; background: #fff; border: 1px solid var(--yl-border, #dfe4ec);
}
.tra-header-sol { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tra-header-ikon { width: 30px; height: 30px; color: #1d4ed8; flex-shrink: 0; }
.tra-header h3 { margin: 0; font-size: 1.12rem; font-weight: 700; color: #0f172a; }
.tra-alt { margin: 2px 0 0; font-size: 0.78rem; color: var(--yl-text-light, #64748b); }
.tra-header-sag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tra-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 30px; padding: 0 12px; font-size: 0.78rem; font-weight: 600;
    border: 1px solid var(--yl-border, #dfe4ec); border-radius: 0; background: #fff; color: #1f2937;
    cursor: pointer; white-space: nowrap;
}
.tra-btn:hover:not(:disabled) { background: #f3f6fa; }
.tra-btn:disabled, .tra-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.tra-btn-ghost { background: transparent; }
.tra-btn-ana { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.tra-btn-ana:hover:not(:disabled) { background: #1e40af; border-color: #1e40af; }
.tra-btn-kucuk { height: 26px; padding: 0 9px; font-size: 0.74rem; }
.tra-btn-sil { color: #b91c1c; border-color: #fecaca; }

.tra-hata { padding: 8px 12px; font-size: 0.8rem; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.tra-bilgi { padding: 8px 12px; font-size: 0.8rem; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }

.tra-secim { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #334155; cursor: pointer; white-space: nowrap; }
.tra-soluk { font-size: 0.74rem; color: #64748b; }
.tra-no { font-weight: 800; color: #0f172a; letter-spacing: .02em; }
.tra-rev { display: inline-block; padding: 0 6px; font-size: 0.72rem; font-weight: 700; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.tra-pasif { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 0.68rem; font-weight: 600; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.tra-kucuk { width: 72px; height: 48px; object-fit: contain; background: #fff; border: 1px solid #e2e8f0; display: block; }
.tra-grid tbody tr.tra-secili > td { background: #eff6ff; }

/* ── Detay ── */
.tra-detay {
    display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px;
    background: #fff; border: 1px solid var(--yl-border, #dfe4ec); border-top: 3px solid #1d4ed8;
}
.tra-detay-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tra-detay-kimlik { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tra-detay-ad { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.tra-etiketler { font-size: 0.76rem; color: #475569; }
.tra-aciklama { font-size: 0.78rem; color: #64748b; white-space: pre-line; }
.tra-detay-dugmeler { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tra-kapat { border: none; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #64748b; padding: 0 4px; }

.tra-detay-govde { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 14px; }
.tra-onizleme { border: 1px solid #e2e8f0; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.tra-onizleme img { max-width: 100%; max-height: 300px; object-fit: contain; cursor: zoom-in; display: block; }
.tra-bolumler { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tra-bolum { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tra-bolum-baslik { font-size: 0.74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #475569; }
.tra-bos { padding: 10px; font-size: 0.78rem; color: #64748b; background: #fafbfd; border: 1px dashed var(--yl-border, #dfe4ec); }

.tra-tablo { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tra-tablo th { text-align: left; font-size: 0.7rem; font-weight: 700; color: #64748b; padding: 5px 8px; border-bottom: 1px solid #e2e8f0; }
.tra-tablo td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.tra-tablo .tra-sag { text-align: right; white-space: nowrap; }
.tra-not { color: #475569; }
.tra-guncel { color: #047857; font-weight: 700; }
.tra-eski { color: #b45309; font-weight: 700; }

.tra-link { border: none; background: none; padding: 0 2px; font-size: 0.78rem; font-weight: 600; color: var(--yl-primary, #185fa5); cursor: pointer; text-decoration: underline; text-align: left; }
.tra-link:disabled { opacity: .5; cursor: not-allowed; }
.tra-link-sil { color: #b91c1c; align-self: flex-start; }

.tra-revizyon-yukle { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.tra-revizyon-yukle .tra-input { flex: 1 1 200px; width: auto; }
.tra-dosya { position: relative; overflow: hidden; max-width: 260px; }
.tra-gizli { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.tra-input {
    width: 100%; box-sizing: border-box; font-size: 0.84rem; padding: 6px 8px;
    border: 1px solid var(--yl-border, #dfe4ec); border-radius: 0; background: #fff; color: #0f172a; font-family: inherit;
}
textarea.tra-input { resize: vertical; }

/* ── Pencereler ── */
.tra-modal {
    background: var(--yl-white, #fff); border: 1px solid var(--yl-border, #dfe4ec); border-radius: 0;
    width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.tra-modal-dar { width: min(420px, calc(100vw - 32px)); }
.tra-modal-genis { width: min(860px, calc(100vw - 32px)); }
.tra-modal-govde { padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; font-size: 0.84rem; }
.tra-modal-govde p { margin: 0; }
.tra-etiket { font-size: 0.74rem; font-weight: 700; color: #475569; margin-top: 4px; }
.tra-zorunlu { color: #b91c1c; }

.tra-secici { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tra-secici-kart { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #e2e8f0; background: #fff; }
.tra-secici-kart img, .tra-secici-bos { width: 96px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #f1f5f9; flex-shrink: 0; }
.tra-secici-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tra-secici-ad { font-size: 0.82rem; color: #1f2937; overflow: hidden; text-overflow: ellipsis; }

/* ── Sihirbaz / Ekler adımı ── */
.ekler-arsiv-btn {
    margin-left: 8px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
    font-size: 0.7rem; font-weight: 700; padding: 2px 8px; cursor: pointer; border-radius: 0;
}
.ekler-arsiv-btn:hover { background: #dbeafe; }
.ekler-cizim-kunye { font-size: 0.74rem; font-weight: 800; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 1px 7px; white-space: nowrap; }
.ekler-cizim-yeni {
    font-size: 0.72rem; font-weight: 700; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d;
    padding: 2px 8px; border-radius: 0; white-space: nowrap;
}
button.ekler-cizim-yeni { cursor: pointer; }
button.ekler-cizim-yeni:hover:not(:disabled) { background: #fef3c7; }
.ekler-cizim-arsiv {
    font-size: 0.72rem; font-weight: 600; color: #334155; background: #fff; border: 1px dashed #94a3b8;
    padding: 2px 8px; border-radius: 0; cursor: pointer; white-space: nowrap;
}
.ekler-cizim-arsiv:hover { border-color: #1d4ed8; color: #1d4ed8; }

@media (max-width: 900px) {
    .tra-detay-govde { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .tra-shell { padding: 10px; }
    .tra-header-sag { width: 100%; }
    .tra-tablo th:nth-child(3), .tra-tablo td:nth-child(3) { display: none; }
    .tra-secici-kart { flex-wrap: wrap; }
    .tra-secici-kart .rc-btn { width: 100%; justify-content: center; }
}

/* ═════════════════ KOYU TEMA ═════════════════ */
.app-root.dark .tra-header,
.app-root.dark .tra-detay,
.app-root.dark .tra-modal,
.app-root.dark .tra-secici-kart,
.app-root.dark .tra-onizleme { background: #161b22; border-color: #30363d; color: #c9d1d9; }
.app-root.dark .tra-header h3,
.app-root.dark .tra-no,
.app-root.dark .tra-detay-ad,
.app-root.dark .tra-secici-ad { color: #e6edf3; }
.app-root.dark .tra-btn,
.app-root.dark .tra-input { background: #0d1117; border-color: #30363d; color: #e6edf3; }
.app-root.dark .tra-btn-ana { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.app-root.dark .tra-bos { background: #0d1117; border-color: #30363d; }
.app-root.dark .tra-tablo th { border-color: #30363d; }
.app-root.dark .tra-tablo td { border-color: #21262d; }
.app-root.dark .tra-grid tbody tr.tra-secili > td { background: #13233a; }
.app-root.dark .tra-rev,
.app-root.dark .ekler-cizim-kunye,
.app-root.dark .ekler-arsiv-btn { background: #0f1f3a; border-color: #1e3a8a; color: #93c5fd; }
.app-root.dark .ekler-cizim-yeni,
.app-root.dark .tra-pasif { background: #2a2210; border-color: #7c5a12; color: #fcd34d; }
.app-root.dark .ekler-cizim-arsiv { background: #0d1117; border-color: #475569; color: #c9d1d9; }
.app-root.dark .tra-hata { background: #2a1215; border-color: #7f1d1d; color: #fca5a5; }
.app-root.dark .tra-bilgi { background: #0f2a1d; border-color: #065f46; color: #6ee7b7; }
