@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
/* ============================================
   OSTRACK - Genel Stil Dosyası
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3c72;
  --primary-light: #2a5298;
  --accent: #6a3093;
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #1a202c;
  --text-light: #718096;
  --border: #e2e8f0;
  --success: #38a169;
  --danger: #c53030;
  --warning: #dd6b20;
  --sidebar-width: 260px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ============================================
   LOGIN SAYFASI
   ============================================ */
.login-page {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #6a3093 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.login-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo { margin-bottom: 25px; }
.login-logo img { max-width: 280px; width: 100%; height: auto; }

.login-title {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.login-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}

.login-form { text-align: left; }
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  color: #2d3748;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s;
  background: #f7fafc;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(30, 60, 114, 0.4);
}

.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

.login-message {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  font-weight: 600;
}

.login-message.success { color: #22543d; }
.login-message.error { color: var(--danger); }

.login-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #a0aec0;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============================================
   UYGULAMA YERLEŞİMİ (Sidebar + İçerik)
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.sidebar-header img {
  max-width: 160px;
  width: 100%;
  background: white;
  border-radius: 10px;
  padding: 8px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
  border-left-color: #ffffff;
  font-weight: 600;
}

.nav-item .icon {
  margin-right: 12px;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.sidebar-footer button {
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.sidebar-footer button:hover {
  background: var(--danger);
}

/* ANA İÇERİK */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ÜST BAR */
.topbar {
  background: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  text-align: right;
  font-size: 13px;
}

.user-info .name {
  font-weight: 600;
  color: var(--text);
}

.user-info .role {
  color: var(--text-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* MOBİL MENÜ BUTONU */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
  padding: 5px;
}

/* SAYFA İÇERİĞİ */
.page-content {
  padding: 30px;
  flex: 1;
}

.page-header {
  margin-bottom: 25px;
}

.page-header h1 {
  font-size: 26px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 5px;
}

.page-header p {
  color: var(--text-light);
  font-size: 14px;
}

/* İSTATİSTİK KARTLARI */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.stat-card .stat-label {
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-card .stat-unit {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-left: 5px;
}

.stat-card.blue { border-left-color: #2a5298; }
.stat-card.green { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-card.purple { border-left-color: var(--accent); }

.stat-card.green .stat-value { color: var(--success); }
.stat-card.orange .stat-value { color: var(--warning); }
.stat-card.purple .stat-value { color: var(--accent); }

/* TABLO */
.table-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 30px;
}

.table-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.table-header h2 {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}

.table-header .btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-header .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 60, 114, 0.3);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table thead {
  background: #f7fafc;
}

table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

table td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

table tbody tr {
  transition: background 0.15s;
}

table tbody tr:hover {
  background: #f7fafc;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge.success { background: #c6f6d5; color: #22543d; }
.badge.warning { background: #feebc8; color: #7b341e; }
.badge.danger { background: #fed7d7; color: #742a2a; }
.badge.info { background: #bee3f8; color: #2a4365; }

.loading-box {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.loading-box .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

/* MOBİL UYUM */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .page-content {
    padding: 20px 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .topbar {
    padding: 12px 15px;
  }
  
  .topbar-title {
    font-size: 16px;
  }
  
  .user-info {
    display: none;
  }
}/* ============================================
   SÜTUN SIRALAMA (Drag & Drop)
   ============================================ */

/* Sütun başlığı sürükleme alanı */
table th .th-content {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  position: relative;
}

/* Sütun genişlik resize handle */
table th .col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
  user-select: none;
}

table th .col-resizer:hover,
table th .col-resizer.resizing {
  background: rgba(42, 82, 152, 0.3);
}

table.resizing-active {
  cursor: col-resize;
  user-select: none;
}

table th .drag-handle {
  cursor: grab;
  font-size: 14px;
  color: #a0aec0;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: -2px;
  line-height: 1;
  font-weight: 700;
}

table th .drag-handle:hover {
  color: var(--primary);
  background: #edf2f7;
}

table th .drag-handle:active {
  cursor: grabbing;
}

/* Sürükleniyor olan sütun */
table th.dragging {
  opacity: 0.4;
  background: #edf2f7 !important;
}

/* Sürükleme hedefi */
table th.drag-over {
  background: #bee3f8 !important;
  border-left: 3px solid var(--primary) !important;
}

/* İşlem sütunu (sabit, sağda) */
table th.fixed-column,
table td.fixed-column {
  position: sticky;
  right: 0;
  background: white;
  z-index: 5;
  box-shadow: -3px 0 8px rgba(0,0,0,0.05);
}

table thead th.fixed-column {
  background: #f7fafc;
  z-index: 6;
}

table tbody tr:hover td.fixed-column {
  background: #f7fafc;
}

/* Sıfırla butonu */
.btn-reset-order {
  background: #edf2f7;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reset-order:hover {
  background: white;
  border-color: var(--primary-light);
  color: var(--primary);
}

/* Bilgilendirme balonu */
.drag-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 9999;
}

.drag-hint.show {
  opacity: 1;
  transform: translateY(0);
}/* ============================================
   FİLTRE PANELİ (Tek Satır, Yatay) — v2
   ============================================ */
.filters-panel {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
}

.filters-header {
  padding: 14px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filters-header h3 {
  font-size: 14px;
  color: #1e3c72;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.filters-header .btn-clear {
  background: transparent;
  color: #718096;
  border: 1.5px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filters-header .btn-clear:hover {
  background: #fff5f5;
  border-color: #feb2b2;
  color: #c53030;
}

.filters-body {
  padding: 18px 22px 20px;
}

.filters-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.filters-row::-webkit-scrollbar {
  height: 6px;
}

.filters-row::-webkit-scrollbar-track {
  background: transparent;
}

.filters-row::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  min-width: 150px;
}

.filter-item.search-item {
  min-width: 220px;
  flex-grow: 1;
  max-width: 320px;
}

.filter-item label {
  font-size: 10px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 2px;
  white-space: nowrap;
}

.filter-item input,
.filter-item select {
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  background: #f7fafc;
  transition: all 0.2s;
  color: #1a202c;
  width: 100%;
}

.filter-item input:focus,
.filter-item select:focus {
  outline: none;
  border-color: #2a5298;
  background: white;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.filters-actions-inline {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-end;
}

.filters-actions-inline .btn-apply {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
  white-space: nowrap;
}

.filters-actions-inline .btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 60, 114, 0.35);
}

.filters-actions-inline .btn-reset-order {
  background: white;
  color: #718096;
  border: 2px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filters-actions-inline .btn-reset-order:hover {
  background: #f7fafc;
  border-color: #2a5298;
  color: #1e3c72;
}

@media (max-width: 768px) {
  .filter-item { min-width: 130px; }
  .filter-item.search-item { min-width: 180px; }
  .filters-body { padding: 14px 16px 16px; }
}/* ============================================
   TOPLAM SATIRI (En Üstte, Sticky)
   ============================================ */
.totals-top-bar {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-bottom: 2px solid #2a5298;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 10;
  scrollbar-width: thin;
}

.totals-top-bar::-webkit-scrollbar {
  height: 4px;
}

.totals-top-bar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 2px;
}

.total-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  min-width: 110px;
  flex-shrink: 0;
  border-left: 3px solid #2a5298;
}

.total-item.highlight {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-left-color: #6a3093;
}

.total-item.highlight .total-label {
  color: rgba(255,255,255,0.8);
}

.total-item.highlight .total-value {
  color: white;
}

.total-label {
  font-size: 10px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.total-value {
  font-size: 16px;
  font-weight: 800;
  color: #1e3c72;
  white-space: nowrap;
  line-height: 1.2;
}

.total-unit {
  font-size: 11px;
  font-weight: 600;
  color: #718096;
  margin-left: 2px;
}

.total-item.highlight .total-unit {
  color: rgba(255,255,255,0.8);
}

/* Mobil */
@media (max-width: 768px) {
  .totals-top-bar {
    padding: 10px 14px;
    gap: 8px;
  }
  
  .total-item {
    padding: 6px 10px;
    min-width: 90px;
  }
  
  .total-value {
    font-size: 14px;
  }
  
  .total-label {
    font-size: 9px;
  }
}/* ============================================
   MODAL (BULK IMPORT)
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s;
}

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

.modal-box {
  background: white;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
  animation: slideUp 0.3s;
}

@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

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

.modal-header h2 {
  font-size: 18px;
  color: #1e3c72;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #718096;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover { background: #fed7d7; color: #c53030; }

.modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.modal-field {
  margin-bottom: 18px;
}

.modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #f7fafc;
  transition: all 0.2s;
}

.modal-field textarea {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  resize: vertical;
  min-height: 200px;
}

.modal-field select:focus,
.modal-field textarea:focus {
  outline: none;
  border-color: #2a5298;
  background: white;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.modal-error {
  background: #fff5f5;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 4px solid #c53030;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid #f0f4f8;
  margin-top: 15px;
}

.modal-actions .btn-apply { padding: 12px 28px; font-size: 14px; }
.modal-actions .btn-clear { padding: 12px 24px; font-size: 14px; }

/* Özet */
.bulk-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bulk-summary-item {
  flex: 1;
  min-width: 100px;
  background: #f7fafc;
  border-left: 4px solid #2a5298;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}

.bulk-summary-item .num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #1e3c72;
  line-height: 1;
}

.bulk-summary-item .lbl {
  display: block;
  font-size: 11px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.bulk-summary-item.success { border-left-color: #38a169; }
.bulk-summary-item.success .num { color: #38a169; }
.bulk-summary-item.warning { border-left-color: #dd6b20; }
.bulk-summary-item.warning .num { color: #dd6b20; }
.bulk-summary-item.danger { border-left-color: #c53030; }
.bulk-summary-item.danger .num { color: #c53030; }

/* Bulk tablo */
.bulk-table-wrapper {
  max-height: 400px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.bulk-table th {
  position: sticky;
  top: 0;
  background: #edf2f7;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 2px solid #cbd5e0;
}

.bulk-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  white-space: nowrap;
}

.bulk-row-error { background: #fff5f5; }
.bulk-row-warning { background: #fffaf0; }
/* ============================================
   SEÇİM ÇUBUĞU
   ============================================ */
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
  flex-wrap: wrap;
  gap: 10px;
}

.selection-info {
  font-size: 14px;
  font-weight: 600;
}

.selection-info strong {
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 4px;
}

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

.btn-report {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-report:hover {
  background: rgba(255,255,255,0.25);
}

.btn-delete {
  background: #c53030;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete:hover {
  background: #9b2c2c;
}

.btn-cancel {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(255,255,255,0.15);
}

/* Checkbox stili */
.row-checkbox, #masterCheckbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2a5298;
}

/* ============================================
   RAPOR
   ============================================ */
.report-header {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #1e3c72;
  margin-bottom: 20px;
}

.report-header h2 {
  color: #1e3c72;
  font-size: 24px;
  letter-spacing: 2px;
  margin: 0 0 5px;
}

.report-meta {
  color: #718096;
  font-size: 12px;
}

.report-section {
  margin-bottom: 25px;
}

.report-section h3 {
  color: #1e3c72;
  font-size: 15px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.report-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.report-table td {
  padding: 8px 0;
  border-bottom: 1px solid #f0f4f8;
}

.report-table td:last-child {
  text-align: right;
  color: #1e3c72;
}/* ============================================
   HASAT SAYFASI
   ============================================ */
.harvest-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.harvest-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.harvest-card-header {
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.harvest-card-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.harvest-card-sub {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.harvest-card-body {
  padding: 12px 20px 16px;
  max-height: 280px;
  overflow-y: auto;
}

.harvest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 13px;
}

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

.harvest-label {
  color: #4a5568;
  font-weight: 600;
}

.harvest-value {
  color: #1e3c72;
  font-weight: 800;
  font-size: 14px;
}

.harvest-row-sub {
  display: flex;
  justify-content: space-between;
  padding: 2px 0 6px 15px;
  font-size: 11px;
  color: #718096;
  border-bottom: 1px solid #f0f4f8;
}

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

/* ============================================
   GÜNLÜK HASAT
   ============================================ */
.harvest-daily-panel {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.harvest-daily-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.harvest-daily-header h3 {
  font-size: 15px;
  color: #1e3c72;
  font-weight: 700;
  margin: 0;
}

.harvest-daily-sub {
  font-size: 11px;
  color: #a0aec0;
  font-weight: 400;
}

.harvest-scroll-info {
  font-size: 12px;
  color: #4a5568;
  background: #edf2f7;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.scroll-arrow-btn {
  display: block;
  width: 100%;
  background: #f7fafc;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px;
  cursor: pointer;
  color: #2a5298;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

.scroll-arrow-btn:last-of-type {
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
}

.scroll-arrow-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.scroll-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.harvest-daily-wrapper {
  overflow-x: auto;
  max-height: 300px;
}

.harvest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.harvest-table th {
  background: #f7fafc;
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.harvest-table td {
  padding: 10px 12px;
  border-top: 1px solid #edf2f7;
  white-space: nowrap;
}

.harvest-table tbody tr:hover {
  background: #f7fafc;
}

.harvest-daily-footer {
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  background: #fafbfc;
}

/* ============================================
   STOK / READY MODAL GRID
   ============================================ */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.loading-box-small {
  text-align: center;
  padding: 30px 20px;
}

.spinner-small {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top-color: #2a5298;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* MOBİL */
@media (max-width: 900px) {
  .harvest-top-grid {
    grid-template-columns: 1fr;
  }
  .stock-grid {
    grid-template-columns: 1fr;
  }
}/* ============================================
   RAPORLAR SAYFASI
   ============================================ */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.report-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(30, 60, 114, 0.15);
  border-color: #2a5298;
}

.report-card-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-card-icon {
  font-size: 26px;
}

.report-card-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0;
}

.report-card-body {
  padding: 20px;
  min-height: 90px;
}

.report-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 13px;
}

.report-stat:last-child {
  border-bottom: none;
}

.report-stat-label {
  color: #718096;
  font-weight: 500;
}

.report-stat-value {
  color: #1e3c72;
  font-weight: 800;
  font-size: 14px;
}

.report-card-footer {
  padding: 12px 20px;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #2a5298;
  font-weight: 600;
}

.report-card:hover .report-card-footer {
  background: #edf2f7;
}/* Rapor kart içi detaylı satırlar */
.report-stat.small {
  padding: 5px 0;
  font-size: 12px;
}

.report-stat.small .report-stat-label,
.report-stat.small .report-stat-value {
  font-size: 12px;
}

.report-stat.total {
  border-top: 2px solid #1e3c72;
  margin-top: 5px;
  padding-top: 10px;
}

.report-stat.total .report-stat-label {
  color: #1e3c72;
  font-weight: 800;
  font-size: 13px;
}

.report-stat.total .report-stat-value {
  font-size: 15px;
  font-weight: 800;
}/* ============================================
   MOBİL İYİLEŞTİRMELER (Genişletilmiş)
   Öncelik: Raporlar, Dashboard, Hasat
   ============================================ */

@media (max-width: 768px) {
  
  /* ==========================================
     GENEL MOBİL AYARLAR
     ========================================== */
  body {
    font-size: 14px;
  }

  .page-content {
    padding: 15px 12px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  .page-header p {
    font-size: 12px;
  }

  /* ==========================================
     DASHBOARD
     ========================================== */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .stat-card {
    padding: 18px 16px;
  }

  .stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .stat-card .stat-value {
    font-size: 24px;
  }

  .stat-card .stat-label {
    font-size: 11px;
  }

  /* Son yüklemeler tablosu */
  .table-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .table-header h2 {
    font-size: 16px;
  }

  .table-header .btn {
    width: 100%;
    justify-content: center;
  }

  table th,
  table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* ==========================================
     RAPORLAR SAYFASI
     ========================================== */
  .reports-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .report-card {
    border-radius: 12px;
  }

  .report-card-header {
    padding: 14px 16px;
    gap: 10px;
  }

  .report-card-header h3 {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .report-card-icon {
    font-size: 22px;
  }

  .report-card-body {
    padding: 15px 16px;
    min-height: auto;
  }

  .report-stat {
    padding: 7px 0;
    font-size: 13px;
  }

  .report-stat-value {
    font-size: 13px;
  }

  .report-stat.small {
    font-size: 12px;
  }

  .report-stat.small .report-stat-label,
  .report-stat.small .report-stat-value {
    font-size: 12px;
  }

  .report-stat.total .report-stat-value {
    font-size: 15px;
  }

  .report-card-footer {
    padding: 10px 16px;
    font-size: 11px;
  }

  /* Rapor modal */
  .modal-box {
    max-width: 95vw !important;
    max-height: 95vh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-header h2 {
    font-size: 15px;
  }

  .modal-body {
    padding: 15px 16px;
  }

  .modal-actions {
    padding: 12px 16px;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Rapor tabloları */
  .report-table {
    font-size: 13px;
  }

  .report-table td {
    padding: 6px 0;
  }

  .report-section h3 {
    font-size: 14px;
  }

  /* Tarih filtresi */
  #dateFilterBox > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #dateFilterBox .filter-item {
    min-width: 100% !important;
  }

  #dateFilterBox button {
    width: 100% !important;
  }

  /* ==========================================
     HASAT / STOK SAYFASI
     ========================================== */
  .harvest-top-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .harvest-card-header {
    padding: 12px 16px;
  }

  .harvest-card-header h3 {
    font-size: 12px;
  }

  .harvest-card-body {
    padding: 12px 16px;
    max-height: none;
  }

  .harvest-row {
    padding: 8px 0;
    font-size: 13px;
  }

  .harvest-value {
    font-size: 14px;
  }

  /* Günlük hasat */
  .harvest-daily-header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .harvest-daily-header h3 {
    font-size: 14px;
  }

  .harvest-daily-sub {
    display: block;
    margin-top: 3px;
  }

  .scroll-arrow-btn {
    padding: 10px;
    font-size: 16px;
  }

  .harvest-daily-wrapper {
    max-height: 400px;
  }

  .harvest-table th,
  .harvest-table td {
    padding: 8px 10px;
    font-size: 11px;
  }

  .harvest-daily-footer {
    padding: 12px 16px;
  }

  .harvest-daily-footer button {
    width: 100%;
  }

  /* Hasat sayfa butonları (Excel'den Yapıştır, vs.) */
  .page-header > div:last-child {
    width: 100%;
    margin-top: 12px;
  }

  .page-header > div:last-child button {
    width: 100%;
    justify-content: center;
    margin-bottom: 6px;
  }

  /* ==========================================
     FİLTRE PANELİ (tüm sayfalar)
     ========================================== */
  .filters-panel {
    border-radius: 12px;
  }

  .filters-header {
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
  }

  .filters-header h3 {
    font-size: 13px;
  }

  .filters-body {
    padding: 14px 16px;
  }

  .filters-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-item {
    min-width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    flex-grow: 0;
  }

  .filter-item.search-item {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .filters-actions-inline {
    width: 100%;
    flex-direction: column;
  }

  .filters-actions-inline button {
    width: 100%;
    justify-content: center;
  }

  /* ==========================================
     SEÇİM ÇUBUĞU (Yüklemeler)
     ========================================== */
  .selection-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 10px;
  }

  .selection-info {
    text-align: center;
  }

  .selection-actions {
    flex-direction: column;
    width: 100%;
  }

  .selection-actions button {
    width: 100%;
    justify-content: center;
  }

  /* ==========================================
     TOPLAM KUTUCUKLARI (Yüklemeler)
     ========================================== */
  .totals-top-bar {
    padding: 10px 12px;
    gap: 6px;
  }

  .total-item {
    padding: 6px 10px;
    min-width: 80px;
  }

  .total-value {
    font-size: 13px;
  }

  .total-label {
    font-size: 9px;
  }

  /* ==========================================
     ÜST BAR (Topbar)
     ========================================== */
  .topbar {
    padding: 10px 12px;
  }

  .topbar-title {
    font-size: 15px;
  }

  .user-info {
    display: none;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* ==========================================
     MODAL - GENEL
     ========================================== */
  .modal-field textarea {
    font-size: 11px;
  }

  .modal-field select,
  .modal-field input {
    font-size: 14px;
  }

  /* ==========================================
     BULK IMPORT (Modal içi tablolar)
     ========================================== */
  .bulk-summary {
    flex-wrap: wrap;
    gap: 6px;
  }

  .bulk-summary-item {
    min-width: calc(50% - 3px);
    padding: 10px 12px;
  }

  .bulk-summary-item .num {
    font-size: 20px;
  }

  .bulk-summary-item .lbl {
    font-size: 10px;
  }

  .bulk-table {
    font-size: 10px;
  }

  .bulk-table th,
  .bulk-table td {
    padding: 6px 8px;
  }

  /* ==========================================
     SÜTUN SIRALAMA (drag handle gizle)
     ========================================== */
  .drag-handle {
    display: none;
  }

  /* ==========================================
     ÇÖP KUTUSU (Trash)
     ========================================== */
  .filters-panel .filters-body > div {
    flex-direction: column;
    gap: 10px;
  }

  .filters-panel .filters-body > div > div:last-child {
    width: 100%;
    flex-direction: column;
  }

  .filters-panel .filters-body button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   DAHA KÜÇÜK EKRANLAR (max 480px)
   ============================================ */
@media (max-width: 480px) {
  
  .page-content {
    padding: 12px 10px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .stat-card .stat-value {
    font-size: 20px;
  }

  .report-stat-value {
    font-size: 12px;
  }

  .filter-item {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .harvest-table th,
  .harvest-table td {
    padding: 6px 8px;
    font-size: 10px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .topbar-title {
    font-size: 14px;
  }

  .modal-box {
    max-width: 100vw !important;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-header h2 {
    font-size: 14px;
  }
}/* ============================================
   DİL SEÇİCİ
   ============================================ */
.lang-selector {
  position: relative;
  margin-right: 12px;
}

.lang-dropdown {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-dropdown:hover {
  background: rgba(255,255,255,0.2);
}

.lang-dropdown:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
}

/* Açık/koyu arka plana göre */
.topbar .lang-dropdown {
  background: #f0f4f8;
  border-color: #cbd5e0;
  color: #2d3748;
}

.topbar .lang-dropdown:hover {
  background: #e2e8f0;
}

/* Mobil */
@media (max-width: 768px) {
  .lang-selector {
    margin-right: 6px;
  }
  
  .lang-dropdown {
    padding: 5px 8px;
    font-size: 11px;
  }
}/* ============================================
   APP FOOTER
   ============================================ */
.app-footer {
  text-align: center;
  padding: 25px 20px;
  margin-top: 40px;
  color: #a0aec0;
  font-size: 12px;
  border-top: 1px solid #e2e8f0;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.app-footer strong {
  color: #2a5298;
  font-weight: 700;
}

@media (max-width: 768px) {
  .app-footer {
    padding: 20px 15px;
    margin-top: 25px;
    font-size: 11px;
  }
}/* ============================================
   PROFİL DROPDOWN
   ============================================ */
.profile-dropdown {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 9999;
  min-width: 200px;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
  border: 1px solid #e2e8f0;
}

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

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #2d3748;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f4f8;
}

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

.profile-dropdown-item:hover {
  background: #f7fafc;
  color: #1e3c72;
}

/* ============================================
   KULLANICI YÖNETİMİ SAYFASI
   ============================================ */
.user-role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-role-badge.admin {
  background: #fed7d7;
  color: #742a2a;
}

.user-role-badge.muhasebe {
  background: #bee3f8;
  color: #2a4365;
}

.user-role-badge.ihracat {
  background: #c6f6d5;
  color: #22543d;
}

.user-role-badge.ozan {
  background: #feebc8;
  color: #7b341e;
}

.user-role-badge.misafir {
  background: #e2e8f0;
  color: #4a5568;
}

.user-active-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.user-active-badge.yes {
  background: #38a169;
}

.user-active-badge.no {
  background: #c53030;
}

/* ============================================
   AYARLAR SAYFASI
   ============================================ */
.settings-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.settings-card h3 {
  font-size: 16px;
  color: #1e3c72;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f4f8;
}

.settings-info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 14px;
}

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

.settings-info-label {
  color: #718096;
  font-weight: 600;
}

.settings-info-value {
  color: #1e3c72;
  font-weight: 700;
}

@media (max-width: 768px) {
  .profile-dropdown {
    min-width: 180px;
  }
  
  .settings-card {
    padding: 18px;
  }
}/* ============================================
   BEKLEYEN ONAYLAR
   ============================================ */
.btn-approve-small {
  background: #38a169;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-approve-small:hover {
  background: #2f855a;
  transform: scale(1.1);
}

.btn-reject-small {
  background: #c53030;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-reject-small:hover {
  background: #9b2c2c;
  transform: scale(1.1);
}

/* Sarı "Onay Bekliyor" göstergesi */
.pending-badge {
  display: inline-block;
  background: #feebc8;
  color: #7b341e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse-pending 2s infinite;
}

@keyframes pulse-pending {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.row-pending {
  background: #fffaf0 !important;
}

.row-pending:hover {
  background: #feebc8 !important;
}/* ============================================
   CHART.JS GRAFİK ALANI
   ============================================ */
.chart-container {
  position: relative;
  height: 380px;
  margin-top: 15px;
  padding: 10px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .chart-container {
    height: 320px;
    padding: 6px;
  }
}
/* ============================================
   SEVKİYAT DURUM KARTI (Shipments sayfası)
   ============================================ */
.shipment-status-card {
  background: white;
  border-radius: 15px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #1e3c72;
  max-width: 1040px;
}

.shipment-status-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ss-sales .ss-icon { background: #e9d8fd; }
.ss-sales .ss-value { color: #6b46c1; font-size: 15px; white-space: nowrap; }
.ss-money + .ss-money { margin-top: 4px; }

.ss-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fafc;
  transition: all 0.2s;
}

.ss-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ss-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
}

.ss-arrived .ss-icon { background: #c6f6d5; }
.ss-ontheway .ss-icon { background: #feebc8; }
.ss-total .ss-icon { background: #bee3f8; }

.ss-content {
  flex: 1;
  min-width: 0;
}

.ss-label {
  font-size: 10px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.ss-value {
  font-size: 18px;
  font-weight: 800;
  color: #1e3c72;
  line-height: 1;
}

.ss-arrived .ss-value { color: #38a169; }
.ss-ontheway .ss-value { color: #dd6b20; }

@media (max-width: 768px) {
  .shipment-status-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ss-value {
    font-size: 16px;
  }
  .ss-icon {
    font-size: 18px;
    width: 34px;
    height: 34px;
  }
  .shipment-status-card {
    padding: 12px;
    max-width: 100%;
  }
}

/* ============================================
   SIDEBAR GRUPLARI (Accordion)
   ============================================ */
.sidebar-group {
  margin-bottom: 4px;
}

.sidebar-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.sidebar-group-title:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.sidebar-group-title .group-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-group-title .group-arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.sidebar-group.open .sidebar-group-title .group-arrow {
  transform: rotate(90deg);
}

.sidebar-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-group.open .sidebar-group-content {
  max-height: 500px;
}

.sidebar-group-content .nav-item {
  padding-left: 42px;
  font-size: 13.5px;
}

.sidebar-group-content .nav-item .icon {
  font-size: 16px;
  width: 22px;
}

@media (max-width: 480px) {
  .chart-container {
    height: 280px;
  }
}
.sparkline-wrapper { position: relative; height: 36px; margin-top: 12px; opacity: .95; }
.sparkline-wrapper canvas { width: 100% !important; height: 36px !important; display: block; }
.stat-card[onclick], .stat-card.clickable { cursor: pointer; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(30,60,114,.13); }
.stat-card[onclick]:active, .stat-card.clickable:active { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(30,60,114,.18); }
table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 #2a5298; }
table tbody tr[onclick], table tbody tr.clickable { cursor: pointer; }
@media (hover: none) {
  .stat-card:hover { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
  table tbody tr:hover td:first-child { box-shadow: none; }
}
.rates-box { display:flex; gap:8px; flex-wrap:wrap; }
.rate-item { background:#fff; border:1px solid var(--border); border-radius:10px; padding:8px 14px; display:flex; flex-direction:column; min-width:90px; box-shadow:0 2px 6px rgba(0,0,0,.04); }
.rate-label { font-size:10px; font-weight:700; color:var(--text-light); letter-spacing:.5px; }
.rate-value { font-size:15px; font-weight:800; color:var(--primary); margin-top:2px; }
@media (max-width:768px){ .rates-box{ width:100%; } .rate-item{ flex:1; min-width:0; } }
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-light); margin-bottom:18px; flex-wrap:wrap; }
.breadcrumb a { color:var(--primary-light); text-decoration:none; font-weight:600; transition:color .15s; }
.breadcrumb a:hover { color:var(--primary); text-decoration:underline; }
.breadcrumb .sep { color:#cbd5e0; font-weight:400; }
.breadcrumb .current { color:var(--text); font-weight:700; }
@media (max-width:768px){ .breadcrumb{ font-size:12px; gap:6px; } }
/* Genel sayfa boşlukları */
.page-content {
  padding: 35px 40px 40px !important;
}

/* Topbar altına hafif nefes */
.topbar {
  padding: 16px 35px;
}

/* Sayfa başlığı altına boşluk */
.page-header {
  margin-bottom: 28px;
}

/* Kartlar arası genel boşluk */
.stats-grid {
  margin-top: 8px;
}

/* Mobilde biraz daha daralt */
@media (max-width: 768px) {
  .page-content { padding: 20px 15px 30px !important; }
  .topbar { padding: 12px 18px; }
  .page-header { margin-bottom: 20px; }
}
/* ============================================
   SKELETON LOADING
   ============================================ */
@keyframes skeletonShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #edf2f7 25%, #e2e8f0 37%, #edf2f7 63%);
  background-size: 400px 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: 6px;
  display: block;
}
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }
.skeleton-card {
  background: #fff;
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.skeleton-card .skeleton-line:last-child { margin-bottom: 0; }
.skeleton-row td { padding: 14px 18px !important; }
.skeleton-row .skeleton { height: 12px; }
/* ============================================
   STICKY TABLO BAŞLIKLARI (tüm sayfalar)
   ============================================ */
.table-wrapper {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  overflow-x: auto;
}
.table-wrapper table thead th {
  position: sticky;
  top: 0;
  background: #f7fafc;
  z-index: 8;
  box-shadow: 0 1px 0 #e2e8f0;
}
.table-wrapper table thead th.fixed-column {
  z-index: 9;
}
/* Küçük ekran / modal içindeki tablolarda max-height'ı esnet */
@media (max-width: 768px) {
  .table-wrapper { max-height: none; }
}
.bulk-table-wrapper .bulk-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
}
/* ============================================
   AKTİF MENÜ VURGUSU (sidebar)
   ============================================ */
.sidebar .nav-item.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-left-color: #ffd700;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ============================================
   ALT MENÜ ANİMASYONU (slide-down)
   ============================================ */
.sidebar-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-group.open .sidebar-group-content {
  max-height: 600px;
}
.sidebar-group-title .group-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FORM FOCUS PARLAMASI
   ============================================ */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2a5298 !important;
  box-shadow: 0 0 0 3px rgba(42,82,152,0.15) !important;
  transition: box-shadow 0.15s, border-color 0.15s;
}

/* ============================================
   MODAL GEÇİŞ ANİMASYONLARI
   ============================================ */
.modal-overlay {
  animation: overlayFadeIn 0.18s ease-out;
}
.modal-overlay .modal-box {
  animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   TOAST BİLDİRİMLERİ
   ============================================ */
#ostrackToastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.ostrack-toast {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left: 5px solid #2a5298;
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  transition: opacity 0.3s, transform 0.3s;
}
.ostrack-toast.success { border-left-color: #38a169; }
.ostrack-toast.error   { border-left-color: #c53030; }
.ostrack-toast.warning { border-left-color: #dd6b20; }
.ostrack-toast.info    { border-left-color: #2a5298; }
.ostrack-toast .toast-icon { font-size: 18px; }
.ostrack-toast.removing {
  opacity: 0;
  transform: translateX(30px);
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   SATIR İÇİ İŞLEMLER (hover ikonlar)
   ============================================ */
table tbody tr .row-actions {
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
table tbody tr:hover .row-actions { opacity: 1; }
table tbody tr .row-actions button {
  margin-left: 4px;
}

/* Mobil - dokunmatikte her zaman görünsün */
@media (hover: none) {
  table tbody tr .row-actions { opacity: 1; }
}
#ostrackToastContainer { position: fixed; top: 20px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.ostrack-toast { background: #fff; border-radius: 12px; padding: 14px 20px; min-width: 280px; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-left: 5px solid #2a5298; font-size: 14px; font-weight: 600; color: #1a202c; display: flex; align-items: center; gap: 10px; pointer-events: auto; animation: toastSlideIn .3s cubic-bezier(.34,1.3,.64,1); transition: opacity .3s, transform .3s; }
.ostrack-toast.success { border-left-color: #38a169; }
.ostrack-toast.error { border-left-color: #c53030; }
.ostrack-toast.warning { border-left-color: #dd6b20; }
.ostrack-toast.removing { opacity: 0; transform: translateX(30px); }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
table tbody tr td:last-child > button,
table tbody tr td:last-child > .btn-icon,
table tbody tr td:last-child > .btn-approve-small,
table tbody tr td:last-child > .btn-reject-small {
  opacity: 0;
  transition: opacity .2s;
}
table tbody tr:hover td:last-child > button,
table tbody tr:hover td:last-child > .btn-icon,
table tbody tr:hover td:last-child > .btn-approve-small,
table tbody tr:hover td:last-child > .btn-reject-small {
  opacity: 1;
}
@media (hover: none) {
  table tbody tr td:last-child > button,
  table tbody tr td:last-child > .btn-icon,
  table tbody tr td:last-child > .btn-approve-small,
  table tbody tr td:last-child > .btn-reject-small {
    opacity: 1;
  }
}
/* ============================================
   DARK MODE
   ============================================ */
html[data-theme="dark"] {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --border: #334155;
}
html[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
html[data-theme="dark"] .main-content { background: #0f172a; }

html[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #0a1224 0%, #0f1e3d 100%); }

html[data-theme="dark"] .topbar { background: #1e293b; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
html[data-theme="dark"] .topbar-title,
html[data-theme="dark"] .user-info .name { color: #e2e8f0; }
html[data-theme="dark"] .topbar .lang-dropdown { background: #334155; color: #e2e8f0; border-color: #475569; }
html[data-theme="dark"] #themeToggleBtn,
html[data-theme="dark"] #notifIcon { background: #334155 !important; color: #e2e8f0 !important; }

html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .table-container,
html[data-theme="dark"] .filters-panel,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .harvest-card,
html[data-theme="dark"] .shipment-status-card,
html[data-theme="dark"] .modal-box,
html[data-theme="dark"] .rate-item,
html[data-theme="dark"] .total-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .stat-card .stat-value,
html[data-theme="dark"] .total-value,
html[data-theme="dark"] .rate-value { color: #60a5fa !important; }
html[data-theme="dark"] .stat-card .stat-label,
html[data-theme="dark"] .total-label,
html[data-theme="dark"] .rate-label { color: #94a3b8 !important; }

html[data-theme="dark"] .page-header h1 { color: #e2e8f0; }
html[data-theme="dark"] .page-header p { color: #94a3b8; }

html[data-theme="dark"] table thead,
html[data-theme="dark"] table th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] table td { color: #e2e8f0 !important; border-color: #334155 !important; }
html[data-theme="dark"] table tbody tr:hover,
html[data-theme="dark"] table tbody tr:hover td,
html[data-theme="dark"] table tbody tr:hover td.fixed-column { background: #334155 !important; }
html[data-theme="dark"] table td.fixed-column { background: #1e293b !important; }
html[data-theme="dark"] table thead th.fixed-column { background: #0f172a !important; }

html[data-theme="dark"] .table-header,
html[data-theme="dark"] .filters-header,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-actions,
html[data-theme="dark"] .settings-info-row { border-color: #334155 !important; }
html[data-theme="dark"] .table-header h2,
html[data-theme="dark"] .filters-header h3,
html[data-theme="dark"] .modal-header h2,
html[data-theme="dark"] .settings-info-value { color: #e2e8f0 !important; }
html[data-theme="dark"] .settings-info-label { color: #94a3b8 !important; }

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .filter-item input,
html[data-theme="dark"] .filter-item select,
html[data-theme="dark"] .modal-field input,
html[data-theme="dark"] .modal-field select,
html[data-theme="dark"] .modal-field textarea {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .modal-field label { color: #e2e8f0; }

html[data-theme="dark"] .btn-clear,
html[data-theme="dark"] .btn-reset-order {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] .breadcrumb a { color: #60a5fa !important; }
html[data-theme="dark"] .breadcrumb span,
html[data-theme="dark"] .breadcrumb .current { color: #e2e8f0 !important; }

html[data-theme="dark"] .totals-top-bar {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #3b82f6;
}

html[data-theme="dark"] .pagination button {
  background: #1e293b; color: #e2e8f0; border-color: #334155;
}
html[data-theme="dark"] .pagination button.active { background: #3b82f6; color: #fff; }

html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 37%, #1e293b 63%);
  background-size: 400px 100%;
}

html[data-theme="dark"] .ostrack-toast { background: #1e293b; color: #e2e8f0; }

/* Inline white/light backgrounds → dark */
html[data-theme="dark"] [style*="background:#f7fafc"],
html[data-theme="dark"] [style*="background: #f7fafc"],
html[data-theme="dark"] [style*="background:#f0f4f8"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background:#edf2f7"],
html[data-theme="dark"] [style*="background: #edf2f7"],
html[data-theme="dark"] [style*="background:#fafbfc"],
html[data-theme="dark"] [style*="background:#ebf8ff"] { background: #0f172a !important; }

/* Inline dark text → light (semantic renkleri koru) */
html[data-theme="dark"] [style*="color:#1e3c72"],
html[data-theme="dark"] [style*="color: #1e3c72"],
html[data-theme="dark"] [style*="color:#2d3748"],
html[data-theme="dark"] [style*="color: #2d3748"],
html[data-theme="dark"] [style*="color:#1a202c"],
html[data-theme="dark"] [style*="color: #1a202c"],
html[data-theme="dark"] [style*="color:#4a5568"] { color: #e2e8f0 !important; }
/* ============================================
   SHIPMENTS TABLO KOMPAKT
   Sadece #shipmentsTable için geçerli
   ============================================ */
.table-container:has(#shipmentsTable) .table-wrapper {
  overflow-x: hidden !important;
}

#shipmentsTable {
  width: 100% !important;
  table-layout: auto !important;
  font-size: 11.5px;
}

#shipmentsTable thead th {
  padding: 8px 6px !important;
  font-size: 9.5px !important;
  letter-spacing: 0.3px !important;
  white-space: normal !important;
  line-height: 1.25;
  vertical-align: middle;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  min-width: 0;
}

#shipmentsTable thead th .th-content {
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

#shipmentsTable thead th .drag-handle {
  font-size: 11px;
  line-height: 1;
  padding: 0;
  margin-right: 2px;
}

#shipmentsTable tbody td {
  padding: 8px 6px !important;
  font-size: 11.5px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Fiyat hücreleri biraz daha dar */
#shipmentsTable tbody td[style*="text-align:right"] {
  padding-right: 10px !important;
}

/* İşlem sütunu — daralt */
#shipmentsTable thead th.fixed-column,
#shipmentsTable tbody td.fixed-column {
  padding: 6px 8px !important;
  min-width: 110px;
  max-width: 140px;
}

/* Checkbox sütunu */
#shipmentsTable thead th:first-child,
#shipmentsTable tbody td:first-child {
  width: 32px;
  padding: 6px 4px !important;
}

/* Drag/resize handle'ları daha az yer kaplasın */
#shipmentsTable thead th .col-resizer {
  width: 4px;
}

/* Badge küçültme */
#shipmentsTable .badge {
  font-size: 9.5px;
  padding: 3px 7px;
}

/* Butonlar */
#shipmentsTable .btn-icon {
  padding: 3px 6px !important;
  font-size: 12px;
}

/* Çok küçük ekranlarda dikey scroll aç */
@media (max-width: 1400px) {
  #shipmentsTable thead th { font-size: 9px !important; padding: 7px 4px !important; }
  #shipmentsTable tbody td { font-size: 11px !important; padding: 7px 4px !important; max-width: 110px; }
}

/* ============================================
   YÜKLEMELER - YENİ GÖRÜNÜM
   ============================================ */
/* Manuel Yük Ekle butonu */
.btn-filter.btn-manual-add { background: #1e3c72; color: #fff; border-color: #1e3c72; }
.btn-filter.btn-manual-add:hover { background: #2a5298; }

/* Durum kartı */
.shipment-status-card { border-left: none; border-radius: 16px; box-shadow: 0 1px 2px rgba(20,40,80,.06), 0 6px 18px rgba(20,40,80,.06); }
.ss-item { background: #f6f8fb; border-radius: 12px; padding: 12px 14px; }
.ss-icon { border-radius: 12px; width: 42px; height: 42px; }
.ss-value { font-size: 22px; font-variant-numeric: tabular-nums; }
.ss-progress { display: flex; height: 6px; border-radius: 6px; background: #e2e8f0; overflow: hidden; margin-top: 8px; }
.ss-progress i { display: block; height: 100%; transition: width .4s; }
#ssBarArrived { background: #38a169; }
#ssBarOnWay { background: #dd6b20; }

/* Durum etiketleri (tablo) */
#shipmentsTable .badge { border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
#shipmentsTable .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#shipmentsTable tbody tr:hover { background: #f6f8fb; }

/* Aynı konteyner etiketi */
.multi-badge { font-size: 10px; font-weight: 700; color: #2a5298; background: #e8eefb; padding: 2px 6px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }

/* Sayfalama */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 90px; background: #fff; border-radius: 0 0 14px 14px; border-top: 1px solid #e2e8f0; }
.pg-info { color: #718096; font-size: 13px; }
.pg-info b { color: #1a202c; }
.pg-pages { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pagination .pg-btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #1a202c; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; font-variant-numeric: tabular-nums; }
.pagination .pg-btn:hover:not(:disabled) { border-color: #2a5298; color: #2a5298; transform: translateY(-1px); }
.pagination .pg-btn.active { background: #1e3c72; border-color: #1e3c72; color: #fff; box-shadow: 0 4px 12px rgba(30,60,114,.3); }
.pagination .pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-dots { color: #a0aec0; padding: 0 4px; }
.pg-size { display: flex; gap: 8px; align-items: center; color: #718096; font-size: 13px; }
.pg-size select { padding: 7px 10px; border: 1px solid #e2e8f0; border-radius: 9px; font-size: 14px; background: #fff; }

/* Altta yüzen seçim çubuğu */
.selection-bar.selection-float { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 900; margin: 0; width: auto; max-width: calc(100% - 32px); flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 6px; padding: 8px; background: #fff; color: #1a202c; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 40px rgba(15,30,60,.25); animation: selUp .25s ease; }
@keyframes selUp { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
.selection-float .selection-info { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; white-space: nowrap; font-weight: 700; }
.selection-float .selection-info strong { background: #1e3c72; color: #fff; border-radius: 8px; padding: 3px 9px; margin: 0; }
.selection-float .selection-actions { display: flex; gap: 2px; flex-wrap: nowrap; }
.sel-sep { width: 1px; height: 28px; background: #e2e8f0; flex-shrink: 0; }
.sel-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; background: transparent; color: #1a202c; font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.sel-btn:hover { background: #f1f4f9; }
.sel-btn.sel-main { background: #1e3c72; color: #fff; }
.sel-btn.sel-main:hover { background: #2a5298; }
.sel-btn.sel-violet { color: #6b46c1; }
.sel-btn.sel-green { color: #2f855a; }
.sel-btn.sel-danger { color: #c53030; }
.sel-btn.sel-danger:hover { background: #fde6e6; }
.sel-btn.sel-ghost { color: #718096; padding: 9px 10px; }

/* Müşteri seçici */
.cust-picker { position: fixed; z-index: 1000; width: 250px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 40px rgba(15,30,60,.25); padding: 8px; }
.cust-picker-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #718096; padding: 4px 8px 8px; }
.cust-picker-list { max-height: 260px; overflow-y: auto; }
.cust-picker button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #1a202c; font-size: 14px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cust-picker button:hover { background: #ece5fb; color: #6b46c1; }
.cust-picker .cust-picker-none { color: #a0aec0; border-top: 1px solid #edf2f7; border-radius: 0 0 8px 8px; margin-top: 4px; }

/* Manuel Yük Ekle penceresi */
.ma-title { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #2a5298; margin: 16px 0 10px; }
.ma-title:first-of-type { margin-top: 0; }
.ma-title span { text-transform: none; letter-spacing: 0; color: #a0aec0; font-weight: 500; }
.ma-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ma-lines { display: flex; flex-direction: column; gap: 10px; }
.ma-line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; background: #f6f8fb; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 40px 12px 12px; }
.ma-line .modal-field { margin: 0; }
.ma-line .ma-wide { grid-column: span 2; }
.ma-remove { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #c53030; font-size: 16px; cursor: pointer; padding: 6px; border-radius: 8px; }
.ma-remove:hover { background: #fde6e6; }
.ma-add-line { margin-top: 10px; }
.ma-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ma-summary { color: #718096; font-size: 13px; }
.ma-summary b { color: #1a202c; }
@media (max-width: 768px) {
  .ma-grid, .ma-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-bar.selection-float { bottom: 10px; }
  .pagination { justify-content: center; }
}

/* Pencerelerdeki yazı/sayı/tarih kutuları (Düzenle penceresini de güzelleştirir) */
.modal-field input[type="text"],
.modal-field input[type="number"],
.modal-field input[type="date"] { width: 100%; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 13px; font-family: inherit; background: #f7fafc; transition: all 0.2s; box-sizing: border-box; }
.modal-field input:focus { outline: none; border-color: #2a5298; background: #fff; }
.ma-line .modal-field input,
.ma-line .modal-field select { padding: 9px 10px; background: #fff; }
.ma-footer { padding: 15px 4px 0; }
html[data-theme="dark"] .modal-field input { background: #1d2a40; border-color: #2a3953; color: #e6ecf5; }

/* Karanlık tema */
html[data-theme="dark"] .ss-item,
html[data-theme="dark"] .ma-line { background: #1d2a40; border-color: #2a3953; }
html[data-theme="dark"] .pagination,
html[data-theme="dark"] .selection-bar.selection-float,
html[data-theme="dark"] .cust-picker { background: #172133; border-color: #2a3953; color: #e6ecf5; }
html[data-theme="dark"] .pagination .pg-btn,
html[data-theme="dark"] .pg-size select { background: #1d2a40; border-color: #2a3953; color: #e6ecf5; }
html[data-theme="dark"] .pagination .pg-btn.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
html[data-theme="dark"] .pg-info b,
html[data-theme="dark"] .ma-summary b,
html[data-theme="dark"] .sel-btn,
html[data-theme="dark"] .cust-picker button { color: #e6ecf5; }
html[data-theme="dark"] .sel-btn:hover,
html[data-theme="dark"] .cust-picker button:hover { background: #22314d; }
html[data-theme="dark"] .sel-btn.sel-main { background: #3b82f6; color: #fff; }
html[data-theme="dark"] #shipmentsTable tbody tr:hover { background: #1d2a40; }
html[data-theme="dark"] .multi-badge { background: #22314d; color: #8fb1ff; }

/* ETA geçmiş, hâlâ varmamış yükler */
#shipmentsTable tbody tr.row-late td:first-child { box-shadow: inset 4px 0 0 #e53e3e; }
#shipmentsTable tbody tr.row-late { background: #fff5f5; }
#shipmentsTable td.eta-late { color: #c53030; font-weight: 700; }
.late-badge { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 700; color: #c53030; background: #fed7d7; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ss-late { margin-top: 4px; font-size: 11px; font-weight: 700; color: #c53030; }
html[data-theme="dark"] #shipmentsTable tbody tr.row-late { background: #3d1d22; }
html[data-theme="dark"] .late-badge { background: #3d1d22; color: #ff7b7b; }

/* Müşteri bazlı aylık satış - açılır panel */
.cm-panel { max-width: 1040px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(20,40,80,.06), 0 6px 18px rgba(20,40,80,.06); margin-bottom: 20px; overflow: hidden; }
.cm-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; padding: 14px 18px; font-size: 15px; font-weight: 700; color: #1e3c72; cursor: pointer; }
.cm-toggle:hover { background: #f6f8fb; }
.cm-arrow { transition: transform .2s; color: #718096; }
.cm-panel.open .cm-arrow { transform: rotate(180deg); }
.cm-body { padding: 4px 18px 18px; border-top: 1px solid #edf2f7; }
.cm-ctrls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 12px 0; }
.cm-seg { display: inline-flex; background: #f6f8fb; border: 1px solid #e2e8f0; border-radius: 10px; padding: 3px; }
.cm-seg button { border: 0; background: transparent; color: #718096; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.cm-seg button.on { background: #fff; color: #1a202c; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
.cm-svgwrap { position: relative; min-width: 0; }
#cmSvg { display: block; width: 100%; height: auto; }
#cmSvg text { fill: #718096; font-size: 11px; font-weight: 500; }
.cm-tip { position: absolute; pointer-events: none; background: #1a202c; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; white-space: nowrap; transform: translate(-50%, -100%); z-index: 5; }
.cm-legend { display: flex; flex-direction: column; gap: 8px; }
.cm-lg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f6f8fb; border: 1px solid transparent; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cm-lg.off { opacity: .4; }
.cm-lg.cm-total { background: transparent; border-color: #e2e8f0; cursor: default; }
.cm-sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.cm-nm { font-size: 13px; font-weight: 700; }
.cm-vl { font-size: 12px; color: #718096; }
@media (max-width: 768px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-legend { flex-direction: row; flex-wrap: wrap; }
  .cm-lg { flex: 1 1 140px; }
}
html[data-theme="dark"] .cm-panel { background: #172133; }
html[data-theme="dark"] .cm-toggle { color: #8fb1ff; }
html[data-theme="dark"] .cm-toggle:hover,
html[data-theme="dark"] .cm-seg,
html[data-theme="dark"] .cm-lg { background: #1d2a40; border-color: #2a3953; }
html[data-theme="dark"] .cm-body { border-top-color: #2a3953; }
html[data-theme="dark"] .cm-seg button.on { background: #22314d; color: #e6ecf5; }
html[data-theme="dark"] .cm-nm { color: #e6ecf5; }

/* Konteyner bazlı (gruplu) görünüm */
.view-switch { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin: 0 0 10px; color: #718096; font-size: 13px; font-weight: 600; }
#shipmentsTable tr.grp-row { cursor: pointer; }
#shipmentsTable tr.grp-row td { font-weight: 600; }
.grp-chev { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #e8eefb; color: #2a5298; font-size: 10px; margin-right: 6px; transition: transform .15s; vertical-align: middle; }
#shipmentsTable tr.grp-row.open .grp-chev { transform: rotate(90deg); }
#shipmentsTable tr.grp-child td { background: #fafbfd; color: #4a5568; }
#shipmentsTable tr.grp-child td:nth-child(2) { box-shadow: inset 3px 0 0 #bee3f8; }
.grp-more { color: #a0aec0; font-size: 11px; font-weight: 600; margin-left: 3px; }
html[data-theme="dark"] .grp-chev { background: #22314d; color: #8fb1ff; }
html[data-theme="dark"] #shipmentsTable tr.grp-child td { background: #1a2538; color: #c3cee0; }

/* ============================================
   OSTRACK TEMA v2 – Görsel yenileme (tüm sayfalar)
   Bu blok silinirse site eski görünümüne döner.
   ============================================ */

:root {
  --primary: #1b3a6b;
  --primary-light: #2f5fa7;
  --accent: #6a3093;
  --bg: #f4f6fa;
  --border: #e5e9f0;
  --text: #16202f;
  --text-light: #667085;
  --success: #12875a;
  --danger: #c4312b;
  --warning: #d66a12;
  --t2-radius: 12px;
  --t2-radius-sm: 8px;
  --t2-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --t2-shadow-hover: 0 6px 16px rgba(16,24,40,.09);
  --t2-side-bg: #13284c;
  --t2-side-bg2: #0f2141;
  --t2-side-text: rgba(255,255,255,.78);
  --t2-side-active: rgba(255,255,255,.12);
  --t2-side-bar: #7fb2ff;
  --t2-surface: #ffffff;
  --t2-head-bg: #f8fafc;
}

body { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; background: var(--bg); font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased; }

/* ---------- Yan menü ---------- */
.sidebar { background: linear-gradient(180deg, var(--t2-side-bg) 0%, var(--t2-side-bg2) 100%); box-shadow: 1px 0 0 rgba(0,0,0,.04); }
.sidebar-header { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-header img { border-radius: 8px; padding: 6px; max-width: 150px; }
.sidebar-nav { padding: 12px 10px; }
.nav-item { margin: 2px 0; padding: 10px 14px; border-radius: 8px; border-left: 0; font-size: 13.5px; color: var(--t2-side-text); }
.nav-item:hover { background: rgba(255,255,255,.07); }
.nav-item.active { background: var(--t2-side-active); box-shadow: inset 3px 0 0 var(--t2-side-bar); }
.sidebar-group-title { padding: 10px 14px; border-radius: 8px; border-left: 0; font-size: 10.5px; letter-spacing: 1px; color: rgba(255,255,255,.55); }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer button { border-radius: 8px; background: rgba(255,255,255,.08); font-weight: 600; }

/* ---------- Üst bar ---------- */
.topbar { padding: 12px 28px; box-shadow: none; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); }
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.user-avatar { width: 36px; height: 36px; font-size: 13px; background: var(--primary); }
.user-info .role { letter-spacing: .6px; font-size: 10px; }

/* ---------- Sayfa başlığı ---------- */
.page-content { padding: 24px 28px; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.page-header p { font-size: 13px; }
.breadcrumb { font-size: 12px !important; margin-bottom: 12px !important; }

/* ---------- Butonlar (sayfa üstü aksiyonlar dahil) ---------- */
.btn-filter, .btn-apply, .table-header .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--t2-radius-sm);
  font: 600 13px/1.2 inherit; font-family: inherit;
  border: 1px solid var(--border); background: var(--t2-surface); color: var(--text);
  cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
.btn-filter:hover { border-color: #c9d2e0; background: #f8fafc; }
.btn-filter.btn-manual-add, .btn-apply, .table-header .btn, #newTransactionBtn {
  background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important;
}
.btn-filter.btn-manual-add:hover, .btn-apply:hover, .table-header .btn:hover, #newTransactionBtn:hover { background: var(--primary-light) !important; transform: none; box-shadow: var(--t2-shadow-hover); }
.btn-filter[style*="gradient"] { border-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* ---------- Kartlar ---------- */
.stat-card, .table-container, .filters-panel, .report-card, .settings-card, .harvest-card, .shipment-status-card, .rate-item {
  border-radius: var(--t2-radius); box-shadow: var(--t2-shadow); border: 1px solid var(--border);
}
.stat-card { padding: 18px 20px; border-left-width: 3px; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--t2-shadow-hover); }
.stat-card .stat-icon { font-size: 20px; width: 40px; height: 40px; border-radius: 10px; background: #eef3fb; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat-card .stat-label { font-size: 11px; letter-spacing: .6px; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.stats-grid { gap: 16px; }

/* ---------- Tablolar ---------- */
.table-header { padding: 14px 20px; }
.table-header h2 { font-size: 15px; }
table thead { background: var(--t2-head-bg); }
table th { padding: 10px 14px; font-size: 10.5px; letter-spacing: .6px; color: #5b6475; border-bottom: 1px solid var(--border); }
table td { padding: 11px 14px; border-top: 1px solid #eef1f6; }
table tbody tr:hover { background: #f6f9fe; }
table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--primary-light); }
.badge { padding: 3px 9px; font-size: 11px; border-radius: 999px; font-weight: 600; }
.badge.success { background: #e3f6ec; color: #0f6b47; }
.badge.warning { background: #fff1e0; color: #9a4a08; }
.badge.danger { background: #fde8e7; color: #a12620; }
.badge.info { background: #e6effc; color: #1d4e93; }
.empty-state { color: var(--text-light); }

/* ---------- Filtre paneli ---------- */
.filters-header { padding: 12px 20px; }
.filters-header h3 { font-size: 13px; color: var(--text); }
.filters-body { padding: 14px 20px 16px; }
.filter-item label { font-size: 10.5px; letter-spacing: .5px; }
.filter-item input, .filter-item select, .modal-field input, .modal-field select, .modal-field textarea {
  border: 1px solid #d5dce7 !important; border-radius: var(--t2-radius-sm) !important; background: #fff !important; font-family: inherit;
}
.filter-item input:focus, .filter-item select:focus, .modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus {
  border-color: var(--primary-light) !important; box-shadow: 0 0 0 3px rgba(47,95,167,.15) !important; outline: none;
}

/* ---------- Rapor kartları ---------- */
.report-card { border-width: 1px; }
.report-card:hover { transform: translateY(-2px); border-color: #c9d6ea; box-shadow: var(--t2-shadow-hover); }
.report-card-header { background: var(--t2-surface); color: var(--text); border-bottom: 1px solid var(--border); padding: 14px 18px; }
.report-card-header h3 { font-size: 12px; letter-spacing: .8px; color: var(--primary); }
.report-card-icon { font-size: 20px; width: 36px; height: 36px; border-radius: 9px; background: #eef3fb; display: flex; align-items: center; justify-content: center; }

/* ---------- Pencereler (modal) ---------- */
.modal-box { border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(16,24,40,.25); border: 1px solid var(--border); }
.modal-header { border-bottom: 1px solid var(--border); }

/* ---------- Koyu mod uyumu ---------- */
html[data-theme="dark"] { --t2-surface: #1e293b; --t2-head-bg: #172133; }
html[data-theme="dark"] .topbar { background: rgba(30,41,59,.92); border-bottom-color: #334155; }
html[data-theme="dark"] .btn-filter { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .stat-card .stat-icon, html[data-theme="dark"] .report-card-icon { background: #233149; }
html[data-theme="dark"] table td { border-top-color: #263449; }
html[data-theme="dark"] table tbody tr:hover { background: #22304a; }
html[data-theme="dark"] .report-card-header h3 { color: #9cc0ff; }
html[data-theme="dark"] .filter-item input, html[data-theme="dark"] .filter-item select { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0; }

/* ---------- Koyu mod: okunabilirlik ----------
   Sayfa içinde sabit yazılmış koyu renkler (ör. lacivert) koyu zeminde açık tona çevrilir.
   Kendi açık zemini olan rozetlere dokunulmaz. */
html[data-theme="dark"] [style^="color:#1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #1e3c72"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #2a5298"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #2c5282"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #2b6cb0"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #1b3a6b"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #1b3a6b"]:not([style*="background"]) { color: #9cc0ff !important; }
html[data-theme="dark"] [style^="color:#1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #1a202c"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #2d3748"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#212529"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#212529"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#212529"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#212529"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #212529"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #212529"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #212529"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #212529"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #4a5568"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#333"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#333"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#333"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#333"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #333"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #333"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #333"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #333"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#000"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#000"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#000"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#000"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #000"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #000"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #000"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #000"]:not([style*="background"]) { color: #e2e8f0 !important; }
html[data-theme="dark"] [style^="color:#718096"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#718096"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#718096"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#718096"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #718096"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #718096"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #718096"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #718096"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#666"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#666"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#666"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#666"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #666"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #666"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #666"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #666"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #6c757d"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#999"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#999"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#999"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#999"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #999"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #999"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #999"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #999"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #a0aec0"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #a0aec0"]:not([style*="background"]) { color: #94a3b8 !important; }
html[data-theme="dark"] [style^="color:#c53030"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#c53030"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#c53030"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#c53030"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #c53030"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #c53030"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #c53030"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #c53030"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #e53e3e"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #742a2a"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #742a2a"]:not([style*="background"]) { color: #fc8181 !important; }
html[data-theme="dark"] [style^="color:#dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #dd6b20"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#c05621"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#c05621"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#c05621"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#c05621"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #c05621"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #c05621"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #c05621"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #c05621"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #7b341e"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#975a16"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#975a16"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#975a16"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#975a16"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #975a16"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #975a16"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #975a16"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #975a16"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#744210"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#744210"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#744210"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#744210"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #744210"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #744210"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #744210"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #744210"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#92400e"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#92400e"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#92400e"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#92400e"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #92400e"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #92400e"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #92400e"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #92400e"]:not([style*="background"]) { color: #f6ad55 !important; }
html[data-theme="dark"] [style^="color:#38a169"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#38a169"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#38a169"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#38a169"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #38a169"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #38a169"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #38a169"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #38a169"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #2f855a"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#22543d"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#22543d"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#22543d"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#22543d"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #22543d"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #22543d"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #22543d"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #22543d"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#276749"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#276749"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#276749"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#276749"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #276749"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #276749"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #276749"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #276749"]:not([style*="background"]) { color: #68d391 !important; }
html[data-theme="dark"] [style^="color:#553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #553c9a"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #805ad5"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #6b46c1"]:not([style*="background"]),
html[data-theme="dark"] [style^="color:#6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color:#6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color:#6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color:#6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style^="color: #6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style*="; color: #6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style*=";color: #6a3093"]:not([style*="background"]),
html[data-theme="dark"] [style*=" color: #6a3093"]:not([style*="background"]) { color: #c4a7ff !important; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: #e2e8f0; }
html[data-theme="dark"] .filters-header h3, html[data-theme="dark"] .settings-card h3, html[data-theme="dark"] .table-header h2 { color: #e2e8f0; }
html[data-theme="dark"] .stat-card .stat-value, html[data-theme="dark"] .report-stat-value, html[data-theme="dark"] .ss-value, html[data-theme="dark"] .topbar-title { color: #e2e8f0; }
html[data-theme="dark"] .ss-arrived .ss-value, html[data-theme="dark"] .stat-card.green .stat-value { color: #68d391; }
html[data-theme="dark"] .ss-ontheway .ss-value, html[data-theme="dark"] .stat-card.orange .stat-value { color: #f6ad55; }
html[data-theme="dark"] .ss-sales .ss-value, html[data-theme="dark"] .stat-card.purple .stat-value { color: #c4a7ff; }
html[data-theme="dark"] .rx-red { color: #fc8181 !important; }
html[data-theme="dark"] .ss-icon, html[data-theme="dark"] .stat-card .stat-icon { filter: none; background: #233149 !important; }
html[data-theme="dark"] a { color: #9cc0ff; }
html[data-theme="dark"] .app-footer strong, html[data-theme="dark"] .app-footer b { color: #9cc0ff; }
html[data-theme="dark"] [style*="background:#fff;"], html[data-theme="dark"] [style*="background: #fff;"],
html[data-theme="dark"] [style*="background:#ffffff"], html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:#f8f9fa"], html[data-theme="dark"] [style*="background: #f8f9fa"],
html[data-theme="dark"] .harvest-daily-panel, html[data-theme="dark"] .exp-summary-card, html[data-theme="dark"] .bank-card { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0; }
html[data-theme="dark"] [style*="background:#e2e8f0"], html[data-theme="dark"] [style*="background: #e2e8f0"] { background: #334155 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .report-card-footer { background: #172133; border-top-color: #334155; color: #9cc0ff; }
/* Sayfa stillerinde koyu yazı rengi verilmiş öğeler: koyu modda açık tona çevrilir */
html[data-theme="dark"] body:not(.login-page) .app-footer strong,
html[data-theme="dark"] body:not(.login-page) .bulk-summary-item .num,
html[data-theme="dark"] body:not(.login-page) .exp-filter-btn:hover,
html[data-theme="dark"] body:not(.login-page) .exp-preview-file .name,
html[data-theme="dark"] body:not(.login-page) .exp-summary-cur .val,
html[data-theme="dark"] body:not(.login-page) .exp-summary-month,
html[data-theme="dark"] body:not(.login-page) .form-group label,
html[data-theme="dark"] body:not(.login-page) .harvest-daily-header h3,
html[data-theme="dark"] body:not(.login-page) .harvest-value,
html[data-theme="dark"] body:not(.login-page) .ma-title,
html[data-theme="dark"] body:not(.login-page) .pagination .pg-btn:hover:not(:disabled),
html[data-theme="dark"] body:not(.login-page) .pm-t td:first-child,
html[data-theme="dark"] body:not(.login-page) .pm-t th:hover:not(:first-child),
html[data-theme="dark"] body:not(.login-page) .profile-dropdown-item,
html[data-theme="dark"] body:not(.login-page) .report-header h2,
html[data-theme="dark"] body:not(.login-page) .report-section h3,
html[data-theme="dark"] body:not(.login-page) .report-stat-value,
html[data-theme="dark"] body:not(.login-page) .report-stat.total .report-stat-label,
html[data-theme="dark"] body:not(.login-page) .report-table td:last-child,
html[data-theme="dark"] body:not(.login-page) .rx-kpi b,
html[data-theme="dark"] body:not(.login-page) .settings-card h3,
html[data-theme="dark"] body:not(.login-page) .ss-value,
html[data-theme="dark"] body:not(.login-page) .task-title { color: #9cc0ff; }
html[data-theme="dark"] body:not(.login-page) .exp-summary-card.selected .exp-summary-cur .val,
html[data-theme="dark"] body:not(.login-page) .sel-btn.sel-violet,
html[data-theme="dark"] body:not(.login-page) .ss-sales .ss-value { color: #c4a7ff; }
html[data-theme="dark"] body:not(.login-page) .exp-drop-zone .lbl,
html[data-theme="dark"] body:not(.login-page) .exp-summary-cur .lbl,
html[data-theme="dark"] body:not(.login-page) .harvest-label,
html[data-theme="dark"] body:not(.login-page) .pm-legend { color: #e2e8f0; }
html[data-theme="dark"] body:not(.login-page) .exp-summary-card.prev .exp-summary-cur .val { color: #f6ad55; }
html[data-theme="dark"] body:not(.login-page) #shipmentsTable td.eta-late,
html[data-theme="dark"] body:not(.login-page) .bulk-summary-item.danger .num,
html[data-theme="dark"] body:not(.login-page) .exp-preview-actions button.remove,
html[data-theme="dark"] body:not(.login-page) .exp-summary-clear,
html[data-theme="dark"] body:not(.login-page) .ma-remove,
html[data-theme="dark"] body:not(.login-page) .rx-red,
html[data-theme="dark"] body:not(.login-page) .sel-btn.sel-danger,
html[data-theme="dark"] body:not(.login-page) .ss-late { color: #fc8181; }
html[data-theme="dark"] .bulk-summary-item,
html[data-theme="dark"] .chart-container,
html[data-theme="dark"] .exp-drop-zone,
html[data-theme="dark"] .exp-preview-file,
html[data-theme="dark"] .exp-summary-card,
html[data-theme="dark"] .harvest-daily-footer,
html[data-theme="dark"] .pm-grp,
html[data-theme="dark"] .rx-kpi,
html[data-theme="dark"] .rx-kur,
html[data-theme="dark"] .rx-tab,
html[data-theme="dark"] .skeleton-card,
html[data-theme="dark"] .exp-preview-actions button { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .filter-row th,
html[data-theme="dark"] .table-wrapper table thead th,
html[data-theme="dark"] .rx-t tfoot td,
html[data-theme="dark"] .rx-t tr.rx-s > td { background: #172133; }
html[data-theme="dark"] .ma-line .modal-field input,
html[data-theme="dark"] .ma-line .modal-field select,
html[data-theme="dark"] .modal-field input[type="date"],
html[data-theme="dark"] .modal-field input[type="number"],
html[data-theme="dark"] .modal-field input[type="text"],
html[data-theme="dark"] .modal-field input:focus { background: #0f172a !important; color: #e2e8f0; border-color: #334155 !important; }

/* ---------- Çizgi ikonlar ---------- */
.ost-ico { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.ost-ico-wrap { display: inline-flex; align-items: center; margin-right: 4px; }
.stat-icon .ost-ico-wrap, .report-card-icon .ost-ico-wrap, .ss-icon .ost-ico-wrap { margin: 0; }
.stat-card .stat-icon { color: var(--primary-light); }
.stat-card.green .stat-icon { color: var(--success); background: #e3f6ec; }
.stat-card.orange .stat-icon { color: var(--warning); background: #fff1e0; }
.stat-card.purple .stat-icon { color: var(--accent); background: #f1e8fb; }
.report-card-icon { color: var(--primary-light); }
.ss-icon { color: var(--primary); }
.ss-arrived .ss-icon { color: var(--success); }
.ss-ontheway .ss-icon { color: var(--warning); }
.ss-sales .ss-icon { color: var(--accent); }
.topbar-title .ost-ico { color: var(--primary-light); }
html[data-theme="dark"] .stat-card .stat-icon, html[data-theme="dark"] .report-card-icon, html[data-theme="dark"] .ss-icon, html[data-theme="dark"] .topbar-title .ost-ico { color: #9cc0ff; }
html[data-theme="dark"] .stat-card.green .stat-icon, html[data-theme="dark"] .ss-arrived .ss-icon { color: #68d391; }
html[data-theme="dark"] .stat-card.orange .stat-icon, html[data-theme="dark"] .ss-ontheway .ss-icon { color: #f6ad55; }
html[data-theme="dark"] .stat-card.purple .stat-icon, html[data-theme="dark"] .ss-sales .ss-icon { color: #c4a7ff; }

/* ---------- Sol menü v2 ---------- */
.sidebar-nav { padding: 10px 10px 16px; }
.nav-search { position: relative; margin: 2px 2px 10px; }
.nav-search input { width: 100%; padding: 8px 10px 8px 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: #fff; font: 500 13px inherit; font-family: inherit; outline: none; transition: background .15s, border-color .15s; }
.nav-search input::placeholder { color: rgba(255,255,255,.45); }
.nav-search input:focus { background: rgba(255,255,255,.12); border-color: rgba(127,178,255,.6); }
.nav-search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.5); display: flex; }
.nav-item { display: flex; align-items: center; gap: 10px; }
.nav-item .icon { margin-right: 0; width: 20px; display: inline-flex; justify-content: center; opacity: .85; }
.nav-item.active .icon { opacity: 1; color: var(--t2-side-bar); }
.sidebar-group { margin-top: 6px; }
.sidebar-group.single { margin-top: 0; }
.sidebar-group-title { padding: 8px 12px 6px; margin-top: 4px; }
.sidebar-group-title .group-label { gap: 8px; }
.sidebar-group-title .group-ico { display: inline-flex; opacity: .7; }
.sidebar-group-title .group-arrow { display: inline-flex; font-size: 0; transition: transform .2s ease; }
.sidebar-group.open .sidebar-group-title .group-arrow { transform: rotate(90deg); }
.sidebar-group-content .nav-item { padding-left: 14px; margin-left: 10px; font-size: 13px; }
.sidebar-group-content { border-left: 1px solid rgba(255,255,255,.08); margin-left: 12px; }
.sidebar-group-content .nav-item { margin-left: 0; }
.sidebar-nav .nav-hidden { display: none !important; }
.sidebar-group.search-open .sidebar-group-content { max-height: 600px; }
.sidebar-group.open .sidebar-group-content { max-height: 600px; }
.sidebar-footer button { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ============================================
   MOBİL DÜZELTMELER (tarama 3)
   ============================================ */
@media (max-width: 768px) {
  .main-content { min-width: 0; max-width: 100vw; overflow-x: hidden; }
  .page-content { min-width: 0; max-width: 100%; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar > div:first-child { min-width: 0; flex: 1 1 auto; }
  .topbar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-user { gap: 6px; flex: 0 0 auto; }
  .topbar-user .lang-dropdown { padding: 4px 6px; font-size: 12px; }
  .topbar-user .user-avatar { width: 32px; height: 32px; font-size: 12px; }
  .table-container, .filters-panel, .report-card, .settings-card { max-width: 100%; }
  .table-container:has(#shipmentsTable) .table-wrapper { overflow-x: auto !important; }
  .table-header { flex-wrap: wrap; gap: 8px; }
  .page-header { flex-wrap: wrap; gap: 10px; }
  .filters-row, .filters-body > div { flex-wrap: wrap; }
  .modal-box { max-width: calc(100vw - 24px); }
}

/* ---------- Tasarımsız kalan butonlar ---------- */
.btn-clear {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--t2-radius-sm);
  font: 600 13px/1.2 inherit; font-family: inherit; cursor: pointer;
  border: 1px solid var(--border); background: var(--t2-surface); color: var(--text);
  box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: background .15s, border-color .15s;
}
.btn-clear:hover { background: #f8fafc; border-color: #c9d2e0; }
.filters-header .btn-clear { padding: 5px 12px; font-size: 11px; }
#addHarvestBtn.btn-clear { background: var(--primary); color: #fff; border-color: var(--primary); }
#addHarvestBtn.btn-clear:hover { background: var(--primary-light); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 7px; border-radius: 6px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: var(--t2-surface); color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn-icon:hover { background: #eef3fb; border-color: #c9d6ea; }
.btn-icon.delete:hover { background: #fde8e7; border-color: #f5b5b1; color: var(--danger); }
html[data-theme="dark"] .btn-clear, html[data-theme="dark"] .btn-icon { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .btn-clear:hover, html[data-theme="dark"] .btn-icon:hover { background: #263449; }
html[data-theme="dark"] #addHarvestBtn.btn-clear { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }

/* ---------- Kayıt geçmişi ---------- */
.ost-hist-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 8px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--t2-surface); color: var(--text); font: 600 12px/1.2 inherit; font-family: inherit; cursor: pointer; }
.ost-hist-btn:hover { background: #eef3fb; border-color: #c9d6ea; }
.ost-hist-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ost-hist-box { background: var(--t2-surface); color: var(--text); width: 100%; max-width: 620px; max-height: 85vh; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 24px 48px -12px rgba(16,24,40,.25); }
.ost-hist-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ost-hist-head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.ost-hist-x { background: none; border: 0; cursor: pointer; color: var(--text-light); padding: 4px; display: inline-flex; }
.ost-hist-body { padding: 8px 18px 16px; overflow-y: auto; font-size: 13px; }
.ost-hist-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.ost-hist-item:last-child { border-bottom: 0; }
.ost-hist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ost-hist-when { color: var(--text-light); font-size: 12px; margin-left: auto; }
.ost-hist-act { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e6effc; color: #1d4e93; }
.ost-hist-insert, .ost-hist-approve { background: #e3f6ec; color: #0f6b47; }
.ost-hist-delete, .ost-hist-reject { background: #fde8e7; color: #a12620; }
.ost-hist-desc { margin-top: 4px; color: var(--text-light); }
.ost-hist-tbl { width: 100%; margin-top: 6px; font-size: 12.5px; border-collapse: collapse; }
.ost-hist-tbl td { padding: 4px 6px !important; border-top: 1px solid var(--border) !important; vertical-align: top; word-break: break-word; }
.ost-hist-tbl td:first-child { font-weight: 600; width: 32%; }
.ost-hist-tbl td.o { color: var(--danger) !important; text-decoration: line-through; text-decoration-color: rgba(196,49,43,.4); }
.ost-hist-tbl td.n { color: var(--success) !important; }
.ost-hist-empty { padding: 24px 0; text-align: center; color: var(--text-light); }
html[data-theme="dark"] .ost-hist-btn { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .ost-hist-act { background: #233149; color: #9cc0ff; }
html[data-theme="dark"] .ost-hist-insert, html[data-theme="dark"] .ost-hist-approve { background: #12392b; color: #6ee7b7; }
html[data-theme="dark"] .ost-hist-delete, html[data-theme="dark"] .ost-hist-reject { background: #3f1d1d; color: #fca5a5; }
html[data-theme="dark"] .ost-hist-tbl td.o { color: #fca5a5 !important; }
html[data-theme="dark"] .ost-hist-tbl td.n { color: #6ee7b7 !important; }
html[data-theme="dark"] .badge.success { background: #12392b; color: #6ee7b7; }
html[data-theme="dark"] .badge.warning { background: #3b2a12; color: #fbbf24; }
html[data-theme="dark"] .badge.danger { background: #3f1d1d; color: #fca5a5; }
html[data-theme="dark"] .badge.info { background: #1e3050; color: #9cc0ff; }
html[data-theme="dark"] .log-pre { background: #0f172a !important; color: #e2e8f0; }

/* ============================================
   MOBİL DÜZELTMELER (tarama 4)
   ============================================ */
@media (max-width: 480px) {
  /* Üst çubukta başlık sığmıyordu (tek harf kalıyordu); sayfa adı zaten sayfa yolunda ve büyük başlıkta var */
  .topbar-title { display: none; }
}
@media (max-width: 768px) {
  /* Pencerelerdeki iki sütunlu alanlar: uzun seçim kutusu yan sütunu ezmesin, taşmasın */
  .modal-box [style*="grid-template-columns"] > * { min-width: 0; }
  .modal-box input, .modal-box select, .modal-box textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
}

/* ============================================
   MOBİL KOMPAKT GÖRÜNÜM (sadece telefonda, ≤768px)
   ============================================ */
#ostSideBackdrop { display: none; }
@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  #ostSideBackdrop.on { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 99; animation: fadeIn .2s; }
  html.ost-side-open body { overflow: hidden; }
  .sidebar { width: min(82vw, 300px); box-shadow: 8px 0 30px rgba(0,0,0,.25); }
  .sidebar:not(.open) { box-shadow: none; }

  body { font-size: 14px; }
  .topbar { padding: 6px 10px !important; min-height: 48px; }
  .mobile-menu-btn { font-size: 22px; padding: 4px 6px; }
  .page-content { padding: 10px 10px 24px !important; }
  .page-header { margin-bottom: 10px !important; }
  .page-header h1 { font-size: 19px; margin-bottom: 2px; }
  .page-header p { font-size: 12px; }
  .breadcrumb { font-size: 11px; margin-bottom: 4px; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 0 12px !important; }
  .stat-card { padding: 10px 12px !important; border-radius: 12px !important; min-width: 0; }
  .stat-card:hover, .stat-card:active { transform: none !important; }
  .stat-card .stat-icon { width: 28px !important; height: 28px !important; font-size: 14px !important; border-radius: 8px !important; margin-bottom: 6px !important; }
  .stat-card .stat-label { font-size: 10px !important; letter-spacing: .3px !important; margin-bottom: 3px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat-card .stat-value { font-size: 18px !important; overflow-wrap: anywhere; }
  .stat-card .stat-unit { font-size: 11px; margin-left: 3px; }

  .table-container, .filters-panel, .report-card, .settings-card { border-radius: 12px !important; margin-bottom: 12px !important; }
  .table-header { padding: 10px 12px !important; gap: 8px !important; }
  .table-header h2 { font-size: 15px !important; }
  .table-header .btn, .btn-filter, .btn-apply { padding: 7px 12px !important; font-size: 12px !important; }
  table { font-size: 12px; }
  table th { padding: 7px 8px !important; font-size: 10px !important; letter-spacing: .3px !important; }
  table td { padding: 8px 8px !important; }
  .badge { padding: 3px 8px; font-size: 10.5px; }

  /* iPhone'da kutuya dokununca sayfanın büyümesini (zoom) önler */
  input:not([type="checkbox"]):not([type="radio"]), select:not(.lang-dropdown), textarea { font-size: 16px !important; }
  .form-group { margin-bottom: 12px; }

  /* Pencereler alttan açılan tam genişlik panel gibi */
  .modal-overlay { padding: 0 !important; align-items: flex-end !important; }
  .modal-box { max-width: 100vw !important; width: 100% !important; max-height: 94vh !important; border-radius: 16px 16px 0 0 !important; }
}

/* v1.10.16 MENÜ: açık grup kesilmesin, menü kaysın */
.sidebar { overflow: hidden; }
.sidebar-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 6px; }
.sidebar-group.open .sidebar-group-content, .sidebar-group.search-open .sidebar-group-content { max-height: 2000px; }
.sidebar-group-title:focus-visible, .sidebar-nav .nav-item:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -2px; border-radius: 8px; }
.sidebar-footer { flex-shrink: 0; }
