/* CRM V93 complete mobile navigation. Desktop and laptop are unchanged. */
@media (max-width: 767px) {
  body.crm-mobile-more-open { overflow: hidden !important; }

  #mobile-more-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999980 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: rgba(15, 23, 42, .48) !important;
    backdrop-filter: blur(2px) !important;
  }

  #mobile-more-sheet.crm-v93-mobile-pages {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    z-index: 999990 !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28) !important;
  }

  #mobile-more-sheet .crm-v93-mobile-pages-head {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 15px !important;
    border-bottom: 1px solid #e6edf5 !important;
    background: #fff !important;
  }

  #mobile-more-sheet .crm-v93-mobile-pages-head strong {
    display: block !important;
    color: #152a44 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
  }

  #mobile-more-sheet .crm-v93-mobile-pages-head span {
    display: block !important;
    margin-top: 2px !important;
    color: #71839a !important;
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  #mobile-more-sheet .crm-v93-mobile-pages-head button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #34465d !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  #mobile-more-sheet .crm-v93-mobile-pages-grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 12px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    background: #f8fafc !important;
  }

  #mobile-more-sheet .crm-v93-mobile-page-button {
    min-width: 0 !important;
    min-height: 78px !important;
    padding: 9px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 1px solid #e1e8f0 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #34465d !important;
    font-family: inherit !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
    text-align: center !important;
  }

  #mobile-more-sheet .crm-v93-mobile-page-button:active {
    border-color: #ffc5b4 !important;
    background: #fff5f1 !important;
    color: #d94a26 !important;
  }

  #mobile-more-sheet .crm-v93-mobile-page-icon {
    width: 26px !important;
    height: 26px !important;
    display: grid !important;
    place-items: center !important;
    color: #ff5c35 !important;
  }

  #mobile-more-sheet .crm-v93-mobile-page-icon svg,
  #mobile-more-sheet .crm-v93-mobile-quick-actions svg {
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.75 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  #mobile-more-sheet .crm-v93-mobile-quick-actions {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e6edf5 !important;
    background: #fff !important;
  }

  #mobile-more-sheet .crm-v93-mobile-quick-actions button {
    min-height: 44px !important;
    padding: 8px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  #mobile-more-sheet .crm-v93-add-appointment {
    border: 1px solid #ff5c35 !important;
    background: #ff5c35 !important;
    color: #fff !important;
  }

  #mobile-more-sheet .crm-v93-add-patient {
    border: 1px solid #ffd0c3 !important;
    background: #fff5f1 !important;
    color: #d94a26 !important;
  }

  #content > .page { display: none !important; }
  #content > .page.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.crm-night-mode #mobile-more-sheet.crm-v93-mobile-pages,
  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-pages-head,
  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-quick-actions {
    background: #20262e !important;
    border-color: #3d4652 !important;
  }

  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-pages-grid {
    background: #171c22 !important;
  }

  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-page-button,
  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-pages-head button {
    background: #29313a !important;
    border-color: #414b58 !important;
    color: #eef2f7 !important;
  }

  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-pages-head strong { color: #f3f6fa !important; }
  body.crm-night-mode #mobile-more-sheet .crm-v93-mobile-pages-head span { color: #a8b5c5 !important; }
}
