/* ==========================================================================
   ALPSOFT SERVİS YÖNETİM PLATFORMU - PROFESYONEL VE NİZAMİ WEB ARAYÜZÜ (SPA)
   Tasarım: Dark Luxury Glassmorphism & High-Performance Business Dashboard
   Tipografi: Inter (Tabular Nums, Mükemmel Hizalama)
   ========================================================================== */

:root {
  /* Renk Şeması */
  color-scheme: dark;

  /* Renk Paleti - Derin Obsidian & Karbon */
  --bg-app: #0B0E14;
  --bg-sidebar: #10141D;
  --bg-header: #121722;
  --bg-card: #151B26;
  --bg-card-hover: #1A2230;
  --bg-input: #0D111A;
  --bg-input-focus: #111724;
  --bg-modal: #131824;
  --bg-modal-overlay: rgba(5, 8, 14, 0.82);

  /* Kenarlıklar */
  --border-subtle: #1E2638;
  --border-light: rgba(255, 255, 255, 0.07);
  --border-hover: #2E3A54;
  --border-active: #FFD026;

  /* Vurgu & Durum Renkleri */
  --gold: #FFD026;
  --gold-hover: #FFE066;
  --gold-glow: rgba(255, 208, 38, 0.22);
  --gold-bg: rgba(255, 208, 38, 0.10);

  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.24);
  --emerald-bg: rgba(16, 185, 129, 0.12);

  --sky: #38BDF8;
  --sky-glow: rgba(56, 189, 248, 0.22);
  --sky-bg: rgba(56, 189, 248, 0.12);

  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, 0.12);

  --coral: #EF4444;
  --coral-glow: rgba(239, 68, 68, 0.24);
  --coral-bg: rgba(239, 68, 68, 0.12);

  --purple: #A855F7;
  --purple-bg: rgba(168, 85, 247, 0.12);

  --teal: #2DD4BF;
  --teal-bg: rgba(45, 212, 191, 0.12);

  /* Tipografi & Kontrast */
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Boyutlar & Ölçüler (Nizami 8-Grid) */
  --sidebar-width: 256px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Gölgeler */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 20px 48px -4px rgba(0, 0, 0, 0.75);

  /* Geçişler */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- RESET & TEMEL ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(255, 208, 38, 0.25);
  color: #FFFFFF;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* Rakam ve fiyatlarda sütun hizasının kaymasını kesinlikle önleyen Tabular Nums */
.tabular,
.kpi-value,
.currency-val,
.currency-value,
.modern-table td.text-right,
.modern-table th.text-right,
.modern-table td[style*="text-align:right"],
.modern-table th[style*="text-align:right"],
.modern-table td:nth-child(n+4) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* ---------------- ÖZEL SCROLLBAR ---------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #242D40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34405A;
}

/* ---------------- GİRİŞ (LOGIN) EKRANI ---------------- */
.login-view, .login-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 25%, #182030 0%, #0B0E14 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: max-width var(--transition-normal);
}

.login-card.wide {
  max-width: 640px;
}

.auth-panel {
  animation: fadeIn 0.22s ease;
}

.auth-header {
  margin-bottom: 20px;
  text-align: center;
}

.auth-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.auth-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.password-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
  z-index: 5;
}

.password-eye-btn:hover {
  color: var(--gold);
  background: rgba(255, 208, 38, 0.1);
}

.password-eye-btn i {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  font-size: 14px;
  color: inherit;
  pointer-events: auto;
}

/* ---------------- ADIM GÖSTERGESİ (STEPPER) ---------------- */
.stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 8px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1E293B;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.stepper-step.active .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: #12141A;
  box-shadow: 0 0 14px var(--gold-glow);
}

.stepper-step.completed .step-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.stepper-step.active .step-label {
  color: var(--gold);
  font-weight: 700;
}

.stepper-step.completed .step-label {
  color: #10B981;
}

.step-line {
  flex: 1;
  max-width: 44px;
  height: 2px;
  background: #1E293B;
  margin-bottom: 14px;
  transition: background var(--transition-fast);
}

.step-line.active {
  background: var(--gold);
}

.reset-countdown {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 8px 0 12px 0;
  transition: color var(--transition-fast);
}

.reset-countdown.urgent {
  color: #EF4444;
}

