/**
 * EksperPro - Sigorta Eksperliği Hasar Takip ve Yönetim Sistemi
 * Kurumsal CSS Tasarım Sistemi (Pure Standalone CSS)
 */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --navy: #0f172a;
  --navy-light: #1e293b;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --success: #16a34a;
  --success-light: #f0fdf4;
  --success-border: #bbf7d0;

  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  --sidebar-width: 260px;
  --header-height: 72px;
}

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

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-800);
  background-color: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

code, kbd, samp, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   LAYOUT (SIDEBAR + HEADER + CONTENT)
   ===================================================================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* SIDEBAR: BEYAZ VE AÇIK GRİ KURUMSAL */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.2s ease;
}

.sidebar-brand {
  height: var(--header-height);
  min-height: 72px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
  background-color: #ffffff;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  max-width: 100%;
}

.sidebar-logo-img {
  max-height: 54px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sidebar-emblem-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  background-color: #ffffff;
  padding: 2px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.company-logo-thumb {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 8px;
  object-fit: contain;
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.company-logo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header-mobile-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-title span {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  padding: 0.75rem 0.75rem 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  color: var(--slate-600);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 600;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav-item-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background-color: var(--slate-100);
  color: var(--slate-600);
}

.nav-item.active .nav-badge {
  background-color: #dbeafe;
  color: var(--primary);
}

/* SIDEBAR AÇILIR MENÜ (ACCORDION) SİSTEMİ - KURUMSAL VE MODERN */
.nav-accordion-group {
  margin-bottom: 4px;
}

.nav-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  color: var(--slate-700);
  background: transparent;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  user-select: none;
}

.nav-accordion-header:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.nav-accordion-header:hover .nav-accordion-icon-box {
  background-color: #eff6ff;
  color: #2563eb;
}

.nav-accordion-header.open {
  color: #1e40af;
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  font-weight: 700;
}

.nav-accordion-header.open .nav-accordion-icon-box {
  background-color: #2563eb;
  color: #ffffff;
}

.nav-accordion-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav-accordion-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.nav-accordion-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-count {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.nav-accordion-header.open .accordion-count {
  background: #dbeafe;
  color: #1d4ed8;
}

.accordion-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.nav-accordion-header.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-accordion-body {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  margin: 3px 0 6px 0;
}

.nav-accordion-body.show {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: accordionSlideDown 0.18s ease-out;
}

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

.nav-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-sub-item-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-sub-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #94a3b8;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.nav-sub-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  letter-spacing: 0.02em;
}

.nav-sub-item:hover {
  color: #1d4ed8;
  background-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.nav-sub-item:hover .nav-sub-bullet {
  background-color: #2563eb;
  transform: scale(1.25);
}

.nav-sub-item.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.nav-sub-item.active .nav-sub-bullet {
  background-color: #ffffff !important;
  transform: scale(1.3);
}

.nav-sub-item.active .nav-sub-tag {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--slate-200);
  background-color: var(--slate-50);
}

.adjuster-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 11px;
}

/* HEADER */
.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title-box h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

.header-title-box p {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 2px;
}

.header-left-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.search-input-wrapper {
  position: relative;
  width: 260px;
  flex-shrink: 1;
  min-width: 140px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.25rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  font-size: 12px;
  color: var(--slate-800);
  outline: none;
}

.search-input-wrapper input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.search-icon-pos {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

.header-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.user-profile-btn:hover {
  background-color: var(--slate-100);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-details {
  text-align: left;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  color: var(--slate-500);
}

.header-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background-color: #f8fafc;
  color: var(--slate-700);
  text-decoration: none;
  min-height: 32px;
  transition: all 0.15s ease;
}

.header-logout-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* CONTENT CONTAINER */
.content-body {
  flex: 1;
  padding: 1.5rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* =====================================================================
   KARTLAR, TABLOLAR, BUTONLAR
   ===================================================================== */
.card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.card-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: #ffffff;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}

.card-subtitle {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 1px;
}

.card-body {
  padding: 1.25rem;
}

/* STAT GRIDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 1rem;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card {
  min-width: 0;
  overflow: hidden;
}

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.25;
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-count,
.nav-sub-tag {
  display: none !important;
}

/* TABLOLAR - EKRANA TAM OTURAN VE YATAY KAYDIRMA GEREKTİRMEYEN TASARIM */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  table-layout: auto;
}

.data-table th {
  background-color: var(--slate-50);
  color: var(--slate-600);
  font-weight: 600;
  padding: 0.65rem 0.65rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: normal;
  word-break: break-word;
}

.data-table td {
  padding: 0.65rem 0.65rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: middle;
  word-break: break-word;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table .text-right {
  text-align: right;
}

.data-table .text-center {
  text-align: center;
}

/* ROZETLER (BADGES) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-info    { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-purple  { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.badge-cyan    { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.badge-teal    { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.badge-secondary{ background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* BUTONLAR */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: #ffffff; color: var(--slate-700); border-color: var(--slate-300); }
.btn-secondary:hover { background: var(--slate-50); border-color: var(--slate-400); }

.btn-success { background: var(--success); color: #ffffff; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 0.25rem 0.5rem; font-size: 11px; }

/* FORMLAR */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 12px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--slate-800);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* FLASH MESAJLAR */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); }
.alert-error   { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger-border); }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid var(--warning-border); }
.alert-info    { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }

