/* R177: final server layout, scoped tabs, and a flat full-width order list. */
:root.mcpromo body.app-page .workspace-tabs-r177,
:root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177{
 display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;
 width:100%;box-sizing:border-box;margin:0!important;padding:0!important;border:0!important;
 border-radius:0!important;background:#292428!important;overflow-x:auto;
}
:root.mcpromo body.app-page .customer-section-nav.workspace-tabs-r177{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))!important;border-radius:9px 9px 0 0!important}
:root.mcpromo body.app-page .workspace-tabs-r177>a,
:root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177>a{
 display:flex!important;justify-content:center;align-items:center;gap:8px;min-height:44px!important;
 padding:10px 12px!important;border:0!important;border-bottom:3px solid transparent!important;
 border-radius:0!important;background:transparent!important;color:#fff!important;text-decoration:none;
 font:600 12px/1.35 system-ui,sans-serif!important;text-align:center;white-space:normal!important;
}
:root.mcpromo body.app-page .workspace-tabs-r177>a:is(.active,[aria-current="page"],[aria-selected="true"]),
:root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177>a.active{
 background:#d71922!important;color:#fff!important;border-bottom-color:#9c1017!important;
}
:root.mcpromo body.app-page .workspace-tabs-r177>a:hover{background:#443b41!important}
:root.mcpromo body.app-page .workspace-tabs-r177>a[hidden],
:root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177>a[hidden]{display:none!important}
:root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177:has(>a[hidden]){grid-template-columns:repeat(4,minmax(0,1fr))!important}
:root.mcpromo body.app-page .workspace-tabs-r177>a:focus-visible{outline:2px solid #fff;outline-offset:-4px}
:root.mcpromo body.app-page .workspace-tabs-r177 b{background:#ffffff20!important;color:#fff!important;border-radius:5px;padding:2px 6px;font-size:10px}
:root.mcpromo body.app-page.r177-orders-page .desktop-shell>.main-shell{padding:18px 0 0!important;max-width:none!important}
:root.mcpromo body.r177-orders-page .orders-hub-r73{max-width:none!important;width:100%;margin:0!important}
:root.mcpromo body.r177-orders-page :is(.orders-search-r73,.orders-help-r73,.orders-updated-r73,.scope-explanation){margin-left:30px!important;margin-right:30px!important}
:root.mcpromo body.r177-orders-page .orders-search-r73{margin-bottom:12px!important}
:root.mcpromo body.r177-orders-page .orders-help-r73{margin-top:0!important;margin-bottom:14px!important}
:root.mcpromo body.r177-orders-page .orders-table-r73{border:0!important;border-radius:0!important;box-shadow:none!important;width:100%}
:root.mcpromo body.r177-orders-page .orders-table-r73 table{width:100%;table-layout:auto}
:root.mcpromo body.r177-orders-page .orders-table-r73 :is(th,td){padding:16px 12px!important}
:root.mcpromo body.r177-orders-page .orders-table-r73 :is(th,td):first-child{padding-left:30px!important;width:30%}
:root.mcpromo body.r177-orders-page .orders-table-r73 :is(th,td):last-child{padding-right:30px!important}
:root.mcpromo body.r177-orders-page .orders-table-r73 :is(.order-date-r177,.order-delivery-r177){white-space:nowrap}
:root.mcpromo body.r177-orders-page .orders-table-r73 .order-status-r177{min-width:130px;max-width:220px}
:root.mcpromo body.r177-orders-page .orders-table-r73 .pagination{border-radius:0!important;padding-inline:30px!important}
.commercial-header-actions-r177{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
:root.mcpromo .commercial-header-actions-r177>.button{min-height:34px!important;padding:7px 11px!important;font-size:12px!important;white-space:nowrap}
.commercial-header-actions-r177 .r101-more{margin:0!important}
.commercial-header-actions-r177 .r101-more>summary{min-height:34px!important;padding:7px 11px!important;font-size:12px!important}
:root.mcpromo .r177-commercial-index .desktop-page-heading{min-width:160px;flex:1}
:root.mcpromo .r177-commercial-index .portfolio-context{margin:0 0 8px!important;font-size:10px}
:root.mcpromo .r177-commercial-index .cw-workspace{margin-top:0!important}
.signals-mobile-navigation-r177{display:none}
/* Native markup is present on both breakpoints. No page reconstruction after loading. */
@media(max-width:1000px){
 :root.mcpromo body.r177-commercial-index .desktop-topbar{display:flex!important;flex-wrap:wrap;position:relative!important;min-height:0!important;padding:16px!important}
 :root.mcpromo body.r177-commercial-index .desktop-page-heading{flex-basis:100%}
 .r177-commercial-index .commercial-header-actions-r177{margin-left:0;flex:1}
 :root.mcpromo body.r177-commercial-index .desktop-topbar>.global-notification-button{display:none}
 :root.mcpromo body[data-page="/customers/opportunities"] .signals-mobile-navigation-r177{display:grid;gap:5px;font-size:12px}
 :root.mcpromo body[data-page="/customers/opportunities"] .signals-mobile-navigation-r177 select{width:100%;min-width:0;min-height:44px;font-size:13px}
 :root.mcpromo body[data-page="/customers/opportunities"] .crm-workspace>.crm-tabs{display:none!important}
 :root.mcpromo body.r177-orders-page .orders-table-r73 .order-status-r177{min-width:0;max-width:none}
}
@media(max-width:760px){
 :root.mcpromo body.app-page .workspace-tabs-r177,
 :root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 :root.mcpromo body.app-page .customer-section-nav.workspace-tabs-r177{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))!important}
 :root.mcpromo body.r172-order-page .desktop-shell>.order-tabs.workspace-tabs-r177:has(>a[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 :root.mcpromo body.app-page .workspace-tabs-r177>a{font-size:11px!important;padding:9px 5px!important}
 :root.mcpromo body.r177-orders-page :is(.orders-search-r73,.orders-help-r73,.orders-updated-r73,.scope-explanation){margin-left:16px!important;margin-right:16px!important}
 :root.mcpromo body.r177-orders-page .orders-table-r73 tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:16px;gap:14px}
 :root.mcpromo body.r177-orders-page .orders-table-r73 td{width:auto!important;padding:0!important;text-align:left!important;min-width:0;overflow-wrap:anywhere;white-space:normal}
 :root.mcpromo body.r177-orders-page .orders-table-r73 td[data-label]::before{content:attr(data-label)!important;display:block;font-size:10px;color:#667085;margin-bottom:4px}
 :root.mcpromo body.r177-orders-page .orders-table-r73 td.order-customer-r177::before{content:none!important}
 :root.mcpromo body.r177-orders-page .orders-table-r73 :is(.order-customer-r177,.order-status-r177,.order-link-r177){grid-column:1/-1}
 :root.mcpromo body.r177-orders-page .orders-table-r73 .order-status-r177>.commission-state{width:auto!important;min-width:0!important;display:inline-flex}
 :root.mcpromo body.r177-orders-page .orders-table-r73 .order-link-r177{text-align:right!important}
 :root.mcpromo body.r177-orders-page .orders-table-r73 .pagination{padding-inline:16px!important}
}
