/* DAYO ERP · Desktop Compact Density V1.2 · 2026-10-27
   Presentation only. No fields, actions, data mapping or business behavior. */
:root{
  --dayo-font-body:13px;
  --dayo-font-label:13px;
  --dayo-font-badge:12px;
  --dayo-font-card-title:16px;
  --dayo-font-page-title:22px;
  --dayo-control-height:32px;
  --dayo-table-head-height:38px;
  --dayo-table-row-height:40px;
  --dayo-card-padding:12px;
  --dayo-field-gap:8px;
  --dayo-section-gap:10px;
}

@media (min-width:1000px){
  body.dayo-batch2-layout{font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout #nav .nav-tier-one{font-size:15px!important}
  body.dayo-batch2-layout #nav :is(.nav-group-toggle,.nav-subgroup-toggle,button[data-page]){font-size:13px!important}
  body.dayo-batch2-layout #workspaceTabs#workspaceTabs#workspaceTabs .dayo-workspace-tab{height:38px!important;min-height:38px!important;padding:0 14px!important;font-size:13px!important;line-height:1.35!important}

  /* The non-existent ID guards lift this common contract above legacy page sheets. */
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c){font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) :is(.toolbar h2,.erp-toolbar h2,.purchase-ui-heading h2,.it-page-head h2,.it-work-title h2,.pp-work-head h2){font-size:22px!important;line-height:28px!important;font-weight:700!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) :is(.panel-head h3,.purchase-ui-table-title h3,.pp-card-head h3,.it-card-title,.it-section-head h3){font-size:16px!important;line-height:1.3!important;font-weight:600!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) label{font-size:13px!important;line-height:1.35!important;font-weight:600!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){box-sizing:border-box!important;height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) :is(.primary-btn,.outline-btn,.ghost-btn,.danger-btn,.mini-btn,.table-btn,.erp-select-btn,.it-btn,.it-back){box-sizing:border-box!important;height:32px!important;min-height:32px!important;font-size:13px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) table thead th{box-sizing:border-box!important;height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important;font-weight:600!important;vertical-align:middle!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) table tbody td{box-sizing:border-box!important;height:40px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important;vertical-align:middle!important}
  body.dayo-batch2-layout .main>.page[id]:not(#dayo-density-a):not(#dayo-density-b):not(#dayo-density-c) :is(.badge,.status-badge,.status-pill,.pp-status,.it-badge){font-size:12px!important}
  body.dayo-batch2-layout :is(.num,.money,[data-type=number],[data-align=right]){text-align:right!important;font-variant-numeric:tabular-nums}

  /* Purchase lists retain natural page height; only density changes. */
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-heading h2{font-size:22px!important;line-height:28px!important;font-weight:700!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) :is(.purchase-ui-heading button:not(.role-action-hidden),.purchase-ui-filter-actions button:not(.role-action-hidden)){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:1!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-filter-card{padding:10px 12px!important;gap:8px!important;min-height:0!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-filter-card>label{gap:4px!important;font-size:13px!important;line-height:18px!important;font-weight:600!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-filter-card :is(input:not([type=hidden]),select){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-table-card{padding-left:12px!important;padding-right:12px!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-table-title{height:40px!important;min-height:40px!important;padding:0!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-table-title h3{font-size:16px!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-table-scroll th{height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important;font-weight:600!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-table-scroll td{height:40px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-pagination{min-height:44px!important;height:auto!important;padding:6px 0!important;font-size:13px!important}
  body.dayo-batch2-layout :is(#erpSuppliers#erpSuppliers#erpSuppliers,#erpPurchaseOrders#erpPurchaseOrders#erpPurchaseOrders,#erpPurchaseReceipts#erpPurchaseReceipts#erpPurchaseReceipts) .purchase-ui-pagination button{height:32px!important;min-height:32px!important;min-width:32px!important;font-size:13px!important}

  /* Product Center: field/column structure and the approved 50-row behavior remain owned by its sheet. */
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .purchase-ui-heading h2{font-size:22px!important;line-height:28px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .product-approved-filter{padding:10px 12px!important;gap:8px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .product-approved-filter>label{gap:4px!important;font-size:13px!important;line-height:18px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts :is(.product-approved-filter input:not([type=checkbox]),.product-approved-filter select,.purchase-ui-filter-actions button){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts :is(.product-approved-tabs,.product-approved-tabs button){height:38px!important;min-height:38px!important;font-size:13px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .purchase-ui-table-card{padding-left:12px!important;padding-right:12px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .purchase-ui-table-title{height:40px!important;min-height:40px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .purchase-ui-table-title h3{font-size:16px!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .approved-product-table th{height:38px!important;min-height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .approved-product-table td{height:40px!important;min-height:40px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout #erpProducts#erpProducts#erpProducts .pp-status{height:24px!important;min-height:24px!important;font-size:12px!important;line-height:24px!important}

  /* Purchase Workspace: preserve the approved P05/P07 ten-row BODY scroller. */
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace[data-return-page=erpPurchaseReceipts]{--pp-detail-head-height:38px;--pp-detail-row-height:40px;--pp-detail-total-height:38px}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-work-head{height:58px!important;min-height:58px!important;flex-basis:58px!important;padding:8px 18px!important;gap:10px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-work-head h2{font-size:22px!important;line-height:28px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-card-head{height:42px!important;min-height:42px!important;padding:0 12px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-card-head h3{font-size:16px!important;font-weight:600!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace :is(.pp-form-grid,.bb-order-grid){gap:8px 20px!important;padding:8px 12px 10px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace :is(.pp-form-grid,.bb-order-grid) label{font-size:13px!important;line-height:1.35!important;font-weight:600!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace :is(.pp-form-grid,.bb-order-grid) :is(input,select,output){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-detail-table th{height:38px!important;min-height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-detail-table td{height:40px!important;min-height:40px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-detail-table input:not([type=checkbox]){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace#purchaseUiWorkspace .pp-status.pp-status{height:24px!important;min-height:24px!important;padding:0 8px!important;font-size:12px!important;line-height:1!important;display:inline-flex!important;align-items:center!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace .pp-work-footer{height:52px!important;min-height:52px!important;flex-basis:52px!important;padding:8px 18px!important;gap:10px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace#purchaseUiWorkspace[data-return-page=erpPurchaseReceipts] .bb-order-grid.bb-order-grid :is(input:not([type=checkbox]):not([type=radio]),select,output){height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout #purchaseUiWorkspace#purchaseUiWorkspace#purchaseUiWorkspace[data-return-page=erpPurchaseReceipts] .pp-work-footer.pp-work-footer button{height:32px!important;min-height:32px!important;font-size:13px!important;line-height:1!important}

  /* International Transport: approved content scroller and fixed Footer remain unchanged. */
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page :is(.it-page-head h2,.it-work-title h2){font-size:22px!important;line-height:28px!important;font-weight:700!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page :is(.it-btn,.it-back){height:32px!important;min-height:32px!important;min-width:0!important;padding:0 12px!important;font-size:13px!important;line-height:1!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-filter-card{padding:12px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page :is(.it-filter-grid,.it-filter-grid.shipment,.it-field){gap:8px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page :is(.it-field>span,.it-label){font-size:13px!important;font-weight:600!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page :is(.it-field input:not([type=checkbox]):not([type=radio]),.it-field select,.it-control,.it-shipment-form .it-combobox input){height:32px!important;min-height:32px!important;padding:0 8px!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-tabs button{height:38px!important;padding:0 14px!important;font-size:13px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page :is(.it-card-title,.it-section-head h3){font-size:16px!important;line-height:1.3!important;font-weight:600!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-table thead th{height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important;font-weight:600!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-table :is(tbody,tfoot) td{height:40px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-badge{height:24px!important;min-height:24px!important;padding:0 8px!important;font-size:12px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-pagination{min-height:48px!important;padding:6px 12px!important;font-size:13px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-page-buttons :is(button,select){height:32px!important;min-height:32px!important;font-size:13px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-work-head{min-height:54px!important;padding:8px 18px!important;gap:10px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-section-head{height:40px!important;padding:0 12px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-section-body{padding:2px 12px 12px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page .it-detail-table input:not([type=checkbox]){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:30px!important}
  body.dayo-batch2-layout :is(#transportCompanies#transportCompanies#transportCompanies,#shipments#shipments#shipments).transport-v2-page.transport-workspace-active>.it-work-footer{flex:0 0 52px!important;min-height:52px!important;padding:8px 18px!important;gap:8px!important}
  body.dayo-batch2-layout #shipments#shipments#shipments#shipments.transport-v2-page .it-detail-table.it-detail-table th{height:38px!important;min-height:38px!important;white-space:nowrap!important}
  body.dayo-batch2-layout #shipments#shipments#shipments#shipments.transport-v2-page .it-detail-table.it-detail-table tbody td{height:40px!important;padding:0 4px!important;line-height:32px!important}
  body.dayo-batch2-layout #shipments#shipments#shipments#shipments.transport-v2-page .it-detail-table.it-detail-table th br{display:none!important}
  body.dayo-batch2-layout #shipments#shipments#shipments#shipments.transport-v2-page .it-detail-table.it-detail-table col:nth-child(6){width:140px!important}

  /* Finance payment orders: one page scroller, no nested table Y scroller. */
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders .settlement-filter.compact-filter{padding:10px 12px!important;gap:8px!important}
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders .settlement-filter label{gap:4px!important;font-size:13px!important;line-height:18px!important;font-weight:600!important}
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders .settlement-filter :is(input:not([type=hidden]),select,button){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:1!important}
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders .table-wrap th{height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important;font-weight:600!important}
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders#erpSettlementPaymentOrders#erpSettlementPaymentOrders .table-wrap td{height:40px!important;padding:3px 6px!important;font-size:13px!important;line-height:1.35!important}
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders#erpSettlementPaymentOrders :is(.settlement-clean-panel,.table-panel){height:auto!important;max-height:none!important;overflow:visible!important}
  body.dayo-batch2-layout #erpSettlementPaymentOrders#erpSettlementPaymentOrders#erpSettlementPaymentOrders .table-wrap{height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
}
