/* Grid skin; no data, risk or operational state is changed. */
.grid-reset{font-size:11px;padding:2px 5px;color:#79889b;background:transparent;border-color:transparent;white-space:nowrap}.grid-layout-note{font-size:10px;color:#7a8c80;white-space:nowrap}
.resizable-data-grid{table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:100%}
.resizable-data-grid th{position:sticky;background:#f7f9fc;padding:12px 10px;overflow:visible;color:#62758e;border-bottom:1px solid #e6edf5}
.grid-column-resizer{position:absolute;right:-4px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:7;touch-action:none}
.grid-column-resizer:after{content:"";position:absolute;left:4px;top:25%;bottom:25%;width:1px;background:#e2e9f1}.grid-column-resizer:hover:after,.grid-column-resizer:focus-visible:after{width:2px;background:#70a2eb}
.grid-is-resizing,.grid-is-resizing *{cursor:col-resize!important;user-select:none!important}
.resizable-data-grid td{height:auto!important;vertical-align:middle;padding:12px 10px;border-bottom:1px solid #edf1f6;border-left:0;border-right:0;transition:background-color .12s ease}
.resizable-data-grid tbody tr:hover td{background:#f2f7fc}
.resizable-data-grid .shipment-cell{padding-left:31px}.resizable-data-grid .posting{overflow-wrap:anywhere}
.resizable-data-grid .secondary,.resizable-data-grid .reason-cell .secondary,.resizable-data-grid .status-cell .secondary,.resizable-data-grid .logistics-cell,.resizable-data-grid .history-preview strong,.resizable-data-grid .history-preview span,.resizable-data-grid .ai-advice-preview,.resizable-data-grid .ai-advice-preview span{white-space:normal!important;overflow-wrap:anywhere;-webkit-line-clamp:unset;max-height:none;text-overflow:clip}
.resizable-data-grid .reason-cell,.resizable-data-grid .ai-cell,.resizable-data-grid .history-cell{height:auto!important}
.resizable-data-grid .ai-advice-preview{width:100%;min-width:0}.resizable-data-grid .risk-badge{white-space:normal}
@media(prefers-reduced-motion:reduce){.resizable-data-grid td{transition:none}}

.table-wrap:has(.resizable-data-grid){max-width:100%;overflow:auto;max-height:calc(100vh - 125px);scrollbar-width:thin;border:0;border-radius:6px;background:#fff}
.resizable-data-grid th{top:var(--grid-header-offset,0px)!important;z-index:15;background:#f7f9fc;box-shadow:0 1px 0 #e6edf5}
.resizable-data-grid .aftersale-status,.resizable-data-grid .reason-detail,.resizable-data-grid .reason-secondary{white-space:normal!important;overflow-wrap:anywhere;-webkit-line-clamp:unset;max-height:none}

/* Current-status aftersale caption remains one line; the title holds full text. */
.resizable-data-grid .status-cell .aftersale-status{display:block;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%;line-height:18px;max-height:18px!important}

.resizable-data-grid .ai-advice strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.resizable-data-grid .ai-advice span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;line-height:18px;max-height:36px}
