/* Alvemsis ERP — görünüm. Eski uygulamanın (Google Sheets sürümü) tasarımı esas alınmıştır:
   aynı renkler, kompakt ölçüler (14px gövde, 232px menü), beyaz üst çubuk, ikonlu özet kartları, tablo kartları.
   Telefon: menü soldan açılan çekmece + altta sabit gezinme çubuğu. */

:root {
  --primary: #1a3a5c;
  --accent: #2980b9;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --sidebar-w: 232px;
  --bs-body-font-size: .875rem;
  --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --bs-link-color-rgb: 41, 128, 185;
}
* { box-sizing: border-box; }
body { background: #eef2f7; overflow-x: hidden; }

/* ===== SOL MENÜ ===== */
/* Bootstrap .offcanvas-lg geniş ekranda zemini !important ile şeffaf yapar; burada geri alınır */
aside.sidebar { background-color: var(--primary) !important; box-shadow: 3px 0 15px rgba(0,0,0,.2); }
@media (min-width: 992px) {
  aside.sidebar {
    width: var(--sidebar-w); height: 100vh;
    position: fixed; top: 0; left: 0; z-index: 1000;
    display: flex; flex-direction: column;
  }
  .main { margin-left: var(--sidebar-w); }
}
@media (max-width: 991.98px) { aside.sidebar.offcanvas-lg { width: 260px; } }
.sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; height: 100%; }
.sidebar-logo { padding: 18px 18px 13px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; position: relative; }
.sidebar-logo h5 { color: #fff; margin: 0; font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; }
.sidebar-logo small { color: #7fb3d3; font-size: .68rem; }
.sidebar-logo .btn-close { position: absolute; top: 12px; right: 12px; }
.sidebar nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; color: #a8c6e0; text-decoration: none;
  font-size: .84rem; font-weight: 500; transition: all .2s;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: rgba(41,128,185,.25); color: #fff; border-left-color: var(--accent); }
.sidebar nav a i { font-size: 1rem; width: 18px; }
.sidebar nav .menu-baslik { padding: 12px 20px 4px; font-size: .64rem; text-transform: uppercase; letter-spacing: .8px; color: #6f93b3; }
.sidebar-footer { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer .kim { color: #fff; font-weight: 600; font-size: .8rem; }
.sidebar-footer small { color: #7fb3d3; font-size: .7rem; }
.sidebar-footer a { color: #7fb3d3; font-size: .7rem; text-decoration: none; }
.sidebar-footer a:hover { color: #fff; }
.sidebar-footer .btn { font-size: .75rem; }

/* ===== ÜST ÇUBUK ===== */
.main { min-height: 100vh; }
.topbar {
  background: #fff; padding: 9px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100;
}
.topbar h6 { margin: 0; color: var(--primary); font-weight: 700; font-size: .95rem; }
.topbar .hamburger-btn { padding: 2px 8px; }
.content { padding: 18px 22px; }

/* ===== KARTLAR ===== */
.card { border: none; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.stat-card {
  background: #fff; border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  color: inherit; text-decoration: none; height: 100%;
}
a.stat-card { transition: transform .2s; }
a.stat-card:hover { transform: scale(1.02); color: inherit; }
.stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.stat-card h3 { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.stat-card h3.tutar { font-size: 1.05rem; }
.stat-card p { margin: 0; font-size: .74rem; color: #888; }

/* Bilgi kartı (form, detay) */
.bilgi-kart { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 14px 18px; }
.bilgi-kart h6 { font-weight: 700; color: var(--primary); font-size: .9rem; margin-bottom: 10px; }

/* ===== TABLOLAR ===== */
.table-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.table-card .table-header {
  padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid #f0f0f0;
}
.table-card .table-header h6 { margin: 0; font-weight: 700; color: var(--primary); font-size: .95rem; }
.table-card .table-alt { padding: 8px 18px; border-top: 1px solid #f0f0f0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.table { margin: 0; }
.table thead th {
  background: #f8fafc; color: #555; font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .4px; border-bottom: 2px solid #eee; padding: 8px 12px; white-space: nowrap;
}
.table tbody td { padding: 7px 12px; vertical-align: middle; font-size: .82rem; border-bottom: 1px solid #f5f5f5; }
.table tbody tr:hover { background: #fafcff; }
.kod-hucre { white-space: nowrap; }
.alt-not { font-size: .7rem; line-height: 1.15; }
.islem-dugmeleri { white-space: nowrap; }
.islem-dugmeleri .btn { padding: 2px 7px; }
.islem-dugmeleri form { display: inline; }

/* ===== ROZETLER ===== */
.badge-onay { background: #d5f5e3; color: #1e8449; padding: 3px 9px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-bekle { background: #fef9e7; color: #b7770d; padding: 3px 9px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-iptal { background: #fde8e8; color: #c0392b; padding: 3px 9px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-kritik { background: #fde8e8; color: #c0392b; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-normal { background: #d5f5e3; color: #1e8449; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-eksi { background: #c0392b; color: #fff; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-para { background: #f8f9fa; color: #333; border: 1px solid #dee2e6; padding: 2px 7px; border-radius: 6px; font-size: .68rem; font-weight: 600; }
.badge-kaynak { background: #f1f3f5; color: #6c757d; padding: 2px 7px; border-radius: 10px; font-size: .65rem; font-weight: 600; border: 1px solid #e3e6ea; }
.badge-acik { background: #eaf2fb; color: #2c5282; padding: 3px 9px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-stok { background: #fff3e0; color: #b45309; padding: 2px 7px; border-radius: 10px; font-size: .65rem; font-weight: 600; border: 1px solid #fde2b8; white-space: nowrap; }
.guven-rozet { font-size: .68rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.guven-kesin { background: #d5f5e3; color: #1e8449; }
.guven-oneri { background: #fef5e7; color: #b7770d; }
.guven-yok { background: #f1f3f5; color: #6c757d; }
.guven-yeni { background: #e7f1ff; color: #0b5ed7; }
.aday-chip { display: inline-block; font-size: .7rem; background: #eef2f7; border-radius: 10px; padding: 2px 8px; margin: 3px 3px 0 0; cursor: pointer; border: 0; color: #334; }
.aday-chip:hover { background: #dbe7f5; }
.stok-isle-tablo td { vertical-align: top; font-size: .8rem; padding: 7px 8px !important; }
.si-yeni-form { display: none; background: #f5f9ff; border: 1px dashed #9ec5fe; border-radius: 8px; padding: 8px; }
.stok-isle-tablo tr.si-yeni-mod .si-yeni-form { display: block; }
.stok-isle-tablo tr.si-yeni-mod .si-mevcut { display: none; }
.stok-isle-tablo .input-group-text { font-size: .72rem; padding: 4px 7px; }
/* Telefonda her kalem alt alta bir kart */
@media (max-width: 767.98px) {
  .stok-isle-tablo thead { display: none; }
  .stok-isle-tablo, .stok-isle-tablo tbody, .stok-isle-tablo tr, .stok-isle-tablo td { display: block; width: 100% !important; }
  .stok-isle-tablo tr { border-bottom: 1px solid #e9ecef; padding: 8px 6px; }
  .stok-isle-tablo td { border: 0 !important; padding: 3px 6px !important; text-align: left !important; }
  .stok-isle-tablo td.si-secim { display: inline-block; width: auto !important; }
}
.fatura-kutu { border: 3px solid var(--fatura-renk); border-radius: 12px; overflow: hidden; background: #fff; }
.fatura-ust { background: var(--fatura-renk); color: #fff; padding: 16px 22px; }
.fatura-ust h5 { font-weight: 800; letter-spacing: .5px; margin: 0; }
.fatura-bilgi { background: #f8f9fa; border-left: 4px solid var(--fatura-renk); padding: 14px 16px; border-radius: 6px; font-size: .85rem; }
.fatura-tutar { border: 2px solid color-mix(in srgb, var(--fatura-renk) 25%, transparent); background: color-mix(in srgb, var(--fatura-renk) 6%, #fff); padding: 14px 16px; border-radius: 6px; font-size: .9rem; }
.fatura-kalem thead th { background: var(--fatura-renk) !important; color: #fff !important; }
.ozet-cip { font-size: .74rem; padding: 2px 9px; border-radius: 20px; background: #f8fafc; border: 1px solid #e3e8ef; color: #4a5a6a; white-space: nowrap; }
.stok-rozet { display: inline-block; min-width: 30px; text-align: center; }
.stok-rozet small { font-weight: 500; font-size: .62rem; opacity: .85; }
.stok-rozet.buyuk { font-size: 1rem; padding: 3px 12px; }

/* ===== FORM ===== */
.form-label { font-size: .76rem; font-weight: 600; color: #555; margin-bottom: 3px; }
.form-control, .form-select { border-radius: 7px; border: 1.5px solid #e0e0e0; font-size: .82rem; padding: 6px 10px; }
.form-control-sm, .form-select-sm { padding: 4px 9px; font-size: .8rem; }
/* Açılır listelerde sağdaki ok için yer (yukarıdaki kompakt padding onu sıfırlıyordu; ok yazının üstüne biniyordu) */
.form-select { padding-right: 2rem; background-position: right .6rem center; }
.form-select-sm { padding-right: 1.75rem; background-position: right .5rem center; background-size: 14px 10px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41,128,185,.1); }
.arama-kutu { position: relative; }
.arama-kutu i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9aa5b1; font-size: .8rem; pointer-events: none; }
.arama-kutu input { padding-left: 28px; }

/* ===== DÜĞMELER ===== */
.btn { border-radius: 7px; font-weight: 600; font-size: .8rem; }
.btn-sm { font-size: .75rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: #2471a3; border-color: #2471a3; }
.filtre-dugmeleri .btn { font-size: .78rem; padding: 5px 12px; }

/* ===== PENCERE / SEKME ===== */
.modal-header { padding: 11px 18px; }
.modal-title { font-size: 1.05rem; font-weight: 600; }
.modal-footer { padding: 8px 14px; }
.nav-tabs .nav-link { font-size: .8rem; padding: 6px 12px; }
.pagination { --bs-pagination-font-size: .8rem; }

/* ===== CARİ ===== */
.bky-b { color: #1e8449; }          /* cari bize borçlu -> alacağımız */
.bky-a { color: #c0392b; }          /* biz cariye borçluyuz -> borcumuz */
.bky-sifir { color: #8a96a3; }
.cari-bilgi { font-size: .8rem; color: #555; }
.cari-bilgi .unvan { font-weight: 700; color: var(--primary); font-size: .9rem; }
.cari-bilgi div i { color: #8a96a3; width: 16px; }
.ekstre-tablo td, .ekstre-tablo th { font-size: .8rem !important; padding: 6px 10px !important; }
.ekstre-tablo tr.fatura-satir { cursor: pointer; }
.ekstre-tablo tr.fatura-satir:hover td { background: #eef6ff; }
.ekstre-tablo tr.devir td { background: #f8fafc; font-style: italic; }
.ekstre-tablo tr.ekstre-detay > td { background: #fbfcfe !important; padding: 6px 12px 10px 40px !important; }
.ekstre-detay table th { background: #eef2f7 !important; color: #555; font-size: .7rem !important; }
.tur-rozet { font-size: .7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; background: #eef2f7; color: #445; white-space: nowrap; }
.tur-rozet.fatura { background: #e3f2fd; color: #1565c0; }
.tur-rozet.devir { background: #f3e5f5; color: #6a1b9a; }
.tur-rozet.tahsilat { background: #e8f5e9; color: #2e7d32; }
.tur-rozet.odeme { background: #fdecea; color: #c0392b; }
.tur-rozet.dekont { background: #fff3e0; color: #e65100; }

/* ===== CANLI SÜZME ===== */
.canli-liste { transition: opacity .15s; }
.canli-liste.yukleniyor { opacity: .5; }

/* Telefonda tablo yerine dokunulabilir satır kartları */
.mobil-satir { display: block; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; color: inherit; text-decoration: none; }
.mobil-satir:active { background: #f3f7fb; }
.mobil-satir .ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

/* ===== GİRİŞ ===== */
.giris-zemin { min-height: 100vh; min-height: 100dvh; background: var(--primary); display: flex; align-items: center; justify-content: center; padding: 16px; }
.giris-kutu { background: #fff; border-radius: 16px; padding: 40px 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.4); text-align: center; }
@media (max-width: 400px) { .giris-kutu { padding: 28px 20px; } }
.giris-logo-img { display: block; height: 58px; width: auto; margin: 0 auto 8px; }
.giris-logo .ad { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.giris-logo small { font-size: .75rem; color: #888; }
.giris-kutu form { text-align: left; }
.sifre-goster { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #888; padding: 0; }

/* ===== TELEFON ALT GEZİNME ===== */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary); z-index: 1001;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav a, .mobile-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 9px 4px 7px; background: none; border: 0;
  color: #a8c6e0; text-decoration: none; font-size: .62rem;
  font-weight: 600; gap: 3px; border-top: 3px solid transparent;
}
.mobile-nav i { font-size: 1.25rem; }
.mobile-nav .active { color: #fff; border-top-color: var(--accent); }

@media (max-width: 991.98px) {
  .main { padding-bottom: 70px; }
  .topbar { padding: 10px 14px; }
  .topbar h6 { font-size: .9rem; }
  .content { padding: 14px 12px; }
  .stat-card { padding: 12px 14px; gap: 12px; }
  .stat-card h3 { font-size: 1.2rem; }
  .stat-card h3.tutar { font-size: .95rem; }
  .mobile-nav { display: flex; }
}
@media (max-width: 575.98px) {
  .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
  .table-card .table-header { padding: 10px 12px; }
  /* Süzgeç kutuları telefonda tam genişlik */
  .table-header > div { width: 100%; }
  .table-header .arama-kutu { flex: 1 1 100%; }
  .table-header .arama-kutu input, .table-header input[name=marka] { width: 100% !important; }
  .table-header .form-select { flex: 1 1 0; }
  .aciklama-kisa { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ekstre-tablo td, .ekstre-tablo th { font-size: .72rem !important; padding: 7px 5px !important; }
  .ekstre-tablo tr.ekstre-detay > td { padding: 6px !important; }
}

/* Dokunmatik ekranda tıklanabilir öğeler parmakla rahat basılsın */
@media (pointer: coarse) {
  .form-control, .form-select { min-height: 38px; }
  .sidebar nav a { padding-top: 12px; padding-bottom: 12px; }
}

/* ===== TEKLİF (eski uygulamadaki önizleme / arşiv detayı ile aynı) ===== */
#teklif-preview { font-size: 1rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 0; overflow: hidden; }
.teklif-header-bar { background: #d6e8f5; padding: 20px 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.teklif-logo-area h4 { color: var(--primary); font-weight: 800; font-size: 1.4rem; margin: 0; }
.teklif-logo-area small { color: #555; font-size: .72rem; }
.teklif-no-area { text-align: right; font-size: .82rem; color: #333; line-height: 1.8; }
.teklif-no-area strong { color: var(--primary); }
.teklif-alici { padding: 12px 28px; background: #eaf3fb; font-size: .88rem; }
.teklif-body { padding: 0 28px 20px; position: relative; }
.teklif-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .82rem; }
.teklif-table th { background: var(--primary); color: #fff; padding: 9px 10px; text-align: center; font-size: .75rem; }
.teklif-table th.sol { text-align: left; }
.teklif-table td { padding: 8px 10px; border-bottom: 1px solid #eee; }
.teklif-table tr:nth-child(even) td { background: #f8fafc; }
.teklif-table .td-no { text-align: center; width: 36px; }
.teklif-table .td-orta { text-align: center; }
.teklif-table .td-fiyat { text-align: right; white-space: nowrap; }
.teklif-table tr.opsiyonel td { color: #c0392b; }
.teklif-table tr.duzenleniyor td { background: #fff3cd !important; }
.teklif-table .marka { color: #e74c3c; font-weight: 600; }
.teklif-table tr.opsiyonel .marka { color: #c0392b; }
.teklif-table .isk { color: #888; font-size: .75em; }
.teklif-totals { margin-top: 8px; display: flex; justify-content: flex-end; }
.teklif-totals table { font-size: .85rem; }
.teklif-totals td { padding: 5px 12px; }
.teklif-totals td:first-child { text-align: right; padding-right: 20px; }
.teklif-totals .td-fiyat { text-align: right; white-space: nowrap; }
.teklif-totals .total-row td { font-weight: 700; font-size: 1rem; background: var(--primary); color: #fff; }
.teklif-footer-box { margin: 16px 28px; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; font-size: .78rem; }
.teklif-footer-box .fb-row { padding: 6px 12px; border-bottom: 1px solid #eee; }
.teklif-footer-box .fb-row:last-child { border-bottom: none; }
.teklif-footer-box .fb-row span, .teklif-footer-box .fb-not { color: var(--danger); font-weight: 600; }
.teklif-footer-box .fb-not { white-space: pre-line; }
.teklif-bank-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 28px 20px; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; font-size: .78rem; }
.tbc-col { padding: 10px 14px; }
.tbc-col:first-child { border-right: 1px solid #ccc; }
.tbc-col h6 { font-size: .72rem; font-weight: 700; text-align: center; background: #f0f0f0; margin: -10px -14px 8px; padding: 6px; }
.tbc-col table { width: 100%; }
.tbc-col td { padding: 3px 4px; }
.teklif-mail { text-align: center; padding: 8px; background: #f8f8f8; font-size: .75rem; color: #555; border-top: 1px solid #eee; }
.teklif-damga { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-20deg); border: 5px solid; font-size: 2rem; font-weight: 900; padding: 8px 20px; border-radius: 8px; pointer-events: none; white-space: nowrap; letter-spacing: 3px; z-index: 10; }
.teklif-damga.onay { border-color: rgba(39,174,96,.4); color: rgba(39,174,96,.4); }
.teklif-damga.iptal { border-color: rgba(192,57,43,.4); color: rgba(192,57,43,.4); }
.teklif-damga.revize { border-color: rgba(127,140,141,.4); color: rgba(127,140,141,.45); }
.teklif-satir-dugme { background: none; border: 0; padding: 0 0 0 6px; font-size: .9rem; line-height: 1; }

/* Ürün arama sonuç listesi */
.urun-sonuc { display: none; border: 1.5px solid var(--accent); border-top: none; border-radius: 0 0 8px 8px; max-height: 260px; overflow-y: auto; background: #fff; position: relative; z-index: 50; }
.urun-sonuc-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; font-size: .82rem; }
.urun-sonuc-item:hover, .urun-sonuc-item.secili { background: #eaf3fb; }
.urun-sonuc-item:last-child { border-bottom: none; }
.urun-sonuc-item .ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.urun-sonuc-item .alt { display: flex; flex-wrap: wrap; column-gap: 12px; margin-top: 4px; font-size: .72rem; color: #666; }
.urun-secili { display: none; margin-top: 6px; background: #eaf3fb; border-radius: 6px; padding: 8px 12px; font-size: .82rem; border: 1px solid #b0cfe8; }
.urun-secili button { float: right; background: none; border: none; color: #e74c3c; font-size: 1rem; line-height: 1; }

/* Teklif detayı (eski arşiv penceresi) */
.teklif-detay { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); overflow: hidden; }
.teklif-detay > .baslik { background: var(--primary); color: #fff; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.teklif-detay > .baslik h5 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.teklif-detay > .govde { padding: 20px; background: #f4f7fa; }
.teklif-detay > .alt { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; border-top: 1px solid #e9ecef; }
.revizyon-serit { font-size: .78rem; color: #555; }
.revizyon-serit a, .revizyon-serit span.aktif { padding: 2px 8px; border-radius: 12px; border: 1px solid #cfd8e3; text-decoration: none; margin-right: 4px; }
.revizyon-serit span.aktif { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 767.98px) {
  .teklif-header-bar { padding: 12px 14px; flex-direction: column; }
  .teklif-no-area { text-align: left; }
  .teklif-alici { padding: 8px 14px; }
  .teklif-body { padding: 0 8px 12px; }
  .teklif-table th, .teklif-table td { padding: 5px 4px; font-size: .72rem; }
  .teklif-footer-box { margin: 10px 8px; }
  .teklif-bank-contact { grid-template-columns: 1fr; margin: 0 8px 12px; }
  .tbc-col:first-child { border-right: 0; border-bottom: 1px solid #ccc; }
  .teklif-detay > .govde { padding: 6px; }
}

/* Yazdır: sadece teklif belgesi çıkar */
@media print {
  @page { size: A4; margin: 8mm; }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff !important; }
  .sidebar, .topbar, .mobile-nav, .no-print, .alert { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  .yazdir-sutun { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
  .teklif-detay { box-shadow: none; border-radius: 0; }
  .teklif-detay > .baslik, .teklif-detay > .alt { display: none !important; }
  .teklif-detay > .govde { padding: 0; background: #fff; }
  #teklif-preview { box-shadow: none !important; border-radius: 0 !important; font-size: .75rem !important; }
  .teklif-header-bar { padding: 10px 16px !important; }
  .teklif-alici { padding: 8px 16px !important; }
  .teklif-body { padding: 0 16px 10px !important; }
  .teklif-table th, .teklif-table td { padding: 5px 6px !important; font-size: .72rem !important; }
  .teklif-totals td { padding: 3px 8px !important; }
  .teklif-footer-box { margin: 8px 16px !important; }
  .teklif-bank-contact { grid-template-columns: 1fr 1fr !important; margin: 0 16px 10px !important; }
  .teklif-mail { padding: 5px !important; }
}

/* Fiyat listesi penceresi */
.fl-tablo td, .fl-tablo th { font-size: .78rem !important; padding: 6px 8px !important; vertical-align: middle; }
.fl-tablo select { font-size: .76rem; padding: 2px 6px; max-width: 220px; }
.fl-artis { color: #c0392b; font-weight: 600; }
.fl-azalis { color: #1e8449; font-weight: 600; }
.sidebar-logo-img { max-width: 160px; max-height: 60px; border-radius: 6px; display: block; margin: 0 auto; }
.teklif-logo-img { max-width: 260px; object-fit: contain; display: block; }
.text-uppercase::placeholder { text-transform: none; }
.urun-imza { margin-top: 8px; font-size: .62rem; color: #6f93b3; text-align: center; letter-spacing: .3px; }
