﻿@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container, .card, .panel, .wrap, main, section, .dashboard, .chart-card, .table-card {
    width: auto !important;
    max-width: none !important;
    margin: 10px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .grid, .cards, .row, .kpi-grid, .chart-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  canvas, svg, .chart, .chart-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap;
  }

  input, select, textarea, button, a {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  button, .btn, a {
    min-height: 42px;
    font-size: 14px !important;
  }

  header, nav, .topbar, .navbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}
