/* HENDAR UALL-AB — upload, scrolling and historical payroll recovery. */

/* The native file input is an accessible activation target only. A broad
 * legacy input rule forced opacity back to 1 and covered the dropzone copy. */
.edie-dropzone{isolation:isolate;overflow:hidden!important}
.edie-dropzone>input[type="file"]{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  inline-size:100%!important;
  block-size:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  opacity:0!important;
  -webkit-text-fill-color:transparent!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}
.edie-dropzone>b,.edie-dropzone>small{position:relative;z-index:1;pointer-events:none}
.edie-dropzone:focus-within{outline:3px solid rgba(103,232,249,.65);outline-offset:3px}

/* Explicit scroll owners for lists and drawers. These rules are loaded last
 * so earlier page-level overflow recovery cannot disable wheel/touch scroll. */
:where(
  .main-nav,
  .project-dropdown-menu,
  .hr-suite-drawer-fields,
  .hr-suite-payroll-employee-list,
  .activity-integration-rows,
  .theme-studio-body,
  .org-tree-canvas,
  .boq-spreadsheet-shell,
  .boq-grid-wrap,
  .gantt-sheet-scroll,
  .advance-sheet-wrap
){
  min-block-size:0!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  touch-action:pan-x pan-y!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable;
}

:where(
  .table-card,
  .table-scroll,
  .data-table-wrap,
  .hdu-table-region,
  .reports-table-wrap,
  .hr-suite-table-wrap,
  .document-table
){
  max-inline-size:100%!important;
  overflow-x:auto!important;
  overscroll-behavior-inline:contain!important;
  touch-action:pan-x pan-y!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable;
}

.hr-suite-drawer form{min-block-size:0!important}
.hr-suite-drawer-fields{max-block-size:100%!important}
.hr-suite-payroll-employee-list{max-block-size:min(40dvh,340px)!important}

@media (max-width:980px),(hover:none) and (pointer:coarse){
  html[data-auth-surface="app"] .main-content,
  body.hendar-authenticated .main-content,
  html[data-auth-surface="app"] .main-content>.view:not([hidden]),
  body.hendar-authenticated .main-content>.view:not([hidden]){
    touch-action:pan-y!important;
  }
}

@media print{
  :where(.table-card,.table-scroll,.data-table-wrap,.hdu-table-region,.reports-table-wrap,.hr-suite-table-wrap,.document-table){overflow:visible!important;scrollbar-gutter:auto}
}
