/* =========================================================================
   TAMİR ERP — Ortak Tasarım Sistemi
   Yön: "Atölye Panosu" — grafit atölye zemini + sinyal turuncusu / diagnostik
   yeşili vurgu (bolt/panel/LED motifiyle anasayfa ile ayn kimlik).
   Fontlar: Oswald (başlık) · Inter (gövde) · IBM Plex Mono (kod/IMEI/fiş no)
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #ECE8DF;
  --surface: #ffffff;
  --surface-2: #F5F2EA;
  --sidebar-bg: #15181B;
  --sidebar-bg-hover: #1F2327;
  --text: #17191B;
  --text-muted: #6B7075;
  --border: #DCD7C9;

  --accent: #FF7A29;
  --accent-hover: #E0691F;
  --accent-soft: #FFE4D1;
  --teal: #1E9B6E;
  --teal-soft: #DCF3E8;
  --warn: #C99114;
  --warn-soft: #faefd4;
  --danger: #C94444;
  --danger-soft: #fbe9e8;
  --success: #1E9B6E;
  --success-soft: #DCF3E8;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);

  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --primary: var(--accent);
  --primary-dark: var(--accent-hover);
  --primary-light: var(--accent-soft);
}

[data-theme="dark"] {
  --bg: #15181B;
  --surface: #1F2327;
  --surface-2: #191C1F;
  --sidebar-bg: #101315;
  --sidebar-bg-hover: #262B2F;
  --text: #ECE8DF;
  --text-muted: #9AA0A6;
  --border: #33383D;

  --accent: #FF7A29;
  --accent-hover: #ff8c47;
  --accent-soft: rgba(255, 122, 41, 0.16);
  --teal: #4AEDA0;
  --teal-soft: rgba(74, 237, 160, 0.14);
  --warn: #f0c04a;
  --warn-soft: rgba(240, 192, 74, 0.12);
  --danger: #ff6b5b;
  --danger-soft: rgba(255, 107, 91, 0.13);
  --success: #4AEDA0;
  --success-soft: rgba(74, 237, 160, 0.13);

  --glass: rgba(31, 35, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .section-title, .stat-value, .platform-logo, .sidebar-brand {
  font-family: var(--font-display);
  letter-spacing: 0;
}
.section-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.mono, .order-code, code { font-family: var(--font-mono); letter-spacing: -0.02em; }

/* Glass & motion */
.glass-card { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0,0,0,0.1); }
.hover-lift { transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.4s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .animate-in, .hover-lift { animation: none !important; transition: none !important; } }

