/* ==================== FAR20 STOK YÖNETİMİ - ANA STİLLER ==================== */

* { box-sizing: border-box; }

/* Mobilde yakınlaştırmayı engelle */
html {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body { 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; 
  margin: 0; padding: 16px;
  background: #141414;
  min-height: 100vh;
  color: #e8e8e8;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  overscroll-behavior: none;
}

h1 { 
  text-align: center; 
  margin: 0 0 20px 0;
  font-size: 2.5rem;
  color: #e8e8e8;
  font-weight: 700;
  letter-spacing: 4px;
  /* FAR20 başlığı için metin seçimini engelle - gizli geçiş için */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* Personel modunda gizlenecek elementler */
body.personel-mode .admin-only {
  display: none !important;
}

/* Personel modunda stok değiştirme engelleme */
body.personel-mode #detail-stock {
  pointer-events: none;
  opacity: 0.6;
  background: #161616;
}

/* Personel modunda barkod ekle tıklaması engelleme */
body.personel-mode #detail-barcode {
  pointer-events: none;
  cursor: default;
}
body.personel-mode #detail-barcode.empty {
  color: #4a4a4a;
}

/* Sayfa geçişleri */
.page { display: none; }
.page.active { display: block; }

/* Ana sayfa butonları */
.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 300px;
  margin: 60px auto;
}

.btn-large {
  padding: 24px 32px;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-large:active { transform: scale(0.97); }

.btn-entry {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
  box-shadow: 0 6px 20px rgba(45,138,123,0.25);
}

.btn-exit {
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border: 1px solid #3a3a3a;
}

/* Tarayıcı */
#scanner-wrapper { 
  position: relative; 
  width: 100%; 
  height: 300px; 
  border: 1px solid #3a3a3a; 
  overflow: hidden; 
  border-radius: 12px; 
  background: #0a0a0a; 
}
#scanner-container { width: 100%; height: 100%; }

#scanner-wrapper.paused {
  border-color: #4a4a4a;
  cursor: pointer;
}

#scanner-wrapper.paused::after {
  content: '📷 Kamerayı açmak için dokunun';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.95);
  color: #8a8a8a;
  font-size: 1rem;
  z-index: 10;
}

#overlay-ui { position: absolute; inset: 0; pointer-events: none; }
#aim-box {
  position: absolute;
  left: 6%; width: 88%;
  top: 40%; height: 20%;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
}
#aim-line {
  position: absolute;
  left: 6%; width: 88%;
  top: 50%; height: 2px;
  background: rgba(180,180,180,.9);
  box-shadow: 0 0 8px rgba(180,180,180,.6);
}

/* El Feneri Butonu */
.torch-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
  pointer-events: auto;
}

.torch-btn:active {
  transform: translateX(-50%) scale(0.9);
}

.torch-btn.active {
  background: rgba(255, 220, 100, 0.7);
}

.torch-btn.unsupported {
  opacity: 0.3;
  pointer-events: none;
}

/* Focus indicator animasyonu */
@keyframes focusPulse {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

#status { margin-top: 12px; text-align: center; opacity: .85; }

video { width: 100%; height: 100%; object-fit: cover; }

/* Form stilleri */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #8a8a8a;
}

.form-group input {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e8e8e8;
}

.form-group input:focus {
  outline: none;
  border-color: #5a5a5a;
}

.form-group input[readonly] {
  background: #161616;
  color: #6a6a6a;
}

.form-group select {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e8e8e8;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8a8a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select:focus {
  outline: none;
  border-color: #5a5a5a;
}

.form-group select option {
  background: #1e1e1e;
  color: #e8e8e8;
  padding: 10px;
}

.btn {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
}

.btn-secondary {
  background: #2a2a2a;
  color: #c9c9c9;
  border: 1px solid #3a3a3a;
}

/* Sonuç ekranı */
.result-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
  border: 1px solid #2a2a2a;
}

.result-card .product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 10px;
}

.result-card .stock-count {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3d9488;
}

.result-card .stock-label {
  color: #6a6a6a;
  margin-top: 4px;
}

/* Uyarı */
.alert {
  background: rgba(178, 87, 87, 0.15);
  border: 1px solid #8a5454;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  color: #c9a0a0;
  text-align: center;
}

.alert-info {
  background: rgba(61, 148, 136, 0.1);
  border-color: #3d9488;
  color: #7abfb5;
}

/* Header with back button */
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.btn-back {
  background: none;
  border: none;
  color: #8a8a8a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  margin-right: 10px;
}

.page-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #e8e8e8;
}

.mode-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: auto;
}

