/* SOURCE: fix220-perf-stability.css */
/* FIX220 PERF50 - scroll/viewport stability, additive only. */
@media (min-width:980px){
 html body.th680-entry-focus .th680-entry-screen{scrollbar-gutter:stable!important;overscroll-behavior:contain!important;}
 html body.th680-entry-focus .th680-entry-screen .attendance-desktop-grid-wrap,
 html body.th680-entry-focus .th680-entry-screen .schedule-desktop-grid-wrap{
  scrollbar-gutter:stable!important;overscroll-behavior:contain!important;overflow-anchor:none!important;
 }
}
/* Prevent a ResizeObserver/scroll event from changing the document height
   when the navigation buttons become hidden. Keep the toolbar space reserved. */
.attendance-entry-screen .v35zl-scroll-tools,
.attendance-entry-screen .v35zl-scroll-tools[hidden]{
 display:flex!important;box-sizing:border-box!important;min-height:52px!important;
}
.attendance-entry-screen .v35zl-scroll-tools[hidden]{visibility:hidden!important;pointer-events:none!important;}
.attendance-entry-screen .v35zl-independent-scroll,
.attendance-entry-screen .attendance-desktop-grid-wrap{overscroll-behavior-x:contain!important;}
/* A stable summary toolbar reduces repaint height differences on recap refresh. */
.th219-recap-controls{min-height:52px!important;box-sizing:border-box!important;}
.th219-recap-panel .th219-table-scroll{overflow-anchor:none;}
/* Keep focus visible in both static and scrolling panels. */
.attendance-entry-screen :is(select,input,button):focus-visible,
.schedule-entry-screen :is(select,input,button):focus-visible{outline-offset:1px;}


/* SOURCE: fix221-perf-stability.css */
/* FIX221: additive geometry hardening for table/recap. No editable-cell semantics. */
@media screen {
 .attendance-entry-screen .attendance-desktop-grid-wrap,
 .attendance-entry-screen .v35zl-independent-scroll,
 .schedule-entry-screen .schedule-desktop-grid-wrap{
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  overflow-anchor:none;
 }
 .th219-recap-panel .th219-table-scroll{
  scrollbar-gutter:stable;
  overscroll-behavior-inline:contain;
  overflow-anchor:none;
 }
 .th219-recap-panel .th219-table td,
 .th219-recap-panel .th219-table th {font-variant-numeric:tabular-nums;}
 .attendance-entry-screen .v35zl-scroll-tools,
 .attendance-entry-screen .v35zl-scroll-tools[hidden]{min-block-size:52px!important;box-sizing:border-box;}
 .th219-recap-panel .th219-recap-controls,
 .th219-hrga-activity .th219-recap-controls{min-block-size:52px;box-sizing:border-box;}
}


/* SOURCE: fix223-viewport-stability.css */
/* FIX223: geometry-only stabilization for browser chrome on large tablets.
 * No change to input, drag handlers, sticky headers or save semantics. */
@media screen and (min-width:980px) {
 @supports(height:100svh) {
  html body.th680-entry-focus .th680-entry-screen {
   height:calc(100svh - 54px)!important;
   max-height:calc(100svh - 54px)!important;
   overscroll-behavior-y:contain!important;
   overflow-anchor:none!important;
  }
  html body.th680-entry-focus .th680-entry-screen .attendance-desktop-grid-wrap,
  html body.th680-entry-focus .th680-entry-screen .schedule-desktop-grid-wrap {
   max-height:calc(100svh - 310px)!important;
  }
 }
}
/* Fix width jitter caused by changing scrollbar occupancy; no disabled scroll. */
@media screen {
 .th219-recap-panel .th219-table-scroll,
 .attendance-entry-screen .v35zl-independent-scroll,
 .attendance-entry-screen .attendance-desktop-grid-wrap {
  scrollbar-gutter:stable;
  overscroll-behavior-inline:contain;
 }
}


/* SOURCE: fix222-layout-stability.css */
/* FIX222: visual stability only. No input semantics, no sticky-header changes. */
@media screen {
 .attendance-entry-screen .v35zl-independent-scroll,
 .attendance-entry-screen .attendance-desktop-grid-wrap,
 .schedule-entry-screen .schedule-desktop-grid-wrap {
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
 }
 .th219-recap-panel [data-th219-recap-body],
 .th219-hrga-activity [data-th219-act-body] {
  overflow-anchor: none;
  box-sizing: border-box;
 }
 .th219-finalization-pic,
 .th219-hrga-deadline {
  contain: style;
 }
}

