
/* Chemical-Mandi R63 corrective layer */

/* Header must occupy the first pixel row: no body offset and no phantom top spacer. */
html,body{margin:0!important;padding:0!important}
body{padding-top:0!important}
header.topbar,.topbar,body>header.topbar{
 position:sticky!important;
 top:0!important;left:0!important;right:0!important;
 margin:0!important;
 transform:none!important;
 z-index:10000!important;
}
body>div:first-child:empty,
body>.site-spacer,body>.top-spacer,body>.header-spacer,
body>.static-header-spacer,[data-header-spacer]{display:none!important;height:0!important;margin:0!important;padding:0!important}
main,.page-shell,.dashboard-shell{margin-top:0!important}

/* Do not force dashboard sections into artificial fixed heights. */
.cm-r61-mandi-panel,.dashboard-analysis-grid>.dashboard-panel{
 height:auto!important;max-height:none!important;min-height:0!important;
}

/* Repair My RFQs table: the RFQ ID must never collapse character-by-character. */
#dashboardMyRfqs,#dashboardMyRfqRows,.dashboard-my-rfqs,.buyer-rfq-table{width:100%!important}
#dashboardMyRfqs table,.dashboard-my-rfqs table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
#dashboardMyRfqs th,#dashboardMyRfqs td,.dashboard-my-rfqs th,.dashboard-my-rfqs td{
 white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;
 min-width:0!important;vertical-align:middle!important;
}
#dashboardMyRfqs th:first-child,#dashboardMyRfqs td:first-child,
.dashboard-my-rfqs th:first-child,.dashboard-my-rfqs td:first-child{
 width:24%!important;min-width:210px!important;overflow-wrap:normal!important;word-break:keep-all!important;
}

/* One action button only, contained in the row. */
.cm-r63-view{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 padding:8px 14px!important;min-width:76px!important;min-height:36px!important;
 border:1px solid #fb923c!important;border-radius:9px!important;background:#ffedd5!important;
 color:#9a3412!important;text-decoration:none!important;font-weight:800!important;white-space:nowrap!important;
}
.cm-r63-hide-duplicate{display:none!important}

/* Onboarding must paint immediately and remain interactive. */
body.cm-r63-onboarding .modal-backdrop:not(.show):not(.active),
body.cm-r63-onboarding .loading-overlay:not(.show):not(.active),
body.cm-r63-onboarding .page-overlay:not(.show):not(.active){
 display:none!important;pointer-events:none!important;backdrop-filter:none!important;
}
@media(max-width:800px){
 #dashboardMyRfqs th:first-child,#dashboardMyRfqs td:first-child,
 .dashboard-my-rfqs th:first-child,.dashboard-my-rfqs td:first-child{min-width:150px!important}
}