.mode-entry { background: #2d8a7b; color: #fff; }
.mode-exit { background: #6a6a6a; color: #fff; }

/* Senkronizasyon durumu */
.sync-status {
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  border-radius: 8px;
  margin-bottom: 20px;
}
.sync-online { background: rgba(45,138,123,0.15); color: #5ab5a6; }
.sync-offline { background: rgba(138,84,84,0.15); color: #b89999; }

/* Ürün sayısı - tıklanabilir */
.product-count {
  text-align: center;
  color: #9a9a9a;
  font-size: 0.95rem;
  margin-top: 30px;
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: background 0.2s, border-color 0.2s;
}
.product-count + .product-count {
  margin-top: 10px;
}
.product-count:hover {
  background: #222222;
  border-color: #3a3a3a;
}
.product-count:active {
  background: #252525;
}

/* Ön Kayıt badge */
#preregister-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preregister-badge {
  display: none;
  background: #e74c3c;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.preregister-badge.visible {
  display: inline-block;
}

/* Ürün listesi */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Swipeable ürün item wrapper */
.product-item-wrapper {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 10px;
}

.product-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  position: relative;
  transition: transform 0.2s ease;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.product-item.swiping {
  transition: none;
}

/* Silme butonu (arkada) */
.delete-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70px;
  background: #8a5454;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}

.delete-action:active {
  background: #7a4848;
}

/* Sepete ekle butonu (solda) */
.cart-action {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 70px;
  background: #2d8a7b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 10px 0 0 10px;
}

.cart-action:active {
  background: #257a6c;
}

.product-item-info {
  flex: 1;
}

.product-item-name {
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 4px;
}

.product-item-barcode {
  font-size: 0.8rem;
  color: #6a6a6a;
  font-family: monospace;
}

.product-item-stock {
  font-size: 1.4rem;
  font-weight: 700;
  color: #5ab5a6;
  min-width: 60px;
  text-align: right;
}

.product-item-stock.low {
  color: #c9a962;
}

.product-item-stock.zero {
  color: #b89999;
}

.empty-list {
  text-align: center;
  color: #6a6a6a;
  padding: 40px 20px;
}

.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e8e8e8;
}

.search-box input:focus {
  outline: none;
  border-color: #5a5a5a;
}

/* Tarama ikonlu arama kutusu */
.search-box-with-scan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.search-box-with-scan input {
  padding-right: 50px;
}

.search-scan-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.search-scan-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.search-scan-btn:hover {
  box-shadow: 0 2px 8px rgba(45, 138, 123, 0.4);
}

/* Filtre Butonu */
.search-filter-btn {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #8a8a8a;
  transition: color 0.2s, background 0.2s;
}

.search-filter-btn:hover {
  color: #e8e8e8;
  background: rgba(255,255,255,0.1);
}

.search-filter-btn.active {
  color: #2d8a7b;
  background: rgba(45, 138, 123, 0.15);
}

.search-box-with-scan.has-filter input {
  padding-right: 90px;
}

/* Filtre Modalı */
.filter-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.filter-modal.active {
  display: flex;
}

.filter-modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #3a3a3a;
  overflow: hidden;
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.filter-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #e8e8e8;
}

.filter-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #8a8a8a;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.filter-modal-body {
  padding: 20px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #8a8a8a;
  font-size: 0.9rem;
}

.filter-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e8e8e8;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a8a8a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.filter-group select:focus {
  outline: none;
  border-color: #5a5a5a;
}

.filter-modal-buttons {
  display: flex;
  gap: 12px;
  padding: 0 20px 20px 20px;
}

.filter-btn {
  flex: 1;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.filter-btn-clear {
  background: #2a2a2a;
  color: #c9c9c9;
  border: 1px solid #3a3a3a;
}

.filter-btn-apply {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
}

/* Aktif filtre göstergesi */
.filter-active-badge {
  position: absolute;
  top: 4px;
  right: 44px;
  width: 8px;
  height: 8px;
  background: #2d8a7b;
  border-radius: 50%;
  display: none;
}

.filter-active-badge.visible {
  display: block;
}

/* Depo Barkod Tarama Modalı */
.depo-scanner-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
}

.depo-scanner-modal.active {
  display: flex;
}

.depo-scanner-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  transition: background 0.2s;
}

.depo-scanner-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.depo-scanner-wrapper {
  position: relative;
  width: calc(100% - 32px);
  max-width: 500px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #3a3a3a;
}

.depo-scanner-container {
  width: 100%;
  height: 100%;
}

.depo-scanner-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.depo-scanner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.depo-scanner-aim {
  position: absolute;
  left: 6%;
  width: 88%;
  top: 40%;
  height: 20%;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
}

.depo-scanner-line {
  position: absolute;
  left: 6%;
  width: 88%;
  top: 50%;
  height: 2px;
  background: rgba(180,180,180,.9);
  box-shadow: 0 0 8px rgba(180,180,180,.6);
}

.depo-scanner-status {
  margin-top: 12px;
  font-size: 1rem;
  color: #e8e8e8;
  text-align: center;
  padding: 0 20px;
  min-height: 50px;
  opacity: .85;
}

.depo-scanner-error {
  color: #e74c3c !important;
  font-weight: 600;
  animation: errorShake 0.4s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.list-summary {
  text-align: center;
  color: #6a6a6a;
  font-size: 0.85rem;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}

/* Ürün Detay Sayfası */
.product-photo-frame {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px auto;
  border: 2px dashed #3a3a3a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #161616;
  transition: border-color 0.2s;
}

.product-photo-frame:hover {
  border-color: #5a5a5a;
}

.product-photo-frame.has-photo {
  border-style: solid;
  border-color: #4a4a4a;
}

.product-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo-frame .add-photo-icon {
  font-size: 3rem;
  color: #4a4a4a;
}

.product-detail-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #2a2a2a;
}

.product-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2a;
}

.product-detail-row:last-child {
  border-bottom: none;
}

.product-detail-label {
  color: #6a6a6a;
  font-size: 0.9rem;
}

.product-detail-value {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 1.1rem;
}

.product-detail-value.stock {
  color: #5ab5a6;
  font-size: 1.4rem;
}

.product-detail-value.barcode {
  font-family: monospace;
  font-size: 0.95rem;
}

/* Fotoğraf seçme modalı */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.photo-modal.active {
  display: flex;
}

.photo-modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  text-align: center;
  border: 1px solid #2a2a2a;
}

.photo-modal-title {
  color: #e8e8e8;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.photo-modal-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
}

.photo-modal-btn:active {
  transform: scale(0.98);
}

.photo-modal-btn.gallery {
  background: #2a2a2a;
  color: #c9c9c9;
  border: 1px solid #3a3a3a;
}

.photo-modal-btn.camera {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
}

.photo-modal-btn.delete {
  background: #8a5454;
  color: #fff;
}