.resend-link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  display: block;
  margin: 10px auto 0 auto;
  transition: opacity var(--transition-fast);
}
.resend-link-btn:disabled {
  color: var(--text-dim);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-wrap, .login-logo-box {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #1C2434 0%, #121724 100%);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.login-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 6px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 18px 0 12px 0;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.login-divider::before, .login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.login-divider span {
  padding: 0 12px;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---------------- FORM ELEMANLARI (GİRDİLER) ---------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-with-icon, .input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i:first-child, .input-icon-wrap > i:first-child {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-control {
  width: 100%;
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-main);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: #475569;
}

.input-with-icon .form-control, .input-icon-wrap .form-control {
  padding-left: 40px;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

select.form-control option {
  background: #111724;
  color: #F8FAFC;
  padding: 8px 12px;
}

input[type="date"].form-control {
  color-scheme: dark;
  cursor: pointer;
}

textarea.form-control {
  height: auto;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.input-with-icon:focus-within i, .input-icon-wrap:focus-within i {
  color: var(--gold);
}

/* ---------------- GENEL KART (CARD) BİLEŞENİ ---------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------- BUTONLAR ---------------- */
.btn-primary {
  height: 42px;
  background: linear-gradient(135deg, #FFD026 0%, #F59E0B 100%);
  color: #0E121A;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  box-shadow: 0 4px 14px rgba(255, 208, 38, 0.28);
  transition: all var(--transition-fast);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(255, 208, 38, 0.40);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary, .btn-demo {
  height: 40px;
  background: #18202E;
  border: 1px solid #29354A;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  transition: all var(--transition-fast);
}
.btn-secondary:hover, .btn-demo:hover {
  background: #202B3E;
  border-color: #384966;
  color: #FFFFFF;
}

.btn-cancel {
  height: 38px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition-fast);
}
.btn-cancel:hover {
  background: #1E2638;
  color: var(--text-main);
  border-color: #2F3C54;
}

/* ---------------- ANA UYGULAMA DÜZENİ (SHELL) ---------------- */
.app-layout, .app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-app);
}

/* ---------------- SOL KENAR ÇUBUĞU (SIDEBAR) ---------------- */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-brand, .sidebar-header {
  height: var(--header-height);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.brand-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--gold-glow);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.sidebar-menu, .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
}

.menu-category-title, .nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 12px 4px 12px;
}
.menu-category-title:first-child, .nav-section-title:first-child {
  padding-top: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.nav-icon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge, .badge-count {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #1E2838;
  color: var(--sky);
}

.nav-item:hover {
  background: #161D2B;
  color: #FFFFFF;
}
.nav-item:hover .nav-icon {
  color: var(--gold);
}

.nav-item.active {
  background: #192233;
  color: var(--gold);
  font-weight: 700;
  border-left-color: var(--gold);
  box-shadow: inset 0 0 12px rgba(255, 208, 38, 0.04);
}
.nav-item.active .nav-icon {
  color: var(--gold);
}

.sidebar-user-card, .sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: #0D1117;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1A2234;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.user-details, .user-meta {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 500;
}

.user-logout-btn, .btn-icon-logout {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}
.user-logout-btn:hover, .btn-icon-logout:hover {
  background: var(--coral-bg);
  color: var(--coral);
}

/* ---------------- SAĞ ANA ÇALIŞMA ALANI ---------------- */
.main-wrapper, .main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-app);
}

/* ÜST GEZİNME ÇUBUĞU (HEADER TOPBAR) */
.header {
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #161D2B;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 16px;
  align-items: center;
  justify-content: center;
}

.page-title-wrap {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.page-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Şube Seçim Butonu */
.branch-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141B28;
  border: 1.5px solid #23324C;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.branch-pill:hover {
  background: #192336;
  border-color: var(--sky);
}
.branch-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1E293B;
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.branch-pill-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.branch-pill-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
}
.branch-pill-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
}

/* Canlı Döviz Ticker */
.currency-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10141E;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4px 12px;
}
.currency-chip, .currency-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.currency-symbol {
  color: var(--gold);
  font-weight: 800;
}
.currency-name, .currency-label {
  color: var(--text-dim);
  font-weight: 600;
}
.currency-val, .currency-value {
  color: #F8FAFC;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  height: 36px;
  padding: 0 14px;
  background: #161D2B;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
}
.header-btn:hover {
  background: #1E283A;
  color: #FFFFFF;
  border-color: #31425E;
}
.header-btn.primary, .header-btn-primary {
  background: linear-gradient(135deg, #FFD026 0%, #F59E0B 100%);
  color: #0E121A;
  border: none;
  font-weight: 700;
}
.header-btn.primary:hover, .header-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* GÖRÜNÜM İÇERİK ALANI (DYNAMIC VIEW CONTAINER) */
.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ---------------- KPI ÖZET KARTLARI ---------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

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

.kpi-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kpi-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.kpi-detail {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
}

/* KPI Renk Kartları */
.card-gold { border-color: rgba(255, 208, 38, 0.28); }
.card-gold .kpi-icon-badge { background: var(--gold-bg); color: var(--gold); }
.card-gold .kpi-value { color: var(--gold); }

.card-emerald { border-color: rgba(16, 185, 129, 0.28); }
.card-emerald .kpi-icon-badge { background: var(--emerald-bg); color: var(--emerald); }
.card-emerald .kpi-value { color: var(--emerald); }

.card-sky { border-color: rgba(56, 189, 248, 0.28); }
.card-sky .kpi-icon-badge { background: var(--sky-bg); color: var(--sky); }
.card-sky .kpi-value { color: var(--sky); }

.card-amber { border-color: rgba(245, 158, 11, 0.28); }
.card-amber .kpi-icon-badge { background: var(--amber-bg); color: var(--amber); }
.card-amber .kpi-value { color: var(--amber); }

.card-coral { border-color: rgba(239, 68, 68, 0.28); }
.card-coral .kpi-icon-badge { background: var(--coral-bg); color: var(--coral); }
.card-coral .kpi-value { color: var(--coral); }

/* ---------------- ARAÇ ÇUBUĞU & FİLTRELEME (TOOLBAR) ---------------- */
.toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0E121B;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.filter-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.filter-pill.active {
  background: var(--gold);
  color: #0E121A;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--gold-glow);
}
.filter-pill.active .status-badge {
  background: #0E121A !important;
  color: var(--gold) !important;
}

.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px 0 38px;
  font-size: 12.5px;
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ---------------- VERİ TABLOSU (DATAGRID) ---------------- */
.table-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.modern-table th {
  background: #0E131E;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 13px 16px;
  border-bottom: 1.5px solid var(--border-subtle);
  white-space: nowrap;
}

.modern-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #161D2B;
  vertical-align: middle;
  color: var(--text-secondary);
}

