/* ==========================================================================
   Smooth Mobile & Tablet Experience for Umbraco 18 Backoffice (Ash CMS)
   Enables Full Desktop Functionality with Free Scrolling & Pinch-to-Zoom
   ========================================================================== */

/* 1. Global Viewport & Free Scrolling */
html, body {
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  -webkit-text-size-adjust: 100% !important;
  min-width: 100% !important;
}

/* 2. Top Header Sections - Smooth touch horizontal scrolling */
umb-backoffice-header-sections {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  white-space: nowrap !important;
}

/* 3. Inputs: Prevent sudden iOS auto-zoom jump when typing */
input,
textarea,
select,
uui-input,
uui-textarea {
  font-size: 16px !important;
}

/* 4. Ensure Both Tree and Editor Panels Are Always 100% Accessible */
umb-section-sidebar,
umb-section-main,
umb-split-panel {
  visibility: visible !important;
}

/* 5. Touch Friendly Checkboxes & Buttons */
uui-checkbox {
  min-height: 38px !important;
  touch-action: manipulation !important;
}

uui-menu-item {
  min-height: 40px !important;
}

uui-menu-item #caret-button {
  min-width: 40px !important;
  min-height: 40px !important;
}

/* 6. Sticky Action Footer for Easy Saving */
umb-workspace-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 999 !important;
  background: var(--uui-color-surface, #ffffff) !important;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08) !important;
}