.photo-modal-btn.cancel {
  background: #2a2a2a;
  color: #8a8a8a;
}

.stock-value-input {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8e8e8;
  min-width: 60px;
  width: auto;
  max-width: 200px;
  text-align: right;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stock-value-input::-webkit-outer-spin-button,
.stock-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stock-value-input:focus {
  outline: none;
  border-color: #4a4a4a;
  background: rgba(74, 74, 74, 0.1);
}

.stock-value-input.low {
  color: #c9a962;
}

.stock-value-input.zero {
  color: #b89999;
}

/* Tıklanabilir barkod */
.barcode-clickable {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1e1e1e;
  transition: background 0.2s;
}

.barcode-clickable:hover {
  background: #252525;
}

.barcode-clickable.empty {
  color: #8a8a8a;
  font-style: italic;
}

/* Barkodsuz giriş butonu */
.no-barcode-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: #1a1a1a;
  border: 1px dashed #4a4a4a;
  border-radius: 10px;
  color: #8a8a8a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.no-barcode-btn:hover {
  background: #222222;
  border-color: #5a5a5a;
}

.no-barcode-btn.exit-mode {
  background: rgba(138, 84, 84, 0.1);
  border-color: #6a4a4a;
  color: #b89999;
}

.no-barcode-btn.exit-mode:hover {
  background: rgba(138, 84, 84, 0.15);
  border-color: #7a5a5a;
}

/* Barkodsuz ürün seçme modalı */
.nobarcode-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  flex-direction: column;
  padding: 16px;
}

.nobarcode-modal.active {
  display: flex;
}

.nobarcode-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.nobarcode-modal-header h3 {
  margin: 0;
  color: #e8e8e8;
  flex: 1;
}

.nobarcode-modal-close {
  background: none;
  border: none;
  color: #8a8a8a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.nobarcode-search {
  margin-bottom: 16px;
}

.nobarcode-search input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e8e8e8;
}

.nobarcode-search input:focus {
  outline: none;
  border-color: #5a5a5a;
}

/* Filtreli arama kutusu */
.nobarcode-search-with-filter {
  position: relative;
}

.nobarcode-search-with-filter input {
  padding-right: 50px;
}

.nobarcode-filter-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #8a8a8a;
  transition: color 0.2s, background 0.2s;
}

.nobarcode-filter-btn:hover {
  color: #e8e8e8;
  background: rgba(255,255,255,0.1);
}

.nobarcode-filter-btn.active {
  color: #2d8a7b;
  background: rgba(45, 138, 123, 0.15);
}

.nobarcode-filter-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #2d8a7b;
  border-radius: 50%;
  display: none;
}

.nobarcode-filter-badge.visible {
  display: block;
}

.nobarcode-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.nobarcode-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #1e1e1e;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  transition: background 0.2s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.nobarcode-item:hover {
  background: #252525;
}

.nobarcode-item-info {
  flex: 1;
}

.nobarcode-item-name {
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 4px;
}

.nobarcode-item-stock {
  font-size: 1.3rem;
  font-weight: 700;
  color: #5ab5a6;
  min-width: 50px;
  text-align: right;
}

.nobarcode-item-stock.low {
  color: #c9a962;
}

.nobarcode-item-stock.zero {
  color: #b89999;
}

.nobarcode-empty {
  text-align: center;
  color: #6a6a6a;
  padding: 40px 20px;
}

/* ==================== BARKOD SAYFASI ==================== */

/* Barkod sayfası ürün listesi */
.barcode-product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 80px 0; /* Sabit buton için alt boşluk */
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.barcode-product-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  margin-bottom: 10px;
}

.barcode-product-info {
  flex: 1;
}

.barcode-product-name {
  font-weight: 600;
  color: #e8e8e8;
  font-size: 1rem;
  margin-bottom: 4px;
}

.barcode-product-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #6a6a6a;
}

.barcode-product-location {
  color: #8a8a8a;
}

.barcode-product-stock {
  font-weight: 600;
  color: #5ab5a6;
}

.barcode-product-stock.low {
  color: #c9a962;
}

.barcode-empty-message {
  text-align: center;
  color: #6a6a6a;
  padding: 60px 20px;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.barcode-empty-message .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.barcode-empty-message p {
  margin: 0;
  font-size: 1rem;
}

.barcode-summary {
  text-align: center;
  color: #8a8a8a;
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.barcode-summary strong {
  color: #5ab5a6;
}

/* Barkod butonları container */
.barcode-buttons {
  display: flex;
  gap: 12px;
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 100;
}

/* Barkod aksiyon butonları */
.btn-barcode-action {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-barcode-action:active {
  transform: scale(0.98);
}

.btn-barcode-action:disabled {
  background: #2a2a2a !important;
  color: #6a6a6a;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Kaydet butonu (mavi) */
.btn-barcode-action.btn-save {
  background: linear-gradient(135deg, #3d6a8a, #4d7a9a);
  box-shadow: 0 6px 20px rgba(61,106,138,0.25);
}

/* Yazdır butonu (yeşil) */
.btn-barcode-action.btn-print {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  box-shadow: 0 6px 20px rgba(45,138,123,0.25);
}

/* Barkod oluşturma yükleme durumu */
.barcode-loading {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e8e8e8;
}

.barcode-loading.active {
  display: flex;
}

.barcode-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2a2a2a;
  border-top-color: #3d9488;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.barcode-loading-text {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.barcode-loading-progress {
  font-size: 0.9rem;
  color: #8a8a8a;
}

/* Form fotoğraf önizleme */
.form-photo-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  border-radius: 12px;
  overflow: hidden;
  display: none;
  border: 1px solid #3a3a3a;
}

.form-photo-preview.has-photo {
  display: block;
}

.form-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Satış fiyatı gösterimi */
.price-display {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-display-label {
  color: #6a6a6a;
  font-size: 0.9rem;
}

.price-display-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8e8e8;
}

.profit-row {
  background: #1a2a1a;
  border-radius: 10px;
  padding: 12px !important;
  margin-top: 10px;
}

.profit-value {
  font-size: 1.3rem !important;
  color: #5ab5a6 !important;
}

.profit-value.negative {
  color: #b89999 !important;
}

/* Autocomplete dropdown */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-list.active {
  display: block;
}

.autocomplete-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: #252525;
}

.autocomplete-item-name {
  color: #e8e8e8;
}

.autocomplete-item-stock {
  color: #5ab5a6;
  font-size: 0.85rem;
}

/* ==================== SATIŞ/KASA SAYFASI ==================== */
#page-sales .page-header {
  margin-bottom: 10px;
}

#page-sales .page-header h2 {
  font-size: 1rem;
}