[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important;
}
[data-theme="dark"] .login-box, [data-theme="dark"] .login-form-container, [data-theme="dark"] .register-form-container { background: var(--surface); color: var(--text); }
[data-theme="dark"] tr:hover td { background: rgba(255,255,255,0.03); }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #9AA0A6;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  z-index: 1001;
  transition: all 0.15s ease;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
  padding: 0 20px 18px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand small { display: block; font-weight: 500; font-size: 11.5px; color: #7d8388; margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0; position: relative;
  background: linear-gradient(155deg, var(--accent) 0%, #C85A18 100%);
  display: flex; align-items: center; justify-content: center;
  color: #1a1206; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 4px 10px rgba(255,122,41,0.35);
}
.platform-logo { font-size: 16px; font-weight: 700; letter-spacing: 0; font-family: var(--font-display); display: flex; align-items: center; gap: 10px; color: #fff; }

.nav-section { padding: 20px 20px 8px; font-size: 10.5px; font-weight: 600; font-family: var(--font-mono); color: #6b7075; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; user-select: none; }
.nav-section:hover { color: #9AA0A6; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-collapsible { overflow: hidden; transition: max-height 0.15s ease-out; max-height: 500px; }
.nav-group-collapsible.collapsed { max-height: 0; }
.fa-chevron-down { transition: transform 0.15s; }

.sidebar a.nav-link, .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; margin: 1px 10px; border-radius: 6px;
  color: #9AA0A6; font-size: 13.5px; font-weight: 500;
  position: relative; transition: all 0.15s;
}
.sidebar a.nav-link:hover, .nav-link:hover { background: var(--sidebar-bg-hover); color: #fff; }
.sidebar a.nav-link.active, .nav-link.active {
  background: var(--sidebar-bg-hover); color: #fff;
}
.sidebar a.nav-link.active::before, .nav-link.active::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 8px rgba(255,122,41,0.6);
}
.sidebar a.nav-link i, .nav-link i { width: 18px; text-align: center; font-size: 15px; }

.sidebar-footer { padding: 14px 20px 0; border-top: 1px solid rgba(255,255,255,0.08); margin-top: auto; font-size: 12.5px; }
.sidebar-footer .user-name { color: #fff; font-weight: 600; margin-bottom: 4px; }
.sidebar-footer a { color: #7d8388; }

/* ---------- Main / topbar ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px; background: var(--bg); border-bottom: 1px solid var(--border); border-top: 3px solid var(--accent); height: 64px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }

.search-form { position: relative; display: flex; align-items: center; width: 300px; }
.search-form input { padding-left: 12px; padding-right: 40px; border-radius: 7px; font-size: 13px; background: var(--bg); height: 38px; border: 1px solid var(--border); width: 100%; }
.search-form input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form button { position: absolute; right: 5px; background: var(--accent); color: #fff; border: none; width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-form button:hover { background: var(--accent-hover); }
.search-form button i { font-size: 12px; }

.user-profile { text-align: right; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.user-profile span { display: block; font-weight: 600; font-size: 13.5px; }
.user-profile small { font-size: 11px; color: var(--text-muted); }
.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(155deg, var(--accent), #C85A18);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; font-family: var(--font-display); flex-shrink: 0;
}

.content { padding: 28px; flex: 1; max-width: 1440px; margin: 0 auto; width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.card-header { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 4px 0; }
.card-header h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.platform-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--tile-color, var(--accent)) 0 12px, transparent 12px 24px);
  opacity: 0.8;
}
.stat-card::after {
  content: ''; position: absolute; bottom: 9px; right: 9px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--border);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.stat-card .stat-label, .stat-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .stat-value, .stat-value { font-family: var(--font-mono); font-size: 27px; font-weight: 600; margin-top: 6px; color: var(--text); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.stat-info { margin-bottom: 6px; }
.stat-trend { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
th { color: var(--text-muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2); font-family: var(--font-mono); border-top: 2px solid var(--accent); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }
.table-wrap, .table-responsive { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.badge-approved, .badge-active { background: var(--success-soft); color: var(--success); }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-suspended, .badge-expired { background: var(--danger-soft); color: var(--danger); }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }
.badge-urgent { background: var(--danger); color: #fff; }
.badge-success { background: var(--success); color: #fff; }
.badge-danger { background: var(--danger); color: #fff; }
.badge-warn { background: var(--warn); color: #fff; }
.badge-teal { background: var(--teal); color: #fff; }

.pagination { display: flex; list-style: none; gap: 6px; padding: 0; margin: 20px 0 0; justify-content: center; flex-wrap: wrap; }
.page-item { display: block; }
.page-link {
  display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 600; font-family: var(--font-mono);
  text-decoration: none; transition: all 0.15s;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-item.disabled .page-link { color: var(--text-muted); opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.badge-accent { background: var(--accent); color: #fff; }

.ink-stamp-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 2px solid currentColor; border-radius: 5px;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: 12.5px; padding: 5px 12px; background: transparent;
}

.bg-success-soft { background: var(--success-soft) !important; }
.bg-danger-soft { background: var(--danger-soft) !important; }
.bg-warn-soft { background: var(--warn-soft) !important; }
.bg-accent-soft { background: var(--accent-soft) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }

.status-indicator { width: 10px; height: 10px; border-radius: 50%; }
.status-indicator.online { background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.45; } 100% { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 6px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; transition: all 0.15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.btn.btn-primary { background: var(--accent); color: #fff; }
.btn.btn-primary:hover { background: var(--accent-hover); }
.btn.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.btn-secondary:hover { background: var(--border); }
.btn.btn-danger { background: var(--danger); }
.btn.btn-success { background: var(--success); }
.btn.btn-success:hover { background: var(--success); filter: brightness(0.92); }
.btn.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; margin-top: 16px; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], select, textarea, .form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: var(--surface); color: var(--text); transition: border-color 0.15s;
  font-family: var(--font-body); box-shadow: inset 0 1px 2px rgba(0,0,0,0.035);
}
input:focus, select:focus, textarea:focus, .form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-weight: 500; border-left: 4px solid; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
.alert-info { background: var(--accent-soft); color: var(--accent-hover); border-left-color: var(--accent); }

.barcode-search-container { position: relative; }
.barcode-search-container input { width: 140px; height: 36px; padding: 0 35px 0 12px; border-radius: 6px; font-size: 12px; font-family: var(--font-mono); }
.barcode-search-container i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.barcode-search-container input:focus { width: 180px; }

/* ---------- Layout utilities ---------- */
.flex { display: flex; }
.grid { display: grid; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1200px) { .grid-2-1 { grid-template-columns: 1fr; } }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-end { display: flex; justify-content: flex-end; align-items: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.p-0 { padding: 0; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.opacity-50 { opacity: 0.5; }
.border-top { border-top: 1px solid var(--border); }

.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mr-8 { margin-right: 8px; }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--accent); }
.text-white { color: #fff; }
.bg-primary { background: var(--accent); }

/* ---------- Modals ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(21, 24, 27, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.15s ease-out;
}
.modal.show { display: flex; }

.otek-window {
  background: #f0f0f0;
  border: 2px solid #005a9e;
  border-radius: 4px;
  width: 900px;
  max-width: 95vw;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.otek-header {
  background: linear-gradient(to bottom, #0078d4, #005a9e);
  color: white;
  padding: 8px 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}
.otek-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  color: #333;
}
.otek-preview-box {
  background: white;
  border: 1px solid #ccc;
  width: 100%;
  aspect-ratio: 1.5;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}
.otek-controls {
  background: #e1e1e1;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.otek-label { font-size: 11px; font-weight: bold; color: #555; margin-bottom: 4px; display: block; }
.otek-input { width: 100%; padding: 4px 8px; border: 1px solid #999; border-radius: 2px; font-size: 13px; }
.otek-btn { padding: 10px 24px; border: none; border-radius: 3px; font-weight: bold; cursor: pointer; }
.otek-btn-blue { background: #005a9e; color: white; }
.otek-btn-red { background: #d13438; color: white; }
.otek-btn-grey { background: #ccc; color: #333; }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  position: relative;
  animation: modalSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2, .modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  .modal-content { width: 92%; margin: 0 auto; }
}

.empty-state { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 13.5px; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item { padding: 16px; display: flex; gap: 12px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; background: var(--surface-2); color: var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.activity-content p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.4; }
.activity-content small { font-size: 11px; }

/* ---------- Mobile utilities ---------- */
.menu-toggle { display: none; cursor: pointer; font-size: 20px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(21,24,27,0.6); z-index: 1000; }

@media (max-width: 992px) {
  .dashboard-header.flex-between { flex-wrap: wrap !important; }
  .mobile-mt-20 { margin-top: 20px; width: 100%; max-width: 100% !important; }
  .sidebar { position: fixed; left: -264px; top: 0; bottom: 0; width: 264px; }
  .sidebar.show { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.25); }
  .sidebar-overlay.show { display: block; }
  .menu-toggle { display: block; }
  .desktop-only { display: none !important; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .search-toggle { display: block !important; }

  .search-form { display: none; }
  .search-form.show-mobile {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 64px;
    z-index: 2001;
    background: var(--surface);
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 12px;
  }
  .search-form.show-mobile input {
    height: 44px;
  }
  .search-form.show-mobile .search-close {
    display: flex !important;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
  }
}

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar-right .user-profile span, .topbar-right .user-profile small { display: none; }
  .flex-between { flex-direction: column; align-items: stretch; }
  .topbar h1 { font-size: 15px; }
  .dashboard-header { margin-bottom: 20px; }
}

/* Kanban Board Styles */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding: 10px 0 20px; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.kanban-col { background: var(--surface-2); border-radius: 8px; width: 260px; flex-shrink: 0; display: flex; flex-direction: column; max-height: 80vh; border: 1px solid var(--border); }
.kanban-header { padding: 12px; font-weight: 700; background: var(--surface); border-radius: 8px 8px 0 0; font-size: 12px; text-align: center; border-bottom: 1px solid var(--border); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.kanban-cards { padding: 10px; flex: 1; overflow-y: auto; min-height: 150px; }
.kanban-card { background: var(--surface); border-radius: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); cursor: grab; box-shadow: var(--shadow-sm); transition: border-color 0.15s; position: relative; overflow: hidden; }
.kanban-card:hover { border-color: var(--accent); }
.kanban-card.overdue { border-left: 4px solid var(--danger); }
.kanban-card.overdue::after {
  content: 'GECİKTİ'; position: absolute; top: 7px; right: -26px; width: 100px; text-align: center;
  transform: rotate(45deg); background: repeating-linear-gradient(45deg, var(--danger) 0 6px, #c23a3a 6px 12px);
  color: #fff; font-size: 8.5px; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.04em; padding: 1px 0;
}
.card-no { font-size: 10px; color: var(--text-muted); font-weight: bold; }
.card-customer { font-weight: bold; font-size: 13px; margin: 4px 0; }
.card-device { font-size: 12px; color: var(--text-muted); }

/* SLA Status & Row Highlights */
.sla-overdue { color: var(--danger); font-weight: bold; }
.sla-warning { color: var(--warn); }
.sla-ok { color: var(--success); }
tr.row-overdue td { background: var(--danger-soft) !important; }
tr.row-overdue:hover td { background: var(--danger-soft) !important; filter: brightness(0.97); }
