/* One compact desktop treatment; editing controls may still grow deliberately. */
@media(min-width:901px){
  body:has([data-table-workspace]) .container>.topbar{height:18px;min-height:18px;max-height:18px;box-sizing:border-box;padding:0;flex:none;margin:0 0 2px;gap:6px;font-size:11px;line-height:18px}
  body:has([data-table-workspace]) .container>.topbar .pill,body:has([data-table-workspace]) .container>.topbar button{font-size:11px;line-height:16px;padding:1px 5px;min-height:18px}
  .container:has(>#movementTurnover),.container:has(>#dailyMovement){height:100dvh;max-width:none;box-sizing:border-box;overflow:hidden;padding:2px 4px!important;display:flex;flex-direction:column}
  #movementTurnover,#dailyMovement{height:var(--ptw-height);min-height:0;flex:1;box-sizing:border-box;padding:0 4px;gap:2px;margin:0;max-width:none;overflow:hidden}
  #movementTurnover{display:flex;flex-direction:column}
  #dailyMovement{display:flex;flex-direction:column}
  .table-workspace-bar,#dailyMovement .daily-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:5px;height:23px;min-height:23px;flex:none;margin:0}
  .table-workspace-bar>h1,#dailyMovement .daily-title-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #movementTurnover .documents-actions,#dailyMovement .daily-top-actions{display:flex;flex-wrap:nowrap;gap:3px;flex:none;margin:0}
  #movementTurnover .documents-type-tabs,#dailyMovement .daily-workspace-tabs{display:flex;align-items:center;gap:2px;margin:0;padding:0;border:0;min-height:20px;flex:1;min-width:0}
  #movementTurnover .pill,#dailyMovement .pill{font-size:11px;line-height:18px;padding:1px 5px;margin:0;white-space:nowrap}
  #dailyMovement .daily-time-detail{font-size:0;gap:0;margin:0}#dailyMovement .daily-time-detail select{font-size:11px;height:21px;padding:0 2px;max-width:80px}
  #movementTurnover button.btn,#dailyMovement :is(.daily-top-actions,.daily-toolbar,.daily-pages) button{padding:1px 5px;font-size:11px;line-height:18px;min-height:20px;height:22px;border-radius:3px}
  #movementTurnover #turnoverForm,#dailyMovement .daily-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;padding:1px 3px;margin:0;min-height:25px;height:25px;flex:none;border-radius:3px}
  #movementTurnover #turnoverForm>label,#dailyMovement .daily-toolbar>label{display:flex;flex-direction:row;align-items:center;gap:3px;font-size:10px;min-width:0;white-space:nowrap}
  #movementTurnover #turnoverForm input,#dailyMovement .daily-toolbar input{height:21px;padding:0 3px;font-size:11px;border-radius:3px}
  #movementTurnover #turnoverForm input[type=date],#dailyMovement .daily-toolbar input[type=date]{width:102px}
  #movementTurnover #turnoverStores{align-self:center;min-width:120px}#movementTurnover #turnoverStoreSummary{height:21px;line-height:19px;box-sizing:border-box;padding:0 5px;font-size:11px;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis;border-radius:3px}
  #movementTurnover .turnover-search{max-width:none;min-width:120px;margin-left:auto;flex:1}#movementTurnover .turnover-search input{width:100%}
  #movementTurnover .table-workspace-status{display:flex;gap:5px;flex:none;min-height:19px;height:19px;min-width:0}
  #movementTurnover .table-workspace-status>.documents-message,#dailyMovement #dailyRevenueWarning{box-sizing:border-box;margin:0!important;padding:0 5px!important;border-radius:3px!important;line-height:17px!important;font-size:10px!important;min-height:19px;height:19px;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
  #movementTurnover #turnoverTableWrap{flex:1;min-height:0;max-height:none;height:auto;border-radius:3px;overflow:auto;overscroll-behavior:contain}
  #movementTurnover .turnover-footer,#dailyMovement .daily-pages{display:flex;align-items:center;flex-wrap:nowrap;box-sizing:border-box;min-height:22px;height:22px;padding:0 3px;margin:0;gap:4px;font-size:10px;flex:none;border-radius:3px;white-space:nowrap;min-width:0}
  #movementTurnover .turnover-footer label,#dailyMovement .daily-pages label{display:flex;flex-direction:row;align-items:center;gap:3px;font-size:10px;min-width:0;margin:0}
  #movementTurnover .turnover-footer select,#dailyMovement .daily-pages select,#dailyMovement .daily-pages input{height:19px;min-height:19px;padding:0 2px;font-size:10px;border-radius:2px}
  #movementTurnover #turnoverCount{min-width:0}#movementTurnover #turnoverTiming{font-size:10px;margin-left:auto;overflow:hidden;text-overflow:ellipsis}
  #movementTurnover .turnover-help{position:relative;font-size:10px;flex:none;margin:0}#movementTurnover .turnover-help>summary{white-space:nowrap;line-height:19px}
  #movementTurnover .turnover-help>.table-workspace-help-body{position:absolute;right:0;bottom:calc(100% + 3px);width:min(720px,85vw);max-height:65vh;overflow:auto;background:#fff;box-shadow:0 3px 18px #17344d30;padding:10px;border:1px solid #afc5d2;border-radius:4px;z-index:110;white-space:normal;font-size:12px;line-height:1.4}
  #turnoverStatusDetails{white-space:pre-wrap;margin-bottom:8px}
  #movementTurnover th{position:sticky}
  #movementTurnover .turnover-column-caption{display:block!important;position:absolute;inset:0 8px 0 3px;line-height:26px;height:26px;min-height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;text-align:center;padding:0;pointer-events:none;z-index:1}
  #movementTurnover th:not(:hover):not(:focus-within):not(.pth-filtered) .pth-input::placeholder{color:transparent}
  #movementTurnover th:not(:hover):not(:focus-within):not(.pth-filtered) .pth-grip,#movementTurnover th:not(:hover):not(:focus-within):not(.pth-filtered) .pth-filter,#movementTurnover th:not(:hover):not(:focus-within):not(.pth-filtered) .pth-sort{opacity:0}
  #movementTurnover th:hover .turnover-column-caption,#movementTurnover th:focus-within .turnover-column-caption,#movementTurnover th.pth-filtered .turnover-column-caption{display:none!important}
  #movementTurnover table td{height:21px;box-sizing:border-box;padding:1px 4px;line-height:18px;font-size:11px}
  #dailyMovement #dailySummaryView{display:flex;flex-direction:column;flex:1;min-height:0;gap:2px}
  #dailyMovement .daily-options{padding:0;margin:0;flex:none}
  #dailyMovement .daily-options:not([hidden]) .daily-toolbar{height:25px}
  #dailyMovement .daily-utility{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;margin:0;min-height:19px;flex:none;min-width:0}
  #dailyMovement .daily-utility #dailyRevenueWarning{flex:1;margin:0!important}#dailyMovement .daily-price-legend{font-size:9px;gap:2px;flex:none}
  #dailyMovement .daily-active{flex:none;margin:0;gap:2px}#dailyMovement .daily-active button{font-size:10px;height:19px;padding:0 3px}
  #dailyMovement .daily-coverage{flex:none;margin:0;font-size:10px}#dailyMovement .daily-coverage>summary{padding:1px 3px;white-space:nowrap}
  #dailyMovement .daily-grid-area{display:flex;flex:1;min-height:0;height:auto;position:relative}#dailyMovement .daily-table-wrap{flex:1;height:auto!important;max-height:none!important;min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:3px}
  #dailyMovement #dailyTable td{height:21px;max-height:21px;padding:1px 4px;line-height:18px;font-size:11px}
  #dailyMovement .daily-pages>nav{display:flex;gap:2px;flex:none}#dailyMovement .daily-page-numbers{gap:1px}#dailyMovement #dailyStatus{flex:1;min-width:0;font-size:10px}
  #dailyMovement .daily-page-jump{gap:2px}#dailyMovement .daily-page-jump input{width:35px}#dailyMovement .daily-load-time{font-size:10px;padding:1px 3px;min-width:0}
  body table.portal-header-table{border-collapse:separate;border-spacing:0}
  body table.portal-header-table th.pth-header{position:sticky;top:0;z-index:5;height:27px;min-height:27px;padding:0;background:#e9f0f5;white-space:nowrap}
  body table.portal-header-table th.pth-header .pth-controls{height:26px!important;min-height:26px;padding:0 24px 0 9px!important}
  body table.portal-header-table th.pth-header .pth-controls .pth-input{height:22px!important;padding:0 2px!important;font-size:10px!important;line-height:18px!important}
  body table.portal-header-table th.pth-header .pth-controls .pth-grip{height:26px!important;width:9px!important;font-size:11px!important}
  body table.portal-header-table th.pth-header .pth-controls .pth-filter,body table.portal-header-table th.pth-header .pth-controls .pth-sort{height:13px!important;width:14px!important;right:9px!important}
  body table.portal-header-table :is(th,td).ptw-identity{position:sticky;left:0;background:#f8fafb;z-index:3;box-shadow:1px 0 #b5cbd7}
  body table.portal-header-table th.ptw-identity{top:0;z-index:8;background:#e9f0f5}
  .ptw-expanded-body{overflow:hidden!important}
  .ptw-expanded-body .turnover-filter-menu,.ptw-expanded-body .pth-column-menu{z-index:10120}
  [data-table-workspace].ptw-expanded,#dailyMovement.daily-expanded{position:fixed!important;inset:0!important;z-index:10000!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;max-width:none!important;margin:0!important;padding:3px 4px!important;background:#fff;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}
  [data-table-workspace].ptw-expanded>.documents-table-wrap{flex:1;min-height:0;max-height:none}
}
@media(max-width:900px){[data-ptw-expand]{display:none!important}}

@media(min-width:901px){[data-table-workspace] .documents-register-footer{height:22px;min-height:22px;box-sizing:border-box;padding:0 3px;margin:0;gap:4px;flex-wrap:nowrap;white-space:nowrap;font-size:10px;overflow-x:auto}[data-table-workspace] .documents-register-footer button,[data-table-workspace] .documents-register-footer select{height:20px;min-height:20px;padding:0 3px;font-size:10px}}

@media(min-width:901px){
  #dailyMovement #dailyTable td .daily-price-link{height:18px;min-height:0;line-height:16px;padding:0 2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
  .container:has(>#documentRegister[data-view=list]){height:100dvh;box-sizing:border-box;overflow:hidden;max-width:none;padding:2px 4px!important;display:flex;flex-direction:column}
  #documentRegister[data-view=list][data-table-workspace]{height:var(--ptw-height);min-height:0;gap:2px;margin:0;flex:1}
  #documentRegister[data-view=list] .documents-heading{height:23px;min-height:23px;gap:4px;margin:0;flex-wrap:nowrap}
  #documentRegister[data-view=list] .documents-heading h1{font-size:16px;line-height:21px;margin:0}
  #documentRegister[data-view=list] #documentPeriod,#documentRegister[data-view=list] .documents-register-toolbar{height:25px;min-height:25px;box-sizing:border-box;padding:1px 3px;margin:0;gap:4px;align-items:center;flex-wrap:nowrap;font-size:11px;white-space:nowrap}
  #documentRegister[data-view=list] #documentPeriod{overflow-x:auto;overflow-y:hidden}
  #documentRegister[data-view=list] :is(.documents-heading,#documentPeriod,.documents-register-toolbar) :is(button,input,select){height:21px;min-height:20px;box-sizing:border-box;padding:0 4px;font-size:11px;line-height:19px}
  #documentRegister[data-view=list] #documentListPane{gap:2px}
  #documentRegister[data-view=list] .documents-type-tabs{height:23px;min-height:23px;margin:0;gap:3px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}
  #documentRegister[data-view=list] .documents-type-tabs label{height:22px;min-height:22px;box-sizing:border-box;line-height:20px;padding:0 4px;font-size:11px;white-space:nowrap}
  #documentRegister[data-view=list] .documents-register-toolbar .documents-search{min-width:140px;flex:1}
  #documentRegister[data-view=list] .documents-register-toolbar label{font-size:11px;gap:3px}
  #documentRegister[data-view=list] #documentList{min-height:0;flex:1}
}

@media(min-width:901px){body:has([data-table-workspace]) #desktopNavToggle{top:2px!important;left:6px;height:18px!important;min-height:18px!important;padding:0 5px!important;font-size:11px;line-height:16px;border-radius:3px}}

@media(min-width:901px){#movementTurnover th:not(:hover):not(:focus-within):not(.pth-filtered) .pth-controls{opacity:0}}