.modern-table th:first-child,
.modern-table td:first-child {
  padding-left: 20px;
}

.modern-table th:last-child,
.modern-table td:last-child {
  padding-right: 20px;
}

.modern-table tbody tr {
  transition: background var(--transition-fast);
}

.modern-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.modern-table tbody tr:hover {
  background: #171E2D;
}

/* ---------------- DURUM ROZETLERİ (BADGES) ---------------- */
.badge, .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.status-badge[onclick], .badge[onclick] {
  cursor: pointer;
  transition: all var(--transition-fast);
}
.status-badge[onclick]:hover, .badge[onclick]:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.status-pending, .badge-amber {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.status-in-progress, .badge-sky {
  background: rgba(14, 165, 233, 0.18) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
}

/* TAMAMLANDI / HAZIR (CANLI ZÜMRÜT YEŞİLİ - Cihaz tamir edildi, teslimata hazır) */
.status-completed, .status-tamamlandi, .status-ready, .badge-emerald {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.12);
}

/* TESLİM EDİLDİ (ASİL SAFİR / İNDİGO MAVİSİ - Müşteriye teslim edildi, süreç kapandı) */
.status-delivered, .status-teslim, .badge-delivered, .badge-indigo {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #818CF8 !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.12);
}

/* FİYAT ONAYI BEKLİYOR */
.status-waiting-approval, .badge-orange {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #FB923C !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
}

