/* =========================================================================
   MOBİL / PLANŞET GÖRÜNÜŞÜ (telefondan və kiçik ekrandan işləmək üçün)
   Böyük ekranda (≥ 992px) heç nə dəyişmir. Burada yalnız kiçik ekran qaydaları var.
   ========================================================================= */
.erp-hamb { display: none; }

@media (max-width: 991.98px) {
  html, body { overflow-x: hidden; }
  .vh-100 { height: 100vh !important; height: 100dvh !important; }

  /* Menyu: soldan açılan çəkmə panel */
  .erp-sidebar {
    position: fixed !important;
    top: 0; bottom: 0; left: 0;
    width: min(86vw, 320px) !important;
    height: 100% !important;
    z-index: 1050;
    transform: translateX(-102%);
    transition: transform .2s ease;
    box-shadow: none;
  }
  body.erp-menu-ac .erp-sidebar { transform: none; box-shadow: 0 0 24px rgba(0,0,0,.35); }
  .erp-sidebar-resize-handle { display: none !important; }
  body.erp-menu-ac::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1040;
  }

  /* Üst panel: menyu düyməsi görünür */
  .erp-hamb {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    margin-right: auto;
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    background: var(--erp-white);
    font-size: 20px; line-height: 1;
    color: var(--erp-text);
    cursor: pointer;
  }
  .erp-topbar { padding: .5rem .75rem !important; }
  .erp-user small { display: none; }

  /* Məzmun: kiçik kənar boşluğu, enli cədvəl üfüqi sürüşür */
  main.content { padding: .75rem !important; overflow-x: auto; }
  h3 { font-size: 18px; }

  /* Toxunuşa uyğun ölçü; 16px şrift iPhone-da sahəyə klikləyəndə səhifənin böyüməsinin qarşısını alır */
  .form-control, .form-select { font-size: 16px; height: 40px; }
  textarea.form-control { height: auto; }
  .btn { height: 38px; }
  .btn-sm { height: 32px; }
  .form-control-sm, .form-select-sm { font-size: 16px; height: 36px; }
  .card { max-width: 100% !important; }

  /* Altlıq: sıxlaşdırılıb */
  .ana-footer-modullar { display: none !important; }
  .ana-footer-sira { flex-wrap: wrap; gap: .25rem .75rem; }
}