#page-sales .btn-back {
  font-size: 1.2rem;
  padding: 4px;
  margin-right: 6px;
}

.sales-scanner-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border: 1px solid #3a3a3a;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
  cursor: pointer;
}

.sales-scanner-wrapper.paused {
  border-color: #4a4a4a;
}

.sales-scanner-wrapper.paused::after {
  content: '📷 Kamerayı açmak için dokunun';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  color: #c9c9c9;
  font-size: 0.9rem;
  z-index: 10;
}

#sales-scanner-container { width: 100%; height: 100%; }
#sales-scanner-container video { width: 100%; height: 100%; object-fit: cover; }

/* Satış overlay */
.sales-overlay-ui { position: absolute; inset: 0; pointer-events: none; }
.sales-aim-box {
  position: absolute;
  left: 6%; width: 88%;
  top: 40%; height: 20%;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
}
.sales-aim-line {
  position: absolute;
  left: 6%; width: 88%;
  top: 50%; height: 2px;
  background: rgba(180,180,180,.9);
  box-shadow: 0 0 8px rgba(180,180,180,.6);
}

.sales-status {
  text-align: center;
  padding: 4px;
  font-size: 0.75rem;
  color: #6a6a6a;
}

.sales-status.scanned {
  color: #5ab5a6;
  font-weight: 600;
}

.sales-cart {
  background: #1a1a1a;
  border-radius: 8px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #2a2a2a;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.sales-cart-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2a2a;
  color: #6a6a6a;
  font-size: 0.7rem;
}

.sales-cart-empty {
  text-align: center;
  padding: 16px;
  color: #4a4a4a;
  font-size: 0.8rem;
}

.sales-cart-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #1e1e1e;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.sales-cart-item:last-child {
  border-bottom: none;
}

.sales-cart-item-info {
  flex: 1;
}

.sales-cart-item-name {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 0.8rem;
}

.sales-cart-item-price {
  color: #6a6a6a;
  font-size: 0.7rem;
}

.sales-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sales-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sales-qty-btn.minus {
  background: #8a5454;
  color: #fff;
}

.sales-qty-btn.plus {
  background: #2d8a7b;
  color: #fff;
}

.sales-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sales-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #e8e8e8;
}

.sales-cart-item-total {
  min-width: 55px;
  text-align: right;
  color: #c9c9c9;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Ürün fotoğraf önizleme overlay */
.product-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.product-preview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-preview-container {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.product-preview-overlay.active .product-preview-container {
  transform: scale(1);
  opacity: 1;
}

.product-preview-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  touch-action: none;
}

.product-preview-name {
  color: #e8e8e8;
  font-size: 1.1rem;
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  text-align: center;
  max-width: 90%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.product-preview-hint {
  color: #6a6a6a;
  font-size: 0.8rem;
  text-align: center;
}

.sales-total-bar {
  position: sticky;
  bottom: 0;
  background: #1e1e1e;
  border-top: 1px solid #3a3a3a;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sales-total-label {
  color: #6a6a6a;
  font-size: 0.85rem;
}

.sales-total-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8e8e8;
}

.sales-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sales-actions .btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  width: auto;
  margin-top: 0;
}

