#view-products .resizable-table { min-width: 100%; }
#view-products .resizable-table th { position: relative; padding-right: 22px; }
#view-products .resizable-table th,
#view-products .resizable-table td { overflow: hidden; text-overflow: ellipsis; }
#view-products .resizable-table .product-link { max-width: 100%; overflow-wrap: anywhere; }
#view-products .resizable-table .product-meta { max-width: 100%; }
#view-products .resizable-table th { white-space: normal; overflow-wrap: anywhere; }
#view-products .resizable-table .catalog-column-groups th { height: 38px; box-sizing: border-box; padding: 8px 14px; background: var(--surface-raised, var(--surface)); color: var(--muted); font-weight: 500; white-space: nowrap; border-right: 1px solid var(--line); }
#view-products .resizable-table .catalog-column-groups th:first-child { padding-left: 20px; }
#view-products .resizable-table .catalog-column-groups th:last-child { border-right: 0; }
.column-group-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-products .resizable-table .catalog-column-headers .column-group-start { border-left: 1px solid var(--line); }
.catalog-product-photo { display: block; width: 52px; height: 64px; object-fit: contain; border-radius: 5px; background: #fff; }
#product-columns-dialog { max-width: min(94vw, 760px); overflow: hidden; }
.product-columns-content { width: min(720px, 90vw); max-height: 90vh; display: flex; flex-direction: column; box-sizing: border-box; }
.product-columns-content > :not(#product-column-choices) { flex-shrink: 0; }
.product-columns-content > .muted { margin-bottom: 12px; }
#product-columns-search { margin-top: 12px; width: 100%; }
.product-columns-tools { display: flex; gap: 22px; padding: 16px 0; }
#product-column-choices { min-height: 0; flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 4px 6px 20px 0; margin-bottom: 16px; }
#product-column-choices fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#product-column-choices legend { padding: 0 6px; font-weight: 600; color: var(--ink); font-size: 13px; }
#product-column-choices label { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--ink); cursor: pointer; }
#product-column-choices input { flex: 0 0 auto; margin-top: 3px; }
@media(max-width: 640px) { #product-column-choices { grid-template-columns: 1fr; } }
.column-resize-handle { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; cursor: col-resize; touch-action: none; z-index: 2; }
.column-resize-handle::after { content: ''; position: absolute; top: 22%; bottom: 22%; right: 5px; width: 1px; background: var(--muted); opacity: .5; }
.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after { width: 3px; opacity: 1; background: var(--accent, #4148df); }
.column-resize-handle:focus-visible { outline: 2px solid var(--accent, #4148df); outline-offset: -2px; }
html.resizing-columns, html.resizing-columns * { cursor: col-resize !important; user-select: none !important; }
.column-drag-button { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: inherit; cursor: grab; touch-action: none; user-select: none; }
.column-drag-button:focus-visible { outline: 2px solid var(--accent, #4148df); outline-offset: 3px; }
.column-drag-ghost { position: fixed; left: 0; top: 0; z-index: 10000; display: flex; align-items: center; gap: 10px; max-width: 280px; padding: 12px 15px; border: 1px solid var(--line, #ddd); border-radius: 4px; background: var(--surface, #fff); color: var(--ink, #222); box-shadow: 0 3px 15px #0002; font-size: 13px; line-height: 1.4; pointer-events: none; user-select: none; }
.column-drag-ghost > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.column-drag-ghost-icon { flex: 0 0 auto; font-size: 22px; line-height: 1; }
html.reordering-columns, html.reordering-columns * { cursor: move !important; user-select: none !important; }
