/* DAYO ERP · International Transport final review · scoped UI closure */
body.dayo-batch2-layout :is(#freightPayments,#transportRecon).transport-final-page.active{
  box-sizing:border-box!important;height:calc(100dvh - 85px)!important;max-height:calc(100dvh - 85px)!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:12px!important;background:linear-gradient(120deg,#f3fbff,#eef8ff)!important;
}
body.dayo-batch2-layout :is(#freightPayments,#transportRecon).transport-final-page>.it-page-head,
body.dayo-batch2-layout :is(#freightPayments,#transportRecon).transport-final-page>.it-filter-card,
body.dayo-batch2-layout #transportRecon.transport-final-page>.it-card:not(.it-table-card),
body.dayo-batch2-layout #transportRecon.transport-final-page>.it-recon-metrics{flex:0 0 auto}
body.dayo-batch2-layout :is(#freightPayments,#transportRecon).transport-final-page>.it-table-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin-bottom:0;overflow:hidden}
body.dayo-batch2-layout :is(#freightPayments,#transportRecon).transport-final-page>.it-table-card>.it-table-wrap,
body.dayo-batch2-layout #transportRecon.transport-final-page #tfReconBody{flex:1 1 auto;min-height:0;overflow:auto}
body.dayo-batch2-layout #transportRecon.transport-final-page #tfReconBody>.it-table-wrap{height:100%;overflow:auto}
body.dayo-batch2-layout :is(#freightPayments,#transportRecon).transport-final-page .it-table thead th{position:sticky!important;top:0!important;z-index:3}

.transport-final-filter{grid-template-columns:minmax(340px,1.25fr) minmax(220px,.8fr) minmax(260px,1fr) 76px 76px!important;gap:8px!important;align-items:end!important}
.transport-final-filter>.it-btn{width:76px;min-width:76px;padding:0 8px}
.transport-final-filter .it-date-range input{min-width:0}
.it-freight-payment-table{min-width:1080px}.it-freight-payment-table col:nth-child(1){width:104px}.it-freight-payment-table col:nth-child(2){width:154px}.it-freight-payment-table col:nth-child(3){width:180px}.it-freight-payment-table col:nth-child(4){width:130px}.it-freight-payment-table col:nth-child(5){width:98px}.it-freight-payment-table col:nth-child(6){width:118px}.it-freight-payment-table col:nth-child(7){width:170px}.it-freight-payment-table col:nth-child(8){width:210px}
.it-recon-company-table{min-width:940px}.it-recon-shipment-table{min-width:1260px}
.it-recon-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.it-recon-metrics>div{min-width:0;padding:9px 12px;border:1px solid #d9e8f7;border-radius:8px;background:#fff;box-shadow:0 4px 14px rgba(31,91,153,.04)}
.it-recon-metrics span{display:block;color:#6880a7;font-size:12px;line-height:16px}
.it-recon-metrics b{display:block;margin-top:3px;color:#0b2e83;font-size:18px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body.dayo-batch2-layout #freightPayments.transport-final-page.transport-workspace-active{padding:0!important}
.it-payment-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
.it-payment-form .it-field{grid-template-columns:116px minmax(0,1fr)}.it-payment-form .it-field.wide{grid-column:1/-1}.it-payment-form .it-field.wide textarea{height:38px;min-height:38px;padding:7px 8px}.it-payment-form small{grid-column:2;color:#6c83aa}
.it-account-control{min-width:0}.it-account-control .erp-select-btn{width:100%;height:32px;min-height:32px;border:1px solid #bcd7f5;border-radius:6px;background:#fff;color:#10206e;padding:0 8px;text-align:left;font-size:13px}.it-account-control .erp-select-btn:disabled{background:#f3f7fb;color:#61759e}
.it-payment-notice{margin:0 12px 12px;padding:8px 10px;border:1px solid #f3d18d;border-radius:6px;background:#fff9ed;color:#9c6500}
.it-payment-allocation .it-detail-wrap{padding:0 10px 10px}.it-payment-detail-table{min-width:1040px}.it-payment-detail-table th:nth-child(1){width:58px}.it-payment-detail-table th:nth-child(2){width:170px}.it-payment-detail-table th:nth-child(8){width:160px}.it-payment-detail-table input[type=checkbox]{width:18px;height:18px;accent-color:#0878f9;vertical-align:middle}.it-payment-detail-table input[type=number]{width:100%;height:32px;border:1px solid #c6dcf4;border-radius:5px;padding:0 6px;text-align:right;color:#10206e}.it-payment-detail-table input:disabled{background:#f3f7fb;color:#61759e}

.it-ledger-modal{width:min(1480px,calc(100vw - 48px))!important;max-width:none!important;height:min(820px,calc(100dvh - 48px));display:flex;flex-direction:column;overflow:hidden}.it-ledger-modal>.modal-body,.it-ledger-modal>.modal-content{min-height:0;overflow:auto}.it-company-ledger{display:grid;gap:10px}.it-ledger-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.it-ledger-metrics>div{padding:10px 12px;border:1px solid #d9e8f7;border-radius:8px;background:#f7fbff}.it-ledger-metrics span{display:block;color:#6880a7;font-size:12px}.it-ledger-metrics b{display:block;margin-top:4px;color:#0b2e83;font-size:18px}.it-ledger-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 12px;border:1px solid #d9e8f7;border-radius:8px;background:#fff;color:#5d739b}.it-ledger-info b{color:#153b86}.it-company-ledger h3{margin:2px 0 0;font-size:16px;color:#07176d}

/* Foreign-menu sections now reuse the same nav-subgroup component as the
   other peers. This rule only normalizes direct structure; no special offset. */
body.dayo-r4-home-nav-final #nav .nav-business-menu>.foreign-nav-subgroup>.nav-subgroup-toggle{box-sizing:border-box}

@media(max-width:1380px){.transport-final-filter{grid-template-columns:minmax(310px,1.2fr) minmax(190px,.8fr) minmax(220px,1fr) 72px 72px!important}.transport-final-filter>.it-btn{width:72px;min-width:72px}.it-payment-form{grid-template-columns:repeat(2,minmax(0,1fr))}.it-ledger-info{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.transport-final-filter{grid-template-columns:1fr!important}.transport-final-filter>.it-btn{width:100%;min-width:0}.it-payment-form{grid-template-columns:1fr}.it-payment-form .it-field.wide{grid-column:auto}.it-ledger-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.it-recon-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* High-specificity compatibility with the deployed Compact Density sheets. */
body.dayo-batch2-layout :is(#freightPayments#freightPayments#freightPayments,#transportRecon#transportRecon#transportRecon).transport-final-page .it-page-head h2{font-size:22px!important;line-height:28px!important;font-weight:700!important}
body.dayo-batch2-layout :is(#freightPayments#freightPayments#freightPayments,#transportRecon#transportRecon#transportRecon).transport-final-page :is(input:not([type=checkbox]):not([type=radio]),select,.it-btn,.erp-select-btn){height:32px!important;min-height:32px!important;font-size:13px!important;line-height:30px!important}
body.dayo-batch2-layout :is(#freightPayments#freightPayments#freightPayments,#transportRecon#transportRecon#transportRecon).transport-final-page .it-table th{height:38px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
body.dayo-batch2-layout :is(#freightPayments#freightPayments#freightPayments,#transportRecon#transportRecon#transportRecon).transport-final-page .it-table td{height:40px!important;padding:4px 6px!important;font-size:13px!important;line-height:1.35!important}
body.dayo-batch2-layout #freightPayments#freightPayments#freightPayments.transport-final-page.transport-workspace-active{height:calc(100dvh - 85px)!important;max-height:calc(100dvh - 85px)!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.dayo-batch2-layout #freightPayments#freightPayments#freightPayments.transport-final-page.transport-workspace-active>.it-work-scroll{flex:1 1 auto!important;height:auto!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
body.dayo-batch2-layout #freightPayments#freightPayments#freightPayments.transport-final-page.transport-workspace-active>.it-work-footer{flex:0 0 52px!important}
