/* One shared table layout. Layered important rules prevent theme/mobile overrides drifting columns. */
@layer mealtech-list-alignment{
 .list-scroll{min-width:0!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scrollbar-gutter:stable;}
 table[data-list-locked]:not([hidden]){display:table!important;table-layout:fixed!important;width:100%!important;min-width:var(--list-min-width,600px)!important;border-collapse:collapse!important;}
 table[data-list-locked]>thead:not([hidden]){display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;clip:auto!important;clip-path:none!important;overflow:visible!important;}
 table[data-list-locked]>tbody:not([hidden]){display:table-row-group!important;}
 table[data-list-locked]>tfoot:not([hidden]){display:table-footer-group!important;}
 table[data-list-locked]>colgroup{display:table-column-group!important;}
 table[data-list-locked]>colgroup>col{display:table-column!important;}
 table[data-list-locked]>:is(thead,tbody,tfoot)>tr:not([hidden]){display:table-row!important;}
 table[data-list-locked]>:is(thead,tbody,tfoot)>tr>:is(th,td):not([hidden]){display:table-cell!important;vertical-align:middle!important;min-width:0!important;padding-inline:var(--list-cell-padding,12px)!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
 table[data-list-locked]>:is(thead,tbody,tfoot)>tr>td{width:auto!important;}
 table[data-list-locked] .list-cell-left{text-align:left!important;}
 table[data-list-locked] .list-cell-center{text-align:center!important;}
 table[data-list-locked] .list-cell-right{text-align:right!important;}
 table[data-list-locked] :is(th,td)::before{display:none!important;}
 table[data-list-locked] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-width:0!important;max-width:100%!important;box-sizing:border-box!important;text-align:inherit!important;}
 table[data-list-locked] :is(input[type=number],input[inputmode=decimal],input[inputmode=numeric]){font-variant-numeric:tabular-nums;}
 table[data-list-locked] :is(.channel-rate,.crm-sort){justify-content:center!important;max-width:100%!important;}
 table[data-list-locked] .channel-rate{display:inline-grid!important;grid-template-columns:1em minmax(0,1fr) 1em!important;width:100%!important;gap:0!important;align-items:center!important;}
 table[data-list-locked] .channel-rate::before{content:"";display:block;}
 table[data-list-locked] .channel-rate input{width:100%!important;}
 table[data-list-locked] :is(.crm-sort,.crm-purchase-sort){margin-inline:auto!important;}
 table[data-list-locked] button{max-width:100%!important;box-sizing:border-box!important;}
 table[data-list-locked] .person-cell>:is(img,.avatar){vertical-align:middle;margin-inline-end:8px;}
 /* A bar changes length inside its column; it never determines the text position or column width. */
 .trend-table table[data-list-locked] tbody>tr>td{padding-block:14px 26px!important;}
 .trend-table table[data-list-locked] .trend-cell{position:relative;}
 .trend-table table[data-list-locked] .mini-bar{position:absolute;left:var(--list-cell-padding,12px);bottom:10px;margin:0!important;max-width:calc(100% - 2 * var(--list-cell-padding,12px))!important;}
 /* The total is a block above the list; only ul owns the shared legend tracks. */
 .sa-cup-key{display:block;}
 .sa-cup-key ul{display:grid;grid-template-columns:var(--cup-swatch,14px) minmax(3em,1fr) max-content max-content;column-gap:var(--cup-gap,14px)!important;}
 .sa-cup-key li{grid-column:1/-1;display:grid;grid-template-columns:subgrid!important;column-gap:inherit!important;}
 .sa-cup-key li>:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
}