/* PARÇA BEKLİYOR */
.status-waiting-part, .badge-purple-part {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #C084FC !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

/* İADE / İPTAL */
.status-cancelled, .badge-coral {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.badge-muted, .badge-gray {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.badge-purple {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.badge-teal {
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

/* Tablo İşlem Butonları */
.table-btn, .table-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #151C2A;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.table-btn:hover, .table-action-btn:hover {
  background: #202A3C;
  color: #FFFFFF;
  border-color: #384966;
  transform: translateY(-1px);
}
.table-btn:active, .table-action-btn:active {
  transform: translateY(0);
}

/* ---------------- MODAL PENCERELER ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

.modal-box, .modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: #111520 !important;
  border: 1px solid #232B3E;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: #101420;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  min-width: 42px;
  min-height: 42px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  position: relative;
  z-index: 50;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--transition-fast);
}
.modal-close:hover,
.modal-close:active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

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

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  background: #0E121B;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------------- TOAST BİLDİRİMLERİ ---------------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: #161D2B;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13px;
  font-weight: 600;
}

.toast-success { border-color: var(--emerald); color: #F8FAFC; }
.toast-success i { color: var(--emerald); font-size: 16px; }

.toast-error { border-color: var(--coral); color: #F8FAFC; }
.toast-error i { color: var(--coral); font-size: 16px; }

.toast-warning { border-color: var(--amber); color: #F8FAFC; }
.toast-warning i { color: var(--amber); font-size: 16px; }

.toast-info { border-color: var(--sky); color: #F8FAFC; }
.toast-info i { color: var(--sky); font-size: 16px; }

/* ---------------- BOŞ DURUM (EMPTY STATE) ---------------- */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-dim);
}
.empty-state i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.empty-state p {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------------- ANİMASYONLAR ---------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ---------------- DUYARLILIK & MOBİL OPTİMİZASYON (RESPONSIVE) ---------------- */
.desktop-only { display: inline; }
.mobile-only { display: none; }

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Tablet & Küçük Ekranlar (<= 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .menu-toggle-btn {
    display: flex;
  }
  .currency-ticker {
    display: none;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .view-container {
    padding: 16px;
  }
}

/* Tablet Dikey & Geniş Telefonlar (<= 768px) */
@media (max-width: 768px) {
  /* iOS Otomatik Yakınlaştırma (Auto-Zoom) Önleme */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .header {
    height: 56px;
    padding: 0 12px;
    gap: 10px;
  }

  .header-left {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .page-title {
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-subtitle {
    display: none;
  }

  .header-center {
    display: none;
  }

  .header-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
  .header-btn span {
    display: none;
  }
  .header-btn i {
    margin: 0 !important;
  }

  .view-container {
    padding: 12px 10px;
    -webkit-overflow-scrolling: touch;
  }

  /* Araç Çubukları & Filtreler */
  .toolbar-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .toolbar-card > * {
    width: 100%;
  }

  .filter-pills, .segmented-control, .tabs-header {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    justify-content: flex-start;
  }
  .filter-pills::-webkit-scrollbar, .segmented-control::-webkit-scrollbar, .tabs-header::-webkit-scrollbar {
    display: none;
  }

  .filter-pill, .tab-btn {
    flex-shrink: 0;
  }

  /* Tablolar (Yatay Kaydırılabilir) */
  .table-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .table-panel::-webkit-scrollbar {
    height: 5px;
  }
  .table-panel::-webkit-scrollbar-thumb {
    background: #25334A;
    border-radius: 4px;
  }
  .modern-table {
    min-width: 640px;
  }
  .modern-table th, .modern-table td {
    padding: 9px 10px;
    font-size: 12px;
  }
  .table-action-btn, .table-btn {
    padding: 4px 7px;
    font-size: 11px;
  }
}

/* Akıllı Telefonlar (<= 640px) */
@media (max-width: 640px) {
  /* Kimlik Doğrulama Kartları (Login / Register / Forgot) */
  .login-container {
    padding: 16px 12px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
    height: 100%;
  }

  .login-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
    margin: 12px auto;
    border-radius: var(--radius-lg);
  }

  .login-card.wide {
    max-width: 100% !important;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .login-title {
    font-size: 20px;
  }
  .login-subtitle {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .login-logo-wrap, .login-logo-box {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
  }

  /* Stepper (Forgot Password Adım Göstergesi) */
  .stepper-wrap {
    gap: 4px;
    margin-bottom: 18px;
  }
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 11.5px;
  }
  .step-line {
    max-width: 24px;
    margin-bottom: 12px;
  }
  .step-label {
    font-size: 9.5px;
  }

  #forgot-code {
    font-size: 18px !important;
    letter-spacing: 6px !important;
  }

  /* KPI İstatistik Kartları */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .kpi-card {
    padding: 12px 10px;
  }
  .kpi-title {
    font-size: 10px;
  }
  .kpi-value {
    font-size: 16.5px;
  }
  .kpi-icon-badge {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .kpi-detail {
    font-size: 9px;
  }

  /* Modal Pencereler (Mobil Bottom-Sheet Görünümü) */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 18px 18px 0 0 !important;
    margin: 0 !important;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-header {
    padding: 14px 16px;
  }
  .modal-body {
    padding: 16px 14px;
    max-height: calc(92vh - 125px);
  }
  .modal-footer {
    padding: 12px 14px;
    flex-direction: column-reverse;
    gap: 8px;
  }
  .modal-footer button {
    width: 100%;
    height: 42px;
  }

  /* Toast Bildirimleri */
  .toast-container {
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
  }
  .toast {
    min-width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Küçük Ekranlı Telefonlar (<= 360px) */
@media (max-width: 360px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 18px 12px !important;
  }
}

/* ---------------- YARDIMCI HİZALAMA SINIFLARI ---------------- */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-tabular { font-variant-numeric: tabular-nums !important; }

/* ---------------- YAZDIRMA (PRINT STYLES) ---------------- */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    overflow: visible !important;
    font-size: 12px !important;
  }
  .sidebar,
  .header,
  .toolbar-card,
  .btn-primary,
  .btn-secondary,
  .btn-cancel,
  .table-action-btn,
  .table-btn,
  .toast-container,
  .sidebar-overlay,
  .menu-toggle-btn {
    display: none !important;
  }
  .app-layout,
  .main-wrapper,
  .view-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .table-panel {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
  }
  .modern-table th {
    background: #EEEEEE !important;
    color: #000000 !important;
    border-bottom: 1px solid #CCCCCC !important;
  }
  .modern-table td {
    color: #111111 !important;
    border-bottom: 1px solid #EEEEEE !important;
  }
}

/* ========================================================================= */
/* PC DESKTOP (WINDOW3) BİREBİR MENÜ & BAŞLIK BİLEŞENLERİ                    */
/* ========================================================================= */

.sidebar-divider {
  height: 1px;
  background: #191F2B;
  margin: 8px 14px;
}

.sidebar-user-section {
  margin: 10px 10px 12px 10px;
  padding: 12px;
  background: #181B22;
  border: 1px solid #252A34;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logout-btn {
  width: 100%;
  height: 34px;
  background: #2A181D;
  border: 1px solid #501A24;
  border-radius: 8px;
  color: #FCA5A5;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sidebar-logout-btn i {
  color: #F87171;
  font-size: 12px;
  transition: color var(--transition-fast);
}
.sidebar-logout-btn:hover {
  background: #DC2626;
  border-color: #EF4444;
  color: #FFFFFF;
}
.sidebar-logout-btn:hover i {
  color: #FFFFFF;
}

.sidebar-version-txt {
  font-size: 10px;
  color: #475569;
  text-align: center;
  letter-spacing: 0.3px;
}

/* HEADER BİLDİRİM & AKSİYON ROZETLERİ (PC WINDOW3 GİBİ) */
.header-sube-btn {
  background: #161F30;
  border: 1.5px solid #3B82F6;
  border-radius: 14px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
}
.header-sube-btn:hover {
  background: #1E2B44;
  border-color: #60A5FA;
}
.header-sube-icon-box {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.header-transfer-pill {
  background: #2E1C0A;
  border: 1.5px solid #F59E0B;
  border-radius: 14px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FBBF24;
  font-size: 11px;
  font-weight: 800;
  transition: all var(--transition-fast);
  animation: pulseAmber 2.5s infinite;
}
.header-transfer-pill:hover {
  background: #3E260D;
  filter: brightness(1.1);
}

.header-veresiye-pill {
  background: #361316;
  border: 1.5px solid #EF4444;
  border-radius: 14px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F87171;
  font-size: 11px;
  font-weight: 800;
  transition: all var(--transition-fast);
  animation: pulseRed 2s infinite;
}
.header-veresiye-pill.amber {
  background: #3B290C;
  border-color: #F59E0B;
  color: #FBBF24;
}
.header-veresiye-pill:hover {
  filter: brightness(1.15);
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.4); }
}

@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 10px 2px rgba(245, 158, 11, 0.4); }
}

.header-doviz-btn {
  background: #161C28;
  border: 1px solid #2A354A;
  border-radius: 12px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.header-doviz-btn:hover {
  border-color: var(--gold);
  color: #FFFFFF;
}

.header-user-chip {
  background: #1A1F29;
  border: 1px solid #252B38;
  border-radius: 15px;
  padding: 3px 5px 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-logout-btn {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #28161B;
  border: 0.8px solid #EF4444;
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all var(--transition-fast);
  padding: 0;
}
.header-logout-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* PC CENTER HOME VIEW (Sol menüden bir işlem seçin) */
.pc-home-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  padding: 40px 20px;
  text-align: center;
}
.pc-home-logo-box {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(255, 208, 38, 0.35);
}
.pc-home-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.pc-home-brand-title {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin: 0;
}
.pc-home-brand-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin: 4px 0 35px 0;
}
.pc-home-info-bar {
  background: #121418;
  border: 1px solid #2A2E35;
  border-radius: 12px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 30px;
  max-width: 440px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.pc-home-actions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
}
.pc-home-btn {
  width: 110px;
  height: 90px;
  background: #151923;
  border: 1px solid #232B3B;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #F8FAFC;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.pc-home-btn:hover {
  background: #1C2230;
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 208, 38, 0.18);
}
.pc-home-btn-icon {
  font-size: 22px;
  color: var(--gold);
}
.pc-home-btn-label {
  font-size: 12px;
  font-weight: 600;
}

/* STOK KİLİT TABAKASI MODAL (PC Window3 ile Birebir) */
.stok-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.stok-lock-box {
  width: 100%;
  max-width: 460px;
  background: #181D29;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DÖVİZ HESAPLAYICI MODAL (PC DovizHesaplayiciWindow ile Birebir) */
.doviz-rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.doviz-radio-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.doviz-radio-btn {
  flex: 1;
  padding: 10px;
  background: #161B26;
  border: 1px solid #252E3E;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #94A3B8;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.doviz-radio-btn.active {
  background: #1F293D;
  border-color: var(--gold);
  color: var(--gold);
}
.doviz-presets-wrap {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.doviz-preset-btn {
  flex: 1;
  padding: 6px;
  background: #171C27;
  border: 1px solid #252D3D;
  border-radius: 6px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.doviz-preset-btn:hover {
  background: #252D3D;
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   WPF MASAÜSTÜ FORM STİLLERİ (PageAyarlar, PageKayitOlustur ile Birebir)
   ========================================================================== */
.wpf-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
  margin-bottom: 6px;
}

.wpf-input {
  width: 100%;
  height: 42px;
  background: #0F1115 !important;
  border: 1px solid #2A2E35 !important;
  border-radius: 8px !important;
  color: #F8FAFC !important;
  font-size: 13.5px !important;
  padding: 0 12px !important;
  outline: none !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.wpf-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255, 208, 38, 0.18) !important;
  background: #131720 !important;
}

.wpf-input::placeholder {
  color: #64748B;
  font-size: 13px;
}

textarea.wpf-input {
  height: auto !important;
  padding: 10px 12px !important;
  resize: vertical;
  line-height: 1.5;
}

select.wpf-input {
  cursor: pointer;
}

select.wpf-input option {
  background: #111520;
  color: #F8FAFC;
}

.wpf-chk {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #F8FAFC;
  font-size: 13px;
  user-select: none;
}

.wpf-chk input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  border-radius: 4px;
}


/* ==========================================================================
   MOBİL UYUM SİSTEMİ (AlpSoft Mobile-First Responsive)
   Hedef: iOS Safari, Android Chrome, Tablet
   ========================================================================== */

/* --- Yardımcı: Sadece Desktop / Sadece Mobil göster --- */
.desktop-only { display: initial; }
.mobile-only  { display: none !important; }

/* --- MOBİL ALT NAVİGASYON ÇUBUĞU --- */
.mobile-bottom-nav {
  display: none; /* Masaüstünde gizli, mobilde @media ile gösteriliriz */
}

/* --- SIDEBAR OVERLAY --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
}

/* ========================================================================
   TABLET (≤ 1024px)
   ======================================================================== */
@media (max-width: 1024px) {

  /* Sidebar gizle, slide-over yap */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 200;
    transform: translateX(-110%);
    box-shadow: 4px 0 30px rgba(0,0,0,0.6);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Hamburger buton göster */
  .menu-toggle-btn {
    display: flex !important;
  }

  /* Ana içerik tam genişlik */
  .main-wrapper, .main-area {
    width: 100%;
  }

  /* KPI grid 2 sütun */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Header orta kısımda şube yazısını küçült */
  .header-sube-btn span:first-of-type { display: none; }

  /* Header doviz */
  .header-doviz-btn { font-size: 10.5px; padding: 4px 8px; }

  /* Döviz ticker gizle */
  .currency-ticker { display: none; }
}

/* ========================================================================
   MOBİL (≤ 768px) — Ana Mobil Kırılım Noktası
   ======================================================================== */
@media (max-width: 768px) {

  /* === GENEL === */
  html, body { font-size: 13px; }

  /* === GİRİŞ EKRANI === */
  .login-container, .login-view {
    padding: 16px;
    align-items: flex-start;
    padding-top: calc(env(safe-area-inset-top) + 24px);
  }
  .login-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .login-card.wide { max-width: 100%; }
  .login-title { font-size: 20px; }

  /* === SIDEBAR SLIDE-OVER === */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 85vw);
    height: 100%;
    z-index: 200;
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 32px rgba(0,0,0,0.7);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* === HEADER === */
  .header {
    padding: 0 12px;
    height: 54px;
  }
  .menu-toggle-btn {
    display: flex !important;
  }
  .page-title { font-size: 14px; }
  .page-subtitle { display: none; }

  /* Header orta kısım — sadece döviz chip gizle */
  .header-center {
    display: none; /* Mobilde orta alan gizlenir, bilgiler bottom nav'da */
  }

  /* Yenile butonu sadece ikon */
  .header-right .desktop-only { display: none !important; }

  /* === ANA İÇERİK ALANI === */
  .view-container {
    padding: 12px;
    /* Alt navigasyon için tam ve ferah alan bırak */
    padding-bottom: calc(115px + env(safe-area-inset-bottom)) !important;
  }

  /* === KPI KARTLARI === */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 20px; }

  /* === KARTLAR === */
  .card { padding: 14px; }
  .card-header { flex-wrap: wrap; gap: 8px; }

  /* === TABLO — YATAY KAYDIRMABİLİR === */
  .modern-table, .table-responsive {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }
  .modern-table table { min-width: 600px; }
  /* Tablo satır padding küçült */
  .modern-table th,
  .modern-table td { padding: 10px 10px; font-size: 12px; }

  /* === BUTONLAR — Minimum 44px dokunma hedefi === */
  .header-btn { min-height: 40px; }
  .btn-primary, .btn-secondary { min-height: 44px; }

  /* === FORM GRID'LERİ — 2'li, 3'lü kolonları tek kolona düşür === */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 90px"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 120px"] {
    grid-template-columns: 1fr !important;
  }

  /* === MODAL === */
  .modal-box, #global-modal-box {
    margin: 12px;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-radius: var(--radius-lg);
  }
  .modal-body-content { padding: 14px; }

  /* === MOBİL ALT NAVİGASYON ÇUBUĞU === */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #10141D;
    border-top: 1px solid #1E2638;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    align-items: stretch;
  }

  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748B;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 6px 0;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
  }
  .mbn-item i { font-size: 17px; }
  .mbn-item:hover, .mbn-item.active { color: var(--gold); }
  .mbn-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
  }

  /* FAB (Yeni Kayıt) Butonu */
  .mbn-fab {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #FFD026 0%, #F59E0B 100%) !important;
    color: #0B0E14 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3.5px solid #0C101A !important;
    box-shadow: 0 6px 20px rgba(255, 208, 38, 0.45) !important;
    transform: translateY(-14px) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .mbn-fab:active {
    transform: translateY(-14px) scale(0.92) !important;
  }
  .mbn-fab i {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-size: 22px !important;
    color: #0B0E14 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mbn-fab span { display: none !important; }

  /* Desktop-only elemanları gizle */
  .desktop-only { display: none !important; }
  .mobile-only  { display: initial !important; }

  /* === SIDEBAR KAPATMA OVERLAY === */
  .sidebar-overlay { cursor: pointer; }

  /* === RANDEVU / TABLO GRID DÜZELTME === */
  .randevu-grid, .randevu-week {
    grid-template-columns: 1fr !important;
  }

  /* === TOPTANCI 2'li layout tek kolona === */
  .toptanci-layout { flex-direction: column !important; }

  /* === SATIS YAP - 2 panel tek kolona === */
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 3fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }

  /* === HOME SAYFA BUTONLARI === */
  .pc-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .pc-home-btn { padding: 16px 8px; }

  /* === KPI STAT KUTUSU === */
  .kpi-stat-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ========================================================================
   KÜÇÜK MOBİL (≤ 400px) — iPhone SE, Galaxy A-serisi
   ======================================================================== */
@media (max-width: 400px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .login-card { padding: 20px 14px; }
  .view-container { padding: 10px; }
  .header { padding: 0 10px; height: 50px; }
  .page-title { font-size: 13px; }
  .modern-table th,
  .modern-table td { font-size: 11px; padding: 8px 8px; }
  .mbn-item i { font-size: 15px; }
  .mbn-item span { font-size: 9px; }
}

/* ========================================================================
   BÜYÜK TABLET & KÜÇÜK LAPTOP (769px – 1024px arası)
   ======================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .view-container { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-bottom-nav { display: none; }
}

/* ========================================================================
   YAZICI / BASKIALAMA
   ======================================================================== */
@media print {
  .sidebar, .header, .mobile-bottom-nav, .sidebar-overlay,
  .header-btn, .nav-item, .toast-container, .pwa-install-banner { display: none !important; }
  .main-wrapper { overflow: visible; }
  .view-container { padding: 0; overflow: visible; }
  body { background: white; color: black; }
}

/* ========================================================================
   PWA & ANDROID ENTEGRASYON STILLERI
   ======================================================================== */
.sidebar-app-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.sidebar-pwa-btn, .sidebar-apk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.sidebar-pwa-btn {
  background: rgba(255, 208, 38, 0.1);
  border-color: rgba(255, 208, 38, 0.3);
  color: var(--gold);
}

.sidebar-pwa-btn:hover {
  background: rgba(255, 208, 38, 0.2);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.sidebar-apk-btn {
  background: rgba(61, 220, 132, 0.1);
  border-color: rgba(61, 220, 132, 0.3);
  color: #3DDC84;
}

.sidebar-apk-btn:hover {
  background: rgba(61, 220, 132, 0.2);
  border-color: #3DDC84;
  transform: translateY(-1px);
}

/* Kayan PWA Kurulum Bildirim Bannerı (Mobil) */
.pwa-install-banner {
  position: fixed;
  bottom: calc(60px + var(--safe-bottom) + 10px);
  left: 12px;
  right: 12px;
  background: #151A26;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  animation: slideUpBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBanner {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 208, 38, 0.3);
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-desc {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-btn {
  background: var(--gold);
  color: #0B0E14;
  border: none;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pwa-banner-btn:active {
  transform: scale(0.95);
}

.pwa-banner-close {
  background: none;
  border: none;
  color: #64748B;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.pwa-banner-close:hover {
  color: #F8FAFC;
}

/* Standalone Modda Ekstra UI İnce Ayarları */
body.is-standalone {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================================
   ÖZEL MOBİL UYGULAMA ARAYÜZ SİSTEMİ (MOBILE APP UI SYSTEM)
   ======================================================================== */

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  /* Üst Header: Mobil Uygulama Çubuğu */
  .header {
    height: 52px;
    padding: 0 12px;
    background: #0D111A;
    border-bottom: 1px solid #1A2333;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-center {
    display: none !important; /* Masaüstü şube/döviz kutuları mobilde gizlenir */
  }
  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .page-title {
    font-size: 15px;
    font-weight: 700;
  }
  .page-subtitle {
    display: none;
  }

  /* Ana İçerik Konteyneri: Alt Menü İçin Güvenli Alan */
  .view-container {
    padding: 12px 10px calc(70px + var(--safe-bottom)) 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobil Filtre Çubuğu (Yatay Kayan Hap Butonlar) */
  .toolbar-card {
    padding: 10px;
    background: #101520;
    border-radius: 12px;
    border: 1px solid #1E283A;
    margin-bottom: 12px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .filter-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    flex-shrink: 0;
  }
  .search-box-wrap {
    width: 100% !important;
  }

  /* ---------------------------------------------------- */
  /* MOBİL SERVİS & STOK KARTLARI (TOUCH-FRIENDLY CARDS) */
  /* ---------------------------------------------------- */
  .mobile-card-list {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .m-card {
    background: #121723;
    border: 1px solid #202A3C;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
  }
  .m-card:active {
    transform: scale(0.985);
    border-color: var(--gold);
    background: #151C2C;
  }

  .m-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .m-card-srv-no {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--sky);
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.25);
  }

  .m-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .m-card-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: #94A3B8;
    background: #1C2436;
    padding: 2px 7px;
    border-radius: 4px;
  }

  .m-card-issue {
    font-size: 12.5px;
    color: #CBD5E1;
    line-height: 1.4;
    background: rgba(15, 20, 31, 0.6);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
  }

  .m-card-divider {
    height: 1px;
    background: #1A2333;
    margin: 2px 0;
  }

  .m-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .m-card-customer {
    flex: 1;
    min-width: 0;
  }
  .m-card-cust-name {
    font-size: 13px;
    font-weight: 600;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-card-cust-phone {
    font-size: 11.5px;
    color: #94A3B8;
  }

  .m-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .m-btn-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
  }
  .m-btn-circle:active {
    transform: scale(0.9);
  }
  .m-btn-circle.call {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
  }
  .m-btn-circle.wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
  }
  .m-btn-circle.print {
    background: rgba(255, 208, 38, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 208, 38, 0.3);
  }

  .m-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    font-size: 11.5px;
  }
  .m-card-date {
    color: #64748B;
  }
  .m-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
  }

  /* Stok Kartı Özelleştirmeleri */
  .m-stock-card .m-stock-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
  }
  .m-stock-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
  }
  .m-stock-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }
  .m-stock-prices {
    display: flex;
    gap: 12px;
    font-size: 12px;
  }
  .m-price-buy { color: #94A3B8; }
  .m-price-sell { color: var(--gold); font-weight: 700; }
  .m-btn-mini-primary {
    background: var(--gold);
    color: #0B0E14;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  /* Alt Gezinme Çubuğu (Bottom Navigation Bar) Güzelleştirmeleri */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #0C101A;
    border-top: 1px solid #1C2436;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  }
  .mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    padding: 6px 12px;
    transition: color 0.15s ease;
    border: none;
    background: none;
    cursor: pointer;
  }
  .mbn-item i {
    font-size: 18px;
  }
  .mbn-item.active {
    color: var(--gold);
  }
  .mbn-item.active i {
    transform: translateY(-2px);
    transition: transform 0.15s ease;
  }

  /* Ortadaki Kusursuz Yuvarlak Altın FAB Butonu */
  .mbn-fab {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #FFD026 0%, #F59E0B 100%) !important;
    color: #0B0E14 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(255, 208, 38, 0.45) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 3.5px solid #0C101A !important;
    transform: translateY(-14px) !important;
    top: auto !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .mbn-fab:active {
    transform: translateY(-14px) scale(0.92) !important;
  }
  .mbn-fab i {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-size: 22px !important;
    color: #0B0E14 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mbn-fab span {
    display: none !important;
  }

  /* ---------------------------------------------------- */
  /* MOBİL KASA KARTLARI (TOUCH-FRIENDLY KASA CARDS)      */
  /* ---------------------------------------------------- */
  .m-kasa-card {
    border-left: 3.5px solid transparent;
  }
  .m-kasa-card.m-kasa-gelir {
    border-left-color: #10B981;
  }
  .m-kasa-card.m-kasa-gider {
    border-left-color: #EF4444;
  }
  .m-kasa-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }
  .m-kasa-icon.gelir {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
  }
  .m-kasa-icon.gider {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  /* ---------------------------------------------------- */
  /* MOBİL BOTTOM-SHEET MODALLAR (NATIVE APP SHEET)       */
  /* ---------------------------------------------------- */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-box, #global-modal-box {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 22px 22px 0 0 !important;
    border-bottom: none !important;
    border-left: 1px solid #202A3C !important;
    border-right: 1px solid #202A3C !important;
    border-top: 1px solid #334155 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
    animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-bottom: calc(20px + var(--safe-bottom)) !important;
    overflow-y: auto !important;
  }
  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Alt Çekmece Sürükleme Çubuğu Efekti */
  .modal-header {
    position: relative !important;
    padding-top: 22px !important;
  }
  .modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: #334155;
    pointer-events: none !important;
    margin: 0 !important;
  }

  /* iOS Safari Otomatik Zoom Engelleme (Font < 16px olunca zoom yapar) */
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="tel"],
  input[type="email"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Mobil Buton Dokunma Boyutları */
  .btn-primary, .btn-secondary, .form-control {
    min-height: 44px;
  }
}

