/* DAYO ERP Batch 2 UI compact hotfix V2 — 2026-10-16.
   Presentation only: non-sticky workspace tabs, natural page scrolling,
   unified 14px controls and uncropped tables.
   Purchase P05/P07 editor workspaces are intentionally excluded. */

@media (min-width:1000px){
  body.dayo-batch2-layout #workspaceTabs#workspaceTabs#workspaceTabs :is(button,.tab-label,.tab-close){
    font-size:14px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers#erpSuppliers#erpSuppliers,
    #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,
    #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts,
    #erpProcessors#erpProcessors#erpProcessors,
    #erpOutsource#erpOutsource#erpOutsource,
    #erpInProcess#erpInProcess#erpInProcess,
    #erpProductionReports#erpProductionReports#erpProductionReports,
    #transportCompanies#transportCompanies#transportCompanies,
    #shipments#shipments#shipments,
    #freightPayments#freightPayments#freightPayments,
    #transportRecon#transportRecon#transportRecon
  ) :is(h2,h3,p,label,input:not([type=checkbox]):not([type=radio]),select,textarea,button,a,.badge,th,td){
    font-size:14px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers#erpSuppliers#erpSuppliers,
    #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,
    #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts,
    #erpProcessors#erpProcessors#erpProcessors,
    #erpOutsource#erpOutsource#erpOutsource,
    #erpInProcess#erpInProcess#erpInProcess,
    #erpProductionReports#erpProductionReports#erpProductionReports,
    #transportCompanies#transportCompanies#transportCompanies,
    #shipments#shipments#shipments,
    #freightPayments#freightPayments#freightPayments,
    #transportRecon#transportRecon#transportRecon
  ) :is(input:not([type=checkbox]):not([type=radio]),select,.erp-select-btn,.primary-btn,.outline-btn,.ghost-btn,.danger-btn,.mini-btn,.table-btn){
    height:32px!important;
    min-height:32px!important;
    font-size:14px!important;
    line-height:30px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers#erpSuppliers#erpSuppliers,
    #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,
    #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts,
    #erpProcessors#erpProcessors#erpProcessors,
    #erpOutsource#erpOutsource#erpOutsource,
    #erpInProcess#erpInProcess#erpInProcess,
    #erpProductionReports#erpProductionReports#erpProductionReports,
    #transportCompanies#transportCompanies#transportCompanies,
    #shipments#shipments#shipments,
    #freightPayments#freightPayments#freightPayments,
    #transportRecon#transportRecon#transportRecon
  ) table thead th{
    height:36px!important;
    padding:4px 7px!important;
    font-size:14px!important;
    line-height:22px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers#erpSuppliers#erpSuppliers,
    #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,
    #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts,
    #erpProcessors#erpProcessors#erpProcessors,
    #erpOutsource#erpOutsource#erpOutsource,
    #erpInProcess#erpInProcess#erpInProcess,
    #erpProductionReports#erpProductionReports#erpProductionReports,
    #transportCompanies#transportCompanies#transportCompanies,
    #shipments#shipments#shipments,
    #freightPayments#freightPayments#freightPayments,
    #transportRecon#transportRecon#transportRecon
  ) table :is(tbody,tfoot) td{
    height:36px!important;
    padding:2px 7px!important;
    font-size:14px!important;
    line-height:22px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers#erpSuppliers#erpSuppliers,
    #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,
    #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts
  ) table tbody>tr{
    height:36px!important;
    min-height:36px!important;
  }

  html,
  body{
    min-height:100%!important;
  }

  body.dayo-batch2-layout .main{
    box-sizing:border-box!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
  }

  body.dayo-batch2-layout .topbar{
    position:sticky!important;
    top:0!important;
    z-index:90!important;
    margin:0!important;
    background:#fff!important;
  }

  body.dayo-batch2-layout #workspaceTabs#workspaceTabs#workspaceTabs{
    position:relative!important;
    top:auto!important;
    z-index:10!important;
  }

  body.dayo-batch2-layout .main>.batch2-workspace-page.active{
    box-sizing:border-box!important;
    height:auto!important;
    max-height:none!important;
    min-height:calc(100dvh - 85px)!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }

  /* Shared compact ERP rhythm for Batch 2 list/report pages. */
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ).page.active{
    box-sizing:border-box!important;
    height:auto!important;
    max-height:none!important;
    min-height:calc(100dvh - 85px)!important;
    padding:16px 18px 24px!important;
    overflow:visible!important;
    background:linear-gradient(110deg,#f0f9ff,#f5fbff)!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  )>.toolbar{
    min-height:38px!important;
    margin:0 0 10px!important;
    padding:0!important;
    align-items:flex-start!important;
    gap:12px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  )>.toolbar h2{
    margin:0 0 2px!important;
    font-size:23px!important;
    line-height:28px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  )>.toolbar p{
    margin:0!important;
    font-size:12px!important;
    line-height:18px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  )>.toolbar :is(.toolbar-actions,.top-actions){
    gap:7px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  )>.toolbar :is(button,a){
    box-sizing:border-box!important;
    height:34px!important;
    min-height:34px!important;
    min-width:0!important;
    padding:0 12px!important;
    font-size:13px!important;
    line-height:32px!important;
    white-space:nowrap!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .panel{
    margin-bottom:12px!important;
    border-radius:9px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .panel-head{
    box-sizing:border-box!important;
    min-height:46px!important;
    padding:9px 14px!important;
    gap:12px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .panel-head h3{
    margin:0 0 2px!important;
    font-size:17px!important;
    line-height:22px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .panel-head p{
    margin:0!important;
    font-size:11px!important;
    line-height:16px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(input:not([type=checkbox]):not([type=radio]),select,.erp-select-btn){
    box-sizing:border-box!important;
    height:34px!important;
    min-height:34px!important;
    min-width:0!important;
    padding:0 9px!important;
    font-size:13px!important;
    line-height:32px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(.mini-btn,.outline-btn,.ghost-btn,.primary-btn){
    box-sizing:border-box!important;
    min-height:34px!important;
    padding:0 11px!important;
    font-size:13px!important;
    line-height:32px!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .erp-lookup-field{
    position:static!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }

  body.dayo-batch2-layout :is(
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .erp-lookup-field>.erp-select-btn{
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* Outsource pages: page scrolls; tables grow naturally. */
  body.dayo-batch2-layout .batch2-outsource-page.active{
    display:block!important;
    height:auto!important;
    max-height:none!important;
    min-height:calc(100dvh - 85px)!important;
    overflow:visible!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page>.toolbar{
    min-height:38px!important;
    height:auto!important;
    margin-bottom:10px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page>.panel,
  body.dayo-batch2-layout .batch2-outsource-page>.panel:not(.outsource-document-filter),
  body.dayo-batch2-layout .batch2-outsource-page>.outsource-document-panel{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page>.panel>.panel-head,
  body.dayo-batch2-layout #erpOutsource#erpOutsource#erpOutsource .outsource-document-filter>.panel-head{
    height:auto!important;
    min-height:62px!important;
    padding:10px 14px!important;
  }

  body.dayo-batch2-layout #erpProcessors#erpProcessors#erpProcessors .panel-head,
  body.dayo-batch2-layout #erpInProcess#erpInProcess#erpInProcess .panel-head,
  body.dayo-batch2-layout #erpProductionReports#erpProductionReports#erpProductionReports .panel-head,
  body.dayo-batch2-layout #erpOutsource#erpOutsource#erpOutsource .outsource-document-filter>.panel-head{
    display:grid!important;
    grid-template-columns:minmax(150px,.38fr) minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .product-filter-row{
    position:static!important;
    display:grid!important;
    align-items:end!important;
    gap:8px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }

  body.dayo-batch2-layout #erpProcessors#erpProcessors#erpProcessors .product-filter-row,
  body.dayo-batch2-layout #erpInProcess#erpInProcess#erpInProcess .product-filter-row{
    grid-template-columns:minmax(130px,.8fr) minmax(170px,1.2fr) 66px 70px!important;
  }

  body.dayo-batch2-layout #erpOutsource#erpOutsource#erpOutsource .product-filter-row{
    grid-template-columns:104px 126px 126px minmax(130px,.8fr) minmax(150px,1fr) 66px 70px!important;
  }

  body.dayo-batch2-layout #erpProductionReports#erpProductionReports#erpProductionReports .product-filter-row{
    grid-template-columns:126px 18px 126px minmax(120px,.8fr) minmax(140px,.9fr) 66px 70px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .product-filter-row>*{
    position:static!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .product-filter-row>.searchable-filter-wrap,
  body.dayo-batch2-layout :is(#shipments,#transportRecon) .transport-filter-grid>.searchable-filter-wrap{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 58px!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .searchable-filter-wrap>.searchable-filter-input,
  body.dayo-batch2-layout :is(#shipments,#transportRecon) .searchable-filter-wrap>.searchable-filter-input{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .searchable-filter-wrap>.mini-btn,
  body.dayo-batch2-layout :is(#shipments,#transportRecon) .searchable-filter-wrap>.mini-btn{
    box-sizing:border-box!important;
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    padding:0 6px!important;
  }

  body.dayo-batch2-layout #erpProductionReports .product-filter-row>span{
    width:auto!important;
    align-self:center!important;
    text-align:center!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .table-wrap,
  body.dayo-batch2-layout .batch2-outsource-page>.panel:not(.outsource-document-filter)>.table-wrap{
    display:block!important;
    flex:none!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scrollbar-gutter:auto!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page table{
    width:100%!important;
    min-width:980px!important;
  }

  body.dayo-batch2-layout #erpInProcess table{min-width:1240px!important}
  body.dayo-batch2-layout #erpProductionReports>.panel{min-height:0!important}
  body.dayo-batch2-layout #erpProductionReports>.panel:last-child{min-height:0!important}

  body.dayo-batch2-layout .batch2-outsource-page th{
    position:static!important;
    height:38px!important;
    padding:7px 8px!important;
    font-size:13px!important;
    line-height:20px!important;
    white-space:nowrap!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page td{
    height:40px!important;
    padding:7px 8px!important;
    font-size:13px!important;
    line-height:20px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page tfoot td{
    position:static!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .erp-segmented{
    box-sizing:border-box!important;
    width:max-content!important;
    height:38px!important;
    min-height:38px!important;
    margin:0 0 10px!important;
    padding:3px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .erp-segmented button{
    height:30px!important;
    min-height:30px!important;
    padding:0 16px!important;
    font-size:13px!important;
  }

  body.dayo-batch2-layout #erpOutsource .outsource-document-filter{
    height:auto!important;
    min-height:0!important;
    margin-bottom:12px!important;
  }

  body.dayo-batch2-layout #erpOutsource .outsource-document-panel{
    margin-bottom:12px!important;
  }

  /* International transport: compact metrics/filters and natural tables. */
  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon).page.active{
    display:block!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon).page.active>:not(.table-panel),
  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon).page.active>.table-panel{
    flex:none!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon).page.active>.table-panel{
    display:block!important;
    min-height:0!important;
    overflow:visible!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) .transport-summary-grid{
    gap:9px!important;
    margin:0 0 10px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card{
    box-sizing:border-box!important;
    height:76px!important;
    min-height:76px!important;
    padding:8px 12px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card span{
    font-size:11px!important;
    line-height:16px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card strong{
    margin-top:2px!important;
    font-size:20px!important;
    line-height:26px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card small{
    margin-top:1px!important;
    font-size:10px!important;
    line-height:14px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon)>.transport-filter-panel{
    padding:8px 10px!important;
    margin:0 0 10px!important;
    overflow:visible!important;
  }

  body.dayo-batch2-layout .transport-filter-grid,
  body.dayo-batch2-layout .recon-filter-grid{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr)) minmax(165px,1.35fr) auto!important;
    align-items:end!important;
    gap:8px!important;
  }

  body.dayo-batch2-layout .recon-filter-grid{
    grid-template-columns:minmax(135px,1.1fr) 124px 124px minmax(125px,1fr) minmax(125px,1fr) minmax(180px,1.35fr) auto!important;
  }

  body.dayo-batch2-layout #shipments#shipments#shipments .transport-filter-grid,
  body.dayo-batch2-layout #transportRecon#transportRecon#transportRecon .recon-filter-grid{
    display:grid!important;
    flex-wrap:initial!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }

  body.dayo-batch2-layout #shipments#shipments#shipments .transport-filter-grid>label,
  body.dayo-batch2-layout #transportRecon#transportRecon#transportRecon .recon-filter-grid>label{
    display:grid!important;
    flex:none!important;
    width:auto!important;
  }

  body.dayo-batch2-layout :is(.transport-filter-grid,.recon-filter-grid)>*{
    position:static!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }

  body.dayo-batch2-layout :is(.transport-filter-grid,.recon-filter-grid) label{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:4px!important;
    font-size:11px!important;
    line-height:16px!important;
  }

  body.dayo-batch2-layout :is(.transport-filter-grid,.recon-filter-grid) :is(input,select,button){
    width:100%!important;
    min-width:0!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon)>.transport-tabs{
    box-sizing:border-box!important;
    min-height:38px!important;
    margin:0 0 10px!important;
    padding:3px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon)>.transport-tabs button{
    height:30px!important;
    min-height:30px!important;
    padding:0 13px!important;
    font-size:12px!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) .table-wrap,
  body.dayo-batch2-layout #transportRecon.page.active>.table-panel>#reconCards,
  body.dayo-batch2-layout #transportRecon.page.active>.table-panel>#reconCards>.table-wrap{
    display:block!important;
    flex:none!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) .table-wrap table{
    width:100%!important;
    min-width:960px!important;
  }

  body.dayo-batch2-layout #shipments .transport-main-table table{min-width:1080px!important}
  body.dayo-batch2-layout #freightPayments .table-wrap table{min-width:1120px!important}

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) table thead th{
    position:static!important;
    height:38px!important;
    padding:7px 8px!important;
    font-size:12px!important;
    line-height:20px!important;
    white-space:nowrap!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) table tbody td,
  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) table tfoot td{
    height:40px!important;
    padding:7px 8px!important;
    font-size:12px!important;
    line-height:20px!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) table tfoot td{
    position:static!important;
  }

  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) :is(td,th).num,
  body.dayo-batch2-layout :is(#transportCompanies,#shipments,#freightPayments,#transportRecon) :is(td,th):has(>.money-cell){
    text-align:right!important;
  }

  body.dayo-batch2-layout #transportRecon>.exchange-rate-collapsible{
    margin-top:12px!important;
  }

  /* Purchase list pages only. P05/P07 editor (#purchaseUiWorkspace) stays intact. */
  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts).purchase-ui-list-page.active{
    display:block!important;
  }

  body.dayo-batch2-layout:has(#erpSuppliers#erpSuppliers#erpSuppliers.active) .main,
  body.dayo-batch2-layout:has(#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders.active) .main,
  body.dayo-batch2-layout:has(#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts.active) .main{
    height:100dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }

  #erpSuppliers#erpSuppliers#erpSuppliers.active,
  #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders.active,
  #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts.active{
    display:block!important;
    box-sizing:border-box!important;
    height:auto!important;
    max-height:none!important;
    min-height:calc(100dvh - 85px)!important;
    padding:16px 18px 24px!important;
    overflow:visible!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-heading{
    box-sizing:border-box!important;
    height:auto!important;
    min-height:38px!important;
    margin:0 0 10px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-heading h2{
    font-size:23px!important;
    line-height:34px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-heading button:not(.role-action-hidden){
    height:34px!important;
    min-height:34px!important;
    min-width:0!important;
    padding:0 12px!important;
    gap:7px!important;
    font-size:13px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-heading button svg{
    width:16px!important;
    height:16px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card{
    box-sizing:border-box!important;
    height:auto!important;
    min-height:72px!important;
    margin:0 0 12px!important;
    padding:10px 14px!important;
    gap:8px!important;
    align-content:end!important;
  }

  body.dayo-batch2-layout :is(#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-approved-filter{
    grid-template-columns:minmax(255px,1.15fr) minmax(140px,.7fr) minmax(210px,1fr) minmax(310px,1.35fr)!important;
    grid-template-rows:auto!important;
  }

  body.dayo-batch2-layout #erpSuppliers .supplier-approved-filter{
    grid-template-columns:minmax(200px,.75fr) minmax(260px,1.25fr) minmax(150px,.55fr)!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card>label{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:4px!important;
    min-width:0!important;
    font-size:11px!important;
    line-height:16px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card :is(input:not([type=hidden]),select){
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 9px!important;
    font-size:13px!important;
  }

  body.dayo-batch2-layout :is(#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card .date-range>span{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr)!important;
    align-items:center!important;
    gap:4px!important;
  }

  body.dayo-batch2-layout :is(#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card .date-range i{
    text-align:center!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-self:end!important;
    gap:6px!important;
    min-width:0!important;
  }

  body.dayo-batch2-layout #erpSuppliers .purchase-ui-filter-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-actions button:not(.role-action-hidden){
    box-sizing:border-box!important;
    width:100%!important;
    height:34px!important;
    min-height:34px!important;
    min-width:0!important;
    padding:0 8px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-card{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    padding:0 12px!important;
    overflow:visible!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-title{
    height:46px!important;
    min-height:46px!important;
    padding:0!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-title h3{
    font-size:17px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-scroll{
    display:block!important;
    flex:none!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
  }

  #erpSuppliers#erpSuppliers#erpSuppliers .purchase-ui-table-card,
  #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders .purchase-ui-table-card,
  #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts .purchase-ui-table-card{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }

  #erpSuppliers#erpSuppliers#erpSuppliers .purchase-ui-table-scroll,
  #erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders .purchase-ui-table-scroll,
  #erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts .purchase-ui-table-scroll{
    display:block!important;
    flex:none!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-scroll table{
    min-width:1040px!important;
    font-size:13px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-scroll :is(th,td){
    height:40px!important;
    padding:6px 9px!important;
    font-size:13px!important;
    line-height:26px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-table-scroll th{
    position:static!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-pagination{
    box-sizing:border-box!important;
    height:48px!important;
    min-height:48px!important;
    padding:0!important;
    font-size:12px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-pagination button{
    height:30px!important;
    min-height:30px!important;
    min-width:30px!important;
    padding:0 8px!important;
    font-size:12px!important;
  }

  /* Generic display safety inside the scoped pages. */
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(td,th){
    vertical-align:middle!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) td.num,
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) td.money-cell{
    text-align:right!important;
    font-variant-numeric:tabular-nums!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(td,th) .truncate,
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) td[title]{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}

@media (min-width:1000px) and (max-width:1400px){
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ).page.active{
    padding:13px 14px 20px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .transport-summary-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }

  body.dayo-batch2-layout #shipments#shipments#shipments .transport-filter-grid,
  body.dayo-batch2-layout #transportRecon#transportRecon#transportRecon .recon-filter-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
  }

  body.dayo-batch2-layout #shipments#shipments#shipments .transport-filter-grid>label:nth-child(6){
    grid-column:1!important;
  }

  body.dayo-batch2-layout #shipments#shipments#shipments .transport-keyword{
    grid-column:2 / span 3!important;
  }

  body.dayo-batch2-layout #transportRecon#transportRecon#transportRecon .transport-keyword{
    grid-column:1 / span 4!important;
  }

  body.dayo-batch2-layout #shipments#shipments#shipments .transport-filter-grid>button,
  body.dayo-batch2-layout #transportRecon#transportRecon#transportRecon .recon-filter-grid>button{
    grid-column:5!important;
  }

  body.dayo-batch2-layout :is(#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-approved-filter{
    grid-template-columns:minmax(245px,1fr) minmax(135px,.65fr) minmax(210px,.9fr)!important;
  }

  body.dayo-batch2-layout :is(#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-actions{
    grid-column:1 / -1!important;
    display:flex!important;
    justify-content:flex-end!important;
  }

  body.dayo-batch2-layout :is(#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-actions button:not(.role-action-hidden){
    width:auto!important;
    min-width:76px!important;
  }

  body.dayo-batch2-layout #erpSuppliers .supplier-approved-filter{
    grid-template-columns:minmax(170px,.75fr) minmax(220px,1.25fr) minmax(150px,.6fr)!important;
  }

  body.dayo-batch2-layout #erpOutsource#erpOutsource#erpOutsource .outsource-document-filter>.panel-head,
  body.dayo-batch2-layout #erpProductionReports#erpProductionReports#erpProductionReports .panel-head{
    grid-template-columns:135px minmax(0,1fr)!important;
  }

  body.dayo-batch2-layout #erpOutsource#erpOutsource#erpOutsource .product-filter-row{
    grid-template-columns:90px 112px 112px minmax(105px,.7fr) minmax(125px,.9fr) 62px 66px!important;
  }

  body.dayo-batch2-layout #erpProductionReports#erpProductionReports#erpProductionReports .product-filter-row{
    grid-template-columns:110px 16px 110px minmax(105px,.75fr) minmax(115px,.85fr) 62px 66px!important;
  }
}

/* P05 / P07 editor exception: preserve the approved 10-row body-only scroller. */
@media (min-width:1000px){
  body:has(#purchaseUiWorkspace.active) .main{
    overflow:hidden!important;
  }

  #purchaseUiWorkspace.active{
    overflow:hidden!important;
  }

  #purchaseUiWorkspace.active .pp-work-scroll{
    overflow:hidden!important;
  }

  #purchaseUiWorkspace.active .pp-detail-scroll{
    overflow:auto!important;
  }
}

/* V2 approved preview: uniform 14px ERP typography and 32px controls.
   Deliberately scoped to normal Batch 2 list/report pages; P05/P07 editor
   geometry remains owned by the approved purchase editor stylesheet. */
@media (min-width:1000px){
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ).page.active{
    font-size:14px!important;
    padding:12px 14px 20px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(
    h2,h3,p,label,input:not([type=checkbox]):not([type=radio]),select,textarea,
    button,a,.badge,.erp-segmented,.payment-tabs,.purchase-ui-pagination,
    th,td
  ){
    font-size:14px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(.toolbar h2,.erp-toolbar h2,.purchase-ui-heading h2){
    font-size:14px!important;
    font-weight:700!important;
    line-height:20px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(.toolbar p,.erp-toolbar p){
    font-size:14px!important;
    font-weight:400!important;
    line-height:20px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(.panel-head h3,.purchase-ui-table-title h3){
    font-size:14px!important;
    font-weight:600!important;
    line-height:20px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(
    input:not([type=checkbox]):not([type=radio]),select,.erp-select-btn,
    .primary-btn,.outline-btn,.ghost-btn,.danger-btn,.mini-btn,.table-btn
  ){
    box-sizing:border-box!important;
    height:32px!important;
    min-height:32px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    font-size:14px!important;
    line-height:30px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(.panel-head,.purchase-ui-table-title){
    min-height:42px!important;
    height:auto!important;
    padding:8px 12px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) table thead th{
    height:36px!important;
    padding:6px 7px!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:22px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) table :is(tbody,tfoot) td{
    height:36px!important;
    padding:6px 7px!important;
    font-size:14px!important;
    font-weight:400!important;
    line-height:22px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) .badge{
    box-sizing:border-box!important;
    min-height:26px!important;
    padding:3px 7px!important;
    font-size:14px!important;
    line-height:18px!important;
  }

  body.dayo-batch2-layout :is(#erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon)>.toolbar,
  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-heading{
    min-height:32px!important;
    margin-bottom:8px!important;
  }

  body.dayo-batch2-layout :is(#erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon)>.toolbar :is(button,a),
  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-heading button:not(.role-action-hidden){
    height:32px!important;
    min-height:32px!important;
    padding:0 10px!important;
    font-size:14px!important;
    line-height:30px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card{
    height:64px!important;
    min-height:64px!important;
    padding:7px 10px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card :is(span,strong,small){
    font-size:14px!important;
    line-height:18px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .metric-card strong{
    margin-top:0!important;
    font-weight:700!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .transport-tabs,
  body.dayo-batch2-layout .batch2-outsource-page .erp-segmented{
    height:36px!important;
    min-height:36px!important;
    padding:2px!important;
  }

  body.dayo-batch2-layout :is(#shipments,#transportRecon) .transport-tabs button,
  body.dayo-batch2-layout .batch2-outsource-page .erp-segmented button{
    height:32px!important;
    min-height:32px!important;
    padding:0 12px!important;
    font-size:14px!important;
    line-height:30px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card{
    min-height:66px!important;
    padding:8px 12px!important;
    gap:8px!important;
  }

  body.dayo-batch2-layout :is(#erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts) .purchase-ui-filter-card>label,
  body.dayo-batch2-layout :is(.transport-filter-grid,.recon-filter-grid) label{
    gap:3px!important;
    font-size:14px!important;
    line-height:18px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .product-filter-row>.searchable-filter-wrap,
  body.dayo-batch2-layout :is(#shipments,#transportRecon) .transport-filter-grid .searchable-filter-wrap{
    grid-template-columns:minmax(0,1fr) 52px!important;
    gap:6px!important;
  }

  body.dayo-batch2-layout .batch2-outsource-page .searchable-filter-wrap>.mini-btn,
  body.dayo-batch2-layout :is(#shipments,#transportRecon) .searchable-filter-wrap>.mini-btn{
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    padding:0 4px!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) :is(td,th){
    white-space:nowrap!important;
  }

  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) td[title],
  body.dayo-batch2-layout :is(
    #erpSuppliers,#erpPurchaseOrders,#erpPurchaseReceipts,
    #erpProcessors,#erpOutsource,#erpInProcess,#erpProductionReports,
    #transportCompanies,#shipments,#freightPayments,#transportRecon
  ) td .truncate{
    max-width:220px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
}
