/* Şantiye İmalat Takip - Ana stiller */

:root {
  --bg: #f5f7fa;
  --sidebar: #1a2e4a;
  --sidebar-hover: #2a4a6f;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --card: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS safe area desteği */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* Dokunmatik optimizasyonu */
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
  touch-action: manipulation;
}

/* ========== Giriş sayfası ========== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2e4a 0%, #2563eb 50%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}

.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
  opacity: 0.3;
}

.login-box {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-box h1 {
  margin: 0 0 2rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.02em;
}

.login-box .hata {
  color: var(--error);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 3px solid var(--error);
}

.login-box label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.login-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-box button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.login-box button:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-box button:active {
  transform: translateY(0);
}

/* ========== Layout: Sidebar + İçerik ========== */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--sidebar) 0%, #1e3a5f 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.sidebar-nav {
  padding: 0.75rem 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  margin: 0 0.5rem;
  border-radius: 8px;
  /* Dokunmatik optimizasyonu */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #fff;
  border-radius: 0 2px 2px 0;
  transition: height 0.2s ease;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-nav a:hover::before {
  height: 60%;
}

.sidebar-nav a.aktif {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.aktif::before {
  height: 70%;
}

.main {
  flex: 1;
  padding: 2rem;
  overflow: auto;
  background: var(--bg);
}

.page-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Anasayfa proje başlığı (uzun metin) */
body[data-page="anasayfa"] .page-title {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
}

.is-guvenligi-banner {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: -0.5rem 0 1.5rem 0;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  display: inline-block;
}

.page-title-satir {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.page-title-satir .page-title { margin: 0; }

/* ========== Kartlar (özet, dashboard) ========== */
.kartlar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kart {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.kart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.kart:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.kart:hover::before {
  transform: scaleX(1);
}

.kart .kart-baslik {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kart .kart-deger {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.kartlar .kart-ilerleme-ana { grid-column: 1 / -1; }
.kart-ilerleme-ana .kart-deger { font-size: 1.75rem; }
.kart-ilerleme-ana .ilerleme-cubugu { height: 10px; margin-top: 0.5rem; }

.kart-kucuk { padding: 0.9rem 1rem; }
.kart-kucuk .kart-baslik { font-size: 0.8rem; }
.kart-kucuk .kart-deger { font-size: 1.15rem; }

/* ========== Tablolar ========== */
.tablo-wrap {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: linear-gradient(to bottom, #f9fafb 0%, #f3f4f6 100%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr {
  transition: background 0.15s ease;
}

tr:hover td {
  background: #f9fafb;
}

/* ========== Formlar ========== */
.form-grup {
  margin-bottom: 1rem;
}

.form-grup label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.form-grup input,
.form-grup select,
.form-grup textarea {
  width: 100%;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
  /* Dokunmatik optimizasyonu */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.form-grup textarea { min-height: 100px; max-width: 480px; resize: vertical; }

.form-grup input:focus,
.form-grup select:focus,
.form-grup textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-grup select {
  /* iOS select düzeltmesi */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* Checkbox label'ları: checkbox solda, yazı yanında */
.form-grup label:has(input[type="checkbox"]),
.form-grup label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.form-grup label:has(input[type="checkbox"]):hover,
.form-grup label:has(input[type="radio"]):hover {
  color: var(--primary);
}

.form-grup label:has(input[type="checkbox"]) input[type="checkbox"],
.form-grup label:has(input[type="radio"]) input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.form-grup label:has(input[type="checkbox"]) input[type="checkbox"]:checked,
.form-grup label:has(input[type="radio"]) input[type="radio"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-grup label:has(input[type="checkbox"]) input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.form-grup label:has(input[type="checkbox"]) input[type="checkbox"]:hover,
.form-grup label:has(input[type="radio"]) input[type="radio"]:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-grup label:has(input[type="checkbox"]) input[type="checkbox"]:focus,
.form-grup label:has(input[type="radio"]) input[type="radio"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Radio button özel stil */
.form-grup label:has(input[type="radio"]) input[type="radio"] {
  border-radius: 50%;
}

.form-grup label:has(input[type="radio"]) input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.form-grup label:has(input[type="checkbox"]) span,
.form-grup label:has(input[type="radio"]) span {
  flex: 1;
}

/* İmalat birim checkbox'ları */
.imalat-birim-cb {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.imalat-birim-cb label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  background: #fafafa;
}

.imalat-birim-cb label:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

.imalat-birim-cb input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.imalat-birim-cb input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.imalat-birim-cb input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.imalat-birim-cb input[type="checkbox"]:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.imalat-birim-cb input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.imalat-birim-cb label:has(input[type="checkbox"]:checked) {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary);
  font-weight: 600;
}

/* İmalat takibi: blok → imalat → daire seçimi */
.adim-kutulari {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.adim-kutu {
  background: var(--card);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.adim-kutu:hover {
  box-shadow: var(--shadow-md);
}

.adim-kutu label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.adim-kutu select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #fafafa;
  cursor: pointer;
  /* iOS select düzeltmesi */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  touch-action: manipulation;
}

.adim-kutu select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Daire grid (yüzde girişi) */
.daire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.daire-hücre {
  background: var(--card);
  padding: 0.875rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: all 0.2s ease;
}

.daire-hücre:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.daire-hücre .daire-no {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.daire-hücre input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  background: #fafafa;
  /* Dokunmatik optimizasyonu */
  -webkit-appearance: none;
  touch-action: manipulation;
}

.daire-hücre input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* İmalat takibi: alt kalem tablosu */
.takip-alt-tablo { width: 100%; margin-bottom: 0.5rem; font-size: 0.9rem; }
.takip-alt-tablo th, .takip-alt-tablo td { padding: 0.4rem 0.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.takip-alt-tablo th { background: #f8f9fa; font-weight: 600; }
.takip-alt-tablo .birim-etiket { white-space: nowrap; color: var(--text-muted); font-size: 0.85rem; }
.takip-alt-tablo input { width: 100%; min-width: 52px; padding: 0.3rem; text-align: center; }

/* İmalat / Blok Analiz: açılır alt kalem satırı */
.analiz-ac-kapa {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1;
}
.analiz-ac-kapa:hover { color: var(--primary); }
.analiz-alt td { background: #fafbfc; vertical-align: top; }
.analiz-alt-icerik { padding: 0.5rem 0 0.5rem 1.5rem; }
.analiz-alt-tablo { font-size: 0.9rem; margin: 0; }
.analiz-alt-tablo th, .analiz-alt-tablo td { padding: 0.35rem 0.75rem; border: none; }
.analiz-alt-tablo th { background: transparent; color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }
.analiz-alt-tablo .alt-kalem-ad { color: var(--text-muted); }

/* Blok bazlı tek yüzde (cephe vb.) */
.blok-yuzde {
  max-width: 200px;
}

.blok-yuzde input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.blok-yuzde input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========== Butonlar ========== */
.btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  /* Dokunmatik optimizasyonu */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ikincil {
  background: #f3f4f6;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-ikincil:hover {
  background: #e5e7eb;
  border-color: var(--text-muted);
}

.btn-küçük {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* ========== Log listesi ========== */
.log-listesi {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  border: 1px solid var(--border);
}

.log-satir {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.log-satir:last-child {
  border-bottom: none;
}

.log-satir .zaman {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* İmalata göre tamamlanan bloklar (anasayfa) */
.imalat-tamamlanan-listesi {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.imalat-tamamlanan-satir {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.imalat-tamamlanan-satir:last-child { border-bottom: none; }
.imalat-tamamlanan-satir strong { margin-right: 0.35rem; }

/* ========== Analiz ========== */
.analiz-filtre {
  margin-bottom: 1.5rem;
}

.analiz-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.analiz-dropdown-btn {
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 280px;
}

.analiz-dropdown-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.analiz-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
  animation: slideDown 0.2s ease;
}

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

.analiz-dropdown-item {
  transition: all 0.15s ease;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.analiz-dropdown-item:hover {
  background: #f9fafb;
  padding-left: 1.25rem;
}

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

.analiz-dropdown-alt-menu {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  background: #f9fafb;
}

.analiz-dropdown-alt-item {
  transition: all 0.15s ease;
  padding: 0.625rem 1rem 0.625rem 2rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.analiz-dropdown-alt-item:hover {
  background: #f3f4f6;
  padding-left: 2.25rem;
}

.analiz-dropdown-alt-item:last-child {
  border-bottom: none;
}

.analiz-dropdown-toggle {
  cursor: pointer;
  padding: 0 0.5rem;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.analiz-dropdown-toggle:hover {
  color: var(--primary);
}

.analiz-dropdown-imalat-ad {
  flex: 1;
  cursor: pointer;
}

.analiz-durum-ozet {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.analiz-durum-ozet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.analiz-durum-ozet-item strong {
  font-weight: 600;
  color: var(--text);
}

.analiz-durum-ozet-item .durum-badge {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.blok-analiz-genel {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

/* ========== Duyurular ========== */
.duyuru-form-wrap {
  background: var(--card);
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.duyuru-listesi,
.duyuru-anasayfa {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.duyuru-satir {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.duyuru-satir:last-child { border-bottom: none; }

.duyuru-satir > strong { display: block; margin-bottom: 0.25rem; }
.duyuru-satir-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.duyuru-satir-ust strong { flex: 1 1 auto; margin: 0; min-width: 0; }
.duyuru-satir .zaman { color: var(--text-muted); font-size: 0.8rem; }
.duyuru-satir .duyuru-icerik { margin: 0.5rem 0 0 0; color: var(--text); font-weight: normal; white-space: pre-wrap; }

/* ========== İmalat Notları ========== */
.imalat-notu-form-wrap {
  background: var(--card);
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.imalat-notu-listesi {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.imalat-notu-satir {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.imalat-notu-satir:last-child { border-bottom: none; }

.imalat-notu-satir.imalat-notu-tamamlandi {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
  border-left: 4px solid var(--success);
}

.imalat-notu-ust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.imalat-notu-ust .imalat-notu-blok {
  font-weight: 600;
  color: var(--primary);
}

.imalat-notu-ust .zaman { color: var(--text-muted); font-size: 0.8rem; }

.imalat-notu-icerik {
  margin: 0.35rem 0;
  white-space: pre-wrap;
  color: var(--text);
}

.imalat-notu-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== Çalışan Ekipler ========== */
.calisan-ekip-listesi {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.calisan-ekip-satir {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.calisan-ekip-satir:last-child { border-bottom: none; }

.calisan-ekip-ust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.calisan-ekip-yapilan {
  margin: 0.35rem 0 0 0;
  white-space: pre-wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.calisan-ekip-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.kart-calisan-bugun .kart-alt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay.gizli {
  display: none;
}

.modal {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.modal h3 { margin-top: 0; }

.modal-actions { margin-top: 1.25rem; display: flex; gap: 0.5rem; }

.imalat-checkboxes { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem 1rem; 
  margin-top: 0.5rem; 
}

.imalat-checkboxes label { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem; 
  font-size: 0.9rem; 
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.imalat-checkboxes input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.imalat-checkboxes input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.imalat-checkboxes input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.imalat-checkboxes input[type="checkbox"]:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.imalat-checkboxes input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.imalat-checkboxes label:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
}

.imalat-checkboxes label:has(input[type="checkbox"]:checked) {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary);
  font-weight: 600;
}

/* İmalat: alt kalem satırları */
#imalat-alt-listesi { margin-bottom: 0.5rem; }
.imalat-alt-satir { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.imalat-alt-satir input[type="text"] { flex: 1; min-width: 0; padding: 0.4rem 0.5rem; }
.imalat-alt-satir input[type="number"] { width: 70px; padding: 0.4rem; }
.imalat-alt-satir .alt-agirlik-label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.blok-birim-ozet { font-size: 0.9rem; color: var(--text-muted); min-height: 1.2em; white-space: pre-wrap; }

/* ========== Bloklar / İmalatlar ========== */
.aksiyon { display: flex; gap: 0.5rem; }

/* İlerleme çubuğu */
.ilerleme-cubugu {
  height: 10px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.5rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ilerleme-dolgu {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

/* Analiz: İlerleme kutucuğu (yarısı dolu vb.) + renk */
.ilerleme-hucre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ilerleme-kutucuk {
  width: 100px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ilerleme-kutucuk-dolgu {
  height: 100%;
  transition: width 0.2s;
}

.ilerleme-kutucuk.ilerleme-baslamadi .ilerleme-kutucuk-dolgu { background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%); }
.ilerleme-kutucuk.ilerleme-devam .ilerleme-kutucuk-dolgu { background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); }
.ilerleme-kutucuk.ilerleme-tamamlandi .ilerleme-kutucuk-dolgu { background: linear-gradient(90deg, #10b981 0%, #059669 100%); }

.ilerleme-yuzde {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Durum badge renkleri: Başlamadı kırmızı, Devam ediyor sarı, Tamamlandı yeşil */
.durum-badge.durum-baslamadi { color: #ef4444; font-weight: 600; }
.durum-badge.durum-devam { color: #f59e0b; font-weight: 600; }
.durum-badge.durum-tamamlandi { color: #10b981; font-weight: 600; }

.bos-durum {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--border);
  font-size: 1rem;
}

.ust-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.ust-bar .kullanici { 
  font-size: 0.9rem; 
  color: var(--text-muted);
  font-weight: 500;
}

.ust-bar .cikis { 
  font-size: 0.9rem; 
  color: var(--primary); 
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ust-bar .cikis:hover { 
  background: rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

.ust-bar-sag { display: flex; gap: 0.75rem; align-items: center; }

.gizli { display: none !important; }

/* ========== Scrollbar Stilleri ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========== Seçim Renkleri ========== */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text);
}

::-moz-selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text);
}

/* ========== Mobil menü (hamburger + overlay) ========== */
.menu-toggle { display: none; }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.45); }

/* ========== Mobil uyumluluk (max-width: 768px) ========== */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    margin-right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .sidebar-overlay.acik { 
    display: block; 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 310;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    /* iOS safe area desteği */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .sidebar.acik { transform: translateX(0); }
  
  .main { 
    padding: 1rem; 
    min-width: 0;
    /* iOS safe area desteği */
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  
  .app { 
    overflow-x: hidden;
    /* iOS safe area desteği */
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .page-title { 
    font-size: 1.15rem; 
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  .form-grup input, 
  .form-grup select, 
  .form-grup textarea { 
    max-width: 100%;
    font-size: 16px; /* iOS zoom önleme */
    padding: 0.875rem 1rem;
    min-height: 48px; /* Dokunmatik için minimum yükseklik */
  }
  
  .form-grup textarea { 
    max-width: 100%;
    min-height: 120px;
  }
  
  .tablo-wrap { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .tablo-wrap table { 
    min-width: 600px;
    font-size: 0.9rem;
  }
  
  .kartlar { 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 0.875rem;
  }
  
  .kart {
    padding: 1.25rem;
  }
  
  .daire-grid { 
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.875rem;
  }
  
  .daire-hücre {
    padding: 1rem;
  }
  
  .adim-kutu { 
    min-width: 0; 
    width: 100%;
    padding: 1.25rem 1.5rem;
  }
  
  .adim-kutulari { 
    flex-direction: column;
    gap: 1rem;
  }
  
  .sidebar-logo { 
    padding: 1rem 1rem 0.75rem;
  }
  
  .sidebar-logo img { 
    max-height: 80px; 
    object-fit: contain;
  }
  
  .sidebar-nav a { 
    padding: 1rem 1.5rem; 
    min-height: 48px;
    box-sizing: border-box; 
    display: flex; 
    align-items: center;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }
  
  .modal { 
    width: calc(100% - 2rem); 
    max-width: none; 
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem); /* Dynamic viewport height */
    border-radius: 16px;
  }
  
  .ust-bar { 
    flex-wrap: wrap; 
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .ust-bar .cikis {
    padding: 0.625rem 1.25rem;
    min-height: 44px;
  }
  
  .btn:not(.btn-küçük) { 
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }
  
  .ilerleme-kutucuk { 
    width: 90px;
    height: 22px;
  }
  
  .duyuru-form-wrap .form-grup textarea, 
  .duyuru-form-wrap .form-grup input { 
    max-width: 100%;
  }
  
  .analiz-dropdown-wrap { 
    width: 100% !important; 
    max-width: 100% !important; 
    min-width: 0 !important;
  }
  
  .analiz-dropdown-btn {
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  
  .analiz-dropdown-menu { 
    width: 100% !important;
    max-height: 60vh;
    max-height: 60dvh;
  }
  
  .login-box {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .login-box input {
    font-size: 16px; /* iOS zoom önleme */
    padding: 0.875rem 1rem;
    min-height: 48px;
  }
  
  .login-box button {
    min-height: 48px;
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  /* Dokunmatik için daha büyük tıklama alanları - genel checkbox'lar */
  input[type="checkbox"]:not(.imalat-checkboxes input):not(.imalat-birim-cb input):not(.form-grup label input),
  input[type="radio"]:not(.form-grup label input) {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* İmalat checkbox'ları için özel stil */
  .imalat-checkboxes input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
  }
  
  .imalat-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .imalat-checkboxes label:hover {
    background: rgba(37, 99, 235, 0.05);
  }
  
  .imalat-checkboxes label:active {
    background: rgba(37, 99, 235, 0.1);
  }
  
  /* Form grup içindeki checkbox'lar için mobil stil */
  .form-grup label:has(input[type="checkbox"]) input[type="checkbox"],
  .form-grup label:has(input[type="radio"]) input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }
  
  .form-grup label:has(input[type="checkbox"]) input[type="checkbox"]:checked::after {
    font-size: 16px !important;
  }
  
  /* İmalat birim checkbox'ları mobil */
  .imalat-birim-cb input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }
  
  .imalat-birim-cb input[type="checkbox"]:checked::after {
    font-size: 16px !important;
  }
  
  .imalat-birim-cb label {
    padding: 0.875rem 1rem;
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  
  /* İmalat checkbox'ları mobil */
  .imalat-checkboxes input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }
  
  .imalat-checkboxes input[type="checkbox"]:checked::after {
    font-size: 16px !important;
  }
  
  .imalat-checkboxes label {
    padding: 0.625rem 0.875rem;
    min-height: 44px;
  }
  
  /* Select dropdown için mobil iyileştirme */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-size: 14px !important;
    padding-right: 2.75rem !important;
  }
  
  /* Butonlar için aktif durum */
  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Sidebar link aktif durum */
  .sidebar-nav a:active {
    background: rgba(255,255,255,0.2);
    transform: none;
  }
  
  /* Scroll iyileştirmeleri */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Safe area için ekstra padding */
  .main > *:first-child {
    margin-top: 0;
  }
}
@media (min-width: 769px) {
  .sidebar-overlay { display: none !important; }
}

/* ========== Küçük mobil cihazlar (max-width: 480px) ========== */
@media (max-width: 480px) {
  .main { padding: 0.75rem; }
  .kartlar { grid-template-columns: 1fr; gap: 0.75rem; }
  .daire-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .page-title { font-size: 1rem; }
  .kart { padding: 1rem; }
  .kart .kart-deger { font-size: 1.5rem; }
  .sidebar { width: 260px; }
  .modal { width: calc(100% - 1rem); margin: 0.5rem; }
  .login-box { padding: 1.5rem 1.25rem; }
  th, td { padding: 0.75rem 0.5rem; font-size: 0.85rem; }
  .tablo-wrap table { min-width: 500px; }
}

/* ========== Yatay mod (landscape) optimizasyonu ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .main { padding: 0.75rem; }
  .sidebar { width: 240px; }
  .kartlar { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ========== iOS özel düzeltmeler ========== */
@supports (-webkit-touch-callout: none) {
  .main {
    min-height: -webkit-fill-available;
  }
  
  .app {
    min-height: -webkit-fill-available;
  }
  
  input,
  select,
  textarea {
    font-size: 16px !important; /* iOS zoom önleme */
  }
}
