/* Shared desktop business-workspace density. Mobile/touch and POS keep their controls. */
@media screen and (min-width: 1000px) and (hover: hover) and (pointer: fine) {
 #workspaceView { --foundation-page-inline: clamp(14px, 1.5vw, 24px); --foundation-shell-gap: 12px; --foundation-topbar-height: 52px; }
 #workspaceView .topbar { min-height: 52px; padding-block: 5px; gap: 10px; }
 #workspaceView .topbar .icon-button { width: 34px; height: 34px; min-height: 34px; border-radius: 10px; }
 #workspaceView .topbar .icon-button .icon { width: 18px; height: 18px; }
 #workspaceView .workspace-picker { min-height: 34px; padding-block: 6px; }
 #workspaceView .top-module-nav { min-height: 42px; padding-block: 2px; gap: 7px; }
 #workspaceView .top-module-nav > button,
 #workspaceView .top-module-nav .nav-dropdown-trigger,
 #workspaceView .top-module-nav .top-more-trigger { min-height: 32px; padding-inline: 10px; gap: 7px; font-size: 12px; border-radius: 9px; }
 #workspaceView .top-module-nav .icon { width: 18px; height: 18px; }
 #workspaceView .page-host { padding-top: 12px; padding-bottom: 12px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.page-head,.page-heading) { gap: 12px; margin: 0 0 12px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.page-head,.page-heading-card,.reports-v2-header) { padding: 12px 14px; border-radius: 12px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.page-head,.page-heading-card,.reports-v2-header,.transaction-hero) h1,
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) .page-heading-title { font-size: 20px !important; line-height: 1.2 !important; margin: 0 0 4px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.page-head p,.page-heading-subtitle,.reports-v2-header p) { font-size: 12px; line-height: 1.4; margin: 0; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) .panel { padding: 12px !important; border-radius: 12px !important; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.primary,.secondary,.chip-button) { min-height: 34px; padding: 7px 11px; gap: 7px; border-radius: 8px; font-size: 12px; line-height: 1.3; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.primary,.secondary) > .icon { width: 17px; height: 17px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(input.input:not([type=checkbox]):not([type=radio]),select.input) { min-height: 34px !important; height: 34px; padding: 7px 10px; border-radius: 8px !important; font-size: 12px !important; line-height: 1.3; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.filters,.history-filters,.form-grid,.action-cluster) { gap: 10px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.history-metrics-compact,.metric-grid) { gap: 10px !important; margin-bottom: 10px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) .history-metrics-compact article { padding: 10px 12px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) :is(.table-wrap,.grid-master) td { padding: 6px 8px !important; vertical-align: middle; line-height: 1.35; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) tbody .icon-button { min-width: 30px; min-height: 30px; width: 30px; height: 30px; padding: 6px; border-radius: 8px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) tbody .icon-button .icon { width: 17px; height: 17px; }
 #workspaceView .page-host .page:where(:not(#page-product-master):not(#page-pos)) .action-cluster { align-items: center; }
 #workspaceView #dashboardChequesDue h2 { margin: 0; }
 #workspaceView #dashboardChequesDue p { margin: 4px 0 0; font-size: 12px; }
 #workspaceView #page-analytics .analytics-theme-shell,
 #workspaceView #page-analytics .analytics-theme-main { gap: 12px; }
 #workspaceView #page-analytics .analytics-filter-head p { margin-top: 4px; font-size: 12px; }
 #workspaceView #page-analytics .analytics-filter-drawer { margin-top: 7px; }
 #workspaceView #page-analytics .analytics-filter-drawer summary { padding: 5px 10px; font-size: 12px; }
 #workspaceView #page-analytics .analytics-area-pill { padding: 10px; min-height: 0; }

}

@media screen and (min-width: 1200px) and (hover: hover) and (pointer: fine) {
 #workspaceView :is(#page-history,#page-purchase-master).page.active { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 10px; }
 #workspaceView :is(#page-history,#page-purchase-master) > :is(.page-head,.history-metrics-compact) { flex: 0 0 auto; margin: 0; }
 #workspaceView :is(#page-history,#page-purchase-master) > section.panel { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; gap: 10px; }
 #workspaceView :is(#page-history,#page-purchase-master) .history-filters { flex: 0 0 auto; }
 #workspaceView :is(#page-history,#page-purchase-master) .fixed-grid-scroll { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
 #workspaceView :is(#historyPagination,#purchaseHistoryPagination) { flex: 0 0 auto; padding-top: 0; }
 #workspaceView #page-purchase-master .history-filters { grid-template-columns: 132px 132px minmax(150px, 1fr) minmax(125px, .8fr) minmax(180px, 1.2fr) auto auto; }
 #workspaceView #page-purchase-master .history-filters > * { min-width: 0; }
 #workspaceView #page-purchase-master .history-filters button { white-space: nowrap; }
}