/* ========================================================================= */
/* KAYITLI MÜŞTERİ HIZLI ARAMA & SEÇİCİ (AUTOCOMPLETE & CUSTOMER CHIP)       */
/* ========================================================================= */
.yk-musteri-search-field {
  background: rgba(255, 208, 38, 0.03);
  border: 1px dashed rgba(255, 208, 38, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all var(--transition-fast);
}
.yk-musteri-search-field:focus-within {
  border-color: var(--gold);
  background: rgba(255, 208, 38, 0.06);
  box-shadow: 0 0 15px rgba(255, 208, 38, 0.1);
}

.yk-customer-search-wrap {
  position: relative;
}

.yk-input-musteri-search {
  border-color: rgba(255, 208, 38, 0.4) !important;
  font-weight: 600;
  color: #FFFFFF !important;
  padding-right: 36px !important;
}
.yk-input-musteri-search:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255, 208, 38, 0.18) !important;
}

.yk-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.yk-search-clear-btn:hover {
  color: var(--coral);
}

.yk-musteri-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #111624 !important;
  border: 1px solid #233454;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 250;
  animation: fadeIn 0.15s ease;
}

.yk-musteri-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.yk-musteri-item:last-child {
  border-bottom: none;
}
.yk-musteri-item:hover, .yk-musteri-item.active {
  background: rgba(255, 208, 38, 0.09);
}

.yk-mi-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.yk-mi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #182234;
  border: 1px solid #2A3C5E;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yk-mi-name {
  font-weight: 700;
  color: #F8FAFC;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yk-mi-phone {
  font-size: 12px;
  color: #38BDF8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.yk-mi-history {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 1px;
}

.yk-mi-btn {
  padding: 5px 10px;
  background: rgba(255, 208, 38, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 208, 38, 0.4);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.yk-musteri-item:hover .yk-mi-btn {
  background: var(--gold);
  color: #0B0E14;
}

.yk-selected-customer-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  animation: fadeIn 0.18s ease;
}
.scc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.scc-title {
  font-weight: 800;
  color: #F8FAFC;
  font-size: 13px;
}
.scc-sub {
  font-size: 11.5px;
  color: #A7F3D0;
}
.scc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scc-btn-history {
  padding: 5px 9px;
  background: #14232C;
  border: 1px solid #0284C7;
  color: #38BDF8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.scc-btn-history:hover {
  background: #0284C7;
  color: #FFFFFF;
}
.scc-btn-clear {
  width: 28px;
  height: 28px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.scc-btn-clear:hover {
  background: #EF4444;
  color: #FFFFFF;
}

