/* 3-dot menu cell: narrow column, centered trigger */
.item-history-listing-action-cell.item-history-listing-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 37px;
    overflow: visible;
}

.item-history-listing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.item-history-listing-action-cell.item-history-listing-actions .item-history-listing-actions-menu-btn {
    margin: 0 auto;
}

.item-history-listing-actions-menu-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}

.item-history-listing-actions-menu-btn:hover {
    color: #1a202c;
}

.item-history-listing-actions-menu-btn svg {
    width: 16px;
    height: 16px;
}

.item-history-listing-actions-dropdown.item-history-listing-menu-tooltip {
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    min-width: 150px;
    width: max-content;
    max-width: 97vw;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.2s, visibility 0s linear 0.2s;
    font-size: 14px;
    border: 1px solid #ddd;
}

.item-history-listing-actions-dropdown.item-history-listing-menu-tooltip.active {
    opacity: 1;
    visibility: visible;
    display: block;
    transition: opacity 0.2s;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-dropdown {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-separator {
    width: 100%;
    height: 0;
    margin: 0;
    border: none;
    border-top: 1px solid rgb(240, 240, 240);
}

.item-history-listing-actions-dropdown .item-history-listing-menu-item {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #1f1a17;
    white-space: nowrap;
}

.item-history-listing-menu-item.wiz-download-media-trigger {
    justify-content: flex-start;
    font: inherit;
    text-align: left;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-item-icon img,
.item-history-listing-actions-dropdown .item-history-listing-menu-item-icon .wiz-download-media-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-item:hover {
    background-color: #f5f5f5;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-item-icon {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    pointer-events: none;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-item-icon svg {
    width: 16px;
    height: 16px;
}

.item-history-listing-actions-dropdown .item-history-listing-menu-item-text {
    flex: 1 1 auto;
    pointer-events: none;
}

/* Product image preview modal — image only */
.item-history-image-preview-modal {
    background: transparent;
    box-shadow: none;
}

.item-history-image-preview-modal .modal-content {
    background: transparent;
}

.item-history-image-preview-modal .item-history-image-modal-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 480px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

.item-history-image-preview-modal .item-history-image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    padding: 0;
}

.item-history-image-preview-modal .item-history-image-modal-close:hover {
    color: rgba(0, 0, 0, 0.9);
    background: #fff;
}

.item-history-image-preview-modal .item-history-image-modal-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}