.btn-sales-card {
  background: linear-gradient(135deg, #2d6a8a, #3d7a9a);
  color: #fff;
  font-size: 0.85rem;
  flex: 1;
}

.btn-sales-cash {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
  font-size: 0.85rem;
  flex: 1;
}

.btn-sales-eft {
  background: linear-gradient(135deg, #8a5a2d, #9a6a3d);
  color: #fff;
  font-size: 0.85rem;
  flex: 1;
}

.btn-sales-clear {
  background: #8a5454;
  color: #fff;
  flex: 0 0 auto;
  padding: 10px 12px;
  min-width: 44px;
}

.sales-list-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
  background: #1a1a1a;
  border: 1px dashed #4a4a4a;
  border-radius: 10px;
  color: #8a8a8a;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* İşçilik satırı */
.sales-labor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1e1e1e;
  border: 1px solid #c9a962;
  border-radius: 8px;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.sales-labor-row:hover {
  border-color: #d4b86a;
  background: #252525;
}

.sales-labor-row.selected {
  border-color: #5ab5a6;
  background: #1a2a1a;
}

.sales-labor-row.required {
  border-color: #8a5454;
  animation: laborPulse 1s ease infinite;
}

@keyframes laborPulse {
  0%, 100% { border-color: #8a5454; }
  50% { border-color: #b89999; }
}

.sales-labor-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sales-labor-icon {
  font-size: 1rem;
}

.sales-labor-text {
  color: #c9a962;
  font-weight: 600;
  font-size: 0.85rem;
}

.sales-labor-row.selected .sales-labor-text {
  color: #5ab5a6;
}

.sales-labor-value {
  color: #e8e8e8;
  font-weight: 700;
  font-size: 0.9rem;
}

.sales-labor-hint {
  color: #6a6a6a;
  font-size: 0.75rem;
}

/* İşçilik seçim modalı */
.labor-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.labor-modal.active {
  display: flex;
}

.labor-modal-content {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  max-width: 90%;
  border: 1px solid #2a2a2a;
}

.labor-modal-title {
  color: #c9a962;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}

.labor-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #1e1e1e;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.labor-option:hover {
  border-color: #c9a962;
  background: #252525;
}

.labor-option.selected {
  border-color: #5ab5a6;
  background: rgba(45, 138, 123, 0.1);
}

.labor-option-name {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 0.85rem;
}

.labor-option-price {
  color: #c9c9c9;
  font-weight: 700;
  font-size: 0.9rem;
}

.labor-custom-input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #1e1e1e;
  color: #e8e8e8;
  display: none;
}

.labor-custom-input.active {
  display: block;
}

.labor-custom-input:focus {
  outline: none;
  border-color: #c9a962;
}

.labor-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.labor-modal-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.labor-error {
  color: #b89999;
  font-size: 0.75rem;
  text-align: center;
  margin-top: 8px;
  display: none;
}

.labor-error.show {
  display: block;
}

/* POS Ayarları Butonu */
.pos-settings-btn {
  border: 1px dashed #5a5a5a !important;
  background: #1a1a1a !important;
}

/* POS Ayarları Modalı */
.pos-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pos-modal.active {
  display: flex;
}

.pos-modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 350px;
  border: 1px solid #2a2a2a;
}

.pos-modal-title {
  color: #e8e8e8;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.pos-modal-desc {
  color: #6a6a6a;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 16px;
}

.pos-form-group {
  margin-bottom: 14px;
}

.pos-form-group label {
  display: block;
  color: #8a8a8a;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.pos-input {
  width: 100%;
  background: #161616;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e8e8e8;
  font-size: 1rem;
  box-sizing: border-box;
}

.pos-input:focus {
  outline: none;
  border-color: #5a5a5a;
}

.pos-status {
  text-align: center;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: none;
}

.pos-status.success {
  display: block;
  background: rgba(45, 138, 123, 0.15);
  color: #5ab5a6;
  border: 1px solid #5ab5a6;
}

.pos-status.error {
  display: block;
  background: rgba(138, 84, 84, 0.15);
  color: #b89999;
  border: 1px solid #8a5454;
}

.pos-status.loading {
  display: block;
  background: rgba(138, 138, 138, 0.1);
  color: #9a9a9a;
  border: 1px solid #5a5a5a;
}

.pos-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-modal-actions .btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.btn-test {
  background: #3a3a3a;
  color: #c9c9c9;
  border: 1px solid #4a4a4a;
}

/* EFT Ödeme Modalı */
.eft-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.eft-modal.active {
  display: flex;
}

.eft-modal-content {
  background: #2a2a2a;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  width: 98%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.eft-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8e8e8;
  text-align: center;
  margin-bottom: 12px;
}

/* EFT Sekmeleri */
.eft-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.eft-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #1e1e1e;
  color: #888;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eft-tab.active {
  background: linear-gradient(135deg, #c9a962 0%, #b8944f 100%);
  color: #1a1a1a;
}

.eft-tab:not(.active):active {
  background: #2a2a2a;
}

.eft-tab-content {
  display: none;
}

.eft-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eft-bank-info {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.eft-modal-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #4CAF50;
  text-align: center;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.eft-bank-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.eft-bank-row:last-child {
  margin-bottom: 0;
}

.eft-bank-label {
  font-size: 0.75rem;
  color: #6a6a6a;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eft-bank-value {
  font-size: 1rem;
  color: #e8e8e8;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  user-select: all;
  -webkit-user-select: all;
}

.eft-bank-value.iban {
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: -0.3px;
  overflow-x: auto;
  display: block;
  padding: 8px 0;
  text-decoration: none !important;
  color: #e8e8e8 !important;
  -webkit-text-decoration: none !important;
}

.eft-bank-value.iban a,
.eft-bank-value.iban a:visited,
.eft-bank-value.iban a:hover {
  color: #e8e8e8 !important;
  text-decoration: none !important;
  pointer-events: none;
}

.eft-modal-actions {
  display: flex;
  gap: 12px;
}

.eft-modal-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.btn-eft-cancel {
  background: #3a3a3a;
  color: #c9c9c9;
  border: 1px solid #4a4a4a;
}

.btn-eft-confirm {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
}

/* POS Ödeme Bekleme Modalı */
.pos-payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pos-payment-modal.active {
  display: flex;
}

.pos-payment-content {
  text-align: center;
  padding: 30px;
}

.pos-payment-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.pos-payment-title {
  color: #e8e8e8;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.pos-payment-amount {
  color: #5ab5a6;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.pos-payment-status {
  color: #8a8a8a;
  font-size: 1rem;
  margin-bottom: 24px;
}

.pos-payment-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2a2a2a;
  border-top: 4px solid #8a8a8a;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.pos-cancel-btn {
  margin-top: 20px;
}

.pos-payment-status.success {
  color: #5ab5a6;
}

.pos-payment-status.error {
  color: #b89999;
}

/* ==================== GEÇMİŞ SAYFASI STİLLERİ ==================== */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-item:hover {
  border-color: #3a3a3a;
  background: #1e1e1e;
}

.history-item:active {
  transform: scale(0.98);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.history-item-date {
  color: #8a8a8a;
  font-size: 0.75rem;
}

.history-item-time {
  color: #6a6a6a;
  font-size: 0.7rem;
  margin-left: 8px;
}

.history-item-method {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.history-item-method.cash {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.history-item-method.card {
  background: rgba(33, 150, 243, 0.15);
  color: #64b5f6;
}

.history-item-method.eft {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}

.history-item-method.eft_kisi {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}

.history-item-method.eft_kurum {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
}

.history-item-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-products {
  color: #b8b8b8;
  font-size: 0.85rem;
}

.history-item-total {
  color: #5ab5a6;
  font-weight: 700;
  font-size: 1.1rem;
}

.history-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6a6a6a;
}

.history-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.history-empty-text {
  font-size: 1rem;
}

.history-loading {
  text-align: center;
  padding: 40px;
  color: #8a8a8a;
}

/* Satış Detay Modalı */
.sale-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  overflow-y: auto;
}

.sale-detail-modal.active {
  display: block;
}

.sale-detail-content {
  background: #141414;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 40px;
}

.sale-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sale-detail-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.2rem;
  color: #e8e8e8;
}

.sale-detail-section {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.sale-detail-section-title {
  color: #8a8a8a;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.sale-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #1f1f1f;
}

.sale-detail-row:last-child {
  border-bottom: none;
}

.sale-detail-label {
  color: #8a8a8a;
  font-size: 0.85rem;
}

.sale-detail-value {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 0.9rem;
}

.sale-detail-value.highlight {
  color: #5ab5a6;
  font-size: 1.1rem;
}

/* Ürün listesi */
.sale-product-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1f1f1f;
}

.sale-product-item:last-child {
  border-bottom: none;
}

.sale-product-info {
  flex: 1;
}

.sale-product-name {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.sale-product-details {
  color: #6a6a6a;
  font-size: 0.75rem;
}

.sale-product-qty {
  text-align: center;
  min-width: 40px;
  margin: 0 12px;
}

.sale-product-qty-value {
  color: #b8b8b8;
  font-weight: 700;
  font-size: 1rem;
}

.sale-product-qty-label {
  color: #5a5a5a;
  font-size: 0.65rem;
}

.sale-product-total {
  text-align: right;
  min-width: 70px;
}

.sale-product-total-value {
  color: #c9c9c9;
  font-weight: 700;
  font-size: 0.95rem;
}

.sale-product-total-unit {
  color: #5a5a5a;
  font-size: 0.65rem;
}

/* İşçilik satırı */
.sale-labor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(201, 169, 98, 0.08);
  border-radius: 8px;
  margin-top: 8px;
}

.sale-labor-name {
  color: #c9a962;
  font-weight: 600;
  font-size: 0.9rem;
}

.sale-labor-price {
  color: #d4b86a;
  font-weight: 700;
  font-size: 1rem;
}

/* Toplam satırları */
.sale-totals {
  margin-top: 8px;
}

.sale-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.sale-total-row.grand {
  border-top: 2px solid #3a3a3a;
  padding-top: 12px;
  margin-top: 8px;
}

.sale-total-label {
  color: #8a8a8a;
  font-size: 0.9rem;
}

.sale-total-row.grand .sale-total-label {
  color: #b8b8b8;
  font-weight: 600;
}

.sale-total-value {
  color: #c9c9c9;
  font-weight: 600;
  font-size: 0.95rem;
}

.sale-total-row.grand .sale-total-value {
  color: #5ab5a6;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Tarih filtresi */
.history-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.history-filter-btn {
  padding: 8px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  color: #8a8a8a;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.history-filter-btn:hover {
  border-color: #3a3a3a;
}

.history-filter-btn.active {
  background: rgba(45, 138, 123, 0.15);
  border-color: #2d8a7b;
  color: #5ab5a6;
}

.history-stats {
  background: linear-gradient(135deg, #1a2a2a, #1a1a1a);
  border: 1px solid #2a3a3a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.history-stat-item {
  flex: 1;
}

.history-stat-value {
  color: #5ab5a6;
  font-size: 1.4rem;
  font-weight: 700;
}

.history-stat-label {
  color: #6a6a6a;
  font-size: 0.7rem;
  margin-top: 4px;
}

/* Satış geçmişi kaydırarak silme */
.history-item-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
}

.history-item-wrapper .history-item {
  margin-bottom: 0;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.history-item-wrapper.swiping .history-item {
  transition: none;
}

.history-delete-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70px;
  background: linear-gradient(135deg, #8a4848, #6a3838);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  z-index: 0;
}

.history-delete-action:active {
  background: linear-gradient(135deg, #9a5858, #7a4848);
}

/* Ürün Snapshot Modalı */
.product-snapshot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  overflow-y: auto;
}

.product-snapshot-modal.active {
  display: block;
}

.product-snapshot-content {
  background: #141414;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 40px;
}

.product-snapshot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-snapshot-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  color: #e8e8e8;
}

.product-snapshot-photo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.product-snapshot-photo-placeholder {
  width: 100%;
  max-width: 300px;
  height: 200px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #4a4a4a;
  font-size: 3rem;
}

.product-snapshot-section {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.product-snapshot-section-title {
  color: #8a8a8a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-snapshot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1f1f1f;
}

.product-snapshot-row:last-child {
  border-bottom: none;
}

.product-snapshot-label {
  color: #6a6a6a;
  font-size: 0.85rem;
}

.product-snapshot-value {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.product-snapshot-value.highlight-green {
  color: #5ab5a6;
}

.product-snapshot-value.highlight-gold {
  color: #d4b86a;
}

.product-snapshot-value.highlight-red {
  color: #e57373;
}

.product-snapshot-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-snapshot-badge.category {
  background: rgba(90, 181, 166, 0.15);
  color: #5ab5a6;
}

.product-snapshot-badge.brand {
  background: rgba(100, 181, 246, 0.15);
  color: #64b5f6;
}

.product-snapshot-profit {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-top: 12px;
}

.product-snapshot-profit-label {
  color: #81c784;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.product-snapshot-profit-value {
  color: #a5d6a7;
  font-size: 1.3rem;
  font-weight: 700;
}

.sale-product-item.clickable {
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.sale-product-item.clickable:hover {
  background: rgba(90, 181, 166, 0.05);
}

.sale-product-item.clickable:active {
  background: rgba(90, 181, 166, 0.1);
}

/* ==================== MÜŞTERİ BİLGİLERİ MODALI ==================== */
.customer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.customer-modal.active {
  display: flex;
}

.customer-modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 350px;
  border: 1px solid #2a2a2a;
}

.customer-modal-title {
  color: #e8e8e8;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.customer-modal-desc {
  color: #6a6a6a;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 16px;
}

.customer-form-group {
  margin-bottom: 14px;
}

.customer-form-group label {
  display: block;
  color: #8a8a8a;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.customer-input {
  width: 100%;
  background: #161616;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 12px;
  color: #e8e8e8;
  font-size: 1rem;
  box-sizing: border-box;
}

.customer-input:focus {
  outline: none;
  border-color: #5a5a5a;
}

.customer-input.error {
  border-color: #8a5454;
}

.customer-error {
  color: #b89999;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.customer-error.show {
  display: block;
}

.customer-modal-amount {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #5ab5a6;
  padding: 16px;
  background: rgba(45, 138, 123, 0.1);
  border-radius: 12px;
  margin: 16px 0;
}

.customer-modal-actions {
  display: flex;
  gap: 10px;
}

.customer-modal-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 0.95rem;
}

.btn-customer-hold {
  background: linear-gradient(135deg, #8a6a2d, #9a7a3d);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-customer-confirm {
  background: linear-gradient(135deg, #2d8a7b, #3d9488);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* ==================== GÜNCEL (BEKLEYEN SATIŞLAR) SAYFASI ==================== */

/* Bekleyen satış wrapper (swipe için) */
.pending-item-wrapper {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 12px;
  list-style: none;
}

/* Bekleyen satış silme butonu (sağda gizli) */
.pending-delete-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70px;
  background: linear-gradient(135deg, #8a4848, #6a3838);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  z-index: 0;
}

.pending-delete-action:active {
  background: linear-gradient(135deg, #9a5858, #7a4848);
}

.pending-item {
  background: #1a1a1a;
  border: 1px solid #c9a962;
  border-left: 4px solid #c9a962;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.pending-item.swiping {
  transition: none;
}

.pending-item:not(.swiping):hover {
  border-color: #d4b86a;
  background: #1e1e1e;
}

.pending-item:not(.swiping):active {
  transform: scale(0.98);
}

.pending-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pending-item-customer {
  color: #c9a962;
  font-weight: 700;
  font-size: 1rem;
}

.pending-item-plate {
  color: #8a8a8a;
  font-size: 0.8rem;
  font-family: monospace;
  background: #252525;
  padding: 2px 8px;
  border-radius: 4px;
}

.pending-item-time {
  color: #6a6a6a;
  font-size: 0.75rem;
}

.pending-item-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pending-item-products {
  color: #b8b8b8;
  font-size: 0.85rem;
}

.pending-item-total {
  color: #5ab5a6;
  font-weight: 700;
  font-size: 1.1rem;
}

.pending-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
}

.pending-item-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
}

.btn-sms {
  background: linear-gradient(135deg, #2d6a8a, #3d7a9a);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-sms:disabled {
  background: #3a3a3a;
  color: #6a6a6a;
  cursor: not-allowed;
}

.btn-sms.sent {
  background: #2a3a2a;
  color: #5ab5a6;
}

.pending-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6a6a6a;
}

.pending-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.pending-empty-text {
  font-size: 1rem;
}

/* SMS gönderildi badge */
.sms-sent-badge {
  display: inline-block;
  background: rgba(90, 181, 166, 0.2);
  color: #5ab5a6;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Menu Badge (Ana sayfa kırmızı nokta) */
.menu-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Autocomplete Stilleri */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  font-size: 0.9rem;
  color: #ddd;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: #3a3a3a;
}

.autocomplete-item.new-supplier {
  color: #c9a962;
  font-style: italic;
}

.autocomplete-item .supplier-info {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

/* ================================================================
   SATICILAR (TEDARİKÇİLER) MODÜLÜ STİLLERİ
   ================================================================ */

/* Page Header - Satıcılar için düzeltme */
#page-suppliers .page-header,
#page-supplier-detail .page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 12px;
}

#page-suppliers .page-header h2,
#page-supplier-detail .page-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Satıcı Ekle Butonu */
.btn-add-supplier {
  background: linear-gradient(135deg, #c9a962 0%, #b8944f 100%);
  color: #1a1a1a;
  border: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-edit-supplier {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}

/* Satıcı İstatistikleri */
.supplier-stats {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.supplier-stat-item {
  flex: 1;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.supplier-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c9a962;
}

.supplier-stat-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* Satıcı Listesi */
.suppliers-list {
  list-style: none;
  padding: 0 16px;
  margin: 0;
}

.suppliers-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.suppliers-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.suppliers-empty-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

.suppliers-empty-small {
  text-align: center;
  padding: 30px 20px;
  color: #666;
  font-size: 0.9rem;
}

/* Satıcı Kartı */
.supplier-card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.supplier-card:active {
  transform: scale(0.98);
  background: #252525;
}

.supplier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.supplier-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.supplier-card-rating {
  font-size: 0.75rem;
  color: #c9a962;
}

.supplier-card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #888;
}

.supplier-card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.supplier-card-stat.debt {
  color: #e57373;
}

.supplier-card-stat.no-debt {
  color: #5ab5a6;
}

.supplier-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #2a2a2a;
  font-size: 0.75rem;
  color: #666;
}

/* Satıcı Detay - Özet Kartı */
.supplier-summary-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 16px;
  text-align: center;
}

.supplier-summary-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.supplier-summary-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.supplier-summary-stat {
  text-align: center;
}

.supplier-summary-stat .stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #c9a962;
}

.supplier-summary-stat .stat-label {
  font-size: 0.7rem;
  color: #888;
}

.supplier-summary-stat.debt .stat-value {
  color: #e57373;
}

.supplier-summary-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
}

#supplier-rating-stars {
  letter-spacing: 2px;
}

#supplier-rating-value {
  color: #c9a962;
  font-weight: 600;
}

/* Satıcı Sekmeleri */
.supplier-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.supplier-tabs::-webkit-scrollbar {
  display: none;
}

.supplier-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #1e1e1e;
  color: #888;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.supplier-tab.active {
  background: linear-gradient(135deg, #c9a962 0%, #b8944f 100%);
  color: #1a1a1a;
}

/* Sekme İçerikleri */
.supplier-tab-contents {
  padding: 16px;
}

.supplier-tab-content {
  display: none;
}

.supplier-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Bilgiler Sekmesi */
.supplier-info-section {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}

.supplier-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #2a2a2a;
}

.supplier-info-row:last-child {
  border-bottom: none;
}

.supplier-info-label {
  color: #888;
  font-size: 0.85rem;
}

.supplier-info-value {
  color: #fff;
  font-size: 0.9rem;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Ürünler Listesi */
.supplier-products-header,
.supplier-purchases-header,
.supplier-payments-header,
.supplier-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #888;
  font-size: 0.85rem;
}

.btn-add-small {
  background: linear-gradient(135deg, #c9a962 0%, #b8944f 100%);
  color: #1a1a1a;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.supplier-products-list,
.supplier-purchases-list,
.supplier-payments-list,
.supplier-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Ürün Kartı */
.supplier-product-item {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.supplier-product-name {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
}

.supplier-product-prices {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
}

.supplier-product-buy {
  color: #e57373;
}

.supplier-product-sell {
  color: #5ab5a6;
}

.supplier-product-profit {
  color: #c9a962;
}

/* Alım Kartı */
.supplier-purchase-item {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.supplier-purchase-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.supplier-purchase-date {
  font-size: 0.85rem;
  color: #888;
}

.supplier-purchase-amount {
  font-size: 1rem;
  font-weight: 600;
  color: #c9a962;
}

.supplier-purchase-items {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 6px;
}

.supplier-purchase-status {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.supplier-purchase-status.paid {
  background: rgba(90, 181, 166, 0.15);
  color: #5ab5a6;
}

.supplier-purchase-status.unpaid {
  background: rgba(229, 115, 115, 0.15);
  color: #e57373;
}

.supplier-purchase-status.partial {
  background: rgba(201, 169, 98, 0.15);
  color: #c9a962;
}

/* Hesap Özeti */
.supplier-account-summary {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}

.account-row:last-child {
  border-bottom: none;
}

.account-row.highlight {
  padding-top: 14px;
  margin-top: 4px;
}

.account-label {
  color: #888;
  font-size: 0.9rem;
}

.account-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.account-value.paid {
  color: #5ab5a6;
}

.account-value.debt {
  color: #e57373;
  font-size: 1.2rem;
}

/* Ödeme Kartı */
.supplier-payment-item {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.supplier-payment-info {
  flex: 1;
}

.supplier-payment-date {
  font-size: 0.8rem;
  color: #888;
}

.supplier-payment-method {
  font-size: 0.75rem;
  color: #666;
}

.supplier-payment-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5ab5a6;
}

/* Not Kartı */
.supplier-note-item {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 8px;
}

.supplier-note-content {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.supplier-note-date {
  font-size: 0.75rem;
  color: #666;
}

/* Satıcı Modal */
.supplier-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow-y: auto;
}

.supplier-modal.active {
  display: block;
}

.supplier-modal-content {
  background: #1a1a1a;
  min-height: 100vh;
  padding-bottom: 30px;
}

.supplier-modal-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  background: #1a1a1a;
  z-index: 10;
}

.supplier-modal-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
  padding-right: 40px;
}

/* Satıcı Form */
.supplier-form {
  padding: 16px;
}

.supplier-form-group {
  margin-bottom: 16px;
}

.supplier-form-group label {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.supplier-form-group input,
.supplier-form-group select,
.supplier-form-group textarea {
  width: 100%;
  padding: 12px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.supplier-form-group input:focus,
.supplier-form-group select:focus,
.supplier-form-group textarea:focus {
  outline: none;
  border-color: #c9a962;
}

.supplier-form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.supplier-modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px;
  position: sticky;
  bottom: 0;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
}

.supplier-modal-actions .btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Alım Ürünleri */
.purchase-items-section {
  background: #252525;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.purchase-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #888;
  font-size: 0.85rem;
}

.purchase-item-row {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.purchase-item-row input {
  width: 100%;
  padding: 8px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.purchase-item-row-flex {
  display: flex;
  gap: 8px;
}

.purchase-item-row-flex input {
  flex: 1;
  margin-bottom: 0;
}

.purchase-item-remove {
  background: #e57373;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.purchase-summary {
  background: #252525;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.purchase-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #fff;
}

#purchase-total {
  font-weight: 700;
  color: #c9a962;
  font-size: 1.2rem;
}

/* Ödeme Modal */
.payment-debt-info {
  display: flex;
  justify-content: space-between;
  background: rgba(229, 115, 115, 0.1);
  border: 1px solid rgba(229, 115, 115, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px;
  font-size: 1rem;
}

#payment-current-debt {
  font-weight: 700;
  color: #e57373;
}
