/* Consignment details: scoped to preserve embedded grid and action behavior. */
#frm_More_Consignment{margin:0;min-width:0;color:#40556c}
#frm_More_Consignment .cons-history-layout{display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:12px;width:100%!important;margin:0!important;border:0;border-spacing:0}
#frm_More_Consignment .cons-history-layout>tbody,#frm_More_Consignment .cons-history-layout>tbody>tr{display:contents}
#frm_More_Consignment .cons-history-packages{grid-column:1;width:auto!important;min-width:0;padding:14px!important;border:1px solid #dce6ee!important;border-radius:14px;background:#fff;white-space:normal}
#frm_More_Consignment .cons-history-packages>strong{display:block;padding-bottom:10px;color:#32666c;font-size:13px;border-bottom:1px solid #e8eef2}
#frm_More_Consignment .cons-history-packages>br{display:none}
#frm_More_Consignment .cons-history-packages>div{width:auto!important;height:auto!important;max-height:240px;min-height:60px;margin:10px 0 0!important;overflow:auto;font-size:14px;line-height:1.9}
#frm_More_Consignment .cons-history-main{grid-column:2;grid-row:1 / span 2;min-width:0;padding:0!important}
#frm_More_Consignment #Tab1{width:100%!important;table-layout:fixed;border-spacing:0}
#frm_More_Consignment #Tab1>tbody>tr>td{padding:0!important}
#frm_More_Consignment .cons-history-details{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #dce6ee!important;border-radius:14px;background:white;overflow:hidden}
#frm_More_Consignment .cons-history-details>tbody>tr>td{padding:9px 10px!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:top;font-size:13px!important;line-height:1.8;border-bottom:1px solid #edf1f5;color:#40556c!important}
#frm_More_Consignment .cons-history-details>tbody>tr:first-child>td{background:#edf6f5;vertical-align:middle;color:#146b70!important}
#frm_More_Consignment .cons-history-details>tbody>tr:first-child>td:first-child>a{font-size:24px;font-weight:bold;color:#146b70}
#frm_More_Consignment .cons-history-details>tbody>tr:first-child img{max-height:24px;vertical-align:middle;margin:4px}
#frm_More_Consignment .cons-history-details>tbody>tr:last-child>td{border-bottom:0;font-size:12px!important}
#frm_More_Consignment .cons-history-contents{height:auto!important;max-height:90px}
#frm_More_Consignment #Grid{min-width:0;max-width:100%;overflow:auto;border-radius:14px}
@media(max-width:1000px){
#frm_More_Consignment .cons-history-layout{grid-template-columns:1fr 1fr}
#frm_More_Consignment .cons-history-main{grid-column:1 / -1;grid-row:2}
#frm_More_Consignment .cons-history-packages{grid-column:auto;grid-row:1}
#frm_More_Consignment .cons-history-packages>div{max-height:120px}
}
@media(max-width:600px){#frm_More_Consignment .cons-history-main{overflow:auto}#frm_More_Consignment .cons-history-details{min-width:620px}}

/* Keep the details and history in the drawer scroll flow. */
#frm_More_Consignment .cons-history-summary{height:auto;max-height:none;overflow:visible;border-radius:14px}
#frm_More_Consignment .cons-history-details>tbody>tr>td{padding:5px 8px!important;line-height:1.55}
#frm_More_Consignment .cons-history-details>tbody>tr:first-child>td{position:static}
#frm_More_Consignment .cons-history-details>tbody>tr:first-child>td:first-child>a{font-size:21px}
#frm_More_Consignment .cons-history-packages{align-self:start}
#frm_More_Consignment .cons-history-packages>div{min-height:0;max-height:22vh;max-height:22dvh}
#frm_More_Consignment #Grid .flexigrid .bDiv{height:auto!important;min-height:0;overflow:auto}
#frm_More_Consignment #Grid .flexigrid .tDiv{padding:4px 8px}
@media(max-width:1000px){
#frm_More_Consignment .cons-history-main{grid-row:1}
#frm_More_Consignment .cons-history-packages{grid-row:2}
}

/* History uses the full drawer width, including the area below the package cards. */
#frm_More_Consignment .cons-history-grid{width:100%;margin-top:12px;clear:both}
#frm_More_Consignment .cons-history-grid .flexigrid{width:100%!important;max-width:100%;box-sizing:border-box}
#frm_More_Consignment .cons-history-grid .bDiv{overflow:auto!important}
#frm_More_Consignment .cons-history-grid .hDiv{overflow:hidden}
#frm_More_Consignment .cons-history-grid .bDiv td>div,#frm_More_Consignment .cons-history-grid .hDiv th>div{padding-left:5px;padding-right:5px}
#frm_More_Consignment .cons-history-packages>div{max-height:12vh;max-height:12dvh}

/* Match header/body box metrics; generic drawer cell padding breaks Flexigrid alignment. */
#frm_More_Consignment .cons-history-grid .hDiv th,
#frm_More_Consignment .cons-history-grid .bDiv td{padding:0!important;vertical-align:middle;border-left:0;border-right:1px solid #e8eef1}
#frm_More_Consignment .cons-history-grid .hDiv th>div,
#frm_More_Consignment .cons-history-grid .bDiv td>div{box-sizing:content-box;padding:8px 6px!important;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
#frm_More_Consignment .cons-history-grid .hDiv table,
#frm_More_Consignment .cons-history-grid .bDiv table{border-spacing:0!important;table-layout:fixed;margin:0!important}
#frm_More_Consignment #Grid .flexigrid .bDiv{height:auto!important;min-height:0;max-height:none}
#frm_More_Consignment .cons-history-grid .flexigrid .pDiv{min-height:44px}


/* Legacy popup floats collapsed the form border into a thin white strip. */
.portal-drawer #frm_More_Consignment{display:flow-root;border:0;background:transparent;padding:0}
.portal-drawer #frm_More_Consignment>div,
#frm_More_Consignment .cons-history-summary,
#frm_More_Consignment .cons-history-packages>div,
#frm_More_Consignment .cons-history-contents,
#frm_More_Consignment .cons-history-grid{float:none!important;box-sizing:border-box}
#frm_More_Consignment>div{width:100%}
#frm_More_Consignment .cons-history-packages>div,
#frm_More_Consignment .cons-history-contents{height:auto!important;max-height:none!important;overflow:visible!important}


/* Docked Cancel leaves an empty table row; it must not add a second gap. */
.portal-drawer #frm_More_Consignment #Tab1>tbody>tr:has(.portal-docked-action){display:none}