/* SVG ICON STANDARD */
.icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: currentColor;
}
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }

/* SAYFALAMA (PAGINATION) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--slate-200);
  background-color: #ffffff;
  font-size: 12px;
}

/* YAZDIRMA (PRINT) ELEMANLARININ EKRANDA GİZLENMESİ */
.print-only,
.print-only-header,
.print-only-corporate-doc,
.corporate-print-footer {
  display: none !important;
}

/* KURUMSAL YAZDIRMA (PRINT) SİSTEMİ & A4 TASARIMI */
@media print {
  @page {
    size: A4 landscape;
    margin: 8mm 8mm 10mm 8mm;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 8.5pt !important;
    line-height: 1.3 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Ekran arayüzü bileşenlerini yazıcıdan gizle */
  .app-sidebar,
  .app-header,
  .sidebar-overlay,
  .no-print,
  .btn,
  .pagination,
  .modal,
  .modal-backdrop,
  .stats-grid,
  .card:not(.print-table-card) {
    display: none !important;
  }

  /* Yazdırma şablonlarını aktif et */
  .print-only,
  .print-only-header,
  .print-only-corporate-doc,
  .corporate-print-footer {
    display: block !important;
  }

  .app-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .content-body {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .card.print-table-card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* 1. KURUMSAL YAZDIRMA ÜST BAŞLIĞI VE LOGO YERLEŞİMİ */
  .corporate-print-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 2px solid #1e3a8a !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
  }

  .corporate-print-logo-box {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: 40% !important;
  }

  .corporate-print-logo {
    max-height: 48px !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .corporate-print-brand-fallback {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .corporate-print-brand-fallback .brand-monogram {
    width: 38px !important;
    height: 38px !important;
    border: 1.5px solid #1e3a8a !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eff6ff !important;
    color: #1e3a8a !important;
  }

  .corporate-print-brand-fallback .brand-name {
    font-size: 14pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
  }

  .corporate-print-brand-fallback .brand-name span {
    color: #2563eb !important;
  }

  .corporate-print-brand-fallback .brand-tag {
    font-size: 7.5pt !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
  }

  .corporate-print-info-box {
    text-align: right !important;
    max-width: 60% !important;
  }

  .corporate-doc-heading {
    font-size: 12.5pt !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    margin: 0 0 2px 0 !important;
    letter-spacing: -0.2px !important;
  }

  .corporate-company-title {
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .corporate-meta-row {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    font-size: 7.5pt !important;
    color: #475569 !important;
    margin-top: 3px !important;
  }

  /* 2. KURUMSAL FİNANSAL İCMAL ŞERİDİ */
  .corporate-print-summary-strip {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    margin-bottom: 10px !important;
  }

  .summary-metric {
    display: flex !important;
    flex-direction: column !important;
  }

  .summary-metric .metric-title {
    font-size: 6.5pt !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    font-weight: 700 !important;
    margin-bottom: 1px !important;
  }

  .summary-metric .metric-val {
    font-size: 8.5pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    font-family: 'Consolas', monospace !important;
  }

  /* 3. YAZDIRMA TABLOSU VE HÜCRE BİÇİMLERİ */
  .table-responsive {
    overflow: visible !important;
  }

  .data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 7.5pt !important;
    margin-top: 4px !important;
  }

  .data-table thead th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 7.5pt !important;
    border: 1px solid #cbd5e1 !important;
    padding: 5px 6px !important;
    text-align: left !important;
  }

  .data-table tbody td {
    border: 1px solid #e2e8f0 !important;
    padding: 4px 6px !important;
    font-size: 7.5pt !important;
    color: #1e293b !important;
    vertical-align: top !important;
  }

  .data-table tr {
    page-break-inside: avoid !important;
  }

  .data-table tbody tr:nth-child(even) td {
    background-color: #fafbfc !important;
  }

  .data-table tfoot td {
    background-color: #f1f5f9 !important;
    border-top: 2px solid #0f172a !important;
    border-bottom: 2px solid #0f172a !important;
    font-weight: 800 !important;
    padding: 5px 6px !important;
    font-size: 8pt !important;
  }

  /* 4. KURUMSAL İMZA VE MÜHÜR BLOĞU */
  .corporate-print-footer {
    margin-top: 16px !important;
    page-break-inside: avoid !important;
  }

  .print-signatures-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    margin-bottom: 10px !important;
  }

  .sig-box {
    border: 1px dashed #94a3b8 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    text-align: center !important;
    background: #ffffff !important;
  }

  .sig-title {
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .sig-person {
    font-size: 7.5pt !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-top: 2px !important;
  }

  .sig-sub {
    font-size: 7pt !important;
    color: #64748b !important;
  }

  .sig-space {
    margin-top: 22px !important;
    font-size: 6.5pt !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .print-disclaimer {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 6px !important;
    font-size: 7pt !important;
    color: #64748b !important;
    text-align: center !important;
  }
}

/* MOBİL VE RESPONSIVE TASARIM SİSTEMİ */
.mobile-menu-toggle {
  display: none;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--slate-500);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover {
  background-color: var(--slate-100);
  color: var(--slate-800);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

@media (max-width: 1200px) {
  .search-input-wrapper {
    width: 180px;
  }
}

@media (max-width: 1080px) {
  .search-input-wrapper {
    display: none;
  }
  .btn-pwa-badge .pwa-btn-text {
    display: none;
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .sidebar-close-btn {
    display: inline-flex !important;
  }

  .app-sidebar {
    transform: translateX(-100%);
    z-index: 200;
    width: 285px;
    max-width: 86vw;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  }

  .app-sidebar.show {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
    width: 100%;
  }

  .app-header {
    padding: 0 1rem;
  }

  .content-body {
    padding: 1.25rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .search-input-wrapper {
    display: none;
  }

  .header-title-box p {
    display: none;
  }

  .header-title-box h1 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .user-details {
    display: none;
  }

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

  .card-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .card-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .card-header .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .card-body {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .stat-card {
    padding: 0.85rem;
  }

  .stat-val {
    font-size: 18px;
  }

  .table-responsive {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th, .data-table td {
    padding: 0.55rem 0.5rem;
    font-size: 11.5px;
  }

  /* Sekme Çubuğu Yatay Kaydırma */
  .nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px;
    gap: 0.35rem;
  }

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

  .nav-tab-item {
    flex-shrink: 0;
  }

  /* Filtreleme ve Arama Alanları */
  .filter-bar,
  .filters-card form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .filter-bar .form-control,
  .filters-card .form-control {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .content-body {
    padding: 0.65rem 0.5rem;
  }

  .header-title-box h1 {
    max-width: 140px;
    font-size: 14px;
  }

  .card {
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .btn {
    font-size: 11.5px;
    padding: 0.45rem 0.65rem;
  }

  .table-responsive {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .data-table th, .data-table td {
    padding: 0.5rem 0.4rem;
    font-size: 11px;
  }
}

/* Aylık Kâr / Zarar Tek Satır 5 KPI Kartı */
.kar-zarar-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  width: 100%;
}

.kar-zarar-kpi-grid .stat-card {
  min-width: 0 !important;
  overflow: hidden;
}

.kar-zarar-kpi-grid .stat-val {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

@media (max-width: 992px) {
  .kar-zarar-kpi-grid {
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .kar-zarar-kpi-grid .stat-card {
    min-width: 170px !important;
  }
}

/* =====================================================================
   ERDAL KAYA - LOGO, PWA İNDİRME VE MOBİL TAM EKRAN TASARIMI
   ===================================================================== */

/* 1. Kurumsal Logo & İkon Yerleşimi */
.sidebar-logo-img {
  max-height: 61px;
  max-width: 242px;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: transparent;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter: contrast(1.04) brightness(1.01);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sidebar-logo-img:hover {
  transform: scale(1.02);
  filter: contrast(1.07) brightness(1.02);
}

.sidebar-logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-mobile-brand {
  display: none;
}

.header-mobile-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

/* 2. PWA İndirme Butonu (Üst Çubuk) */
.btn-pwa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-pwa-badge:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.pwa-badge-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 3. PWA İndirme Kartı (Sol Menü Altı) */
.btn-sidebar-install {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.btn-sidebar-install:hover {
  border-color: #2563eb;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.install-card-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.install-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-card-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.install-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.install-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.2;
}

.install-card-desc {
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
}

.install-card-arrow {
  color: #2563eb;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 4. PWA Kurulum Bilgilendirme Modalı */
.pwa-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pwa-modal-backdrop.show {
  display: flex;
  animation: fadeInModal 0.2s ease-out;
}

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

.pwa-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: scaleUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.pwa-modal-header {
  padding: 1.15rem 1.25rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.pwa-brand-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-modal-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pwa-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.pwa-modal-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.pwa-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.pwa-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* Platform Sekmeleri */
.pwa-modal-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.35rem 0.65rem 0;
  gap: 0.35rem;
  overflow-x: auto;
}

.pwa-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-radius: 6px 6px 0 0;
}

.pwa-tab-btn:hover {
  color: #1e293b;
  background: rgba(241, 245, 249, 0.7);
}

.pwa-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #ffffff;
  font-weight: 700;
}

.pwa-modal-body {
  padding: 1.15rem 1.25rem;
  max-height: 65vh;
  overflow-y: auto;
}

.pwa-tab-panel {
  display: none;
}

.pwa-tab-panel.active {
  display: block;
  animation: fadeInTab 0.18s ease-out;
}

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

.pwa-install-alert-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.pwa-alert-icon {
  font-size: 16px;
  line-height: 1;
}

.pwa-alert-text {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.4;
}

.pwa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.pwa-step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-step-content {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
  flex: 1;
}

.pwa-action-box {
  margin-top: 1rem;
}

.pwa-btn-direct-install {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}

.pwa-modal-footer {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* =====================================================================
   5. NATIVE MOBİL UYGULAMA VE TAM EKRAN CİHAZ UYUMLULUK SİSTEMİ
   ===================================================================== */

/* Mobil Alt Uygulama Çubuğu (Native App Bottom Tab Bar) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.05);
  z-index: 120;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
}

.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 100%;
  text-decoration: none;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  gap: 2px;
}

.mobile-tab-item:active {
  transform: scale(0.92);
}

.mobile-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.15s ease;
}

.mobile-tab-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.mobile-tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.mobile-tab-item.active {
  color: #2563eb;
}

.mobile-tab-item.active .mobile-tab-icon {
  transform: translateY(-1px);
}

.mobile-tab-item.active .mobile-tab-label {
  font-weight: 700;
}

/* Tablet ve Masaüstü Kırılımları (<= 992px) */
@media (max-width: 992px) {
  .header-mobile-brand {
    display: inline-flex;
    align-items: center;
  }

  .header-left-zone {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
  }

  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
}

/* Akıllı Telefonlar ve Küçük Tabletler (<= 768px) */
@media (max-width: 768px) {
  /* Native Mobil Alt Çubuğu Aktifleştir */
  .mobile-bottom-nav {
    display: grid;
  }

  /* Görünüm ve Taşma Güvenliği */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
  }

  .app-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    min-height: 100dvh !important;
  }

  .app-main {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .content-body {
    padding: 0.75rem 0.6rem calc(72px + env(safe-area-inset-bottom, 0px)) 0.6rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Mobil Üst Başlık (Header) Optimizasyonu */
  .app-header {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 0.65rem !important;
    gap: 0.5rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .header-left-zone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .header-mobile-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .header-mobile-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .header-title-box {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .header-title-box h1 {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.25 !important;
  }

  .header-title-box p {
    display: none !important;
  }

  .header-actions {
    gap: 0.35rem !important;
    flex-shrink: 0;
  }

  .search-input-wrapper {
    display: none !important;
  }

  .header-fullscreen-btn {
    display: none !important;
  }

  .header-user-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .user-details {
    display: none !important;
  }

  .user-profile-btn {
    padding: 0 !important;
  }

  .user-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }

  .header-logout-btn {
    padding: 0.35rem 0.45rem !important;
    min-height: 32px !important;
  }

  .header-logout-btn .logout-label {
    display: none !important;
  }

  .btn-pwa-badge {
    padding: 0.35rem 0.55rem !important;
    border-radius: 6px !important;
  }

  .btn-pwa-badge .pwa-btn-text {
    font-size: 11px !important;
  }

  /* Mobil Form Alanlarında iOS Safari Otomatik Zoom Engelleme */
  input[type="text"],
  input[type="search"],
  input[type="date"],
  input[type="email"],
  input[type="password"],
  select,
  textarea,
  .form-control {
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  /* Form Grupları ve Satırları Tek Sütuna İndir */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Kart Başlıkları ve Eylemleri */
  .card {
    border-radius: 10px !important;
    margin-bottom: 0.85rem !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
  }

  .card-header {
    padding: 0.85rem 0.95rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .card-header > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  .card-header .btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 38px !important;
  }

  .card-body {
    padding: 0.85rem 0.95rem !important;
  }

  /* Tüm Tablolar İçin Kusursuz Yatay Kaydırma */
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin: 0 !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .data-table th,
  .data-table td {
    padding: 0.55rem 0.5rem !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  /* İstatistik (KPI) Kartları */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
    margin-bottom: 0.85rem !important;
  }

  .stat-card {
    padding: 0.75rem !important;
  }

  .stat-val {
    font-size: 17px !important;
  }

  .stat-desc {
    font-size: 10px !important;
  }

  /* Kâr / Zarar KPI Kartları - Yatay Kaydırılabilir Kart Şeridi */
  .kar-zarar-kpi-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.5rem !important;
    padding-bottom: 4px !important;
    width: 100% !important;
  }

  .kar-zarar-kpi-grid .stat-card {
    flex: 0 0 190px !important;
    scroll-snap-align: start !important;
  }

  /* Özel Modül Izgaraları (Dashboard, Hasar Detay, Sistem Ayarları) */
  .dashboard-panels-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .claim-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .logo-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .report-template-select-box {
    grid-column: span 1 !important;
  }

  .modal-stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .modal-info-grid {
    grid-template-columns: 1fr !important;
  }

  /* Sekme Çubuğu Yatay Dokunmatik Kaydırma */
  .nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    gap: 0.35rem !important;
  }

  .nav-tab-item {
    flex-shrink: 0 !important;
  }

  /* Filtreleme ve Arama Alanları Mobilde Dikey Oturur */
  .filter-bar,
  .filters-card form,
  .card-body form[style*="flex-wrap"],
  .card-body form[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .card-body form > div {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-bar .form-control,
  .filters-card .form-control {
    width: 100% !important;
  }

  /* Modallar Mobilde Ekrana Tam Oturur */
  .modal-dialog,
  .pwa-modal-card {
    width: calc(100vw - 20px) !important;
    max-width: 100vw !important;
    margin: 10px auto !important;
    border-radius: 14px !important;
  }

  /* Dokunmatik Buton Yüksekliği Standardı */
  .btn {
    min-height: 38px;
    font-size: 12px;
  }
}

/* Küçük Ekranlı Akıllı Telefonlar (<= 480px / 360px - 375px) */
@media (max-width: 480px) {
  .app-header {
    padding: 0 0.5rem !important;
  }

  .header-title-box h1 {
    font-size: 13px !important;
    max-width: 130px !important;
  }

  .btn-pwa-badge .pwa-btn-text {
    display: none !important;
  }

  .btn-pwa-badge {
    padding: 0.4rem !important;
    min-height: 32px !important;
    min-width: 32px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .modal-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .content-body {
    padding: 0.65rem 0.45rem calc(70px + env(safe-area-inset-bottom, 0px)) 0.45rem !important;
  }

  .card-header .btn {
    font-size: 11.5px !important;
    padding: 0.45rem 0.65rem !important;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.4rem !important;
    font-size: 11px !important;
  }

  /* Mobil Login Kartı */
  .login-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 12px !important;
  }
}

/* Tam Ekran Modu Taşma Koruması */
:fullscreen,
:-webkit-full-screen {
  overflow-y: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: var(--slate-50) !important;
}

