/* The dock is a direct child of body, outside scrolling and transformed app content. */
@media (max-width: 760px) {
  html { width: 100%; overflow-x: clip; }
  body { width: 100%; min-width: 0; overflow-x: clip; }
  .app-shell, .main-content, .view { width: 100%; max-width: 100%; min-width: 0; }
  .app-shell { overflow-x: clip; }
  .main-content { margin-left: 0; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .view > *, .panel, .layout-two, .stats-grid, .finance-grid,
  .monthly-charge-panel, .client-insight-grid, .client-history-chart {
    min-width: 0; max-width: 100%;
  }
  .mobile-quick-nav {
    display: grid;
    position: fixed !important;
    inset: auto 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 7px 6px env(safe-area-inset-bottom);
    background: rgba(5, 9, 7, .98);
    border-top: 1px solid #1c4936;
    box-shadow: 0 -8px 24px #03150d2b;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    z-index: 9999 !important;
    contain: layout paint;
  }
  .mobile-quick-nav button {
    position: relative; min-width: 0; border: 0; border-radius: 10px;
    background: none; color: #91afa2; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    font: 600 10px 'DM Sans', sans-serif; touch-action: manipulation;
  }
  .mobile-quick-nav button .nav-icon { display: grid; place-items: center; width: 24px; height: 24px; }
  .mobile-quick-nav button .nav-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mobile-quick-nav button small { font-size: 9px; white-space: nowrap; }
  .mobile-quick-nav button.active { background: #0e3526; color: #43e5a3; }
  .mobile-quick-nav .mobile-add-client { margin-top: -22px; background: var(--green); color: #032014; border: 5px solid #f5f8f7; width: 54px; height: 54px; justify-self: center; border-radius: 50%; }
  #modal-root .modal-backdrop { z-index: 12000; }
}
