
/* =========================================================
   KESİN MOBİL/TABLET KABUK DÜZELTMESİ
   Bu dosya en son yüklenir. Telefon/tablet ekranında masaüstü sol menüyü kesin kapatır.
   ========================================================= */
@media screen and (max-width: 1280px), screen and (hover: none) and (pointer: coarse) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  body .wrap {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body .topbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    flex-direction: initial !important;
    padding: 10px 10px 8px !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.14) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 9999 !important;
  }

  body .brand {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 0 8px !important;
    margin: 0 !important;
  }

  body .brand-mark {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
    font-size: 0.85rem !important;
  }

  body .brand h1 {
    font-size: 0.95rem !important;
    line-height: 1.12 !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  body .brand p {
    display: none !important;
  }

  body .topbar > .split,
  body .split {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 2px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
  }

  body .topbar > .split::-webkit-scrollbar,
  body .split::-webkit-scrollbar {
    display: none;
  }

  body .split::before {
    display: none !important;
    content: none !important;
  }

  body .nav-btn,
  body .btn.nav-btn,
  body button.nav-btn,
  body .topbar .nav-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 7px 9px !important;
    border-radius: 11px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    justify-content: center !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body .nav-ico {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 7px !important;
    font-size: 0.78rem !important;
  }

  body main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 10px 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  body main::before {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }

  body .card,
  body .form-section,
  body .format-card,
  body .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    margin: 0 0 12px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body .filters-hero,
  body .section-title,
  body .chart-and-table,
  body .geo-map-layout,
  body .advanced-sunburst-layout,
  body .party-performance-layout,
  body .comparison-count-row,
  body .comparison-actions,
  body .filter-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body .filter-grid,
  body .grid,
  body .grid.cols-2,
  body .grid.cols-3,
  body .grid.cols-4,
  body .grid.cols-5,
  body .grid.cols-10,
  body .scenario-control-grid,
  body .report-control-grid,
  body .advanced-chart-grid,
  body .comparison-card-grid,
  body .summary-strip,
  body .metric-grid,
  body .kpi-grid,
  body .dashboard-grid,
  body .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body .filter-card,
  body .metric,
  body .stat,
  body .summary-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body select,
  body input,
  body textarea,
  body .filter-card select,
  body .filter-card input,
  body .export-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    font-size: 0.82rem !important;
    box-sizing: border-box !important;
  }

  body .chartbox,
  body .chart-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 280px !important;
    min-height: 280px !important;
    box-sizing: border-box !important;
  }

  body #geoMapCanvas,
  body .geo-map-box,
  body #advancedSunburstCanvas {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 330px !important;
    min-height: 330px !important;
  }

  body .table-wrap,
  body .tbl-wrap,
  body .comparison-table-wrap,
  body .heatmap-table-wrap,
  body .transition-table-wrap,
  body .reverse-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  body .table-wrap table,
  body .tbl-wrap table,
  body .comparison-table-wrap table,
  body .heatmap-table-wrap table,
  body .transition-table-wrap table,
  body .reverse-table-wrap table {
    min-width: 620px !important;
  }
}

@media screen and (min-width: 641px) and (max-width: 1280px) {
  body .filter-grid,
  body .summary-strip,
  body .metric-grid,
  body .kpi-grid,
  body .dashboard-grid,
  body .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body main {
    padding: 16px 14px 54px !important;
  }

  body .chartbox,
  body .chart-box {
    height: 330px !important;
    min-height: 330px !important;
  }
}
