
:root {
  --primary: #860000;
  --light-bg: #f4f4f4;
  --white-bg: #fff;
}




/* ==========================================
   YENİ PANEL VE FORM TASARIMI
   ========================================== */

/* Panel artık dikey yerleşim */
.panel-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 15px;

}



/* ==========================================
   FORM SECTİON YAPISI
   ========================================== */

.form-section {
  background: var(--white-bg);
  padding: 16px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 10px;
}

.compact-section {
  padding: 10px 15px;
}

.form-section h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #e7e7e7;
  padding-bottom: 4px;
}

















  

/* ==========================================
   MÜŞTERİ BİLGİLERİ - 5x2 GRID
   ========================================== */



.musteri-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 10px !important;
  align-items: stretch;
  align-items: center !important;

  gap: 8px 10px;
}

.musteri-item {
  display: flex;
  gap: 4px;
  padding: 9px 8px;
  background: #e7e7e7;
  border-radius: 6px;
  border: 1px solid #e9ecef;
    align-items: center !important;

}

.musteri-item strong {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0;
    align-items: center !important;

}





  
.musteri-item span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  word-wrap: break-word;
    align-items: center !important;

}





/* ==========================================
   MÜŞTERİ BİLGİLERİ - YENİ KOMPAKT TASARIM (DÜZELTİLMİŞ)
   ========================================== */

/* Müşteri Bilgileri Ana Container */
.musteri-bilgileri-container {
  display: grid;
  grid-template-columns: 60px 1fr 70px; /* Fotoğraf - Bilgiler - Butonlar */
  gap: 15px;
  background: var(--white-bg);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  align-items: stretch;
}


#adSoyad {
  font-size: 1rem !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sol: Fotoğraf Alanı */
.fotograf-alani {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  color: #6c757d;
  font-size: 0.6rem;
  font-style: italic;
  text-align: center;
  user-select: none;
  padding: 5px;
  height: 80px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fotograf-alani:hover {
  border-color: var(--primary);
  background-color: #f5f5f5;
}



#musteri-bilgileri .musteri-item {
  align-items: center !important;
}


.fotograf-alani img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: cover;
}


/* KVKK Butonu Stilleri */
.kvkk-btn.onaylanmis {
  background-color: #95a5a6 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.kvkk-btn:not(.onaylanmis):hover {
  background-color: #0056b3 !important;
  transform: translateY(-2px);
}


#email {
  font-size: clamp(0.7rem, 1vw, 0.77rem) !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Alternatif olarak tüm span'lar için genel kural */
#musteri-bilgileri .musteri-item span {
  font-size: clamp(0.65rem, 2vw, 0.92rem) !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#musteri-bilgileri .musteri-item {
  
  display: flex !important;
  flex-direction: row !important; /* Yatay düzen - başlık ve değer yan yana */
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}




/* KVKK Özel Renkleri */
.kvkk-status {
  font-weight: bold !important;
}

.kvkk-evet {
  color: #28a745 !important;
}

.kvkk-hayir {
  color: #dc3545 !important;
}

/* Sağ: Butonlar Alanı */
.buton-alani {
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 75px; /* Fotoğraf alanı ile aynı yükseklik */
}

.firsat-btn, .kvkk-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.firsat-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.firsat-btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.kvkk-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.kvkk-btn:hover {
  background: linear-gradient(135deg, #545b62, #383d42);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.kvkk-btn.onaylanmis {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.kvkk-btn.onaylanmis:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}


















/* ==========================================
   İŞLEM DETAYLARI - 5x2 GRID
   ========================================== */

.form-grid-5x2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 3px;
}

.form-grid-5x2 input,
.form-grid-5x2 select {
  padding: 4px 8px;
  font-size: 0.82rem;
  
}

/* ==========================================
   KULLANILAN MALZEMELER - ARAMA ÖZELLİKLİ
   ========================================== */



.stok-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px 18px;
  padding: 7px;
  background: #504848;
  border-radius: 6px;
  border: 1px solid #e7e7e7;
}

.stok-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px;
  background: rgb(199, 197, 197);
  border-radius: 4px;
  border: 2px solid #474747;
}

.stok-item input[type="text"] {
  flex: 3;
  font-size: 0.9rem;
  padding: 2px 4px !important;       /* Dikey padding azaltıldı */
  line-height: 1 !important;         /* Satır yüksekliği sıkılaştırıldı */
  height: auto !important;           /* Tarayıcı varsayılan yüksekliği kaldırıldı */
  min-height: unset !important;      /* Minimum yükseklik iptal edildi */
  box-sizing: border-box !important; /* Padding ve border dahil edildi */
  border: 1px solid #707070;
  border-radius: 3px;
  background: white;
  vertical-align: middle !important; /* Orta hizalama */
}


.stok-item input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 3px rgba(134, 0, 0, 0.3);
}

.ayirici {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0 1px;
}

.adet-select {
  flex: 1;
  font-size: 0.75rem;
  min-width: 50px;
  padding: 4px;
  background-color: #fff;
  border: 1px solid #707070;
  border-radius: 3px;
}

.adet-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 3px rgba(134, 0, 0, 0.3);
}

/* ==========================================
   AÇIKLAMALAR GRID
   ========================================== */

.aciklama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px 20px;
}

.aciklama-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aciklama-item label {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.aciklama-item textarea {
  min-height: 65px;
  max-height: 120px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  resize: vertical;
}
/* ==========================================
   FORM BUTONLARI - YENİ ORAN DÜZENİ
   ========================================== */

.form-buttons {
  display: flex;
  gap: 12px;
  padding-top: 8px;
  border-top: 2px solid #f1f1f1;
}

.form-buttons .submit-btn {
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Spesifik buton genişlikleri */
.form-buttons #pre-submit {
  flex: 0 0 25%; /* Ön Kayıt Oluştur - %25 */
   background-color: #2e5fc9;

}

/* Spesifik buton genişlikleri */
.form-buttons #pre-submit:hover {
  flex: 0 0 25%; /* Ön Kayıt Oluştur - %25 */
   background-color: #091a3d;
     box-shadow: 0 4px 8px rgba(4, 92, 192, 0.363);


}

