/* Only computer devices with a desktop viewport and primary precise pointer.
   Tablets/phones and all other modules keep their existing scroll owners. */
@media screen and (min-width:1100px) and (hover:hover) and (pointer:fine) {
 html.ambientale-computer:has(#content > #condition-table) {overflow:hidden;}
 html.ambientale-computer body:has(#content > #condition-table) {overflow:hidden;}
 html.ambientale-computer main:has(#content > #condition-table) {
  height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;
 }
 html.ambientale-computer main:has(#content > #condition-table) > header {flex:none;}
 html.ambientale-computer #content:has(> #condition-table) {
  display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;
 }
 html.ambientale-computer #content:has(> #condition-table) > :not(#condition-table) {flex-shrink:0;}
 html.ambientale-computer #content > #condition-table {
  flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;
 }
 html.ambientale-computer #content > #condition-table thead th {
  position:sticky!important;top:0;z-index:6;background:var(--surface,#f3f8f5);
 }
 /* Freeze the two identity columns on the same native horizontal scroll owner.
    The existing measured offset follows the first column after filters/resize. */
 html.ambientale-computer #content > #condition-table :is(th,td):nth-child(-n+2) {
  position:sticky!important;z-index:4;
 }
 html.ambientale-computer #content > #condition-table :is(th,td):nth-child(1) {left:0!important;}
 html.ambientale-computer #content > #condition-table :is(th,td):nth-child(2) {
  left:var(--license-client-offset,165px)!important;
 }
 html.ambientale-computer #content > #condition-table thead th:nth-child(-n+2) {z-index:7;}
 /* Preserve the existing full-width row separators above pinned cells, below headers. */
 html.ambientale-computer #content > #condition-table > .condition-row-separators {z-index:5;}
 /* Native sticky header now owns this table; do not paint a second copy. */
 html.ambientale-computer body:has(#content > #condition-table) > .condition-table.license-floating-header {display:none!important;}
}
