/* الموبايل في النسخة السحابية: القائمة درج بيتفتح من زرار، والصفحة بعرض الشاشة كله. */
.mo-burger, .mo-scrim { display: none; }
@media (max-width: 820px) {
  .app { display: block !important; height: auto !important; min-height: 100dvh; }
  .sidebar, [data-layout] .sidebar {
    position: fixed !important; top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: auto; width: min(84vw, 300px) !important; height: 100dvh !important;
    max-width: none; margin: 0 !important; border-radius: 0 !important; display: flex !important; flex-direction: column !important; overflow-y: auto; z-index: 800;
    transform: translateX(100%); transition: transform .18s ease;
  }
  [dir='ltr'] .sidebar { transform: translateX(-100%); }
  body.mo-nav .sidebar, [dir='ltr'] body.mo-nav .sidebar { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  .sidebar nav { flex: 0 0 auto !important; flex-direction: column !important; overflow: visible !important; }
  .sidebar .nav-label, .sidebar .brand span, .sidebar #current-user { display: revert !important; }
  .mo-scrim { position: fixed; inset: 0; background: rgba(8, 12, 20, .5); z-index: 790; }
  body.mo-nav .mo-scrim { display: block; }
  .mo-burger {
    display: flex; align-items: center; justify-content: center; position: fixed; top: 10px; inset-inline-start: 10px; z-index: 700; width: 44px; height: 44px;
    border-radius: 11px; border: 1px solid var(--border, #d7dde6); background: var(--surface, #fff); color: var(--text, #16202e); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.14);
  }
  .page-content { width: 100% !important; max-width: 100vw; height: auto !important; min-height: 100dvh; padding: 62px 12px 24px !important; overflow-x: hidden; box-sizing: border-box; }
  .page-content > * { max-width: 100%; }
  .page-content *, .page-content *::before { min-width: 0; }
  .page-content h1, .page-content h2 { overflow-wrap: anywhere; }
  .page-content img { max-width: 100%; height: auto; }
  .page-content table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .page-content table th, .page-content table td { white-space: nowrap; }
  .toolbar, .page-header, .row-actions, .dialog-actions { flex-wrap: wrap !important; }
  .card { padding-inline: 12px !important; }
  input, select, textarea { font-size: 16px !important; max-width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dash-columns, .grid-2, .grid2, .form-grid, .two-cols { grid-template-columns: minmax(0, 1fr) !important; }
  .modal-box, .dialog-box { width: calc(100vw - 16px) !important; max-width: none !important; max-height: 96dvh; overflow-y: auto; }
  .btn, button { min-height: 34px; }
}