.form-buttons button[type="submit"] {
  flex: 0 0 47%; /* İşlemi Kaydet - %50 */
}

.form-buttons #faturaBtn {
  flex: 0 0 25%; /* Fatura Oluştur - %25 */
}

.submit-btn {
  background-color: var(--primary);
  color: white;
}

.submit-btn:hover {
  background-color: #6d0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(134, 0, 0, 0.3);
}

.fatura-btn {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

















#faturaBtn::after {
  content: "Bu özellik için FOKUS618 PRO Paketi gerekmektedir.";
  position: absolute;
  top: 110%; /* Butonun altında */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  font-size: 0.8rem;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-top: 8px;
  z-index: 999;
}


#faturaBtn.show-tooltip::after {
  opacity: 1;
}


.spinner {
  margin: 0 auto;
  width: 34px;
  height: 34px;
  border: 4px solid #ddd;
  border-top: 4px solid #860000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.silinebilir {
  background-color: #fddcdc !important;
  border: 2px solid #d9534f !important;
  border-radius: 8px !important;
  color: #000 !important;
  transition: background-color 0.2s ease !important;
}


.silinebilir:hover {
  background-color: #111111 !important;
  font-weight: bold !important;
  color: #e7e7e7 !important;
}

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tek bir toast */
.toast {
  min-width: 200px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.3s forwards, fadeOut 0.5s forwards 3.5s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Türlere göre renkler */
.toast.success { background-color: #28a745; }
.toast.error { background-color: #dc3545; }
.toast.info { background-color: #007bff; }

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--light-bg);
  padding: 0 20px 40px;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: relative; /* mutlak konumlanan çocuk için referans */
  background-color: var(--primary);
  color: #fff;
  padding: 8px 20px;
  display: flex;
  max-width: 1800px;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 10px 10px;
  gap: 10px;
  flex-wrap: nowrap; /* Taşmayı engeller */
  overflow: visible; /* Taşma varsa göster */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.logo-container h1 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
}

.logo-container h2 {
  font-size: 0.65rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.85;
  line-height: 1.5;
}




.user-info {
  display: flex; 
  flex-direction: row; /* Yanyana dizilsin */
  align-items: center; /* Dikeyde ortala */
  justify-content: flex-end; /* Sağa hizala */
  min-width: 250px;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
}

.user-info button {
  background: none;
  border: none;
  color: #ccc;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
  font-size: 0.65rem;
  margin-left: 8px; /* Buton ile yanındaki içerik arasında boşluk */
}





.user-info button:hover {
  color: #fff;
}

.header-middle-logo img {
  height: 40px;
  object-fit: contain;
}

/* Ortadaki logo için */
.header-middle-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* İstersen, diğer öğelerle etkileşim engellenir */
}




























/* ============================
USER
============================ */


#ikinokta {
  font-weight: 700;       /* Kalın yazı */
  color: #860000;         /* #860000 rengi */
  user-select: none;      /* İsteğe bağlı: seçilmesini engeller */
}


#pre-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


#islemForm {
  background: var(--white-bg);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#islemForm .row-group {
  display: flex;
  gap: 10px;
}

#islemForm .row-group > input,
#islemForm .row-group > select {
  flex: 1; /* Yan yana elemanlar eşit genişlikte */
}

.phone-search {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.phone-search input[type="tel"] {
  flex-grow: 1;
  padding: 6px 5px 6px 15px;
  border-radius: 10px;
  border: 2px solid #797979;
  font-size: 19px;
  min-width: 200px;
  font-weight: bold;
}

.phone-search button {
  padding: 8px 14px;  /* Önceki: 12px 20px */
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11.5px;     /* Önceki: 15px */
  font-weight: bold;
  flex-shrink: 0;
  min-width: 70px;     /* Önceki: 100px */
  transition: background-color 0.3s ease;
}

.phone-search button:hover {
  background-color: #6d0000;
}


.section {
  background: var(--white-bg);
  padding: 16px 16px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--primary);
}

.section p {
  margin: 6px 0;
  font-size: 0.9rem;
}

