/**
 * 股票操作组件样式
 */

.stock-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;  /* 默认不换行 */
}

.stock-actions-horizontal {
    flex-direction: row;
}

.stock-actions-vertical {
    flex-direction: column;
    align-items: stretch;
}

/* 按钮尺寸变体 */
.stock-actions .btn-small {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    box-sizing: border-box;
}

.stock-actions .btn-large {
    padding: 14px 28px;
    font-size: 16px;
    min-width: 140px;
}

/* 响应式：移动端自动调整 */
@media (max-width: 768px) {
    .stock-actions {
        gap: 5px !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;  /* 移动端允许换行，避免横向滚动 */
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移动端紧凑按钮样式 */
    .stock-actions .btn {
        padding: 7px 9px !important;
        font-size: 12px !important;
        min-width: auto !important;
        width: auto !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .stock-actions .btn-small {
        padding: 6px 8px !important;
        font-size: 11px !important;
        min-width: auto !important;
        width: auto !important;
    }
}

/* 垂直布局时的特殊样式 */
.stock-actions-vertical .btn {
    width: 100%;
    justify-content: center;
}

/* 加载状态 */
.stock-actions .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 操作按钮的图标间距 */
.stock-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
