.order-sku-line+.order-sku-line{margin-top:4px;padding-top:4px;border-top:1px dashed #e0e9ef}
.order-sku-heading{display:flex;align-items:center;gap:6px;min-width:0}
.order-sku-heading>.order-copy-value{flex:1;min-width:0}
.order-sku-quantity{flex:none;white-space:nowrap;font-size:12px;font-weight:600;color:#176e66}
.order-sku-msku{display:flex;align-items:center;gap:5px;min-width:0}
.order-sku-msku>small{color:#8392a0;font-size:10px;flex:none}
.order-sku-msku>.order-copy-value{min-width:0}
.order-layout-switch{display:inline-flex;gap:0;margin-right:8px;white-space:nowrap}
.order-layout-switch button{border-radius:0;font-size:12px;padding:6px 10px}
.order-layout-switch button:first-child{border-radius:5px 0 0 5px}
.order-layout-switch button:last-child{border-radius:0 5px 5px 0;margin-left:-1px}
.order-layout-switch button[aria-pressed="true"]{background:#e7f3f0;color:#126c65;border-color:#9acbc3;position:relative;font-weight:600}
.order-layout-wrap{container-type:inline-size}
#main .order-layout-table tbody .order-layout-detail>td{padding:7px 12px;vertical-align:middle}
#main .order-layout-table.order-flat tbody .order-layout-detail>td{padding:5px 12px}
#main .order-layout-table .order-group-title>td{padding:3px 12px;background:#f2f6fa;border-top:5px solid white;border-bottom:1px solid #e0e9f0}
.order-title-inner{position:sticky;left:12px;width:calc(100cqw - 40px);max-width:100%;min-height:25px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.order-title-meta{display:flex;align-items:center;gap:14px;min-width:0;flex:1;font-size:11px}
.order-title-meta .order-id-link{flex-shrink:0;padding:0;border:0;background:transparent;color:#2676ac;font-size:12px;font-weight:600}
.order-title-store{border-left:1px solid #cfdce5;padding-left:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#718292}
.order-title-store b{font-weight:500;color:#344f65;margin-left:4px}
.order-title-annotations{min-width:0;max-width:60%;flex:0 1 auto}
.order-title-annotations .annotation-strip{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;max-width:100%;height:24px;padding:0;border:0;background:transparent;font-size:11px}
.order-title-annotations .annotation-tags{max-width:60%}
.order-title-annotations .annotation-note{max-width:65%}
.order-layout-table .order-tags-link,.order-layout-table .order-remark-link{padding:0;border:0;background:transparent;text-align:left;font-size:11px;max-width:100%;color:#2676ac}
.order-tags-link{display:flex;gap:3px;flex-wrap:wrap;max-height:39px;overflow:hidden}
.order-layout-table .source-tag{display:inline-block;padding:0 4px;border:1px solid #b9d8f5;background:#f5faff;color:#367ab5;border-radius:2px;font-size:10px;line-height:16px;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-layout-table .source-tag-warn{background:#fff9f0;border-color:#ecd1ae;color:#ae702d}
.order-layout-table .order-remark-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.order-title-meta{gap:8px}.order-title-store{max-width:130px;padding-left:8px}.order-title-annotations{max-width:50%}.order-title-annotations .annotation-tags{max-width:45%}}

.order-title-id,.order-copy-value{display:flex;align-items:center;gap:4px;min-width:0}
.order-copy-value>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-title-id{flex-shrink:0}
:is(#main,dialog) .order-copy-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:18px;min-height:0;padding:2px;border:0;border-radius:3px;background:transparent;color:#8191a3;vertical-align:middle}
:is(#main,dialog) .order-copy-button svg{width:14px;height:14px;pointer-events:none}
:is(#main,dialog) .order-copy-button:hover,:is(#main,dialog) .order-copy-button:focus-visible{background:#e1efed;color:#126c65}

/* Compact grouped orders: stable label strip and bounded remark preview. */
#main .order-layout-table.order-grouped .order-layout-detail>td{vertical-align:top;padding:9px 12px;line-height:19px}
.order-info-line{display:flex;align-items:baseline;gap:6px;min-width:0;font-size:11px;line-height:19px}
.order-info-line>span:first-child{flex:0 0 48px;color:#8392a0;white-space:nowrap}
.order-info-line>.cell-primary{min-width:0;flex:1;font-weight:400}
.order-product-name{font-weight:600;margin-bottom:2px}
.order-title-annotations{flex:0 1 560px;max-width:58%}
.order-title-annotations .annotation-strip{width:100%}
.order-title-annotations .annotation-tags{flex:1;min-width:0;max-width:none}
#main .annotation-strip .annotation-note{display:flex;align-items:center;gap:4px;flex:0 0 240px;width:240px;max-width:240px;min-width:0;padding:0 0 0 9px;border:0;border-left:1px solid #cfdae4;border-radius:0;background:transparent;font-size:11px;text-align:left}
#main .annotation-note-text{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#main .order-remark-link{width:210px;max-width:100%;text-align:left}
.order-remark-tooltip{position:fixed;z-index:10000;width:max-content;max-width:min(440px,calc(100vw - 16px));max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;color:#26394a;border:1px solid #d9e2e9;border-radius:6px;padding:12px 15px;box-shadow:0 5px 22px #20394a25;font-size:12px;line-height:1.7}
@media(max-width:1000px){#main .annotation-strip .annotation-note{flex-basis:180px;width:180px;max-width:180px}.order-title-annotations{max-width:55%}}

/* Fit case columns to their content without shrinking copy/action targets. */
#main .cases-table.order-layout-table thead th{padding-left:8px;padding-right:8px}
#main .cases-table.order-layout-table tbody .order-layout-detail>td{padding-left:8px;padding-right:8px}
#main .cases-table.order-layout-table .case-reason{font-size:11px;line-height:18px;max-height:36px}
#main .cases-table .case-duration-cell>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