.section p strong {
  width: 120px;
  display: inline-block;
  color: var(--primary);
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row-group > * {
  flex: 1;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

input[readonly] {
  background: #eee;
  cursor: not-allowed;
}

textarea {
  min-height: 60px;
  max-height: 120px;
}

button.submit-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.2s ease;
  margin: 2px;
}

button.submit-btn:hover {
  background-color: #6d0000;
}

.section.full-width {
  grid-column: span 2;
  overflow-x: auto;
  margin-top: -10px;
  margin-bottom: -5px;
}






@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@200;700&display=swap');

.yorum-karti {
  display: flex;
  align-items: stretch;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  padding: 5px 25px 5px 20px;
  font-family: 'Fira Mono', monospace;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.15;
}

.yorum-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.yorum-logo img {
  height: 100%;
  width: auto;
  max-height: 150px;
  min-height: 150px;
  border-radius: 50px;
  object-fit: contain;
  transition: height 0.3s ease;
  margin-left: 12px;
}

.yorum-icerik {
  margin-left: 35px;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Yalnızca h3 başlık özeldir */
.yorum-baslik {
  margin-bottom: 5px;
  margin-top: 5px;
  font-weight: 700;
  color: #860000;
  font-size: 1.2rem;
  line-height: 1.3;
}

/* Tüm içerik öğeleri: aynı font ve satır aralığı */
.yorum-icerik p,
.yorum-icerik li,
.yorum-icerik ul,
.yorum-icerik h4 {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.15;
  margin: 1px 0 2px 0;
  padding: 1px 0 6px 0;
}




/* ==========================================
   FOKUS520 GOOGLE LOGIN STYLES
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#login-screen {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(134, 0, 0, 0.1);
  border-radius: 20px;
  padding: 50px 40px;
  width: 100%;
  max-width: 700px;
  margin: 100px auto 0 auto; /* Üstten 100px boşluk - mevcut stil ile uyumlu */
  text-align: center;
  box-shadow: 
    0 20px 40px rgba(134, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.8s ease-out;
  display: flex; /* Mevcut login-container ile uyumlu */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum yükseklik */
  gap: 15px; /* Mevcut stil ile uyumlu */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#login-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #860000, #a30000, #860000);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#login-screen h2 {
  color: #2d3748;
  font-size: 30px; /* Mevcut login-title ile uyumlu */
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #860000, #a30000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-logo-container {
  background: #860000;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(134, 0, 0, 0.3);
}

.login-logo {
  width: auto;
  height: 100px;
  animation: loginFadeIn 1s ease-out 0.3s both;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-security-notice-link {
  color: #860000;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(134, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.login-security-notice-link:hover {
  border-bottom-color: #860000;
}

.custom-login-google-btn {
  background: linear-gradient(135deg, #860000, #a30000);
  border: 2px solid #860000;
  border-radius: 14px;
  padding: 18px 30px;
  width: 100%;
  max-width: 300px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.custom-login-google-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.custom-login-google-btn:hover::before {
  left: 100%;
}

.custom-login-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 24px rgba(134, 0, 0, 0.3),
    0 4px 8px rgba(134, 0, 0, 0.2);
  background: linear-gradient(135deg, #a30000, #860000);
}

.custom-login-google-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 8px rgba(134, 0, 0, 0.2),
    0 2px 4px rgba(134, 0, 0, 0.1);
  background: linear-gradient(135deg, #730000, #860000);
}

.custom-login-google-btn img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.custom-login-google-btn:hover img {
  transform: scale(1.1);
}

.login-status {
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  transition: all 0.3s ease;
  width: 100%; /* Tam genişlik */
}

.login-status.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.login-status.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.login-status.loading {
  background: linear-gradient(135deg, #860000, #a30000);
  color: white;
  box-shadow: 0 4px 12px rgba(134, 0, 0, 0.3);
}

.login-status.loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* ==========================================
   PWA CONTROLS STYLES
   ========================================== */

.pwa-toggle-btn {
  position: static !important;; /* Relative veya absolute yerine normal akışta olsun */
  display: block !important; /* Başlangıçta gizliydi, görünür yap */
  background: linear-gradient(135deg, #860000, #a30000);
  color: white;
  margin: 5px auto 0 auto; /* Üstten 5px boşluk, yatayda ortala */
  border: none;
  border-radius: 15px;
  cursor: pointer;
  z-index: 1001;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(134, 0, 0, 0.3);
  transition: all 0.3s ease;
  padding: 5px 12px; /* Butonun iç boşlukları */
  width: fit-content; /* İçeriğe göre genişlik */
}

.pwa-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(134, 0, 0, 0.4);
}



/* Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #860000;
  border-radius: 12px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(134, 0, 0, 0.2);
  text-align: center;
  max-width: 300px;
  animation: fadeInUp 0.3s ease-out;
}

.install-prompt h4 {
  margin: 0 0 10px 0;
  color: #860000;
  font-size: 16px;
}

.install-prompt p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
}


/* ==========================================
   PWA ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.install-prompt {
  animation: fadeInUp 0.3s ease-out;
}

.install-option-btn {
  animation: fadeInUp 0.5s ease-out;
}

/* ==========================================
   USER INFO STYLES (Sağ üst köşe)
   ========================================== */

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: white;
}

.user-info div {
  color: white;
  font-weight: 500;
}

.user-info button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.user-info button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   LOADING STATES
   ========================================== */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #860000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Blink animasyonu - typing indicator için */
@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}-notice {
  background: linear-gradient(135deg, #f7f7f7, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  width: 100%; /* Tam genişlik */
}

.login-security-notice-title {
  color: #1e293b;
  font-weight: 600;
}

.login-security-notice-text {
  margin: 0;
  text-align: justify;
  hyphens: auto;
}






/* === GENEL CONTAINER === */
#randevu-section {
  background: #ffffff;
  padding: 20px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

/* === BEKLEYEN RANDEVULAR === */
.randevu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 8px;
}

.randevu-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
  flex: 0 0 auto;
}

/* Bekleyen randevuların span görünümü */
.randevu-listesi-container {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.8rem;
  padding: 4px 0;
}

.randevu-listesi-container span {
  background: #e0e7ff;
  color: #1a237e;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #c5cae9;
  white-space: nowrap;
}

/* Yenile Butonu */
#btnRandevuYenile {
  background: #860000;
  border: 1px solid #000000;
  border-radius: 10px;
  padding: 5px 15px;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.1s;
  flex-shrink: 0;
}

#btnRandevuYenile:hover {
  background: #ffffff;
  color: #313131;
}

/* Sil Butonu */
#btnRandevuSil {
  background: #860000;
  border: 1px solid #000000;
  border-radius: 10px;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.1s;
  flex-shrink: 0;
}

#btnRandevuSil:hover {
  background: #ffffff;
}

.butonlar-container {
  margin-left: auto !important; /* önemli kılarak zorlayalım */
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-grow: 1 !important; /* mümkünse kalan alanı kaplasın */
}

#bekleyenRandevular > div:first-child {
  display: flex;
  align-items: center;
  width: 100%;
}








/* === RANDEVU ALANLARI CSS === */

/* Randevu container - masaüstü */
.randevu-btn-container {
  display: flex;
  gap: 25px;
  align-items: center;
  text-align: left;
}

/* Randevu select alanları - masaüstü */
#randevuPersonelSelect,
#randevuSuresi {
  max-width: 28%;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: rgba(219, 218, 218, 0.123);
  cursor: pointer;
}

/* Yeni Randevu butonu */
#btnYeniRandevu {
  padding: 8px 25px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 1px solid #860000;
  background-color: #860000;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: 1;
  min-width: 250px;
}

#btnYeniRandevu:hover {
  background-color: #b90202;
}




/* === TAKVİM SECTION === */
#takvimSection {
  display: none;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #ffffff;
  max-width: 100%;
  overflow-x: auto;
}

/* Takvim içeriği */
#takvimContainer {
  margin-top: 8px;
  min-height: 150px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

/* Onayla ve Kapat Butonları */
.takvim-butonlari {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

#btnKapatTakvim,
#btnOnaylaTakvim {
  flex: 1;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #860000;
  background-color: #860000;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btnKapatTakvim:hover,
#btnOnaylaTakvim:hover {
  background-color: #a70000;
}










/* ==========================================
TEKLİFLER - KOMPAKT TASARIM
   ========================================== */

/* Teklifler Section - Gizlenebilir */
#teklifler-section {
  display: none; /* Başlangıçta gizli */
  margin-top: 8px;
}

#teklifler-section.show {
  display: block;
}

/* Teklif Maddesi Container - Kompakt */
.teklif-maddesi {
  border: 2px solid #ddd;
  border-radius: 10px;
  margin: 15px 0;
  padding: 10px 15px;
  background: #f1f0f0;
  position: relative;
  transition: all 0.3s ease;
}

.teklif-maddesi:hover {
  border-color: #860000;
  box-shadow: 0 4px 12px rgba(134, 0, 0, 0.15);
}

/* Teklif ID - Kompakt */
.teklif-id {
  position: absolute;
  top: -12px;
  left: 12px;
  background: #860000;
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(134, 0, 0, 0.3);
}

/* Ana Grid - 3 Sütun Düzen, artırılmış boşluklar */
.teklif-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 100px;
  gap: 10px 25px;
  margin-top: 10px;
  align-items: start;
}

/* Sol Alan - İşlem Bilgileri */
.sol-alan {
  display: flex;
  flex-direction: column;
}

/* İşlem Grid - 2x2 Düzen, daha da artırılmış boşluk */
.islem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  row-gap: 15px;
}

/* Orta Alan - Ürünler */
.orta-alan {
  display: flex;
  flex-direction: column;
}

/* Sağ Alan - Durum (Genişletilmiş) */
.sag-alan {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
}

/* Dikey Radio Grup - Genişletilmiş */
.radio-grup-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  padding: 8px 8px;
}

.radio-grup-vertical .radio-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.radio-grup-vertical .radio-item:hover {
  background-color: #f8f9fa;
}

.radio-grup-vertical .radio-item label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.2;
}

.radio-grup-vertical .radio-item input[type="radio"] {
  width: 12px;
  height: 12px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Durum Renkleri - Dikey */
.radio-grup-vertical .radio-item input[type="radio"]:checked + label[for*="gerceklesti"] {
  color: #28a745;
  font-weight: bold;
}

.radio-grup-vertical .radio-item input[type="radio"]:checked + label[for*="bekliyor"] {
  color: #ffc107;
  font-weight: bold;
}

.radio-grup-vertical .radio-item input[type="radio"]:checked + label[for*="iptal"] {
  color: #dc3545;
  font-weight: bold;
}

/* Teklif Field - Kompakt */
.teklif-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.teklif-field label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  font-size: 11px;
}

.teklif-field input, 
.teklif-field select, 
.teklif-field textarea {
  padding: 5px 8px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
  min-height: 26px;
}

.teklif-field input:focus, 
.teklif-field select:focus, 
.teklif-field textarea:focus {
  border-color: #860000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(134, 0, 0, 0.1);
}

/* Ürünler Grid - Aynen Kalıyor */
.urunler-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-top: 4px;
}

.urunler-grid input {
  padding: 2px 6px !important;       /* Dikey padding sıkıştırıldı */
  font-size: 11px;
  line-height: 1 !important;         /* Satır yüksekliği sıkılaştırıldı */
  height: auto !important;           /* Tarayıcı varsayılan yüksekliği kaldırıldı */
  min-height: unset !important;      /* Minimum yükseklik iptal edildi */
  box-sizing: border-box !important; /* Padding ve border dahil edildi */
  vertical-align: middle !important; /* Orta hizalama */
}

/* Yeni Teklif Ekle Butonu */
.yeni-teklif-btn {
  background: linear-gradient(135deg, #28a745, #34ce57);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  min-width: 180px;
}

.yeni-teklif-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.yeni-teklif-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Teklif Detayları - Kompakt */
.teklif-detaylari {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e9ecef;
}

.detay-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 15px;
  align-items: start;
}

/* İlk eleman (teklif notları) 2 satırı da kaplasın */
.detay-item:first-child {
  grid-row: span 2;
}

.detay-item {
  display: flex;
  flex-direction: column;
}

.detay-item label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #495057;
  font-size: 11px;
}

.detay-item input, 
.detay-item select, 
.detay-item textarea {
  padding: 6px 9px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease;
}

.detay-item input:focus, 
.detay-item select:focus, 
.detay-item textarea:focus {
  border-color: #860000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(134, 0, 0, 0.1);
}

.detay-item input[readonly] {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.detay-item textarea {
  resize: vertical;
  min-height: 100px;
}

/* Teklifi Güncelle Butonu */
.teklif-guncelle-btn {
  width: 99%;
  background: linear-gradient(135deg, #860000, #a00000);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  margin-left: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(134, 0, 0, 0.4);
  margin-top: 15px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.teklif-guncelle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.teklif-guncelle-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #a00000, #c00000);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(134, 0, 0, 0.5);
}

.teklif-guncelle-btn:hover:not(:disabled)::before {
  left: 100%;
}

.teklif-guncelle-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Dikkat Çekici Animasyon */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.teklif-guncelle-btn.dikkat {
  animation: pulse 2s infinite;
  box-shadow: 0 6px 20px rgba(134, 0, 0, 0.6);
}

/* Geçmiş Teklifler Butonları - Güncelle butonunun altında */
.gecmis-teklifler-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Geçmiş Teklif Butonları - Mat ve İkinci Planda */
.gecmis-teklif-btn {
  flex: 1;
  max-width: 320px;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* İptal Olan Teklifler Butonu - Mat */
.gecmis-teklif-btn.iptal-btn {
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

.gecmis-teklif-btn.iptal-btn:hover {
  background: #e9ecef;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Gerçekleşen Teklifler Butonu - Mat */
.gecmis-teklif-btn.gerceklesen-btn {
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

.gecmis-teklif-btn.gerceklesen-btn:hover {
  background: #e9ecef;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Sil Butonu - Küçültüldü */
.teklif-sil-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #d80707;
  color: white;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teklif-sil-btn:hover {
  background: #c82333;
  transform: scale(1.15);
}


/* Validasyon Stilleri */
.hata {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.basari {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}


.detay-item textarea {
  min-height: 50px;
}

/* İptal Edilmiş Teklif Stilleri */
.teklif-iptal {
  opacity: 0.6;
  background: #f8d7da !important;
  border-color: #dc3545 !important;
}

.teklif-iptal .teklif-id {
  background: #dc3545 !important;
}

.teklif-iptal input, 
.teklif-iptal select {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  cursor: not-allowed !important;
}



gecmis-teklifler-container {
  margin-top: 15px;
}

.gecmis-teklif-btn {
  padding: 8px 12px;
  border: 1px solid #860000;
  background: white;
  color: #860000;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.gecmis-teklif-btn:hover {
  background: #860000;
  color: white;
}

.gecmis-teklif-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Geçmiş teklifler tablosu */
.gecmis-teklifler-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65rem;
  line-height: 1.3;
  gap: 10px;
}

.gecmis-teklifler-table th {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 4px 6px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 0.65rem;
}

.gecmis-teklifler-table td {
  border: 1px solid #ddd;
  padding: 4px 6px;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* Duruma göre satır renkleri */
.gecmis-teklifler-table tr.gerceklesen {
  background-color: #e8f5e8; /* Pastel yeşil */
}

.gecmis-teklifler-table tr.iptal {
  background-color: #fce4ec; /* Pastel açık kırmızı/pembemsi */
}

.gecmis-teklifler-table tr:hover {
  opacity: 0.8;
}

/* ID sütunu için özel stil */
.teklif-id-col {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

/* Fiyat sütunu için özel stil */
.fiyat-col {
  text-align: right;
  font-weight: 500;
  
}

/* Ürünler sütunu için özel stil */
.urunler-col {
  max-width: 300px;
  word-wrap: break-word;
  font-size: 0.65rem;
  width: 200px;
}

/* Durum sütunu için özel stil */
.durum-col {
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.durum-gerceklesen {
  color: #2e7d32;
}

.durum-iptal {
  color: #c62828;
}





/* ==========================================
   MOBİL TASARIM - ORJİNAL KODLAR KORUNARAK DÜZENLENDİ
   Sadece talep edilen değişiklikler yapıldı
   ========================================== */

/* ==========================================
   900px ALTINDA - GENEL MOBİL AYARLAR
   ========================================== */

@media (max-width: 900px) {
  

  
  /* Dikey boşlukları daha da daralt */
  .panel-vertical {
    gap: 4px !important;
    margin-top: 2px !important;
  }
  
  .form-section {
    padding: 6px 10px !important;
    margin-bottom: 4px !important;
  }
  
  .compact-section {
    padding: 4px 10px !important;
  }
  
  .form-section h4 {
    font-size: calc(1rem - 2px) !important;
    margin: 0 0 3px 0 !important;
    padding-bottom: 2px !important;
  }
  
  /* ==========================================
     HEADER - LOGOLAR KÜÇÜLTÜLDÜ, YAZILAR GİZLENDİ
     ========================================== */
  
  header {
    padding: 4px 8px !important;
    margin-bottom: 2px !important;
  }
  
  #dashboard {
    margin-top: 2px !important;
  }
  
  .logo-container img {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
  }
  
  .header-middle-logo img {
    height: 20px !important;
    max-height: 20px !important;
  }
  
  /* Header yazılarını gizle */
  .logo-container h1,
  .logo-container h2 {
    display: none !important;
  }
  
  /* Kullanıcı adını gizle, sadece çıkış butonu görünsün */
  .user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 3px !important;
    min-width: 175px !important;
    font-size: calc(0.55rem - 2px) !important;
    justify-content: flex-end !important;
  }
  
  #Companytitle {
    display: none !important;
  }
  
  .user-info button {
    font-weight: 400 !important;
    padding: 2px 6px !important;
    font-size: calc(0.5rem - 2px) !important;
    margin: 0 !important;
  }
  
  /* ==========================================
     DASHBOARD - TELEFONLA ARA BUTONLARI 2 SÜTUN
     ========================================== */
  
  .phone-search {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 6px !important;
    flex-direction: row !important;
    width: 100% !important;
    margin-top: 0px !important;
    margin-bottom: 4px !important;
  }
  
  .phone-search input[type="tel"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;

  }
  
  .phone-search button {
    width: 100% !important;
    padding: 8px 4px !important;
    font-size: calc(11.5px - 3px) !important;
  }
  
  /* Sorgula ve çevresindeki 6 buton - 1px daha küçük */
  #sorgulaBtn,
  #isimlearaBtn,
  #onkayitlarBtn,
  #sifirlaBtn,
  #fokus216Btn,
  #musteriekleBtn {
    font-size: calc(11.5px - 3px) !important;
  }
  
  /* Asistanlar butonunu mobilde gizle */
  #fokusAsistanBtn {
    display: none !important;
  }
  
  /* Fırsat popup'ını mobilde gizle */
  .firsat-popup,
  .firsat-overlay,
  #firsatPopup {
    display: none !important;
  }
  
  /* Malzeme listesi dropdown için düzeltme */
  .stok-item input[type="text"] {
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Autocomplete listesi mobilde görünsün */
  .autocomplete-items {
    position: absolute !important;
    z-index: 999 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    width: 100% !important;
    background: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  }
  
  .autocomplete-items div {
    padding: 8px !important;
    font-size: calc(0.8rem - 2px) !important;
    cursor: pointer !important;
    border-bottom: 1px solid #eee !important;
  }
  
  .autocomplete-items div:hover,
  .autocomplete-active {
    background-color: #e9ecef !important;
  }
  
  /* ==========================================
     MÜŞTERİ BİLGİLERİ - FOTOĞRAF KALDIR, 2 SÜTUN
     ========================================== */
  
  .musteri-bilgileri-container {
    display: block !important;
    padding: 6px !important;
    grid-template-columns: 1fr !important;
  }
  
  /* Fotoğraf alanını gizle */
  .fotograf-alani {
    display: none !important;
  }
  
  /* Müşteri bilgileri 2 sütun */
  .musteri-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px 6px !important;
  }
  
  .musteri-item {
    padding: 3px 4px !important;
    font-size: calc(0.85rem - 5px) !important;
  }
  
  .musteri-item strong {
    font-size: calc(0.7rem - 5px) !important;
  }
  
  .musteri-item span {
    font-size: calc(0.85rem - 5px) !important;
  }
  
  /* Ad Soyad'ı diğerleri gibi boyutlandır */
  #adSoyad {
    font-size: calc(0.85rem - 5px) !important;
  }
  
  /* E-posta 1.5px daha küçük */
  #email {
    font-size: calc(0.77rem - 3.5px) !important;
  }
  
  /* KVKK ve Kampanya en altta yan yana */
  .buton-alani {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 6px !important;
    height: auto !important;
    flex-direction: row !important;
  }
  
  .firsat-btn,
  .kvkk-btn {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* ==========================================
     İŞLEM DETAYLARI - TEK SÜTUN
     ========================================== */
  
  .form-grid-5x2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 6px !important;
  }
  
  .form-grid-5x2 input,
  .form-grid-5x2 select {
    padding: 3px 5px !important;
    font-size: calc(0.82rem - 3px) !important;
  }
  
  /* ==========================================
     KULLANILAN MALZEMELER - ORJİNAL + GÜNCEL
     ========================================== */
  
  .stok-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(6, 1fr) !important;

    gap: 4px !important;
    padding: 6px !important;
  }
  
  .stok-item {
    padding: 3px !important;
    margin: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
  }
  
  .stok-item input[type="text"] {
    flex: 0 0 78% !important;
    width: 78% !important;
    font-size: calc(0.75rem - 3.5px) !important;
    padding: 4px !important;
  }
  
  .ayirici {
    display: none !important;
  }
  
  .adet-select {
    flex: 0 0 20% !important;
    width: 20% !important;
    font-size: calc(0.75rem - 3.5px) !important;
    padding: 4px !important;
  }
  
  /* ==========================================
     AÇIKLAMALAR GRID - ORJİNAL + GÜNCEL
     ========================================== */
  
  .aciklama-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  .aciklama-item label {
    font-size: calc(0.8rem - 2px) !important;
  }
  
  .aciklama-item textarea {
    min-height: 30px !important;
    font-size: calc(0.75rem - 2px) !important;
  }
  
  /* ==========================================
     FORM BUTONLARI - ORJİNAL ORANLAR KORUNDU
     ========================================== */
  
  .form-buttons {
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
  }
  
  .form-buttons .submit-btn {
    padding: 6px 8px !important;
  }
  
  /* Mobilde buton metinlerini kısalt */
  #pre-submit::after {
    content: 'Ön Kayıt' !important;
  }
  
  #pre-submit {
    font-size: 0 !important;
    flex: 0 0 25% !important;
  }
  
  #faturaBtn::before {
    content: 'Fatura' !important;
    font-size: calc(0.9rem - 2px) !important;
  }
  
  #faturaBtn {
    font-size: 0 !important;
    flex: 0 0 25% !important;
  }
  
  #pre-submit::after,
  #faturaBtn::before {
    font-size: calc(0.9rem - 2px) !important;
  }

  .form-buttons button[type="submit"] {
    flex: 0 0 44% !important;
  }
  
  /* ==========================================
     İŞLEM TARİHİ VE KAYDET BUTONU
     ========================================== */
  
  .tarih-kaydet-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .kaydet-btn {
    width: 100% !important;
    padding: 10px !important;
    font-size: calc(1rem - 2px) !important;
  }
  
  /* ==========================================
     GEÇMİŞ İŞLEMLER VE FİLTRELER - TAŞMA ÖNLEMİ
     ========================================== */
  
  .filters-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 8px !important;
    overflow-x: hidden !important;
  }
  
  .filter-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .filter-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  
  .filter-group label {
    font-size: calc(0.75rem - 2px) !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .filter-group input,
  .filter-group select {
    width: 100% !important;
    font-size: calc(0.8rem - 2px) !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }
  
  /* Filtre butonları */
  .filter-buttons {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }
  
  .filter-buttons button {
    flex: 1 !important;
    padding: 8px 6px !important;
    font-size: calc(0.75rem - 2px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  /* Temizle ve Tümünü Göster butonları */
  #temizleBtn,
  #tumunuGosterBtn {
    padding: 8px 6px !important;
    font-size: calc(0.75rem - 2px) !important;
    min-width: auto !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  
  /* Tablo yatay taşma önlemi */
  .islemler-container {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .islemler-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .islemler-table {
    min-width: 100% !important;
    font-size: calc(0.75rem - 2px) !important;
  }
  
  .islemler-table th,
  .islemler-table td {
    padding: 6px 4px !important;
    font-size: calc(0.7rem - 2px) !important;
    white-space: nowrap !important;
  }
  
  /* ==========================================
     TEKLİFLER BÖLÜMÜ - MOBİLDE TAM DÜZENLENDİ
     ========================================== */
  
  #teklifler-section {
    padding: 4px !important;
    margin-top: 4px !important;
  }
  
  #teklifler-section h3 {
    font-size: calc(1rem - 3px) !important;
    padding: 6px !important;
  }
  
  #teklifler-container {
    padding: 5px !important;
  }
  
  .teklif-maddesi {
    padding: 6px 8px !important;
    margin: 12px 0 !important;
  }
  
  .teklif-id {
    font-size: calc(11px - 2px) !important;
    padding: 3px 6px !important;
    top: -8px !important;
  }
  
  .teklif-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }
  
  .sol-alan,
  .orta-alan,
  .sag-alan {
    width: 100% !important;
  }
  
  .islem-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    row-gap: 5px !important;
  }
  
  .islem-grid input,
  .islem-grid select {
    font-size: calc(0.8rem - 3px) !important;
    padding: 5px !important;
  }
  
  .islem-grid label {
    font-size: calc(0.75rem - 3px) !important;
    margin-bottom: 3px !important;
  }
  
  .urunler-grid {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }
  
  .urun-item {
    padding: 4px !important;
  }
  
  .urun-item input,
  .urun-item select {
    font-size: calc(0.75rem - 3px) !important;
    padding: 4px !important;
  }
  
  .urun-item label {
    font-size: calc(0.65rem - 3px) !important;
  }
  
  .sag-alan {
    padding: 0px !important;
  }
  
  .radio-grup-vertical {
    flex-direction: row !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    padding: 4px !important;

    gap: 0px 15px !important;
  }
  
  .radio-grup-vertical .radio-item {
    flex: 0 0 auto !important;
  }
  
  .radio-grup-vertical .radio-item label {
    font-size: calc(0.8rem - 2px) !important;
    padding: 2px 5px !important;
  }
  
  .detay-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 6px !important;
  }
  
  .detay-item:first-child {
    grid-row: span 1 !important;
  }
  
  .detay-item label {
    font-size: calc(0.8rem - 2.5px) !important;
    margin-bottom: 3px !important;
  }
  
  .detay-item input,
  .detay-item select,
  .detay-item textarea {
    font-size: calc(0.8rem - 2.5px) !important;
    padding: 5px !important;
  }
  
  .yeni-teklif-btn {
    font-size: calc(1rem - 2.5px) !important;
    padding: 8px !important;
    margin: 8px 0 !important;
  }
  
  .teklif-guncelle-btn {
    font-size: calc(14px - 2.5px) !important;
    padding: 10px !important;
    margin-top: 8px !important;
  }
  
  /* Geçmiş teklifler */
  .gecmis-teklifler-container {
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  
  .gecmis-teklif-btn {
    max-width: 100% !important;
    font-size: calc(0.85rem - 2px) !important;
    padding: 8px 10px !important;
  }
  
  .gecmis-teklifler-table {
    font-size: calc(0.65rem - 2px) !important;
    overflow-x: auto !important;
    display: block !important;
  }
  
  .gecmis-teklifler-table th,
  .gecmis-teklifler-table td {
    padding: 5px 3px !important;
    font-size: calc(0.6rem - 2px) !important;
    white-space: nowrap !important;
  }
  
  #gecmis-teklifler-tablo-container {
    margin-top: 10px !important;
    overflow-x: auto !important;
  }
  
  /* ==========================================
     LOGİN EKRANI - ORJİNAL KODLAR
     ========================================== */
  
  #login-screen {
    padding: 40px 20px !important;
    margin: 50px 10px 0 10px !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 16px !important;
    min-height: 350px !important;
  }
  
  /* Login ekranı alt linkleri mobilde dikey */
  #login-screen > div:last-of-type {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    margin-top: 20px !important;
  }
  
  #login-screen > div:last-of-type a {
    width: 90% !important;
    max-width: 250px !important;
    padding: 8px 12px !important;
    font-size: calc(12px - 2px) !important;
    text-align: center !important;
  }
  
  #login-screen > div:last-of-type a img {
    width: 120px !important;
    height: auto !important;
    max-height: 70px !important;
  }
  
  .login-logo-container {
    max-width: 300px !important;
    height: auto !important;
    width: 75% !important;
    margin: 0 auto 25px !important;
  }

  .login-logo {
    max-width: 100% !important;
    height: auto !important;
  }
  
  #login-screen h2 {
    font-size: 28px !important;
  }
  
  .custom-login-google-btn {
    padding: 20px 26px !important;
    font-size: 16px !important;
    max-width: 280px !important;
  }
  
  .login-security-notice {
    padding: 16px !important;
    font-size: 13px !important;
  }

  /* PWA Butonları Mobile */
  .pwa-toggle-btn {
    padding: 4px 10px !important;
    font-size: 7px !important;
  }

  .install-prompt {
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    max-width: none !important;
  }
  
  /* ==========================================
     PANEL VE SECTION - ORJİNAL
     ========================================== */

  .panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section {
    width: 100% !important;
    max-width: 100% !important;
  }

  .section.full-width {
    grid-column: span 1 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow-x: auto !important;
  }
  
  .row-group {
    flex-direction: column !important;
    width: 100% !important;
  }

  .login-container {
    min-width: 98% !important;
    max-width: 98% !important;
    padding: 10px !important;
    gap: 5px !important;
  }

  .login-title {
    font-size: 1rem !important;
  }

  .login-container input,
  .login-container button {
    font-size: 0.95rem !important;
    padding: 8px 10px !important;
  }
  
  /* ==========================================
     YORUM KARTI - ORJİNAL
     ========================================== */

  .yorum-karti {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    gap: 6px !important;
  }

  .yorum-logo {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .yorum-logo img {
    max-height: 60px !important;
    min-height: 60px !important;
    margin: 0 auto 0px auto !important;
    max-width: 60px !important;
    height: auto !important;
  }

  .yorum-icerik {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin: 0 5px !important;
  }

  .yorum-baslik {
    font-size: calc(1rem - 2px) !important;
  }

  .yorum-icerik p,
  .yorum-icerik li,
  .yorum-icerik ul,
  .yorum-icerik h4 {
    font-size: calc(0.75rem - 2px) !important;
  }
  
  /* ==========================================
     RANDEVU BÖLÜMÜ - ORJİNAL
     ========================================== */

/* ==========================================
   RANDEVU BÖLÜMÜ - MOBİL
   ========================================== */
  
  #randevu-section {
    position: relative !important;
  }
  
  .randevu-header {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }
  
  /* Başlık */
  #bekleyenRandevular > div:first-child {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 4px !important;
  }
  
  .randevu-header h4 {
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: #333 !important;
  }
  
  #randevuPersonelSelect,
  #randevuSuresi {
    max-width: 90% !important;
    width: 90% !important;
    font-size: calc(0.65rem - 2px) !important;
    padding: 6px !important;
  }
  
  #btnYeniRandevu {
    width: 90% !important;
    font-size: calc(0.75rem - 2px) !important;
    padding: 8px 15px !important;
  }
  
  /* Butonlar container - gizle */
  .butonlar-container {
    display: none !important;
  }
  
  /* Sil butonu - sağ üst köşe */
  #btnRandevuSil {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    min-width: 36px !important;
    height: 28px !important;
    z-index: 10 !important;
  }
  
  /* Yenile butonu - sağdan 50px */
  #btnRandevuYenile {
    position: absolute !important;
    top: 5px !important;
    right: 50px !important;
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    min-width: 36px !important;
    height: 28px !important;
    z-index: 10 !important;
  }
  
  .randevu-listesi-container {
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    display: flex !important;
  }
  
  .randevu-listesi-container span {
    font-size: calc(0.45rem - 0px) !important;
    padding: 3px 6px !important;
  }

  
  #randevu-section {
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  .randevu-btn-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 3px !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  
  /* Personel Select - %46 */
  #randevuPersonelSelect {
    flex: 0 0 46% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    font-size: 0.6rem !important;
    padding: 5px 3px !important;
    box-sizing: border-box !important;
    border: 1px solid #ddd !important;
  }
  
  /* Süre Select - %18 */
  #randevuSuresi {
    flex: 0 0 18% !important;
    max-width: 20% !important;
    min-width: 0 !important;
    font-size: 0.6rem !important;
    padding: 5px 1px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
  }
  
  /* Yeni Randevu Butonu - %34 */
  #btnYeniRandevu {
    flex: 0 0 34% !important;
    max-width: 34% !important;
    min-width: 0 !important;
    font-size: 0.65rem !important;
    padding: 6px 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
  

  /* ==========================================
     MODAL VE POPUP'LAR
     ========================================== */
  
  #confirmModal > div {
    max-width: 90% !important;
    padding: 20px !important;
    margin: 0 10px !important;
  }
  
  #confirmMessage {
    font-size: calc(0.95rem - 2px) !important;
  }
  
  #confirmModal button {
    padding: 10px 15px !important;
    font-size: calc(0.9rem - 2px) !important;
  }
  
  /* ==========================================
     GENEL YATAY TAŞMA ÖNLEMİ
     ========================================== */
  
  body,
  html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .panel-vertical,
  .form-section,
  .musteri-bilgileri-container,
  #dashboard,
  #main-app,
  section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Container'ların yatay taşması önleniyor */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Tablo ve geniş içerikler için scroll */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* ==========================================
     INPUT VE SELECT GENEL AYARLAR
     ========================================== */
  
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  input[type="time"],
  input[type="number"],
  select,
  textarea {
    font-size: calc(0.75rem - 2px) !important;
    padding: 6px !important;
    border-radius: 6px !important;
  }
  
  button.submit-btn {
    font-size: calc(0.75rem - 2px) !important;
  }
  
  /* ==========================================
     SIL BUTONLARI
     ========================================== */
  
  .teklif-sil-btn {
    width: 15.4px !important;
    height: 15.4px !important;
    font-size: calc(9.8px - 2px) !important;
    top: 5px !important;
    right: 5px !important;
  }
  .teklif-sil-btn {
    width: 15.4px !important;
    height: 15.4px !important;
    font-size: calc(14px - 2px) !important;
    top: 5px !important;
    right: 5px !important;
  }
  .teklif-sil-btn {
    width: 15.4px !important;
    height: 15.4px !important;
    font-size: calc(14px - 2px) !important;
    top: 5px !important;
    right: 5px !important;
  }
  .teklif-sil-btn {
    width: 15.4px !important;
    height: 15.4px !important;
    font-size: calc(14px - 2px) !important;
    top: 5px !important;
    right: 5px !important;
  }
  .teklif-sil-btn {
    width: 15.4px !important;
    height: 15.4px !important;
    font-size: calc(14px - 2px) !important;
    top: 5px !important;
    right: 5px !important;
  }


  
  /* ==========================================
     ANIMASYONLAR VE SPINNER
     ========================================== */
  
  .spinner {
    width: 30px !important;
    height: 30px !important;
  }
  
  /* ==========================================
     FOOTER
     ========================================== */
  
  footer {
    padding: 6px !important;
    font-size: calc(0.8rem - 2px) !important;
    margin-top: 10px !important;
  }
  
  footer div {
    font-size: calc(0.85rem - 2px) !important;
  }
  
  /* Sorgula / Temizle gibi butonlar */
  .butonlar-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 50% !important;
  }
}


/* ==========================================
   480px ALTINDA - ÇOK KÜÇÜK EKRANLAR
   ========================================== */

@media (max-width: 480px) {
  
  /* Ekstra font küçültme */
  body, input, select, textarea, button {
    font-size: calc(0.9em - 2px) !important;
  }
  
  .phone-search button {
    padding: 6px 3px !important;
    font-size: calc(1rem - 2px) !important;
  }
  
  .musteri-item {
    padding: 3px !important;
  }
  
  .form-section,
  .compact-section {
    padding: 8px 10px !important;
  }
  
  .islem-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Header logolar daha da küçülsün */
  .logo-container img {
    height: 18px !important;
    max-height: 18px !important;
  }
  
  .header-middle-logo img {
    height: 16px !important;
    max-height: 16px !important;
  }
  
  .stok-grid {
    grid-template-columns: 1fr !important;
    padding: 8px !important;
  }
  
  .stok-item {
    padding: 4px !important;
  }
  
  .radio-grup-vertical .radio-item label {
    font-size: calc(9px - 1px) !important;
    padding: 5px 5px !important;
  }
}